@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-progress-indicator.mjs","sources":["../../progress-indicator/src/progress-indicator-defaults.ts","../../progress-indicator/src/progress-indicator.constants.ts","../../progress-indicator/src/progress-indicator-base.ts","../../progress-indicator/src/loader.ts","../../progress-indicator/src/progress-bar.ts","../../progress-indicator/src/progress-circle.ts","../../progress-indicator/src/slotted-angular-progress-indicator.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\n\nimport type { ProgressSize, ProgressTone } from './progress-indicator.constants';\n\n/**\n * What every indicator in an application looks like, and how a wait is timed,\n * before any of them states anything of its own.\n *\n * The two durations are here rather than on an indicator because the policy is\n * an application's: a team decides once that a wait under two hundred\n * milliseconds is not worth reporting, and every bar inherits it. `locale` is\n * here for the same reason — the digits of a percentage belong to the\n * application's language, not to one upload.\n */\nexport interface ProgressIndicatorDefaults {\n delay?: number;\n label?: string;\n locale?: string;\n minDuration?: number;\n size?: ProgressSize;\n tone?: ProgressTone;\n}\n\nexport const PROGRESS_INDICATOR_DEFAULTS_TOKEN = new InjectionToken<ProgressIndicatorDefaults>(\n 'slotted progress indicator defaults',\n { providedIn: 'root', factory: (): ProgressIndicatorDefaults => ({}) },\n);\n\n/**\n * An application decides once how its indicators are sized and toned, how long\n * a wait has to last before one appears, how long one is held once it has, and\n * which language writes the digits. An indicator that states any of those still\n * wins: an explicit input is never overridden by the token.\n */\nexport function provideProgressIndicatorDefaults(defaults: ProgressIndicatorDefaults) {\n return { provide: PROGRESS_INDICATOR_DEFAULTS_TOKEN, useValue: defaults };\n}\n\nexport function injectProgressIndicatorDefaults(): ProgressIndicatorDefaults {\n return inject(PROGRESS_INDICATOR_DEFAULTS_TOKEN);\n}\n","export type ProgressSize = 'sm' | 'md' | 'lg';\nexport type ProgressTone = 'accent' | 'secondary' | 'info' | 'success' | 'warning' | 'danger';\nexport type ProgressPlacement = 'inline' | 'page' | 'edge-start' | 'edge-end';\n/** The geometry a component draws. Written to `data-shape`, never chosen. */\nexport type ProgressShape = 'linear' | 'circular' | 'morph';\n\nexport const PROGRESS_DEFAULT_SIZE: ProgressSize = 'md';\nexport const PROGRESS_DEFAULT_TONE: ProgressTone = 'accent';\nexport const PROGRESS_DEFAULT_PLACEMENT: ProgressPlacement = 'inline';\nexport const PROGRESS_DEFAULT_MIN = 0;\nexport const PROGRESS_DEFAULT_MAX = 100;\n","import { initialLoadingVisibility, nextLoadingVisibility } from '@slotted/core/loading';\nimport type { LoadingVisibilityState } from '@slotted/core/loading';\nimport { progressGeometry, progressValueText } from '@slotted/core/progress';\nimport type { ProgressGeometry } from '@slotted/core/progress';\nimport {\n booleanAttribute,\n computed,\n DestroyRef,\n Directive,\n effect,\n HostAttributeToken,\n inject,\n input,\n isDevMode,\n numberAttribute,\n output,\n signal,\n untracked,\n} from '@angular/core';\n\nimport { injectProgressIndicatorDefaults } from './progress-indicator-defaults';\nimport {\n PROGRESS_DEFAULT_SIZE,\n PROGRESS_DEFAULT_TONE,\n type ProgressShape,\n type ProgressSize,\n type ProgressTone,\n} from './progress-indicator.constants';\n\nlet nextId = 0;\n\n/**\n * Everything a bar, a ring and a loader answer the same way: the defaults, the\n * timing, the geometry, the text and the identity in the DOM.\n *\n * It is a base class rather than three copies because the two answers easiest\n * to get subtly wrong are the two no test can see from outside — which\n * `aria-value*` attributes are absent while a wait is indeterminate, and\n * whether the painted percentage came from the same call as the announced one.\n * The host bindings stay with each component, because `host` metadata belongs\n * to a decorator and a shape writes different attributes; the arithmetic\n * behind them is here.\n *\n * `@Directive()` with no selector is what makes the inputs and the output\n * inheritable: `input()` and `output()` are compiled rather than called, and\n * the compiler refuses them in a class it has not been told is a directive.\n */\n@Directive()\nexport abstract class SlProgressIndicatorBase {\n /** The geometry the component draws. Written by the component, never chosen. */\n protected abstract readonly shape: ProgressShape;\n\n readonly loading = input(true, { transform: booleanAttribute });\n readonly delay = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly minDuration = input<number | undefined, unknown>(undefined, {\n transform: optionalNumber,\n });\n readonly label = input<string | undefined>(undefined);\n readonly hideLabel = input<boolean | undefined, unknown>(undefined, {\n transform: optionalBoolean,\n });\n readonly decorative = input(false, { transform: booleanAttribute });\n readonly size = input<ProgressSize | undefined>(undefined);\n readonly tone = input<ProgressTone | undefined>(undefined);\n\n /**\n * The moment the indicator actually leaves the page, which is later than\n * `loading` turning false whenever `minDuration` is holding it. An\n * application unmounting on the input alone would take the indicator down\n * mid-hold.\n */\n readonly withdraw = output<void>();\n\n protected readonly defaults = injectProgressIndicatorDefaults();\n\n /**\n * A name the consumer wrote on their own element is read once and kept, so\n * the family never writes over it — the escape hatch `skeleton` established\n * with the same token.\n */\n protected readonly ownAriaLabel = inject(new HostAttributeToken('aria-label'), {\n optional: true,\n });\n protected readonly ownAriaLabelledBy = inject(new HostAttributeToken('aria-labelledby'), {\n optional: true,\n });\n protected readonly ownAriaHidden = inject(new HostAttributeToken('aria-hidden'), {\n optional: true,\n });\n\n /**\n * A stable id, and not `crypto.randomUUID()`: a server render and the\n * hydration that follows it have to produce the same string, and a counter\n * per document does while a random value does not.\n */\n protected readonly labelId = `slotted-progress-${(nextId += 1)}`;\n\n /** Whether anything is painted at all: `delay` may still be running. */\n readonly painted = signal(false);\n /**\n * How many times the indicator has been painted after being withdrawn. The\n * template draws the indicator once per value, so an indeterminate sweep\n * starts at its leading edge each time it comes back rather than where the\n * last one stood.\n */\n readonly paint = signal(0);\n\n readonly sizeValue = computed(() => this.size() ?? this.defaults.size ?? PROGRESS_DEFAULT_SIZE);\n readonly toneValue = computed(() => this.tone() ?? this.defaults.tone ?? PROGRESS_DEFAULT_TONE);\n readonly labelText = computed(() => this.label() ?? this.defaults.label);\n readonly labelHidden = computed(() => this.hideLabel() ?? this.hidesLabelByPlacement());\n\n /** What the two measured components state, and the loader does not. */\n protected measure(): {\n value: number | null | undefined;\n min: number | undefined;\n max: number | undefined;\n buffer: number | null | undefined;\n format: Intl.NumberFormatOptions | undefined;\n showValue: boolean | undefined;\n valueText: string | undefined;\n locale: string | undefined;\n } | null {\n return null;\n }\n\n /** Overridden by the bar, whose page placement has nowhere to put a name. */\n protected hidesLabelByPlacement(): boolean {\n return false;\n }\n\n readonly geometry = computed<ProgressGeometry>(() => {\n const measured = this.measure();\n return progressGeometry({\n value: measured?.value,\n min: measured?.min,\n max: measured?.max,\n buffer: measured?.buffer,\n });\n });\n\n readonly valueTextValue = computed(() => {\n const measured = this.measure();\n if (measured === null) return undefined;\n return progressValueText({\n geometry: this.geometry(),\n valueText: measured.valueText,\n format: measured.format,\n locale: measured.locale ?? this.defaults.locale,\n });\n });\n\n readonly showValueValue = computed(\n () =>\n this.measure()?.showValue === true &&\n !this.geometry().indeterminate &&\n this.valueTextValue() !== undefined,\n );\n\n protected readonly named = computed(() => this.labelText() !== undefined && !this.decorative());\n\n /* ── What reaches the host ─────────────────────────────────────────────── */\n\n protected readonly roleAttribute = computed(() => (this.decorative() ? null : 'progressbar'));\n protected readonly labelledByAttribute = computed(() =>\n this.named() ? (this.ownAriaLabelledBy ?? this.labelId) : this.ownAriaLabelledBy,\n );\n /**\n * `decorative` is one switch and not two: it takes the role away as well as\n * hiding the box, because an indicator a reader can reach and that announces\n * nothing is worse than either half. A consumer's own `aria-hidden` is kept\n * rather than overwritten.\n */\n protected readonly hiddenFromTree = computed(() =>\n this.decorative() ? (this.ownAriaHidden ?? 'true') : this.ownAriaHidden,\n );\n /**\n * The range is written out even where it equals the ARIA default, so a reader\n * is never told a number that depends on one. `aria-valuenow` is the one\n * attribute that is absent rather than defaulted: ARIA 1.3 asks an author to\n * omit it while the value is indeterminate, and the omission is what says\n * \"in progress, and nobody knows how far\".\n */\n protected readonly valueMinAttribute = computed(() =>\n this.decorative() || this.measure() === null ? null : this.geometry().min,\n );\n protected readonly valueMaxAttribute = computed(() =>\n this.decorative() || this.measure() === null ? null : this.geometry().max,\n );\n protected readonly valueNowAttribute = computed(() =>\n this.decorative() || this.geometry().indeterminate ? null : this.geometry().valueNow,\n );\n protected readonly valueTextAttribute = computed(() =>\n this.decorative() ? null : (this.valueTextValue() ?? null),\n );\n protected readonly indeterminateAttribute = computed(() =>\n this.measure() === null || this.geometry().indeterminate ? '' : null,\n );\n protected readonly completeAttribute = computed(() => (this.geometry().complete ? '' : null));\n protected readonly percentStyle = computed(() => `${this.geometry().percent}`);\n protected readonly bufferStyle = computed(() => {\n const buffer = this.geometry().buffer;\n return buffer === null ? null : `${buffer}`;\n });\n protected readonly bufferedAttribute = computed(() =>\n this.geometry().buffer === null ? null : '',\n );\n\n private machine: LoadingVisibilityState = initialLoadingVisibility;\n private timer: ReturnType<typeof setTimeout> | undefined;\n\n constructor() {\n inject(DestroyRef).onDestroy(() => clearTimeout(this.timer));\n\n effect(() => {\n const request = {\n loading: this.loading(),\n delay: this.delay() ?? this.defaults.delay ?? 0,\n minDuration: this.minDuration() ?? this.defaults.minDuration ?? 0,\n };\n untracked(() => this.settle(request));\n });\n\n /**\n * A missing name is reported and rendered anyway. `icon-button` throws\n * because an unnamed icon button is unusable; a nameless progress bar still\n * reports visually, and taking a screen down mid-upload is worse than the\n * defect it would be reporting. The family this one replaces recorded the\n * same decision.\n */\n effect(() => {\n const nameless =\n !this.decorative() &&\n this.labelText() === undefined &&\n this.ownAriaLabel === null &&\n this.ownAriaLabelledBy === null;\n if (isDevMode() && nameless) {\n console.warn(\n `${this.constructor.name} has no accessible name: pass label, or aria-label, or decorative when the text beside it already says what is happening.`,\n );\n }\n });\n }\n\n /**\n * One step of the shared machine, plus at most one timer. The rule lives in\n * `@slotted/core/loading` rather than here so React and Angular cannot\n * disagree about when an indicator appears — a difference no test that looked\n * at either binding alone would report.\n */\n private settle(request: { loading: boolean; delay: number; minDuration: number }) {\n clearTimeout(this.timer);\n const answer = nextLoadingVisibility({ ...request, now: Date.now(), state: this.machine });\n this.machine = answer.state;\n\n const was = this.painted();\n this.painted.set(answer.state.visible);\n if (was && !answer.state.visible) this.withdraw.emit();\n if (!was && answer.state.visible) this.paint.update((count) => count + 1);\n\n if (answer.wait === null) return;\n this.timer = setTimeout(() => this.settle(request), answer.wait);\n }\n}\n\n/**\n * Absence has to survive the transform. `numberAttribute` maps an unset input\n * to `NaN`, and `NaN` is a value: it would stop the application's own timing\n * decision from ever reaching an indicator that says nothing.\n */\nexport function optionalNumber(value: unknown): number | undefined {\n return value === undefined || value === null || value === '' ? undefined : numberAttribute(value);\n}\n\n/**\n * The same for a boolean. `booleanAttribute` maps an unset input to `false`,\n * and `false` is a value: it would stop a page-level bar from deciding that\n * its own name has nowhere visible to go.\n */\nexport function optionalBoolean(value: unknown): boolean | undefined {\n return value === undefined ? undefined : booleanAttribute(value);\n}\n\n/**\n * A value the consumer may state as `null` to mean \"no number yet\", which\n * `numberAttribute` would read as nought — the claim this family refuses to\n * make. An empty string arrives from a template binding that has not resolved.\n */\nexport function measurableNumber(value: unknown): number | null | undefined {\n if (value === undefined) return undefined;\n if (value === null || value === '') return null;\n return numberAttribute(value);\n}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { SlProgressIndicatorBase } from './progress-indicator-base';\nimport type { ProgressShape } from './progress-indicator.constants';\n\n/**\n * The wait a shape keeps, rather than the wait a ring reports.\n *\n * It is M3 Expressive's loading indicator, which Google recommends *instead of*\n * an indeterminate circular indicator for a wait under five seconds, and which\n * no other design system and no headless library surveyed ships at all. A\n * rounded shape morphs through a sequence — circle, clover, flower, trefoil,\n * oval — while it turns, at two periods that do not divide into each other, so\n * the sequence never shows the same shape in the same orientation twice.\n *\n * It measures nothing on purpose. A loader with a value would be a shape whose\n * progress nobody could read off a morphing outline, and the family already\n * has two shapes that report a number.\n *\n * `contained` draws M3's fully rounded container behind the shape, at M3's own\n * 38:48 ratio. It is the form to reach for on a photograph or a coloured\n * surface, where a bare shape has no ground to be seen against.\n *\n * Content after the label is projected, so a loader can stand in a sentence\n * the consumer wrote rather than only beside a string it was given.\n */\n@Component({\n selector: '[slLoader]',\n standalone: true,\n template: `<div data-part=\"track\" data-part-track=\"\">\n <div data-part=\"indicator\" data-part-indicator=\"\"></div>\n </div>\n @if (labelText(); as text) {\n <span\n data-part=\"label\"\n data-part-label=\"\"\n [id]=\"labelId\"\n [attr.data-ui]=\"labelUi()\"\n [attr.data-ui-visually-hidden]=\"labelUi() ? '' : null\"\n >{{ text }}</span\n >\n }\n <ng-content />`,\n styleUrls: [\n '../../../styles/src/progress-indicator/progress-indicator.css',\n '../../../styles/src/visually-hidden/visually-hidden.css',\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'slLoader',\n host: {\n 'data-ui': 'progress-indicator',\n 'data-ui-progress-indicator': '',\n 'data-part': 'root',\n 'data-part-root': '',\n 'data-shape': 'morph',\n '[attr.role]': 'roleAttribute()',\n '[attr.aria-hidden]': 'hiddenFromTree()',\n '[attr.aria-labelledby]': 'labelledByAttribute()',\n '[attr.data-size]': 'sizeValue()',\n '[attr.data-tone]': 'toneValue()',\n '[attr.data-indeterminate]': 'indeterminateAttribute()',\n '[attr.data-contained]': 'containedAttribute()',\n '[attr.hidden]': 'painted() ? null : \"\"',\n },\n})\nexport class SlLoader extends SlProgressIndicatorBase {\n protected override readonly shape: ProgressShape = 'morph';\n\n /** M3's fully rounded container behind the morphing shape. */\n readonly contained = input(false, { transform: booleanAttribute });\n\n protected readonly labelUi = computed(() => (this.labelHidden() ? 'visually-hidden' : null));\n protected readonly containedAttribute = computed(() => (this.contained() ? '' : null));\n}\n","import {\n PROGRESS_WAVE_BAR_INDETERMINATE_PATH,\n PROGRESS_WAVE_BAR_PATH,\n PROGRESS_WAVE_BAR_REACH,\n} from '@slotted/core/progress';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {\n measurableNumber,\n optionalNumber,\n SlProgressIndicatorBase,\n} from './progress-indicator-base';\nimport {\n PROGRESS_DEFAULT_PLACEMENT,\n type ProgressPlacement,\n type ProgressShape,\n} from './progress-indicator.constants';\n\n/**\n * The linear recipe: a quantity along a track, or a wait travelling it.\n *\n * The shape is M3's from 2024 onward — a fully rounded indicator, a gap of one\n * thickness before the track it has not reached, and a stop indicator marking\n * where the bar is going. The gap and the dot are what make a bar at four per\n * cent read as four per cent of something rather than as a stray mark, and no\n * other surveyed implementation draws either.\n *\n * `placement=\"page\"` is the whole of what the deleted `loading-bar` family\n * was: the same bar pinned to the top edge of the viewport, with no corner to\n * round and a transparent track, because a permanent grey band across the top\n * of a page reads as a rule under the header rather than as a wait.\n * `edge-start` and `edge-end` are the same bar on an edge of the nearest\n * positioned box, which is the frame `app-shell` and `page-header` render as\n * their `progress` part.\n *\n * With `wave` the indicator is an `svg` over the whole track and one stroked\n * path inside it; the stylesheet shows a window of it with a dash, so the bar\n * ends in its own crest with a round cap. The path carries the `svg:` prefix\n * for the reason the ring's shapes do: inside a control-flow block the parser\n * decides the namespace, and an unprefixed `path` would be an unknown HTML\n * element that draws nothing.\n *\n * The selector is a bare attribute, so the element stays the consumer's: a bar\n * belongs in whatever already holds it — a table cell, a card's footer, a\n * `header` — and wrapping it in a second element would change their layout to\n * carry an attribute.\n */\n@Component({\n selector: '[slProgressBar]',\n standalone: true,\n template: `@if (labelText(); as text) {\n <span\n data-part=\"label\"\n data-part-label=\"\"\n [id]=\"labelId\"\n [attr.data-ui]=\"labelUi()\"\n [attr.data-ui-visually-hidden]=\"labelUi() ? '' : null\"\n >{{ text }}</span\n >\n }\n @if (showValueValue()) {\n <span data-part=\"value\" data-part-value=\"\">{{ valueTextValue() }}</span>\n }\n <div data-part=\"track\" data-part-track=\"\">\n <!-- Each paint draws the indicator again, so its sweep starts at the\n leading edge: the branch changes with the paint's parity. -->\n @if (paint() % 2 === 0) {\n @if (wave()) {\n <svg\n aria-hidden=\"true\"\n data-part=\"indicator\"\n data-part-indicator=\"\"\n focusable=\"false\"\n preserveAspectRatio=\"xMinYMid meet\"\n [attr.viewBox]=\"waveViewBox\"\n >\n <svg:path [attr.d]=\"wavePath()\" [attr.pathLength]=\"waveReach\" />\n </svg>\n } @else {\n <div data-part=\"indicator\" data-part-indicator=\"\"></div>\n }\n } @else {\n @if (wave()) {\n <svg\n aria-hidden=\"true\"\n data-part=\"indicator\"\n data-part-indicator=\"\"\n focusable=\"false\"\n preserveAspectRatio=\"xMinYMid meet\"\n [attr.viewBox]=\"waveViewBox\"\n >\n <svg:path [attr.d]=\"wavePath()\" [attr.pathLength]=\"waveReach\" />\n </svg>\n } @else {\n <div data-part=\"indicator\" data-part-indicator=\"\"></div>\n }\n }\n </div>`,\n styleUrls: [\n '../../../styles/src/progress-indicator/progress-indicator.css',\n '../../../styles/src/visually-hidden/visually-hidden.css',\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'slProgressBar',\n host: {\n 'data-ui': 'progress-indicator',\n 'data-ui-progress-indicator': '',\n 'data-part': 'root',\n 'data-part-root': '',\n 'data-shape': 'linear',\n '[attr.role]': 'roleAttribute()',\n '[attr.aria-hidden]': 'hiddenFromTree()',\n '[attr.aria-labelledby]': 'labelledByAttribute()',\n '[attr.aria-valuemin]': 'valueMinAttribute()',\n '[attr.aria-valuemax]': 'valueMaxAttribute()',\n '[attr.aria-valuenow]': 'valueNowAttribute()',\n '[attr.aria-valuetext]': 'valueTextAttribute()',\n '[attr.data-size]': 'sizeValue()',\n '[attr.data-tone]': 'toneValue()',\n '[attr.data-indeterminate]': 'indeterminateAttribute()',\n '[attr.data-complete]': 'completeAttribute()',\n '[attr.data-buffered]': 'bufferedAttribute()',\n '[attr.data-placement]': 'placementAttribute()',\n '[attr.data-wave]': 'waveAttribute()',\n '[attr.hidden]': 'painted() ? null : \"\"',\n '[style.--slotted-progress-indicator-percent]': 'percentStyle()',\n '[style.--slotted-progress-indicator-buffer-percent]': 'bufferStyle()',\n },\n})\nexport class SlProgressBar extends SlProgressIndicatorBase {\n protected override readonly shape: ProgressShape = 'linear';\n\n readonly value = input<number | null | undefined, unknown>(undefined, {\n transform: measurableNumber,\n });\n readonly min = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly max = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n /** A second, further quantity: received but not yet processed. */\n readonly buffer = input<number | null | undefined, unknown>(undefined, {\n transform: measurableNumber,\n });\n readonly showValue = input(false, { transform: booleanAttribute });\n readonly valueText = input<string | undefined>(undefined);\n readonly format = input<Intl.NumberFormatOptions | undefined>(undefined);\n readonly locale = input<string | undefined>(undefined);\n readonly wave = input(false, { transform: booleanAttribute });\n readonly placement = input<ProgressPlacement>(PROGRESS_DEFAULT_PLACEMENT);\n\n protected readonly labelUi = computed(() => (this.labelHidden() ? 'visually-hidden' : null));\n protected readonly placementAttribute = computed(() =>\n this.placement() === 'inline' ? null : this.placement(),\n );\n protected readonly waveAttribute = computed(() => (this.wave() ? '' : null));\n\n /**\n * M3's sine from `@slotted/core/progress`, in a user space where one unit\n * is one thickness, and the tighter wave M3 draws while the value is\n * unknown. The viewBox and `pathLength` both state the path's reach, which\n * is what makes a dash of one unit one thickness of travel at any amplitude.\n */\n protected readonly waveReach = PROGRESS_WAVE_BAR_REACH;\n protected readonly waveViewBox = `0 -1.25 ${PROGRESS_WAVE_BAR_REACH} 2.5`;\n protected readonly wavePath = computed(() =>\n this.geometry().indeterminate ? PROGRESS_WAVE_BAR_INDETERMINATE_PATH : PROGRESS_WAVE_BAR_PATH,\n );\n\n /**\n * A bar on an edge has no room for a visible name and still needs one, so the\n * placement decides it — and a consumer who states `hideLabel` outright still\n * wins, which is the rule the whole library follows.\n */\n protected override hidesLabelByPlacement(): boolean {\n return this.placement() !== 'inline';\n }\n\n protected override measure() {\n return {\n value: this.value(),\n min: this.min(),\n max: this.max(),\n buffer: this.buffer(),\n format: this.format(),\n showValue: this.showValue(),\n valueText: this.valueText(),\n locale: this.locale(),\n };\n }\n}\n","import { PROGRESS_WAVE_RING_PATH } from '@slotted/core/progress';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {\n measurableNumber,\n optionalNumber,\n SlProgressIndicatorBase,\n} from './progress-indicator-base';\nimport type { ProgressShape } from './progress-indicator.constants';\n\n/**\n * The circular recipe, and with no value the spinner every surveyed library\n * ships under that name.\n *\n * Two concentric shapes in one `48 48` box, each carrying `pathLength=\"100\"`\n * so a dash length *is* the percentage and the stylesheet needs no arithmetic\n * of its own. The stroke is stated in the viewBox's own units, which makes it\n * one eighth of the diameter at every size — the ratio `button` derived for its\n * own loading ring, so the ring in a button and this circle are the same\n * object.\n *\n * The number sits beside the ring rather than inside it: the largest ring this\n * family draws is 38 pixels across with a 4.75-pixel stroke, which leaves 28\n * pixels of hole, and a percentage centred in it would be four-pixel type.\n *\n * With `wave` the indicator is M3's wavy ring from `@slotted/core/progress`\n * and the track stays a circle, which is what `CircularWavyProgressModifiers`\n * draws: only the active indicator morphs.\n *\n * The shapes carry the `svg:` prefix because a template's namespace is decided\n * by the parser rather than by the parent element: inside a control-flow block\n * an unprefixed `circle` is an unknown HTML element, and an unknown HTML\n * element draws nothing at all.\n */\n@Component({\n selector: '[slProgressCircle]',\n standalone: true,\n template: `<svg aria-hidden=\"true\" focusable=\"false\" viewBox=\"0 0 48 48\">\n <svg:circle\n cx=\"24\"\n cy=\"24\"\n data-part=\"track\"\n data-part-track=\"\"\n [attr.pathLength]=\"100\"\n r=\"20\"\n />\n <!-- Each paint draws the indicator again, so its sweep starts at the\n leading edge: the branch changes with the paint's parity. -->\n @if (paint() % 2 === 0) {\n @if (wave()) {\n <svg:path\n [attr.d]=\"wavePath\"\n data-part=\"indicator\"\n data-part-indicator=\"\"\n [attr.pathLength]=\"100\"\n />\n } @else {\n <svg:circle\n cx=\"24\"\n cy=\"24\"\n data-part=\"indicator\"\n data-part-indicator=\"\"\n [attr.pathLength]=\"100\"\n r=\"20\"\n />\n }\n } @else {\n @if (wave()) {\n <svg:path\n [attr.d]=\"wavePath\"\n data-part=\"indicator\"\n data-part-indicator=\"\"\n [attr.pathLength]=\"100\"\n />\n } @else {\n <svg:circle\n cx=\"24\"\n cy=\"24\"\n data-part=\"indicator\"\n data-part-indicator=\"\"\n [attr.pathLength]=\"100\"\n r=\"20\"\n />\n }\n }\n </svg>\n @if (labelText(); as text) {\n <span\n data-part=\"label\"\n data-part-label=\"\"\n [id]=\"labelId\"\n [attr.data-ui]=\"labelUi()\"\n [attr.data-ui-visually-hidden]=\"labelUi() ? '' : null\"\n >{{ text }}</span\n >\n }\n @if (showValueValue()) {\n <span data-part=\"value\" data-part-value=\"\">{{ valueTextValue() }}</span>\n }`,\n styleUrls: [\n '../../../styles/src/progress-indicator/progress-indicator.css',\n '../../../styles/src/visually-hidden/visually-hidden.css',\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'slProgressCircle',\n host: {\n 'data-ui': 'progress-indicator',\n 'data-ui-progress-indicator': '',\n 'data-part': 'root',\n 'data-part-root': '',\n 'data-shape': 'circular',\n '[attr.role]': 'roleAttribute()',\n '[attr.aria-hidden]': 'hiddenFromTree()',\n '[attr.aria-labelledby]': 'labelledByAttribute()',\n '[attr.aria-valuemin]': 'valueMinAttribute()',\n '[attr.aria-valuemax]': 'valueMaxAttribute()',\n '[attr.aria-valuenow]': 'valueNowAttribute()',\n '[attr.aria-valuetext]': 'valueTextAttribute()',\n '[attr.data-size]': 'sizeValue()',\n '[attr.data-tone]': 'toneValue()',\n '[attr.data-indeterminate]': 'indeterminateAttribute()',\n '[attr.data-complete]': 'completeAttribute()',\n '[attr.data-wave]': 'waveAttribute()',\n '[attr.hidden]': 'painted() ? null : \"\"',\n '[style.--slotted-progress-indicator-percent]': 'percentStyle()',\n },\n})\nexport class SlProgressCircle extends SlProgressIndicatorBase {\n protected override readonly shape: ProgressShape = 'circular';\n protected readonly wavePath = PROGRESS_WAVE_RING_PATH;\n\n readonly value = input<number | null | undefined, unknown>(undefined, {\n transform: measurableNumber,\n });\n readonly min = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly max = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly showValue = input(false, { transform: booleanAttribute });\n readonly valueText = input<string | undefined>(undefined);\n readonly format = input<Intl.NumberFormatOptions | undefined>(undefined);\n readonly locale = input<string | undefined>(undefined);\n readonly wave = input(false, { transform: booleanAttribute });\n\n protected readonly labelUi = computed(() => (this.labelHidden() ? 'visually-hidden' : null));\n protected readonly waveAttribute = computed(() => (this.wave() ? '' : null));\n\n protected override measure() {\n return {\n value: this.value(),\n min: this.min(),\n max: this.max(),\n buffer: null,\n format: this.format(),\n showValue: this.showValue(),\n valueText: this.valueText(),\n locale: this.locale(),\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAuBO,MAAM,iCAAiC,GAAG,IAAI,cAAc,CACjE,qCAAqC,EACrC,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,OAAkC,EAAE,CAAC,EAAE;AAGxE;;;;;AAKG;AACG,SAAU,gCAAgC,CAAC,QAAmC,EAAA;IAClF,OAAO,EAAE,OAAO,EAAE,iCAAiC,EAAE,QAAQ,EAAE,QAAQ,EAAE;AAC3E;SAEgB,+BAA+B,GAAA;AAC7C,IAAA,OAAO,MAAM,CAAC,iCAAiC,CAAC;AAClD;;AClCO,MAAM,qBAAqB,GAAiB,IAAI;AAChD,MAAM,qBAAqB,GAAiB,QAAQ;AACpD,MAAM,0BAA0B,GAAsB,QAAQ;AAC9D,MAAM,oBAAoB,GAAG,CAAC;AAC9B,MAAM,oBAAoB,GAAG,GAAG;;ACmBvC,IAAI,MAAM,GAAG,CAAC;AAEd;;;;;;;;;;;;;;;AAeG;MAEmB,uBAAuB,CAAA;IAIlC,OAAO,GAAG,KAAK,CAAC,IAAI,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IACtD,KAAK,GAAG,KAAK,CA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wBAAA,uBAAuB,EAAE,sBAAsB;AAC/C,wBAAA,kBAAkB,EAAE,aAAa;AACjC,wBAAA,kBAAkB,EAAE,aAAa;AACjC,wBAAA,2BAA2B,EAAE,0BAA0B;AACvD,wBAAA,sBAAsB,EAAE,qBAAqB;AAC7C,wBAAA,kBAAkB,EAAE,iBAAiB;AACrC,wBAAA,eAAe,EAAE,uBAAuB;AACxC,wBAAA,8CAA8C,EAAE,gBAAgB;AACjE,qBAAA,EAAA,MAAA,EAAA,CAAA,ks2BAAA,EAAA,6QAAA,CAAA,EAAA;;;ACrIH;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"slotted-angular-progress-indicator.mjs","sources":["../../progress-indicator/src/progress-indicator-defaults.ts","../../progress-indicator/src/progress-indicator.constants.ts","../../progress-indicator/src/progress-indicator-base.ts","../../progress-indicator/src/loader.ts","../../progress-indicator/src/progress-bar.ts","../../progress-indicator/src/progress-circle.ts","../../progress-indicator/src/slotted-angular-progress-indicator.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\n\nimport type { ProgressSize, ProgressTone } from './progress-indicator.constants';\n\n/**\n * What every indicator in an application looks like, and how a wait is timed,\n * before any of them states anything of its own.\n *\n * The two durations are here rather than on an indicator because the policy is\n * an application's: a team decides once that a wait under two hundred\n * milliseconds is not worth reporting, and every bar inherits it. `locale` is\n * here for the same reason — the digits of a percentage belong to the\n * application's language, not to one upload.\n */\nexport interface ProgressIndicatorDefaults {\n delay?: number;\n label?: string;\n locale?: string;\n minDuration?: number;\n size?: ProgressSize;\n tone?: ProgressTone;\n}\n\nexport const PROGRESS_INDICATOR_DEFAULTS_TOKEN = new InjectionToken<ProgressIndicatorDefaults>(\n 'slotted progress indicator defaults',\n { providedIn: 'root', factory: (): ProgressIndicatorDefaults => ({}) },\n);\n\n/**\n * An application decides once how its indicators are sized and toned, how long\n * a wait has to last before one appears, how long one is held once it has, and\n * which language writes the digits. An indicator that states any of those still\n * wins: an explicit input is never overridden by the token.\n */\nexport function provideProgressIndicatorDefaults(defaults: ProgressIndicatorDefaults) {\n return { provide: PROGRESS_INDICATOR_DEFAULTS_TOKEN, useValue: defaults };\n}\n\nexport function injectProgressIndicatorDefaults(): ProgressIndicatorDefaults {\n return inject(PROGRESS_INDICATOR_DEFAULTS_TOKEN);\n}\n","export type ProgressSize = 'sm' | 'md' | 'lg';\nexport type ProgressTone = 'accent' | 'secondary' | 'info' | 'success' | 'warning' | 'danger';\nexport type ProgressPlacement = 'inline' | 'page' | 'edge-start' | 'edge-end';\n/** The geometry a component draws. Written to `data-shape`, never chosen. */\nexport type ProgressShape = 'linear' | 'circular' | 'morph';\n\nexport const PROGRESS_DEFAULT_SIZE: ProgressSize = 'md';\nexport const PROGRESS_DEFAULT_TONE: ProgressTone = 'accent';\nexport const PROGRESS_DEFAULT_PLACEMENT: ProgressPlacement = 'inline';\nexport const PROGRESS_DEFAULT_MIN = 0;\nexport const PROGRESS_DEFAULT_MAX = 100;\n","import { initialLoadingVisibility, nextLoadingVisibility } from '@slotted/core/loading';\nimport type { LoadingVisibilityState } from '@slotted/core/loading';\nimport { progressGeometry, progressValueText } from '@slotted/core/progress';\nimport type { ProgressGeometry } from '@slotted/core/progress';\nimport {\n booleanAttribute,\n computed,\n DestroyRef,\n Directive,\n effect,\n HostAttributeToken,\n inject,\n input,\n isDevMode,\n numberAttribute,\n output,\n signal,\n untracked,\n} from '@angular/core';\n\nimport { injectProgressIndicatorDefaults } from './progress-indicator-defaults';\nimport {\n PROGRESS_DEFAULT_SIZE,\n PROGRESS_DEFAULT_TONE,\n type ProgressShape,\n type ProgressSize,\n type ProgressTone,\n} from './progress-indicator.constants';\n\nlet nextId = 0;\n\n/**\n * Everything a bar, a ring and a loader answer the same way: the defaults, the\n * timing, the geometry, the text and the identity in the DOM.\n *\n * It is a base class rather than three copies because the two answers easiest\n * to get subtly wrong are the two no test can see from outside — which\n * `aria-value*` attributes are absent while a wait is indeterminate, and\n * whether the painted percentage came from the same call as the announced one.\n * The host bindings stay with each component, because `host` metadata belongs\n * to a decorator and a shape writes different attributes; the arithmetic\n * behind them is here.\n *\n * `@Directive()` with no selector is what makes the inputs and the output\n * inheritable: `input()` and `output()` are compiled rather than called, and\n * the compiler refuses them in a class it has not been told is a directive.\n */\n@Directive()\nexport abstract class SlProgressIndicatorBase {\n /** The geometry the component draws. Written by the component, never chosen. */\n protected abstract readonly shape: ProgressShape;\n\n readonly loading = input(true, { transform: booleanAttribute });\n readonly delay = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly minDuration = input<number | undefined, unknown>(undefined, {\n transform: optionalNumber,\n });\n readonly label = input<string | undefined>(undefined);\n readonly hideLabel = input<boolean | undefined, unknown>(undefined, {\n transform: optionalBoolean,\n });\n readonly decorative = input(false, { transform: booleanAttribute });\n readonly size = input<ProgressSize | undefined>(undefined);\n readonly tone = input<ProgressTone | undefined>(undefined);\n\n /**\n * The moment the indicator actually leaves the page, which is later than\n * `loading` turning false whenever `minDuration` is holding it. An\n * application unmounting on the input alone would take the indicator down\n * mid-hold.\n */\n readonly withdraw = output<void>();\n\n protected readonly defaults = injectProgressIndicatorDefaults();\n\n /**\n * A name the consumer wrote on their own element is read once and kept, so\n * the family never writes over it — the escape hatch `skeleton` established\n * with the same token.\n */\n protected readonly ownAriaLabel = inject(new HostAttributeToken('aria-label'), {\n optional: true,\n });\n protected readonly ownAriaLabelledBy = inject(new HostAttributeToken('aria-labelledby'), {\n optional: true,\n });\n protected readonly ownAriaHidden = inject(new HostAttributeToken('aria-hidden'), {\n optional: true,\n });\n\n /**\n * A stable id, and not `crypto.randomUUID()`: a server render and the\n * hydration that follows it have to produce the same string, and a counter\n * per document does while a random value does not.\n */\n protected readonly labelId = `slotted-progress-${(nextId += 1)}`;\n\n /** Whether anything is painted at all: `delay` may still be running. */\n readonly painted = signal(false);\n /**\n * How many times the indicator has been painted after being withdrawn. The\n * template draws the indicator once per value, so an indeterminate sweep\n * starts at its leading edge each time it comes back rather than where the\n * last one stood.\n */\n readonly paint = signal(0);\n\n readonly sizeValue = computed(() => this.size() ?? this.defaults.size ?? PROGRESS_DEFAULT_SIZE);\n readonly toneValue = computed(() => this.tone() ?? this.defaults.tone ?? PROGRESS_DEFAULT_TONE);\n readonly labelText = computed(() => this.label() ?? this.defaults.label);\n readonly labelHidden = computed(() => this.hideLabel() ?? this.hidesLabelByPlacement());\n\n /** What the two measured components state, and the loader does not. */\n protected measure(): {\n value: number | null | undefined;\n min: number | undefined;\n max: number | undefined;\n buffer: number | null | undefined;\n format: Intl.NumberFormatOptions | undefined;\n showValue: boolean | undefined;\n valueText: string | undefined;\n locale: string | undefined;\n } | null {\n return null;\n }\n\n /** Overridden by the bar, whose page placement has nowhere to put a name. */\n protected hidesLabelByPlacement(): boolean {\n return false;\n }\n\n readonly geometry = computed<ProgressGeometry>(() => {\n const measured = this.measure();\n return progressGeometry({\n value: measured?.value,\n min: measured?.min,\n max: measured?.max,\n buffer: measured?.buffer,\n });\n });\n\n readonly valueTextValue = computed(() => {\n const measured = this.measure();\n if (measured === null) return undefined;\n return progressValueText({\n geometry: this.geometry(),\n valueText: measured.valueText,\n format: measured.format,\n locale: measured.locale ?? this.defaults.locale,\n });\n });\n\n readonly showValueValue = computed(\n () =>\n this.measure()?.showValue === true &&\n !this.geometry().indeterminate &&\n this.valueTextValue() !== undefined,\n );\n\n protected readonly named = computed(() => this.labelText() !== undefined && !this.decorative());\n\n /* ── What reaches the host ─────────────────────────────────────────────── */\n\n protected readonly roleAttribute = computed(() => (this.decorative() ? null : 'progressbar'));\n protected readonly labelledByAttribute = computed(() =>\n this.named() ? (this.ownAriaLabelledBy ?? this.labelId) : this.ownAriaLabelledBy,\n );\n /**\n * `decorative` is one switch and not two: it takes the role away as well as\n * hiding the box, because an indicator a reader can reach and that announces\n * nothing is worse than either half. A consumer's own `aria-hidden` is kept\n * rather than overwritten.\n */\n protected readonly hiddenFromTree = computed(() =>\n this.decorative() ? (this.ownAriaHidden ?? 'true') : this.ownAriaHidden,\n );\n /**\n * The range is written out even where it equals the ARIA default, so a reader\n * is never told a number that depends on one. `aria-valuenow` is the one\n * attribute that is absent rather than defaulted: ARIA 1.3 asks an author to\n * omit it while the value is indeterminate, and the omission is what says\n * \"in progress, and nobody knows how far\".\n */\n protected readonly valueMinAttribute = computed(() =>\n this.decorative() || this.measure() === null ? null : this.geometry().min,\n );\n protected readonly valueMaxAttribute = computed(() =>\n this.decorative() || this.measure() === null ? null : this.geometry().max,\n );\n protected readonly valueNowAttribute = computed(() =>\n this.decorative() || this.geometry().indeterminate ? null : this.geometry().valueNow,\n );\n protected readonly valueTextAttribute = computed(() =>\n this.decorative() ? null : (this.valueTextValue() ?? null),\n );\n protected readonly indeterminateAttribute = computed(() =>\n this.measure() === null || this.geometry().indeterminate ? '' : null,\n );\n protected readonly completeAttribute = computed(() => (this.geometry().complete ? '' : null));\n protected readonly percentStyle = computed(() => `${this.geometry().percent}`);\n protected readonly bufferStyle = computed(() => {\n const buffer = this.geometry().buffer;\n return buffer === null ? null : `${buffer}`;\n });\n protected readonly bufferedAttribute = computed(() =>\n this.geometry().buffer === null ? null : '',\n );\n\n private machine: LoadingVisibilityState = initialLoadingVisibility;\n private timer: ReturnType<typeof setTimeout> | undefined;\n\n constructor() {\n inject(DestroyRef).onDestroy(() => clearTimeout(this.timer));\n\n effect(() => {\n const request = {\n loading: this.loading(),\n delay: this.delay() ?? this.defaults.delay ?? 0,\n minDuration: this.minDuration() ?? this.defaults.minDuration ?? 0,\n };\n untracked(() => this.settle(request));\n });\n\n /**\n * A missing name is reported and rendered anyway. `icon-button` throws\n * because an unnamed icon button is unusable; a nameless progress bar still\n * reports visually, and taking a screen down mid-upload is worse than the\n * defect it would be reporting. The family this one replaces recorded the\n * same decision.\n */\n effect(() => {\n const nameless =\n !this.decorative() &&\n this.labelText() === undefined &&\n this.ownAriaLabel === null &&\n this.ownAriaLabelledBy === null;\n if (isDevMode() && nameless) {\n console.warn(\n `${this.constructor.name} has no accessible name: pass label, or aria-label, or decorative when the text beside it already says what is happening.`,\n );\n }\n });\n }\n\n /**\n * One step of the shared machine, plus at most one timer. The rule lives in\n * `@slotted/core/loading` rather than here so React and Angular cannot\n * disagree about when an indicator appears — a difference no test that looked\n * at either binding alone would report.\n */\n private settle(request: { loading: boolean; delay: number; minDuration: number }) {\n clearTimeout(this.timer);\n const answer = nextLoadingVisibility({ ...request, now: Date.now(), state: this.machine });\n this.machine = answer.state;\n\n const was = this.painted();\n this.painted.set(answer.state.visible);\n if (was && !answer.state.visible) this.withdraw.emit();\n if (!was && answer.state.visible) this.paint.update((count) => count + 1);\n\n if (answer.wait === null) return;\n this.timer = setTimeout(() => this.settle(request), answer.wait);\n }\n}\n\n/**\n * Absence has to survive the transform. `numberAttribute` maps an unset input\n * to `NaN`, and `NaN` is a value: it would stop the application's own timing\n * decision from ever reaching an indicator that says nothing.\n */\nexport function optionalNumber(value: unknown): number | undefined {\n return value === undefined || value === null || value === '' ? undefined : numberAttribute(value);\n}\n\n/**\n * The same for a boolean. `booleanAttribute` maps an unset input to `false`,\n * and `false` is a value: it would stop a page-level bar from deciding that\n * its own name has nowhere visible to go.\n */\nexport function optionalBoolean(value: unknown): boolean | undefined {\n return value === undefined ? undefined : booleanAttribute(value);\n}\n\n/**\n * A value the consumer may state as `null` to mean \"no number yet\", which\n * `numberAttribute` would read as nought — the claim this family refuses to\n * make. An empty string arrives from a template binding that has not resolved.\n */\nexport function measurableNumber(value: unknown): number | null | undefined {\n if (value === undefined) return undefined;\n if (value === null || value === '') return null;\n return numberAttribute(value);\n}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { SlProgressIndicatorBase } from './progress-indicator-base';\nimport type { ProgressShape } from './progress-indicator.constants';\n\n/**\n * The wait a shape keeps, rather than the wait a ring reports.\n *\n * It is M3 Expressive's loading indicator, which Google recommends *instead of*\n * an indeterminate circular indicator for a wait under five seconds, and which\n * no other design system and no headless library surveyed ships at all. A\n * rounded shape morphs through a sequence — circle, clover, flower, trefoil,\n * oval — while it turns, at two periods that do not divide into each other, so\n * the sequence never shows the same shape in the same orientation twice.\n *\n * It measures nothing on purpose. A loader with a value would be a shape whose\n * progress nobody could read off a morphing outline, and the family already\n * has two shapes that report a number.\n *\n * `contained` draws M3's fully rounded container behind the shape, at M3's own\n * 38:48 ratio. It is the form to reach for on a photograph or a colored\n * surface, where a bare shape has no ground to be seen against.\n *\n * Content after the label is projected, so a loader can stand in a sentence\n * the consumer wrote rather than only beside a string it was given.\n */\n@Component({\n selector: '[slLoader]',\n standalone: true,\n template: `<div data-part=\"track\" data-part-track=\"\">\n <div data-part=\"indicator\" data-part-indicator=\"\"></div>\n </div>\n @if (labelText(); as text) {\n <span\n data-part=\"label\"\n data-part-label=\"\"\n [id]=\"labelId\"\n [attr.data-ui]=\"labelUi()\"\n [attr.data-ui-visually-hidden]=\"labelUi() ? '' : null\"\n >{{ text }}</span\n >\n }\n <ng-content />`,\n styleUrls: [\n '../../../styles/src/progress-indicator/progress-indicator.css',\n '../../../styles/src/visually-hidden/visually-hidden.css',\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'slLoader',\n host: {\n 'data-ui': 'progress-indicator',\n 'data-ui-progress-indicator': '',\n 'data-part': 'root',\n 'data-part-root': '',\n 'data-shape': 'morph',\n '[attr.role]': 'roleAttribute()',\n '[attr.aria-hidden]': 'hiddenFromTree()',\n '[attr.aria-labelledby]': 'labelledByAttribute()',\n '[attr.data-size]': 'sizeValue()',\n '[attr.data-tone]': 'toneValue()',\n '[attr.data-indeterminate]': 'indeterminateAttribute()',\n '[attr.data-contained]': 'containedAttribute()',\n '[attr.hidden]': 'painted() ? null : \"\"',\n },\n})\nexport class SlLoader extends SlProgressIndicatorBase {\n protected override readonly shape: ProgressShape = 'morph';\n\n /** M3's fully rounded container behind the morphing shape. */\n readonly contained = input(false, { transform: booleanAttribute });\n\n protected readonly labelUi = computed(() => (this.labelHidden() ? 'visually-hidden' : null));\n protected readonly containedAttribute = computed(() => (this.contained() ? '' : null));\n}\n","import {\n PROGRESS_WAVE_BAR_INDETERMINATE_PATH,\n PROGRESS_WAVE_BAR_PATH,\n PROGRESS_WAVE_BAR_REACH,\n} from '@slotted/core/progress';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {\n measurableNumber,\n optionalNumber,\n SlProgressIndicatorBase,\n} from './progress-indicator-base';\nimport {\n PROGRESS_DEFAULT_PLACEMENT,\n type ProgressPlacement,\n type ProgressShape,\n} from './progress-indicator.constants';\n\n/**\n * The linear recipe: a quantity along a track, or a wait travelling it.\n *\n * The shape is M3's from 2024 onward — a fully rounded indicator, a gap of one\n * thickness before the track it has not reached, and a stop indicator marking\n * where the bar is going. The gap and the dot are what make a bar at four per\n * cent read as four per cent of something rather than as a stray mark, and no\n * other surveyed implementation draws either.\n *\n * `placement=\"page\"` is the whole of what the deleted `loading-bar` family\n * was: the same bar pinned to the top edge of the viewport, with no corner to\n * round and a transparent track, because a permanent grey band across the top\n * of a page reads as a rule under the header rather than as a wait.\n * `edge-start` and `edge-end` are the same bar on an edge of the nearest\n * positioned box, which is the frame `app-shell` and `page-header` render as\n * their `progress` part.\n *\n * With `wave` the indicator is an `svg` over the whole track and one stroked\n * path inside it; the stylesheet shows a window of it with a dash, so the bar\n * ends in its own crest with a round cap. The path carries the `svg:` prefix\n * for the reason the ring's shapes do: inside a control-flow block the parser\n * decides the namespace, and an unprefixed `path` would be an unknown HTML\n * element that draws nothing.\n *\n * The selector is a bare attribute, so the element stays the consumer's: a bar\n * belongs in whatever already holds it — a table cell, a card's footer, a\n * `header` — and wrapping it in a second element would change their layout to\n * carry an attribute.\n */\n@Component({\n selector: '[slProgressBar]',\n standalone: true,\n template: `@if (labelText(); as text) {\n <span\n data-part=\"label\"\n data-part-label=\"\"\n [id]=\"labelId\"\n [attr.data-ui]=\"labelUi()\"\n [attr.data-ui-visually-hidden]=\"labelUi() ? '' : null\"\n >{{ text }}</span\n >\n }\n @if (showValueValue()) {\n <span data-part=\"value\" data-part-value=\"\">{{ valueTextValue() }}</span>\n }\n <div data-part=\"track\" data-part-track=\"\">\n <!-- Each paint draws the indicator again, so its sweep starts at the\n leading edge: the branch changes with the paint's parity. -->\n @if (paint() % 2 === 0) {\n @if (wave()) {\n <svg\n aria-hidden=\"true\"\n data-part=\"indicator\"\n data-part-indicator=\"\"\n focusable=\"false\"\n preserveAspectRatio=\"xMinYMid meet\"\n [attr.viewBox]=\"waveViewBox\"\n >\n <svg:path [attr.d]=\"wavePath()\" [attr.pathLength]=\"waveReach\" />\n </svg>\n } @else {\n <div data-part=\"indicator\" data-part-indicator=\"\"></div>\n }\n } @else {\n @if (wave()) {\n <svg\n aria-hidden=\"true\"\n data-part=\"indicator\"\n data-part-indicator=\"\"\n focusable=\"false\"\n preserveAspectRatio=\"xMinYMid meet\"\n [attr.viewBox]=\"waveViewBox\"\n >\n <svg:path [attr.d]=\"wavePath()\" [attr.pathLength]=\"waveReach\" />\n </svg>\n } @else {\n <div data-part=\"indicator\" data-part-indicator=\"\"></div>\n }\n }\n </div>`,\n styleUrls: [\n '../../../styles/src/progress-indicator/progress-indicator.css',\n '../../../styles/src/visually-hidden/visually-hidden.css',\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'slProgressBar',\n host: {\n 'data-ui': 'progress-indicator',\n 'data-ui-progress-indicator': '',\n 'data-part': 'root',\n 'data-part-root': '',\n 'data-shape': 'linear',\n '[attr.role]': 'roleAttribute()',\n '[attr.aria-hidden]': 'hiddenFromTree()',\n '[attr.aria-labelledby]': 'labelledByAttribute()',\n '[attr.aria-valuemin]': 'valueMinAttribute()',\n '[attr.aria-valuemax]': 'valueMaxAttribute()',\n '[attr.aria-valuenow]': 'valueNowAttribute()',\n '[attr.aria-valuetext]': 'valueTextAttribute()',\n '[attr.data-size]': 'sizeValue()',\n '[attr.data-tone]': 'toneValue()',\n '[attr.data-indeterminate]': 'indeterminateAttribute()',\n '[attr.data-complete]': 'completeAttribute()',\n '[attr.data-buffered]': 'bufferedAttribute()',\n '[attr.data-placement]': 'placementAttribute()',\n '[attr.data-wave]': 'waveAttribute()',\n '[attr.hidden]': 'painted() ? null : \"\"',\n '[style.--slotted-progress-indicator-percent]': 'percentStyle()',\n '[style.--slotted-progress-indicator-buffer-percent]': 'bufferStyle()',\n },\n})\nexport class SlProgressBar extends SlProgressIndicatorBase {\n protected override readonly shape: ProgressShape = 'linear';\n\n readonly value = input<number | null | undefined, unknown>(undefined, {\n transform: measurableNumber,\n });\n readonly min = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly max = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n /** A second, further quantity: received but not yet processed. */\n readonly buffer = input<number | null | undefined, unknown>(undefined, {\n transform: measurableNumber,\n });\n readonly showValue = input(false, { transform: booleanAttribute });\n readonly valueText = input<string | undefined>(undefined);\n readonly format = input<Intl.NumberFormatOptions | undefined>(undefined);\n readonly locale = input<string | undefined>(undefined);\n readonly wave = input(false, { transform: booleanAttribute });\n readonly placement = input<ProgressPlacement>(PROGRESS_DEFAULT_PLACEMENT);\n\n protected readonly labelUi = computed(() => (this.labelHidden() ? 'visually-hidden' : null));\n protected readonly placementAttribute = computed(() =>\n this.placement() === 'inline' ? null : this.placement(),\n );\n protected readonly waveAttribute = computed(() => (this.wave() ? '' : null));\n\n /**\n * M3's sine from `@slotted/core/progress`, in a user space where one unit\n * is one thickness, and the tighter wave M3 draws while the value is\n * unknown. The viewBox and `pathLength` both state the path's reach, which\n * is what makes a dash of one unit one thickness of travel at any amplitude.\n */\n protected readonly waveReach = PROGRESS_WAVE_BAR_REACH;\n protected readonly waveViewBox = `0 -1.25 ${PROGRESS_WAVE_BAR_REACH} 2.5`;\n protected readonly wavePath = computed(() =>\n this.geometry().indeterminate ? PROGRESS_WAVE_BAR_INDETERMINATE_PATH : PROGRESS_WAVE_BAR_PATH,\n );\n\n /**\n * A bar on an edge has no room for a visible name and still needs one, so the\n * placement decides it — and a consumer who states `hideLabel` outright still\n * wins, which is the rule the whole library follows.\n */\n protected override hidesLabelByPlacement(): boolean {\n return this.placement() !== 'inline';\n }\n\n protected override measure() {\n return {\n value: this.value(),\n min: this.min(),\n max: this.max(),\n buffer: this.buffer(),\n format: this.format(),\n showValue: this.showValue(),\n valueText: this.valueText(),\n locale: this.locale(),\n };\n }\n}\n","import { PROGRESS_WAVE_RING_PATH } from '@slotted/core/progress';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {\n measurableNumber,\n optionalNumber,\n SlProgressIndicatorBase,\n} from './progress-indicator-base';\nimport type { ProgressShape } from './progress-indicator.constants';\n\n/**\n * The circular recipe, and with no value the spinner every surveyed library\n * ships under that name.\n *\n * Two concentric shapes in one `48 48` box, each carrying `pathLength=\"100\"`\n * so a dash length *is* the percentage and the stylesheet needs no arithmetic\n * of its own. The stroke is stated in the viewBox's own units, which makes it\n * one eighth of the diameter at every size — the ratio `button` derived for its\n * own loading ring, so the ring in a button and this circle are the same\n * object.\n *\n * The number sits beside the ring rather than inside it: the largest ring this\n * family draws is 38 pixels across with a 4.75-pixel stroke, which leaves 28\n * pixels of hole, and a percentage centerd in it would be four-pixel type.\n *\n * With `wave` the indicator is M3's wavy ring from `@slotted/core/progress`\n * and the track stays a circle, which is what `CircularWavyProgressModifiers`\n * draws: only the active indicator morphs.\n *\n * The shapes carry the `svg:` prefix because a template's namespace is decided\n * by the parser rather than by the parent element: inside a control-flow block\n * an unprefixed `circle` is an unknown HTML element, and an unknown HTML\n * element draws nothing at all.\n */\n@Component({\n selector: '[slProgressCircle]',\n standalone: true,\n template: `<svg aria-hidden=\"true\" focusable=\"false\" viewBox=\"0 0 48 48\">\n <svg:circle\n cx=\"24\"\n cy=\"24\"\n data-part=\"track\"\n data-part-track=\"\"\n [attr.pathLength]=\"100\"\n r=\"20\"\n />\n <!-- Each paint draws the indicator again, so its sweep starts at the\n leading edge: the branch changes with the paint's parity. -->\n @if (paint() % 2 === 0) {\n @if (wave()) {\n <svg:path\n [attr.d]=\"wavePath\"\n data-part=\"indicator\"\n data-part-indicator=\"\"\n [attr.pathLength]=\"100\"\n />\n } @else {\n <svg:circle\n cx=\"24\"\n cy=\"24\"\n data-part=\"indicator\"\n data-part-indicator=\"\"\n [attr.pathLength]=\"100\"\n r=\"20\"\n />\n }\n } @else {\n @if (wave()) {\n <svg:path\n [attr.d]=\"wavePath\"\n data-part=\"indicator\"\n data-part-indicator=\"\"\n [attr.pathLength]=\"100\"\n />\n } @else {\n <svg:circle\n cx=\"24\"\n cy=\"24\"\n data-part=\"indicator\"\n data-part-indicator=\"\"\n [attr.pathLength]=\"100\"\n r=\"20\"\n />\n }\n }\n </svg>\n @if (labelText(); as text) {\n <span\n data-part=\"label\"\n data-part-label=\"\"\n [id]=\"labelId\"\n [attr.data-ui]=\"labelUi()\"\n [attr.data-ui-visually-hidden]=\"labelUi() ? '' : null\"\n >{{ text }}</span\n >\n }\n @if (showValueValue()) {\n <span data-part=\"value\" data-part-value=\"\">{{ valueTextValue() }}</span>\n }`,\n styleUrls: [\n '../../../styles/src/progress-indicator/progress-indicator.css',\n '../../../styles/src/visually-hidden/visually-hidden.css',\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'slProgressCircle',\n host: {\n 'data-ui': 'progress-indicator',\n 'data-ui-progress-indicator': '',\n 'data-part': 'root',\n 'data-part-root': '',\n 'data-shape': 'circular',\n '[attr.role]': 'roleAttribute()',\n '[attr.aria-hidden]': 'hiddenFromTree()',\n '[attr.aria-labelledby]': 'labelledByAttribute()',\n '[attr.aria-valuemin]': 'valueMinAttribute()',\n '[attr.aria-valuemax]': 'valueMaxAttribute()',\n '[attr.aria-valuenow]': 'valueNowAttribute()',\n '[attr.aria-valuetext]': 'valueTextAttribute()',\n '[attr.data-size]': 'sizeValue()',\n '[attr.data-tone]': 'toneValue()',\n '[attr.data-indeterminate]': 'indeterminateAttribute()',\n '[attr.data-complete]': 'completeAttribute()',\n '[attr.data-wave]': 'waveAttribute()',\n '[attr.hidden]': 'painted() ? null : \"\"',\n '[style.--slotted-progress-indicator-percent]': 'percentStyle()',\n },\n})\nexport class SlProgressCircle extends SlProgressIndicatorBase {\n protected override readonly shape: ProgressShape = 'circular';\n protected readonly wavePath = PROGRESS_WAVE_RING_PATH;\n\n readonly value = input<number | null | undefined, unknown>(undefined, {\n transform: measurableNumber,\n });\n readonly min = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly max = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly showValue = input(false, { transform: booleanAttribute });\n readonly valueText = input<string | undefined>(undefined);\n readonly format = input<Intl.NumberFormatOptions | undefined>(undefined);\n readonly locale = input<string | undefined>(undefined);\n readonly wave = input(false, { transform: booleanAttribute });\n\n protected readonly labelUi = computed(() => (this.labelHidden() ? 'visually-hidden' : null));\n protected readonly waveAttribute = computed(() => (this.wave() ? '' : null));\n\n protected override measure() {\n return {\n value: this.value(),\n min: this.min(),\n max: this.max(),\n buffer: null,\n format: this.format(),\n showValue: this.showValue(),\n valueText: this.valueText(),\n locale: this.locale(),\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAuBO,MAAM,iCAAiC,GAAG,IAAI,cAAc,CACjE,qCAAqC,EACrC,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,OAAkC,EAAE,CAAC,EAAE;AAGxE;;;;;AAKG;AACG,SAAU,gCAAgC,CAAC,QAAmC,EAAA;IAClF,OAAO,EAAE,OAAO,EAAE,iCAAiC,EAAE,QAAQ,EAAE,QAAQ,EAAE;AAC3E;SAEgB,+BAA+B,GAAA;AAC7C,IAAA,OAAO,MAAM,CAAC,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AAA,SAAS,EAAE,oBAAoB;AAC/B,wBAAA,4BAA4B,EAAE,EAAE;AAChC,wBAAA,WAAW,EAAE,MAAM;AACnB,wBAAA,gBAAgB,EAAE,EAAE;AACpB,wBAAA,YAAY,EAAE,UAAU;AACxB,wBAAA,aAAa,EAAE,iBAAiB;AAChC,wBAAA,oBAAoB,EAAE,kBAAkB;AACxC,wBAAA,wBAAwB,EAAE,uBAAuB;AACjD,wBAAA,sBAAsB,EAAE,qBAAqB;AAC7C,wBAAA,sBAAsB,EAAE,qBAAqB;AAC7C,wBAAA,sBAAsB,EAAE,qBAAqB;AAC7C,wBAAA,uBAAuB,EAAE,sBAAsB;AAC/C,wBAAA,kBAAkB,EAAE,aAAa;AACjC,wBAAA,kBAAkB,EAAE,aAAa;AACjC,wBAAA,2BAA2B,EAAE,0BAA0B;AACvD,wBAAA,sBAAsB,EAAE,qBAAqB;AAC7C,wBAAA,kBAAkB,EAAE,iBAAiB;AACrC,wBAAA,eAAe,EAAE,uBAAuB;AACxC,wBAAA,8CAA8C,EAAE,gBAAgB;AACjE,qBAAA,EAAA,MAAA,EAAA,CAAA,ks2BAAA,EAAA,6QAAA,CAAA,EAAA;;;ACrIH;;AAEG;;"}
|
|
@@ -202,7 +202,7 @@ class SlRadioGroup {
|
|
|
202
202
|
/**
|
|
203
203
|
* Writes every item's element from the value.
|
|
204
204
|
*
|
|
205
|
-
* The HTML standard's canceled activation
|
|
205
|
+
* The HTML standard's canceled activation behavior for a radio restores the
|
|
206
206
|
* *clicked* element and nothing else, so the option that was chosen before
|
|
207
207
|
* the refused click stays unchecked: checking one radio unchecks its
|
|
208
208
|
* neighbours, and undoing the first half of that is all the platform offers.
|
|
@@ -396,7 +396,7 @@ class SlRadio {
|
|
|
396
396
|
/**
|
|
397
397
|
* Refusing the default undoes the platform's pre-click check of *this*
|
|
398
398
|
* element. It does not put the previously chosen neighbour back — checking a
|
|
399
|
-
* radio unchecks its neighbours, and the canceled activation
|
|
399
|
+
* radio unchecks its neighbours, and the canceled activation behavior undoes
|
|
400
400
|
* only the first half of that — so the group writes every element from the
|
|
401
401
|
* value afterwards.
|
|
402
402
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slotted-angular-radio-group.mjs","sources":["../../radio-group/src/radio-group-defaults.ts","../../radio-group/src/radio-group.ts","../../radio-group/src/radio-group-parts.ts","../../radio-group/src/slotted-angular-radio-group.ts"],"sourcesContent":["import { inject, Injectable, InjectionToken } from '@angular/core';\n\n/** The type step the group and every item inside it sit at. */\nexport type RadioGroupSize = 'sm' | 'md' | 'lg';\n\n/** How the choices flow. `horizontal` wraps; a set of options is not a scroll region. */\nexport type RadioGroupOrientation = 'vertical' | 'horizontal';\n\n/**\n * Whether the choice is a box beside a line of text or a framed surface whose\n * whole area is the target. `tile` is the name Carbon and Cloudscape give the\n * framed choice; Mantine and Chakra call it a card, which is a family here.\n */\nexport type RadioGroupVariant = 'plain' | 'tile';\n\n/**\n * Which side of its own label the circle is on. It is never inherited from a\n * `field`: that family's `labelPlacement` answers where a field's label sits\n * relative to its control, and a radio's label is its own.\n */\nexport type RadioGroupLabelPlacement = 'end' | 'start';\n\nexport interface RadioGroupDefaults {\n labelPlacement: RadioGroupLabelPlacement;\n variant: RadioGroupVariant;\n orientation: RadioGroupOrientation;\n size: RadioGroupSize;\n}\n\nconst FALLBACK: RadioGroupDefaults = {\n labelPlacement: 'end',\n orientation: 'vertical',\n size: 'md',\n variant: 'plain',\n};\n\nexport const RADIO_GROUP_DEFAULTS = new InjectionToken<RadioGroupDefaults>(\n 'slotted radio group defaults',\n { providedIn: 'root', factory: () => FALLBACK },\n);\n\n/**\n * An application decides once how its sets of choices flow, rather than\n * repeating the same inputs on every group in a form. A group that states any\n * of them itself still wins, and a field around it outranks this token for\n * `size`.\n */\nexport function provideRadioGroupDefaults(defaults: Partial<RadioGroupDefaults>) {\n return {\n provide: RADIO_GROUP_DEFAULTS,\n useFactory: (): RadioGroupDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\n/** What a radio group renders as here, before it states anything of its own. */\nexport function injectRadioGroupDefaults(): RadioGroupDefaults {\n return inject(RADIO_GROUP_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 server and the client sequences must\n * match for hydration.\n *\n * It answers for the group's generated `name` as well as for each item's\n * identifier, because both have to be stable across the two renders.\n */\n@Injectable({ providedIn: 'root' })\nexport class SlRadioGroupIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-radio-group-${this.count}`;\n }\n}\n","import { createControllable } from '@slotted/core/state';\nimport type { ChangeRequest } from '@slotted/core/state';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n forwardRef,\n HostAttributeToken,\n inject,\n input,\n output,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport type { OnInit } from '@angular/core';\nimport { NG_VALIDATORS, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type {\n AbstractControl,\n ControlValueAccessor,\n ValidationErrors,\n Validator,\n} from '@angular/forms';\nimport { injectFieldDefaults, SlField, SlFieldDefaultsSource } from '@slotted/angular/field';\nimport { SlFieldGroup } from '@slotted/angular/field-group';\n\nimport { injectRadioGroupDefaults, SlRadioGroupIdFactory } from './radio-group-defaults';\nimport type {\n RadioGroupLabelPlacement,\n RadioGroupVariant,\n RadioGroupOrientation,\n RadioGroupSize,\n} from './radio-group-defaults';\n\nexport type {\n RadioGroupDefaults,\n RadioGroupLabelPlacement,\n RadioGroupVariant,\n RadioGroupOrientation,\n RadioGroupSize,\n} from './radio-group-defaults';\n\n/** Why the value moved. A radio group can produce exactly these two. */\nexport type RadioGroupSelectionReason = 'pointer' | 'keyboard';\n\n/**\n * What the group needs from each item, and nothing more.\n *\n * A structural type rather than the item's class, so the group does not import\n * the component that injects it — the cycle `text-field` breaks with an\n * abstract class, broken here with the smaller thing that works.\n */\nexport interface SlRadioGroupItem {\n /** Writes this item's element from the group's value. */\n syncElement(): void;\n}\n\n/**\n * One choice out of a set.\n *\n * **The keyboard is the platform's, and that is why the items share a `name`.**\n * Native radios in one form owner with one name already implement the APG's\n * whole table: Tab lands on the checked item or on the first, `Space` checks,\n * both arrow axes move focus and selection together, the set wraps, and\n * disabled items are skipped — in a right-to-left document too. A roving\n * `tabindex` written once per binding would reimplement all of it twice.\n *\n * **The role is conditional, and the condition is the field group.** A\n * `field-group` is a `fieldset` with a `legend`, which is already a named group;\n * a `radiogroup` inside it, named by the same legend, is the same set announced\n * twice. A `role` the consumer wrote wins over both.\n *\n * **`readOnly` is enforced, because the platform has none.** A radio ignores\n * `readonly`, so the group refuses the change on the item's own `click` — the\n * one event a pointer and `Space` share — and announces `aria-readonly`.\n */\n@Component({\n selector: '[slRadioGroup]',\n standalone: true,\n exportAs: 'slRadioGroup',\n template: '<ng-content />',\n styleUrl: '../../../styles/src/radio-group/radio-group.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SlRadioGroup), multi: true },\n { provide: NG_VALIDATORS, useExisting: forwardRef(() => SlRadioGroup), multi: true },\n ],\n host: {\n 'data-ui': 'radio-group',\n 'data-ui-radio-group': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.role]': 'resolvedRole()',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-orientation]': 'resolvedOrientation()',\n '[attr.data-label-placement]': 'resolvedLabelPlacement()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.data-disabled]': \"resolvedDisabled() === true ? '' : null\",\n '[attr.data-invalid]': \"resolvedInvalid() === true ? '' : null\",\n '[attr.data-readonly]': \"resolvedReadOnly() === true ? '' : null\",\n '[attr.aria-labelledby]': 'labelledBy()',\n '[attr.aria-describedby]': 'describedBy()',\n '[attr.aria-invalid]': 'ariaInvalid()',\n '[attr.aria-readonly]': 'ariaReadOnly()',\n '[attr.aria-required]': 'ariaRequired()',\n '[attr.aria-orientation]': 'ariaOrientation()',\n },\n})\nexport class SlRadioGroup implements ControlValueAccessor, OnInit, Validator {\n /** Present means the consumer owns the choice. */\n readonly value = input<string | undefined>(undefined);\n /** The value an uncontrolled group starts from, read once. */\n readonly defaultValue = input<string | undefined>(undefined);\n /**\n * The submission name the set shares, and the reason the platform treats it\n * as one group. Generated when it is not written, because grouping is by name\n * within the form owner and an unnamed set is not a set.\n */\n readonly name = input<string | undefined>(undefined);\n readonly size = input<RadioGroupSize | undefined>(undefined);\n readonly orientation = input<RadioGroupOrientation | undefined>(undefined);\n readonly labelPlacement = input<RadioGroupLabelPlacement | undefined>(undefined);\n readonly variant = input<RadioGroupVariant | undefined>(undefined);\n /** Unstated rather than `false`, so the group defers to the field around it. */\n readonly disabled = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n readonly readOnly = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n readonly invalid = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n readonly required = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n\n /**\n * One output for one transition. Its `previous` is `undefined` while nothing\n * has been chosen, which is the state the APG asks a group to start in and\n * which a request typed over `string` alone could not say.\n */\n readonly valueChange = output<ChangeRequest<string | undefined>>();\n\n private readonly field = inject(SlField, { optional: true });\n private readonly fieldGroup = inject(SlFieldGroup, { optional: true });\n private readonly defaults = injectRadioGroupDefaults();\n /**\n * The field defaults in force: a field group's, or the application's own.\n * A group outside a field reads disabled and read-only from them, as React's\n * reads them from FieldDefaultsProvider.\n */\n private readonly fieldDefaultsSource = inject(SlFieldDefaultsSource, { optional: true });\n private readonly fieldDefaultsToken = injectFieldDefaults();\n private readonly fieldDefaults = computed(\n () => this.fieldDefaultsSource?.fieldDefaults() ?? this.fieldDefaultsToken,\n );\n private readonly generatedName = inject(SlRadioGroupIdFactory).next();\n private readonly writtenRole = inject(new HostAttributeToken('role'), { optional: true });\n private readonly writtenDescribedBy = inject(new HostAttributeToken('aria-describedby'), {\n optional: true,\n });\n private readonly writtenLabel = inject(new HostAttributeToken('aria-label'), { optional: true });\n private readonly writtenLabelledBy = inject(new HostAttributeToken('aria-labelledby'), {\n optional: true,\n });\n\n private readonly items = new Set<SlRadioGroupItem>();\n private readonly own = signal<string | undefined>(undefined);\n private readonly formDisabled = signal<boolean | undefined>(undefined);\n private onChangeFn: (value: string) => void = () => undefined;\n private onTouchedFn: () => void = () => undefined;\n\n readonly selection = computed(() => this.value() ?? this.own());\n readonly resolvedName = computed(() => this.name() ?? this.generatedName);\n\n readonly resolvedSize = computed(\n () =>\n this.size() ??\n this.field?.resolvedSize() ??\n this.fieldGroup?.resolvedSize() ??\n this.defaults.size,\n );\n readonly resolvedOrientation = computed(() => this.orientation() ?? this.defaults.orientation);\n readonly resolvedLabelPlacement = computed(\n () => this.labelPlacement() ?? this.defaults.labelPlacement,\n );\n /** Handed to every choice in the set: one plain box among four tiles is a\n set nobody meant to write. */\n readonly resolvedVariant = computed(() => this.variant() ?? this.defaults.variant);\n readonly resolvedDisabled = computed(\n () =>\n this.disabled() ??\n this.formDisabled() ??\n this.field?.resolvedDisabled() ??\n this.fieldDefaults().disabled,\n );\n readonly resolvedReadOnly = computed(\n () => this.readOnly() ?? this.field?.resolvedReadOnly() ?? this.fieldDefaults().readOnly,\n );\n readonly resolvedInvalid = computed(\n () => this.invalid() ?? this.field?.invalid() ?? this.fieldGroup?.invalid(),\n );\n readonly resolvedRequired = computed(\n () => this.required() ?? this.field?.required() ?? this.fieldGroup?.required(),\n );\n\n protected readonly resolvedRole = computed(\n () => this.writtenRole ?? (this.fieldGroup === null ? 'radiogroup' : null),\n );\n /* A group has no element a label's for can reach, so inside a field the\n field's label names it, unless the consumer named it themselves. */\n protected readonly labelledBy = computed(\n () =>\n this.writtenLabelledBy ??\n (this.writtenLabel === null ? (this.field?.ids().label ?? null) : null),\n );\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.resolvedInvalid() === true ? 'true' : null,\n );\n protected readonly ariaReadOnly = computed(() =>\n this.resolvedReadOnly() === true ? 'true' : null,\n );\n protected readonly ariaRequired = computed(() =>\n this.resolvedRequired() === true ? 'true' : null,\n );\n /**\n * Only where the root owns the role, and only when the group flows the other\n * way: on an element with no role the attribute describes nothing, and\n * `radiogroup` already implies `vertical`.\n */\n protected readonly ariaOrientation = computed(() =>\n this.resolvedRole() === 'radiogroup' && this.resolvedOrientation() === 'horizontal'\n ? 'horizontal'\n : null,\n );\n\n ngOnInit() {\n if (this.value() === undefined) this.own.set(this.defaultValue());\n }\n\n /** An item joins the set, so the group can put every element back at once. */\n register(item: SlRadioGroupItem) {\n this.items.add(item);\n }\n\n /** An item leaves the set. */\n unregister(item: SlRadioGroupItem) {\n this.items.delete(item);\n }\n\n /**\n * Writes every item's element from the value.\n *\n * The HTML standard's canceled activation behaviour for a radio restores the\n * *clicked* element and nothing else, so the option that was chosen before\n * the refused click stays unchecked: checking one radio unchecks its\n * neighbours, and undoing the first half of that is all the platform offers.\n * Angular writes a property binding only when its value changes, and the\n * neighbour's did not, so the correction is made here — measured, in the\n * first run of this family's Angular spec, as a controlled group that lost\n * its choice after its consumer had said no.\n */\n restoreElements() {\n for (const item of this.items) item.syncElement();\n }\n\n /** Whether one value is the chosen one. Read by every item in the set. */\n holds(value: string): boolean {\n return this.selection() === value;\n }\n\n /**\n * Asks the group to move to one value. Returns whether the value actually\n * moved — false while a consumer owns it, which is what tells the item to\n * refuse the activation and let the platform put the element back.\n */\n select(value: string, reason: RadioGroupSelectionReason, source: Event): boolean {\n if (this.resolvedReadOnly() === true) return false;\n\n let cancelled = false;\n const state = createControllable<string | undefined>({\n controlled: this.value(),\n initial: this.selection(),\n onRequest: (request) => {\n this.valueChange.emit(request);\n cancelled = request.cancelled;\n },\n });\n const moved = state.request(value, reason, source);\n if (cancelled || !moved) return false;\n this.own.set(value);\n this.onChangeFn(value);\n return true;\n }\n\n writeValue(value: string | null | undefined) {\n this.own.set(value ?? undefined);\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 /** Marks the set touched, which an item calls when it loses focus. */\n markTouched() {\n this.onTouchedFn();\n }\n\n /**\n * The group owns validity over the set, which no single item can see:\n * \"choose one\" is a fact about the group and not about any one option.\n */\n validate(control: AbstractControl): ValidationErrors | null {\n if (this.resolvedRequired() !== true) return null;\n const value = control.value as string | null | undefined;\n return value === null || value === undefined || value === '' ? { required: true } : null;\n }\n}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n DestroyRef,\n Directive,\n ElementRef,\n HostAttributeToken,\n inject,\n input,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\n\nimport { SlRadioGroup } from './radio-group';\nimport { SlRadioGroupIdFactory } from './radio-group-defaults';\nimport type { RadioGroupSelectionReason, SlRadioGroupItem } from './radio-group';\n\n/**\n * Help text under one item's label.\n *\n * It is a directive on the consumer's own element, so a `p`, a `span` or an\n * `inline-message` all work and none of them loses its own semantics. It\n * describes that item and not the set — what the set says belongs to the field\n * group above it.\n */\n@Directive({\n selector: '[slRadioDescription]',\n standalone: true,\n exportAs: 'slRadioDescription',\n host: {\n 'data-part': 'description',\n 'data-part-description': '',\n '[attr.id]': 'id',\n },\n})\nexport class SlRadioDescription {\n readonly id = `${inject(SlRadioGroupIdFactory).next()}-description`;\n}\n\n/**\n * A click synthesised by the keyboard reports no detail; a real one reports the\n * click count. It is why `Space` and a pointer are told apart without a key\n * listener existing anywhere in the family.\n */\nfunction activationReason(event: Event): RadioGroupSelectionReason {\n return event instanceof MouseEvent && event.detail === 0 ? 'keyboard' : 'pointer';\n}\n\n/**\n * One item of the set.\n *\n * It is a part of `radio-group` and not an entry point of its own: outside a\n * group it has no exclusive set to belong to, and the platform's whole keyboard\n * model is defined over the set. `SlRadioGroup` is injected without `optional`,\n * so an item written outside one fails at construction rather than silently.\n *\n * The mark is a sibling of the control for the reason `checkbox` records —\n * Firefox renders no pseudo-element on an `input` — and the label names the\n * control through `for` so the description below it can be read without\n * choosing anything.\n */\n@Component({\n selector: '[slRadio]',\n standalone: true,\n exportAs: 'slRadio',\n imports: [SlGlyph, SlIcon],\n template: `<input\n #control\n data-part=\"control\"\n data-part-control=\"\"\n type=\"radio\"\n [attr.id]=\"controlId\"\n [attr.name]=\"group.resolvedName()\"\n [attr.value]=\"value()\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.disabled]=\"disabledAttribute()\"\n [checked]=\"checked()\"\n (click)=\"onClick($event)\"\n (blur)=\"onBlur()\"\n />\n <span data-part=\"indicator\" data-part-indicator=\"\"\n ><span slIcon><svg slGlyph name=\"dot\"></svg></span\n ></span>\n <label data-part=\"label\" data-part-label=\"\" [attr.for]=\"controlId\"><ng-content /></label>\n <ng-content select=\"[slRadioDescription]\" />`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'item',\n 'data-part-item': '',\n '[attr.data-checked]': \"checked() ? '' : null\",\n '[attr.data-disabled]': \"resolvedDisabled() === true ? '' : null\",\n },\n})\nexport class SlRadio implements SlRadioGroupItem {\n /** What this item selects. It is what the group's value holds. */\n readonly value = input.required<string>();\n /** Unstated rather than `false`, so the item defers to the group. */\n readonly disabled = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n\n /**\n * The group the item belongs to. Injected without `optional`, and public\n * because the template reads the shared name from it and a consumer reaching\n * the item through `exportAs` may want the group's resolved step.\n */\n readonly group = inject(SlRadioGroup);\n\n private readonly writtenId = inject(new HostAttributeToken('id'), { optional: true });\n private readonly writtenDescribedBy = inject(new HostAttributeToken('aria-describedby'), {\n optional: true,\n });\n private readonly element = viewChild.required<ElementRef<HTMLInputElement>>('control');\n private readonly description = contentChild(SlRadioDescription, { descendants: true });\n\n /** The identifier the label points at. A consumer's own wins. */\n readonly controlId = this.writtenId ?? inject(SlRadioGroupIdFactory).next();\n\n readonly checked = computed(() => this.group.holds(this.value()));\n\n constructor() {\n this.group.register(this);\n inject(DestroyRef).onDestroy(() => this.group.unregister(this));\n }\n readonly resolvedDisabled = computed(() => this.disabled() ?? this.group.resolvedDisabled());\n\n protected readonly describedBy = computed(() => {\n const merged = [this.writtenDescribedBy, this.description()?.id].filter(Boolean);\n return merged.length === 0 ? null : merged.join(' ');\n });\n protected readonly disabledAttribute = computed(() =>\n this.resolvedDisabled() === true ? '' : null,\n );\n\n /** The native element, for `focus()` and `click()`. */\n get inputElement(): HTMLInputElement {\n return this.element().nativeElement;\n }\n\n /** Writes this item's element from the group's value. */\n syncElement() {\n this.element().nativeElement.checked = this.checked();\n }\n\n /**\n * Refusing the default undoes the platform's pre-click check of *this*\n * element. It does not put the previously chosen neighbour back — checking a\n * radio unchecks its neighbours, and the canceled activation behaviour undoes\n * only the first half of that — so the group writes every element from the\n * value afterwards.\n */\n protected onClick(event: MouseEvent) {\n if (this.group.select(this.value(), activationReason(event), event)) return;\n event.preventDefault();\n this.group.restoreElements();\n }\n\n protected onBlur() {\n this.group.markTouched();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AA6BA,MAAM,QAAQ,GAAuB;AACnC,IAAA,cAAc,EAAE,KAAK;AACrB,IAAA,WAAW,EAAE,UAAU;AACvB,IAAA,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AA;;ACtHvF;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"slotted-angular-radio-group.mjs","sources":["../../radio-group/src/radio-group-defaults.ts","../../radio-group/src/radio-group.ts","../../radio-group/src/radio-group-parts.ts","../../radio-group/src/slotted-angular-radio-group.ts"],"sourcesContent":["import { inject, Injectable, InjectionToken } from '@angular/core';\n\n/** The type step the group and every item inside it sit at. */\nexport type RadioGroupSize = 'sm' | 'md' | 'lg';\n\n/** How the choices flow. `horizontal` wraps; a set of options is not a scroll region. */\nexport type RadioGroupOrientation = 'vertical' | 'horizontal';\n\n/**\n * Whether the choice is a box beside a line of text or a framed surface whose\n * whole area is the target. `tile` is the name Carbon and Cloudscape give the\n * framed choice; Mantine and Chakra call it a card, which is a family here.\n */\nexport type RadioGroupVariant = 'plain' | 'tile';\n\n/**\n * Which side of its own label the circle is on. It is never inherited from a\n * `field`: that family's `labelPlacement` answers where a field's label sits\n * relative to its control, and a radio's label is its own.\n */\nexport type RadioGroupLabelPlacement = 'end' | 'start';\n\nexport interface RadioGroupDefaults {\n labelPlacement: RadioGroupLabelPlacement;\n variant: RadioGroupVariant;\n orientation: RadioGroupOrientation;\n size: RadioGroupSize;\n}\n\nconst FALLBACK: RadioGroupDefaults = {\n labelPlacement: 'end',\n orientation: 'vertical',\n size: 'md',\n variant: 'plain',\n};\n\nexport const RADIO_GROUP_DEFAULTS = new InjectionToken<RadioGroupDefaults>(\n 'slotted radio group defaults',\n { providedIn: 'root', factory: () => FALLBACK },\n);\n\n/**\n * An application decides once how its sets of choices flow, rather than\n * repeating the same inputs on every group in a form. A group that states any\n * of them itself still wins, and a field around it outranks this token for\n * `size`.\n */\nexport function provideRadioGroupDefaults(defaults: Partial<RadioGroupDefaults>) {\n return {\n provide: RADIO_GROUP_DEFAULTS,\n useFactory: (): RadioGroupDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\n/** What a radio group renders as here, before it states anything of its own. */\nexport function injectRadioGroupDefaults(): RadioGroupDefaults {\n return inject(RADIO_GROUP_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 server and the client sequences must\n * match for hydration.\n *\n * It answers for the group's generated `name` as well as for each item's\n * identifier, because both have to be stable across the two renders.\n */\n@Injectable({ providedIn: 'root' })\nexport class SlRadioGroupIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-radio-group-${this.count}`;\n }\n}\n","import { createControllable } from '@slotted/core/state';\nimport type { ChangeRequest } from '@slotted/core/state';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n forwardRef,\n HostAttributeToken,\n inject,\n input,\n output,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport type { OnInit } from '@angular/core';\nimport { NG_VALIDATORS, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type {\n AbstractControl,\n ControlValueAccessor,\n ValidationErrors,\n Validator,\n} from '@angular/forms';\nimport { injectFieldDefaults, SlField, SlFieldDefaultsSource } from '@slotted/angular/field';\nimport { SlFieldGroup } from '@slotted/angular/field-group';\n\nimport { injectRadioGroupDefaults, SlRadioGroupIdFactory } from './radio-group-defaults';\nimport type {\n RadioGroupLabelPlacement,\n RadioGroupVariant,\n RadioGroupOrientation,\n RadioGroupSize,\n} from './radio-group-defaults';\n\nexport type {\n RadioGroupDefaults,\n RadioGroupLabelPlacement,\n RadioGroupVariant,\n RadioGroupOrientation,\n RadioGroupSize,\n} from './radio-group-defaults';\n\n/** Why the value moved. A radio group can produce exactly these two. */\nexport type RadioGroupSelectionReason = 'pointer' | 'keyboard';\n\n/**\n * What the group needs from each item, and nothing more.\n *\n * A structural type rather than the item's class, so the group does not import\n * the component that injects it — the cycle `text-field` breaks with an\n * abstract class, broken here with the smaller thing that works.\n */\nexport interface SlRadioGroupItem {\n /** Writes this item's element from the group's value. */\n syncElement(): void;\n}\n\n/**\n * One choice out of a set.\n *\n * **The keyboard is the platform's, and that is why the items share a `name`.**\n * Native radios in one form owner with one name already implement the APG's\n * whole table: Tab lands on the checked item or on the first, `Space` checks,\n * both arrow axes move focus and selection together, the set wraps, and\n * disabled items are skipped — in a right-to-left document too. A roving\n * `tabindex` written once per binding would reimplement all of it twice.\n *\n * **The role is conditional, and the condition is the field group.** A\n * `field-group` is a `fieldset` with a `legend`, which is already a named group;\n * a `radiogroup` inside it, named by the same legend, is the same set announced\n * twice. A `role` the consumer wrote wins over both.\n *\n * **`readOnly` is enforced, because the platform has none.** A radio ignores\n * `readonly`, so the group refuses the change on the item's own `click` — the\n * one event a pointer and `Space` share — and announces `aria-readonly`.\n */\n@Component({\n selector: '[slRadioGroup]',\n standalone: true,\n exportAs: 'slRadioGroup',\n template: '<ng-content />',\n styleUrl: '../../../styles/src/radio-group/radio-group.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SlRadioGroup), multi: true },\n { provide: NG_VALIDATORS, useExisting: forwardRef(() => SlRadioGroup), multi: true },\n ],\n host: {\n 'data-ui': 'radio-group',\n 'data-ui-radio-group': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.role]': 'resolvedRole()',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-orientation]': 'resolvedOrientation()',\n '[attr.data-label-placement]': 'resolvedLabelPlacement()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.data-disabled]': \"resolvedDisabled() === true ? '' : null\",\n '[attr.data-invalid]': \"resolvedInvalid() === true ? '' : null\",\n '[attr.data-readonly]': \"resolvedReadOnly() === true ? '' : null\",\n '[attr.aria-labelledby]': 'labelledBy()',\n '[attr.aria-describedby]': 'describedBy()',\n '[attr.aria-invalid]': 'ariaInvalid()',\n '[attr.aria-readonly]': 'ariaReadOnly()',\n '[attr.aria-required]': 'ariaRequired()',\n '[attr.aria-orientation]': 'ariaOrientation()',\n },\n})\nexport class SlRadioGroup implements ControlValueAccessor, OnInit, Validator {\n /** Present means the consumer owns the choice. */\n readonly value = input<string | undefined>(undefined);\n /** The value an uncontrolled group starts from, read once. */\n readonly defaultValue = input<string | undefined>(undefined);\n /**\n * The submission name the set shares, and the reason the platform treats it\n * as one group. Generated when it is not written, because grouping is by name\n * within the form owner and an unnamed set is not a set.\n */\n readonly name = input<string | undefined>(undefined);\n readonly size = input<RadioGroupSize | undefined>(undefined);\n readonly orientation = input<RadioGroupOrientation | undefined>(undefined);\n readonly labelPlacement = input<RadioGroupLabelPlacement | undefined>(undefined);\n readonly variant = input<RadioGroupVariant | undefined>(undefined);\n /** Unstated rather than `false`, so the group defers to the field around it. */\n readonly disabled = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n readonly readOnly = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n readonly invalid = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n readonly required = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n\n /**\n * One output for one transition. Its `previous` is `undefined` while nothing\n * has been chosen, which is the state the APG asks a group to start in and\n * which a request typed over `string` alone could not say.\n */\n readonly valueChange = output<ChangeRequest<string | undefined>>();\n\n private readonly field = inject(SlField, { optional: true });\n private readonly fieldGroup = inject(SlFieldGroup, { optional: true });\n private readonly defaults = injectRadioGroupDefaults();\n /**\n * The field defaults in force: a field group's, or the application's own.\n * A group outside a field reads disabled and read-only from them, as React's\n * reads them from FieldDefaultsProvider.\n */\n private readonly fieldDefaultsSource = inject(SlFieldDefaultsSource, { optional: true });\n private readonly fieldDefaultsToken = injectFieldDefaults();\n private readonly fieldDefaults = computed(\n () => this.fieldDefaultsSource?.fieldDefaults() ?? this.fieldDefaultsToken,\n );\n private readonly generatedName = inject(SlRadioGroupIdFactory).next();\n private readonly writtenRole = inject(new HostAttributeToken('role'), { optional: true });\n private readonly writtenDescribedBy = inject(new HostAttributeToken('aria-describedby'), {\n optional: true,\n });\n private readonly writtenLabel = inject(new HostAttributeToken('aria-label'), { optional: true });\n private readonly writtenLabelledBy = inject(new HostAttributeToken('aria-labelledby'), {\n optional: true,\n });\n\n private readonly items = new Set<SlRadioGroupItem>();\n private readonly own = signal<string | undefined>(undefined);\n private readonly formDisabled = signal<boolean | undefined>(undefined);\n private onChangeFn: (value: string) => void = () => undefined;\n private onTouchedFn: () => void = () => undefined;\n\n readonly selection = computed(() => this.value() ?? this.own());\n readonly resolvedName = computed(() => this.name() ?? this.generatedName);\n\n readonly resolvedSize = computed(\n () =>\n this.size() ??\n this.field?.resolvedSize() ??\n this.fieldGroup?.resolvedSize() ??\n this.defaults.size,\n );\n readonly resolvedOrientation = computed(() => this.orientation() ?? this.defaults.orientation);\n readonly resolvedLabelPlacement = computed(\n () => this.labelPlacement() ?? this.defaults.labelPlacement,\n );\n /** Handed to every choice in the set: one plain box among four tiles is a\n set nobody meant to write. */\n readonly resolvedVariant = computed(() => this.variant() ?? this.defaults.variant);\n readonly resolvedDisabled = computed(\n () =>\n this.disabled() ??\n this.formDisabled() ??\n this.field?.resolvedDisabled() ??\n this.fieldDefaults().disabled,\n );\n readonly resolvedReadOnly = computed(\n () => this.readOnly() ?? this.field?.resolvedReadOnly() ?? this.fieldDefaults().readOnly,\n );\n readonly resolvedInvalid = computed(\n () => this.invalid() ?? this.field?.invalid() ?? this.fieldGroup?.invalid(),\n );\n readonly resolvedRequired = computed(\n () => this.required() ?? this.field?.required() ?? this.fieldGroup?.required(),\n );\n\n protected readonly resolvedRole = computed(\n () => this.writtenRole ?? (this.fieldGroup === null ? 'radiogroup' : null),\n );\n /* A group has no element a label's for can reach, so inside a field the\n field's label names it, unless the consumer named it themselves. */\n protected readonly labelledBy = computed(\n () =>\n this.writtenLabelledBy ??\n (this.writtenLabel === null ? (this.field?.ids().label ?? null) : null),\n );\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.resolvedInvalid() === true ? 'true' : null,\n );\n protected readonly ariaReadOnly = computed(() =>\n this.resolvedReadOnly() === true ? 'true' : null,\n );\n protected readonly ariaRequired = computed(() =>\n this.resolvedRequired() === true ? 'true' : null,\n );\n /**\n * Only where the root owns the role, and only when the group flows the other\n * way: on an element with no role the attribute describes nothing, and\n * `radiogroup` already implies `vertical`.\n */\n protected readonly ariaOrientation = computed(() =>\n this.resolvedRole() === 'radiogroup' && this.resolvedOrientation() === 'horizontal'\n ? 'horizontal'\n : null,\n );\n\n ngOnInit() {\n if (this.value() === undefined) this.own.set(this.defaultValue());\n }\n\n /** An item joins the set, so the group can put every element back at once. */\n register(item: SlRadioGroupItem) {\n this.items.add(item);\n }\n\n /** An item leaves the set. */\n unregister(item: SlRadioGroupItem) {\n this.items.delete(item);\n }\n\n /**\n * Writes every item's element from the value.\n *\n * The HTML standard's canceled activation behavior for a radio restores the\n * *clicked* element and nothing else, so the option that was chosen before\n * the refused click stays unchecked: checking one radio unchecks its\n * neighbours, and undoing the first half of that is all the platform offers.\n * Angular writes a property binding only when its value changes, and the\n * neighbour's did not, so the correction is made here — measured, in the\n * first run of this family's Angular spec, as a controlled group that lost\n * its choice after its consumer had said no.\n */\n restoreElements() {\n for (const item of this.items) item.syncElement();\n }\n\n /** Whether one value is the chosen one. Read by every item in the set. */\n holds(value: string): boolean {\n return this.selection() === value;\n }\n\n /**\n * Asks the group to move to one value. Returns whether the value actually\n * moved — false while a consumer owns it, which is what tells the item to\n * refuse the activation and let the platform put the element back.\n */\n select(value: string, reason: RadioGroupSelectionReason, source: Event): boolean {\n if (this.resolvedReadOnly() === true) return false;\n\n let cancelled = false;\n const state = createControllable<string | undefined>({\n controlled: this.value(),\n initial: this.selection(),\n onRequest: (request) => {\n this.valueChange.emit(request);\n cancelled = request.cancelled;\n },\n });\n const moved = state.request(value, reason, source);\n if (cancelled || !moved) return false;\n this.own.set(value);\n this.onChangeFn(value);\n return true;\n }\n\n writeValue(value: string | null | undefined) {\n this.own.set(value ?? undefined);\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 /** Marks the set touched, which an item calls when it loses focus. */\n markTouched() {\n this.onTouchedFn();\n }\n\n /**\n * The group owns validity over the set, which no single item can see:\n * \"choose one\" is a fact about the group and not about any one option.\n */\n validate(control: AbstractControl): ValidationErrors | null {\n if (this.resolvedRequired() !== true) return null;\n const value = control.value as string | null | undefined;\n return value === null || value === undefined || value === '' ? { required: true } : null;\n }\n}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n DestroyRef,\n Directive,\n ElementRef,\n HostAttributeToken,\n inject,\n input,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\n\nimport { SlRadioGroup } from './radio-group';\nimport { SlRadioGroupIdFactory } from './radio-group-defaults';\nimport type { RadioGroupSelectionReason, SlRadioGroupItem } from './radio-group';\n\n/**\n * Help text under one item's label.\n *\n * It is a directive on the consumer's own element, so a `p`, a `span` or an\n * `inline-message` all work and none of them loses its own semantics. It\n * describes that item and not the set — what the set says belongs to the field\n * group above it.\n */\n@Directive({\n selector: '[slRadioDescription]',\n standalone: true,\n exportAs: 'slRadioDescription',\n host: {\n 'data-part': 'description',\n 'data-part-description': '',\n '[attr.id]': 'id',\n },\n})\nexport class SlRadioDescription {\n readonly id = `${inject(SlRadioGroupIdFactory).next()}-description`;\n}\n\n/**\n * A click synthesised by the keyboard reports no detail; a real one reports the\n * click count. It is why `Space` and a pointer are told apart without a key\n * listener existing anywhere in the family.\n */\nfunction activationReason(event: Event): RadioGroupSelectionReason {\n return event instanceof MouseEvent && event.detail === 0 ? 'keyboard' : 'pointer';\n}\n\n/**\n * One item of the set.\n *\n * It is a part of `radio-group` and not an entry point of its own: outside a\n * group it has no exclusive set to belong to, and the platform's whole keyboard\n * model is defined over the set. `SlRadioGroup` is injected without `optional`,\n * so an item written outside one fails at construction rather than silently.\n *\n * The mark is a sibling of the control for the reason `checkbox` records —\n * Firefox renders no pseudo-element on an `input` — and the label names the\n * control through `for` so the description below it can be read without\n * choosing anything.\n */\n@Component({\n selector: '[slRadio]',\n standalone: true,\n exportAs: 'slRadio',\n imports: [SlGlyph, SlIcon],\n template: `<input\n #control\n data-part=\"control\"\n data-part-control=\"\"\n type=\"radio\"\n [attr.id]=\"controlId\"\n [attr.name]=\"group.resolvedName()\"\n [attr.value]=\"value()\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.disabled]=\"disabledAttribute()\"\n [checked]=\"checked()\"\n (click)=\"onClick($event)\"\n (blur)=\"onBlur()\"\n />\n <span data-part=\"indicator\" data-part-indicator=\"\"\n ><span slIcon><svg slGlyph name=\"dot\"></svg></span\n ></span>\n <label data-part=\"label\" data-part-label=\"\" [attr.for]=\"controlId\"><ng-content /></label>\n <ng-content select=\"[slRadioDescription]\" />`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'item',\n 'data-part-item': '',\n '[attr.data-checked]': \"checked() ? '' : null\",\n '[attr.data-disabled]': \"resolvedDisabled() === true ? '' : null\",\n },\n})\nexport class SlRadio implements SlRadioGroupItem {\n /** What this item selects. It is what the group's value holds. */\n readonly value = input.required<string>();\n /** Unstated rather than `false`, so the item defers to the group. */\n readonly disabled = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n\n /**\n * The group the item belongs to. Injected without `optional`, and public\n * because the template reads the shared name from it and a consumer reaching\n * the item through `exportAs` may want the group's resolved step.\n */\n readonly group = inject(SlRadioGroup);\n\n private readonly writtenId = inject(new HostAttributeToken('id'), { optional: true });\n private readonly writtenDescribedBy = inject(new HostAttributeToken('aria-describedby'), {\n optional: true,\n });\n private readonly element = viewChild.required<ElementRef<HTMLInputElement>>('control');\n private readonly description = contentChild(SlRadioDescription, { descendants: true });\n\n /** The identifier the label points at. A consumer's own wins. */\n readonly controlId = this.writtenId ?? inject(SlRadioGroupIdFactory).next();\n\n readonly checked = computed(() => this.group.holds(this.value()));\n\n constructor() {\n this.group.register(this);\n inject(DestroyRef).onDestroy(() => this.group.unregister(this));\n }\n readonly resolvedDisabled = computed(() => this.disabled() ?? this.group.resolvedDisabled());\n\n protected readonly describedBy = computed(() => {\n const merged = [this.writtenDescribedBy, this.description()?.id].filter(Boolean);\n return merged.length === 0 ? null : merged.join(' ');\n });\n protected readonly disabledAttribute = computed(() =>\n this.resolvedDisabled() === true ? '' : null,\n );\n\n /** The native element, for `focus()` and `click()`. */\n get inputElement(): HTMLInputElement {\n return this.element().nativeElement;\n }\n\n /** Writes this item's element from the group's value. */\n syncElement() {\n this.element().nativeElement.checked = this.checked();\n }\n\n /**\n * Refusing the default undoes the platform's pre-click check of *this*\n * element. It does not put the previously chosen neighbour back — checking a\n * radio unchecks its neighbours, and the canceled activation behavior undoes\n * only the first half of that — so the group writes every element from the\n * value afterwards.\n */\n protected onClick(event: MouseEvent) {\n if (this.group.select(this.value(), activationReason(event), event)) return;\n event.preventDefault();\n this.group.restoreElements();\n }\n\n protected onBlur() {\n this.group.markTouched();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AA6BA,MAAM,QAAQ,GAAuB;AACnC,IAAA,cAAc,EAAE,KAAK;AACrB,IAAA,WAAW,EAAE,UAAU;AACvB,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,OAAO,EAAE,OAAO;CACjB;MAEY,oBAAoB,GAAG,IAAI,cAAc,CACpD,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
|
import { injectLocale, injectMessages } from '@slotted/angular/i18n';
|
|
8
8
|
import { SlGlyph, SlIcon } from '@slotted/angular/icon';
|
|
9
9
|
import { ratingMessages } from '@slotted/core/i18n';
|
|
10
|
-
import { RATING_INSIGHT_THRESHOLDS,
|
|
10
|
+
import { RATING_INSIGHT_THRESHOLDS, normalizeRating, ratingFills, formatRatingValue, ratingForKey, ratingAtPoint, formatRating, summarizeRatings, formatShare } from '@slotted/core/rating';
|
|
11
11
|
import { createControllable } from '@slotted/core/state';
|
|
12
12
|
|
|
13
13
|
const FALLBACK = {
|
|
@@ -234,7 +234,7 @@ class SlRating {
|
|
|
234
234
|
}), /* @ts-ignore */
|
|
235
235
|
...(ngDevMode ? [{ debugName: "scale" }] : /* istanbul ignore next */ []));
|
|
236
236
|
/** The value on the grid of the scale: 7 of 5 is 5, 3.2 on whole steps is 4, and `NaN` is none. */
|
|
237
|
-
current = computed(() =>
|
|
237
|
+
current = computed(() => normalizeRating(this.value(), this.scale()), /* @ts-ignore */
|
|
238
238
|
...(ngDevMode ? [{ debugName: "current" }] : /* istanbul ignore next */ []));
|
|
239
239
|
items = computed(() => {
|
|
240
240
|
const { max, step } = this.scale();
|
|
@@ -406,7 +406,7 @@ class SlRating {
|
|
|
406
406
|
if (this.resolvedRequired() !== true)
|
|
407
407
|
return null;
|
|
408
408
|
const value = control.value;
|
|
409
|
-
return
|
|
409
|
+
return normalizeRating(value, this.scale()) === null ? { required: true } : null;
|
|
410
410
|
}
|
|
411
411
|
/**
|
|
412
412
|
* Asks for one value. Returns whether it moved: not while read-only or
|
|
@@ -820,11 +820,11 @@ class SlRatingSummary {
|
|
|
820
820
|
...this.insightThresholds(),
|
|
821
821
|
}), /* @ts-ignore */
|
|
822
822
|
...(ngDevMode ? [{ debugName: "thresholds" }] : /* istanbul ignore next */ []));
|
|
823
|
-
/** Everything drawn is read from here: `
|
|
823
|
+
/** Everything drawn is read from here: `summarizeRatings` over the counts on the scale. */
|
|
824
824
|
summary = computed(() => {
|
|
825
825
|
const counts = this.counts();
|
|
826
826
|
const levels = Array.from({ length: this.resolvedMax() }, (_, index) => counts[index] ?? 0);
|
|
827
|
-
return
|
|
827
|
+
return summarizeRatings(levels, this.thresholds());
|
|
828
828
|
}, /* @ts-ignore */
|
|
829
829
|
...(ngDevMode ? [{ debugName: "summary" }] : /* istanbul ignore next */ []));
|
|
830
830
|
lowestFirst = computed(() => {
|