@ids-group-ltd/ids-design-system 0.14.4 → 0.14.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +160 -0
- package/components.md +14 -14
- package/docs/agent/INDEX.md +1 -1
- package/docs/agent/charts/ds-bar-chart.md +1 -1
- package/docs/agent/charts/ds-chart.md +1 -1
- package/docs/agent/charts/ds-column-chart.md +1 -1
- package/docs/agent/charts/ds-funnel-chart.md +1 -1
- package/docs/agent/charts/ds-heatmap-chart.md +1 -1
- package/docs/agent/charts/ds-line-chart.md +1 -1
- package/docs/agent/charts/ds-pie-chart.md +3 -3
- package/docs/agent/charts/ds-scatter-chart.md +1 -1
- package/docs/agent/charts/ds-waterfall-chart.md +1 -1
- package/docs/agent/navigation/ds-breadcrumbs.md +1 -1
- package/docs/agent/overlays/ds-tooltip.md +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +4 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +58 -163
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +21 -34
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +34 -105
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +3 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +22 -48
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +7 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +6 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +28 -130
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +11 -29
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +10 -28
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +16 -13
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +3 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +42 -69
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +15 -20
- package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +6 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +3 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +12 -28
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +58 -112
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +182 -432
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +8 -12
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +8 -22
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +28 -123
- package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +45 -116
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +3 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs +4 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +7 -16
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +7 -8
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +3 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +16 -45
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +10 -14
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +19 -41
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +48 -163
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +27 -85
- package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +17 -25
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +21 -41
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +3 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +50 -166
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +7 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +6 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +19 -36
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +30 -57
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +37 -103
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +5 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +9 -15
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +8 -12
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +9 -24
- package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +32 -120
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +14 -24
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +15 -24
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs +9 -16
- package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +27 -91
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +16 -41
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +8 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +18 -52
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +4 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +30 -49
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +8 -12
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +6 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs +29 -13
- package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +3 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +8 -9
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +5 -20
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +3 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +5 -9
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +11 -23
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +7 -16
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs +9 -43
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +167 -353
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +33 -86
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +7 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +23 -47
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +21 -49
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +35 -63
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +38 -50
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +3 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +3 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +28 -85
- package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +325 -579
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +51 -85
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +4 -21
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs +4 -13
- package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs +1 -2
- package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs.map +1 -1
- package/migrations/0.14.5.json +311 -0
- package/package.json +1 -1
- package/schematics/check-overrides/surface.json +17 -2
- package/styles/_breakpoints.scss +6 -23
- package/styles/_chart-data-table.scss +3 -11
- package/styles/_chart-frame.scss +14 -63
- package/styles/_chart-interactive.scss +8 -36
- package/styles/_chart-motion.scss +11 -39
- package/styles/_check-box.scss +7 -26
- package/styles/_check-mark.scss +7 -23
- package/styles/_chip-row.scss +3 -14
- package/styles/_clear-button.scss +2 -7
- package/styles/_control-label.scss +2 -13
- package/styles/_control-line.scss +2 -6
- package/styles/_dropdown-overlay.scss +8 -33
- package/styles/_ds-color.scss +9 -28
- package/styles/_field-box.scss +4 -16
- package/styles/_field-group-segment.scss +6 -6
- package/styles/_field-label.scss +3 -14
- package/styles/_field-state.scss +5 -10
- package/styles/_focus.scss +20 -60
- package/styles/_icon-base.scss +0 -2
- package/styles/_layout-utils.scss +0 -3
- package/styles/_link.scss +4 -18
- package/styles/_overlay-motion.scss +15 -38
- package/styles/_page-grid.scss +4 -29
- package/styles/_press.scss +5 -18
- package/styles/_reset.scss +1 -14
- package/styles/_scrollbar.scss +0 -2
- package/styles/_skeleton-shimmer.scss +3 -14
- package/styles/_status.scss +5 -13
- package/styles/_surface-motion.scss +7 -34
- package/styles/_table-controls.scss +3 -6
- package/styles/_text-clip.scss +2 -6
- package/styles/_theme-activation.scss +7 -20
- package/styles/_toast-overlay.scss +2 -6
- package/styles/_tokens-charts.scss +31 -90
- package/styles/_tokens.scss +111 -156
- package/styles/_typography.scss +6 -13
- package/styles/_visually-hidden.scss +2 -3
- package/styles/ds.scss +2 -10
- package/themes/_base-palette.scss +12 -35
- package/themes/_semantic.scss +29 -98
- package/themes/dark/_palette.scss +15 -29
- package/themes/dark/_theme.scss +14 -32
- package/themes/light/_palette.scss +2 -17
- package/themes/light/_theme.scss +1 -7
- package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +2 -6
- package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +2 -3
- package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +45 -119
- package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +19 -32
- package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +29 -92
- package/types/ids-group-ltd-ids-design-system-components-avatar-group.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-avatar.d.ts +23 -46
- package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +5 -5
- package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +4 -8
- package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +27 -136
- package/types/ids-group-ltd-ids-design-system-components-bar.d.ts +13 -32
- package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +6 -12
- package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +6 -9
- package/types/ids-group-ltd-ids-design-system-components-button-group.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +36 -55
- package/types/ids-group-ltd-ids-design-system-components-calendar-day.d.ts +13 -18
- package/types/ids-group-ltd-ids-design-system-components-card.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-chart-data-table.d.ts +5 -11
- package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +10 -26
- package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +27 -49
- package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +161 -385
- package/types/ids-group-ltd-ids-design-system-components-checkbox.d.ts +6 -10
- package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +5 -14
- package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +29 -124
- package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +23 -70
- package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +3 -3
- package/types/ids-group-ltd-ids-design-system-components-divider.d.ts +3 -7
- package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +1 -3
- package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +6 -8
- package/types/ids-group-ltd-ids-design-system-components-empty-state.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-field-group.d.ts +17 -50
- package/types/ids-group-ltd-ids-design-system-components-field-message.d.ts +8 -12
- package/types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts +13 -28
- package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +25 -113
- package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +17 -85
- package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +15 -23
- package/types/ids-group-ltd-ids-design-system-components-input.d.ts +18 -37
- package/types/ids-group-ltd-ids-design-system-components-layout.d.ts +3 -3
- package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +51 -160
- package/types/ids-group-ltd-ids-design-system-components-list.d.ts +3 -3
- package/types/ids-group-ltd-ids-design-system-components-loading-overlay.d.ts +4 -9
- package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +13 -21
- package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +15 -28
- package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +27 -83
- package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +5 -6
- package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +5 -7
- package/types/ids-group-ltd-ids-design-system-components-page-footer.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +6 -10
- package/types/ids-group-ltd-ids-design-system-components-password-rules.d.ts +8 -22
- package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +18 -102
- package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +7 -11
- package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +14 -25
- package/types/ids-group-ltd-ids-design-system-components-reserve-messages.d.ts +7 -12
- package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +21 -96
- package/types/ids-group-ltd-ids-design-system-components-search.d.ts +12 -33
- package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +6 -7
- package/types/ids-group-ltd-ids-design-system-components-select.d.ts +12 -41
- package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +8 -15
- package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +23 -40
- package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +3 -5
- package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +4 -4
- package/types/ids-group-ltd-ids-design-system-components-sparkline.d.ts +14 -10
- package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +6 -7
- package/types/ids-group-ltd-ids-design-system-components-stat.d.ts +2 -15
- package/types/ids-group-ltd-ids-design-system-components-status-dot.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-stepper.d.ts +4 -6
- package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +5 -9
- package/types/ids-group-ltd-ids-design-system-components-table-columns.d.ts +3 -7
- package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +4 -8
- package/types/ids-group-ltd-ids-design-system-components-table-resize.d.ts +9 -43
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +160 -369
- package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +21 -49
- package/types/ids-group-ltd-ids-design-system-components-tag.d.ts +5 -5
- package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +17 -34
- package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +17 -38
- package/types/ids-group-ltd-ids-design-system-components-timeline.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +20 -37
- package/types/ids-group-ltd-ids-design-system-components-toggle-button.d.ts +2 -3
- package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +17 -36
- package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-w3w.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +21 -70
- package/types/ids-group-ltd-ids-design-system-components.d.ts +262 -415
- package/types/ids-group-ltd-ids-design-system-core.d.ts +133 -260
- package/types/ids-group-ltd-ids-design-system-icons.d.ts +2 -24
- package/types/ids-group-ltd-ids-design-system-overlay.d.ts +4 -13
- package/types/ids-group-ltd-ids-design-system-theme.d.ts +4 -6
|
@@ -14,16 +14,15 @@ const DS_TOAST_POSITION_DEFAULT = {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* Single toast pill
|
|
18
|
-
* AND by static showcases that need to display a toast specimen inline.
|
|
17
|
+
* Single toast pill, rendered by ToastRegion for service-driven toasts or placed inline as a specimen.
|
|
19
18
|
*/
|
|
20
19
|
class ToastComponent {
|
|
21
20
|
intl = inject(DS_INTL);
|
|
22
|
-
/** Severity
|
|
21
|
+
/** Severity: drives colour and the default icon or spinner. */
|
|
23
22
|
variant = input('info', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
24
23
|
/** Optional bold heading above the message. */
|
|
25
24
|
title = input('', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
|
|
26
|
-
/**
|
|
25
|
+
/** Message text; the same field as `ToastOptions.body`. */
|
|
27
26
|
body = input('', ...(ngDevMode ? [{ debugName: "body" }] : /* istanbul ignore next */ []));
|
|
28
27
|
/** Show a close button that emits `closed`. */
|
|
29
28
|
dismissible = input(false, { ...(ngDevMode ? { debugName: "dismissible" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
@@ -55,20 +54,18 @@ class ToastComponent {
|
|
|
55
54
|
this.closed.emit();
|
|
56
55
|
}
|
|
57
56
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ToastComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
58
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ToastComponent, isStandalone: true, selector: "ds-toast", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, body: { classPropertyName: "body", publicName: "body", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, action: { classPropertyName: "action", publicName: "action", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { properties: { "attr.title": "null" } }, ngImport: i0, template: "<!-- No role or aria-live: a region created with its text already in it announces
|
|
57
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ToastComponent, isStandalone: true, selector: "ds-toast", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, body: { classPropertyName: "body", publicName: "body", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, action: { classPropertyName: "action", publicName: "action", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { properties: { "attr.title": "null" } }, ngImport: i0, template: "<!-- No role or aria-live: a region created with its text already in it announces nothing;\n ToastService speaks through the CDK LiveAnnouncer. A hand-placed <ds-toast> is silent. -->\n<div [class]=\"classes()\">\n @if (isLoading()) {\n <!-- aria-hidden because ds-spinner is a role=\"status\" of its own: the message is\n announced by ToastService, and a nested live region would speak twice. -->\n <ds-spinner\n class=\"icon\"\n size=\"sm\"\n aria-hidden=\"true\" />\n } @else {\n <ds-icon\n class=\"icon\"\n [name]=\"icon() ?? defaultIcon()\"\n [size]=\"16\" />\n }\n\n <div class=\"body\">\n @if (title()) {\n <div class=\"title\">\n {{ title() }}\n </div>\n }\n {{ body() }}\n <ng-content></ng-content>\n </div>\n\n @if (action(); as act) {\n <button\n type=\"button\"\n class=\"action\"\n (click)=\"onAction(act)\">\n {{ act.label }}\n </button>\n }\n\n <span class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </span>\n\n @if (dismissible()) {\n <button\n type=\"button\"\n class=\"close\"\n [attr.aria-label]=\"intl().dialog.dismiss\"\n (click)=\"onDismiss()\">\n <ds-icon\n name=\"x\"\n [size]=\"14\" />\n </button>\n }\n</div>\n", styles: [":where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_toast-leave-duration: var(--ds-toast-leave-duration, var(--duration-base));--_toast-leave-easing: var(--ds-toast-leave-easing, var(--ease-standard));--_toast-shift-duration: var(--ds-toast-shift-duration, var(--duration-fast));--_toast-shift-easing: var(--ds-toast-shift-easing, var(--ease-standard));display:block;transition:opacity var(--_toast-leave-duration) var(--_toast-leave-easing),transform var(--_toast-shift-duration) var(--_toast-shift-easing)}:host(.leaving){opacity:0;transform:translateY(calc(var(--space-2) * -1));pointer-events:none;transition:opacity var(--_toast-leave-duration) var(--_toast-leave-easing),transform var(--_toast-leave-duration) var(--_toast-leave-easing)}:host(.shifting){transform:translateY(var(--_toast-shift, 0));transition:none}.toast{--_toast-bg-color: var(--ds-toast-bg-color, var(--surface-overlay));--_toast-border: var(--ds-toast-border-color, var(--border-default));--_toast-bar-color: var(--ds-toast-bar-color, var(--accent));--_toast-icon-color: var(--ds-toast-icon-color, var(--accent));--_toast-enter-keyframes: var(--ds-toast-enter-keyframes, ds-scale-in);--_toast-enter-duration: var(--ds-toast-enter-duration, var(--ds-motion-enter-large-duration));--_toast-enter-easing: var(--ds-toast-enter-easing, var(--ds-motion-enter-large-easing));--_toast-enter-offset: var(--ds-toast-enter-offset, var(--space-2));--_toast-min-width: var(--ds-toast-min-width, var(--toast-minw));--_toast-max-width: var(--ds-toast-max-width, var(--toast-maxw));--_ds-enter-y: var(--_toast-enter-offset);--_ds-enter-scale: var(--ds-toast-enter-scale, .96);display:flex;align-items:flex-start;gap:var(--space-3);background-color:var(--_toast-bg-color);border:var(--border-width-default) solid var(--_toast-border);border-left:var(--toast-bar-w) solid var(--_toast-bar-color);border-radius:var(--radius-lg);padding:var(--space-3) var(--space-4);box-shadow:var(--shadow-toast);min-width:var(--_toast-min-width);max-width:var(--_toast-max-width);animation-name:var(--_toast-enter-keyframes);animation-duration:var(--_toast-enter-duration);animation-timing-function:var(--_toast-enter-easing)}@media(prefers-reduced-motion:reduce){.toast{--_toast-enter-duration: 0ms}}.toast .icon{color:var(--_toast-icon-color);flex-shrink:0;align-self:center}.toast .body{flex:1;min-width:0;overflow-wrap:anywhere;font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--text-secondary)}.toast .title{font-weight:var(--font-weight-bold);color:var(--text-primary);margin-bottom:var(--space-0-5)}.toast .close{border:0;background:transparent;color:var(--icon-default);cursor:pointer;padding:var(--space-0-5)}.toast .close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.toast .action{flex-shrink:0;align-self:center;border:0;background:transparent;color:var(--accent-strong);font:var(--font-weight-bold) var(--font-size-s)/var(--line-height-flat) var(--font-sans);cursor:pointer;padding:var(--space-1) var(--space-2);border-radius:var(--ds-radius-inner)}.toast .action:hover{background:var(--surface-secondary)}.toast .action:active{background:var(--surface-muted)}.toast .action:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.toast .actions{display:inline-flex;align-items:center;gap:var(--space-2);flex-shrink:0}.toast .actions:empty{display:none}.toast.info{--_toast-bg-color: var(--ds-toast-bg-color-info, var(--ds-toast-bg-color, var(--surface-overlay)));--_toast-border: var(--ds-toast-border-color-info, var(--ds-toast-border-color, var(--border-default)));--_toast-bar-color: var(--ds-toast-bar-color, var(--accent));--_toast-icon-color: var(--ds-toast-icon-color, var(--accent));border-left-color:var(--_toast-bar-color)}.toast.success{--_toast-bg-color: var(--ds-toast-bg-color-success, var(--ds-toast-bg-color, var(--surface-overlay)));--_toast-border: var(--ds-toast-border-color-success, var(--ds-toast-border-color, var(--border-default)));--_toast-bar-color: var(--ds-toast-bar-color, var(--success));--_toast-icon-color: var(--ds-toast-icon-color, var(--success));border-left-color:var(--_toast-bar-color)}.toast.success .icon{color:var(--_toast-icon-color)}.toast.warning{--_toast-bg-color: var(--ds-toast-bg-color-warning, var(--ds-toast-bg-color, var(--surface-overlay)));--_toast-border: var(--ds-toast-border-color-warning, var(--ds-toast-border-color, var(--border-default)));--_toast-bar-color: var(--ds-toast-bar-color, var(--warning-hover));--_toast-icon-color: var(--ds-toast-icon-color, var(--warning-hover));border-left-color:var(--_toast-bar-color)}.toast.warning .icon{color:var(--_toast-icon-color)}.toast.error{--_toast-bg-color: var(--ds-toast-bg-color-error, var(--ds-toast-bg-color, var(--surface-overlay)));--_toast-border: var(--ds-toast-border-color-error, var(--ds-toast-border-color, var(--border-default)));--_toast-bar-color: var(--ds-toast-bar-color, var(--error));--_toast-icon-color: var(--ds-toast-icon-color, var(--error));border-left-color:var(--_toast-bar-color)}.toast.error .icon{color:var(--_toast-icon-color)}.toast.loading{border-left-color:var(--accent)}.toast.loading .icon{color:var(--accent)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "component", type: SpinnerComponent, selector: "ds-spinner", inputs: ["size"] }] });
|
|
59
58
|
}
|
|
60
59
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ToastComponent, decorators: [{
|
|
61
60
|
type: Component,
|
|
62
|
-
args: [{ selector: 'ds-toast', standalone: true, imports: [IconComponent, SpinnerComponent], host: { '[attr.title]': 'null' }, encapsulation: ViewEncapsulation.Emulated, template: "<!-- No role or aria-live: a region created with its text already in it announces
|
|
61
|
+
args: [{ selector: 'ds-toast', standalone: true, imports: [IconComponent, SpinnerComponent], host: { '[attr.title]': 'null' }, encapsulation: ViewEncapsulation.Emulated, template: "<!-- No role or aria-live: a region created with its text already in it announces nothing;\n ToastService speaks through the CDK LiveAnnouncer. A hand-placed <ds-toast> is silent. -->\n<div [class]=\"classes()\">\n @if (isLoading()) {\n <!-- aria-hidden because ds-spinner is a role=\"status\" of its own: the message is\n announced by ToastService, and a nested live region would speak twice. -->\n <ds-spinner\n class=\"icon\"\n size=\"sm\"\n aria-hidden=\"true\" />\n } @else {\n <ds-icon\n class=\"icon\"\n [name]=\"icon() ?? defaultIcon()\"\n [size]=\"16\" />\n }\n\n <div class=\"body\">\n @if (title()) {\n <div class=\"title\">\n {{ title() }}\n </div>\n }\n {{ body() }}\n <ng-content></ng-content>\n </div>\n\n @if (action(); as act) {\n <button\n type=\"button\"\n class=\"action\"\n (click)=\"onAction(act)\">\n {{ act.label }}\n </button>\n }\n\n <span class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </span>\n\n @if (dismissible()) {\n <button\n type=\"button\"\n class=\"close\"\n [attr.aria-label]=\"intl().dialog.dismiss\"\n (click)=\"onDismiss()\">\n <ds-icon\n name=\"x\"\n [size]=\"14\" />\n </button>\n }\n</div>\n", styles: [":where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_toast-leave-duration: var(--ds-toast-leave-duration, var(--duration-base));--_toast-leave-easing: var(--ds-toast-leave-easing, var(--ease-standard));--_toast-shift-duration: var(--ds-toast-shift-duration, var(--duration-fast));--_toast-shift-easing: var(--ds-toast-shift-easing, var(--ease-standard));display:block;transition:opacity var(--_toast-leave-duration) var(--_toast-leave-easing),transform var(--_toast-shift-duration) var(--_toast-shift-easing)}:host(.leaving){opacity:0;transform:translateY(calc(var(--space-2) * -1));pointer-events:none;transition:opacity var(--_toast-leave-duration) var(--_toast-leave-easing),transform var(--_toast-leave-duration) var(--_toast-leave-easing)}:host(.shifting){transform:translateY(var(--_toast-shift, 0));transition:none}.toast{--_toast-bg-color: var(--ds-toast-bg-color, var(--surface-overlay));--_toast-border: var(--ds-toast-border-color, var(--border-default));--_toast-bar-color: var(--ds-toast-bar-color, var(--accent));--_toast-icon-color: var(--ds-toast-icon-color, var(--accent));--_toast-enter-keyframes: var(--ds-toast-enter-keyframes, ds-scale-in);--_toast-enter-duration: var(--ds-toast-enter-duration, var(--ds-motion-enter-large-duration));--_toast-enter-easing: var(--ds-toast-enter-easing, var(--ds-motion-enter-large-easing));--_toast-enter-offset: var(--ds-toast-enter-offset, var(--space-2));--_toast-min-width: var(--ds-toast-min-width, var(--toast-minw));--_toast-max-width: var(--ds-toast-max-width, var(--toast-maxw));--_ds-enter-y: var(--_toast-enter-offset);--_ds-enter-scale: var(--ds-toast-enter-scale, .96);display:flex;align-items:flex-start;gap:var(--space-3);background-color:var(--_toast-bg-color);border:var(--border-width-default) solid var(--_toast-border);border-left:var(--toast-bar-w) solid var(--_toast-bar-color);border-radius:var(--radius-lg);padding:var(--space-3) var(--space-4);box-shadow:var(--shadow-toast);min-width:var(--_toast-min-width);max-width:var(--_toast-max-width);animation-name:var(--_toast-enter-keyframes);animation-duration:var(--_toast-enter-duration);animation-timing-function:var(--_toast-enter-easing)}@media(prefers-reduced-motion:reduce){.toast{--_toast-enter-duration: 0ms}}.toast .icon{color:var(--_toast-icon-color);flex-shrink:0;align-self:center}.toast .body{flex:1;min-width:0;overflow-wrap:anywhere;font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--text-secondary)}.toast .title{font-weight:var(--font-weight-bold);color:var(--text-primary);margin-bottom:var(--space-0-5)}.toast .close{border:0;background:transparent;color:var(--icon-default);cursor:pointer;padding:var(--space-0-5)}.toast .close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.toast .action{flex-shrink:0;align-self:center;border:0;background:transparent;color:var(--accent-strong);font:var(--font-weight-bold) var(--font-size-s)/var(--line-height-flat) var(--font-sans);cursor:pointer;padding:var(--space-1) var(--space-2);border-radius:var(--ds-radius-inner)}.toast .action:hover{background:var(--surface-secondary)}.toast .action:active{background:var(--surface-muted)}.toast .action:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.toast .actions{display:inline-flex;align-items:center;gap:var(--space-2);flex-shrink:0}.toast .actions:empty{display:none}.toast.info{--_toast-bg-color: var(--ds-toast-bg-color-info, var(--ds-toast-bg-color, var(--surface-overlay)));--_toast-border: var(--ds-toast-border-color-info, var(--ds-toast-border-color, var(--border-default)));--_toast-bar-color: var(--ds-toast-bar-color, var(--accent));--_toast-icon-color: var(--ds-toast-icon-color, var(--accent));border-left-color:var(--_toast-bar-color)}.toast.success{--_toast-bg-color: var(--ds-toast-bg-color-success, var(--ds-toast-bg-color, var(--surface-overlay)));--_toast-border: var(--ds-toast-border-color-success, var(--ds-toast-border-color, var(--border-default)));--_toast-bar-color: var(--ds-toast-bar-color, var(--success));--_toast-icon-color: var(--ds-toast-icon-color, var(--success));border-left-color:var(--_toast-bar-color)}.toast.success .icon{color:var(--_toast-icon-color)}.toast.warning{--_toast-bg-color: var(--ds-toast-bg-color-warning, var(--ds-toast-bg-color, var(--surface-overlay)));--_toast-border: var(--ds-toast-border-color-warning, var(--ds-toast-border-color, var(--border-default)));--_toast-bar-color: var(--ds-toast-bar-color, var(--warning-hover));--_toast-icon-color: var(--ds-toast-icon-color, var(--warning-hover));border-left-color:var(--_toast-bar-color)}.toast.warning .icon{color:var(--_toast-icon-color)}.toast.error{--_toast-bg-color: var(--ds-toast-bg-color-error, var(--ds-toast-bg-color, var(--surface-overlay)));--_toast-border: var(--ds-toast-border-color-error, var(--ds-toast-border-color, var(--border-default)));--_toast-bar-color: var(--ds-toast-bar-color, var(--error));--_toast-icon-color: var(--ds-toast-icon-color, var(--error));border-left-color:var(--_toast-bar-color)}.toast.error .icon{color:var(--_toast-icon-color)}.toast.loading{border-left-color:var(--accent)}.toast.loading .icon{color:var(--accent)}\n"] }]
|
|
63
62
|
}], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], body: [{ type: i0.Input, args: [{ isSignal: true, alias: "body", required: false }] }], dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], action: [{ type: i0.Input, args: [{ isSignal: true, alias: "action", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
|
|
64
63
|
|
|
65
|
-
//
|
|
64
|
+
// Fallback floor; leaveDuration() reads the real length off the node.
|
|
66
65
|
const LEAVE_FALLBACK_MS = 180;
|
|
67
|
-
//
|
|
68
|
-
// instant the pointer leaves — the reader gets this much to see it go.
|
|
66
|
+
// Grace period once the pointer leaves a toast whose clock ran out under it.
|
|
69
67
|
const MIN_RESUME_MS = 600;
|
|
70
68
|
const DEFAULT_MAX_VISIBLE = 5;
|
|
71
|
-
// Past this the exact figure stops being information, so the counter says "99+".
|
|
72
69
|
const QUEUE_COUNT_CAP = 99;
|
|
73
70
|
class ToastRegionComponent {
|
|
74
71
|
intl = inject(DS_INTL);
|
|
@@ -79,7 +76,6 @@ class ToastRegionComponent {
|
|
|
79
76
|
showQueueCount = input(true, { ...(ngDevMode ? { debugName: "showQueueCount" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
80
77
|
visibleEntries = signal([], ...(ngDevMode ? [{ debugName: "visibleEntries" }] : /* istanbul ignore next */ []));
|
|
81
78
|
leaving = signal(new Set(), ...(ngDevMode ? [{ debugName: "leaving" }] : /* istanbul ignore next */ []));
|
|
82
|
-
// A signal, not a plain array: the `+N` strip renders from its length.
|
|
83
79
|
pendingQueue = signal([], ...(ngDevMode ? [{ debugName: "pendingQueue" }] : /* istanbul ignore next */ []));
|
|
84
80
|
queuedLabel = computed(() => {
|
|
85
81
|
const waiting = this.pendingQueue().length;
|
|
@@ -106,8 +102,7 @@ class ToastRegionComponent {
|
|
|
106
102
|
this.maxVisible();
|
|
107
103
|
this.drainQueue();
|
|
108
104
|
});
|
|
109
|
-
// An uncancelled timer fires into a destroyed component
|
|
110
|
-
// never tears the root down, a stream of "N timers still in the queue" under fakeAsync.
|
|
105
|
+
// An uncancelled timer fires into a destroyed component.
|
|
111
106
|
inject(DestroyRef).onDestroy(() => {
|
|
112
107
|
this.timers.forEach((timer) => window.clearTimeout(timer));
|
|
113
108
|
this.leaveTimers.forEach((timer) => window.clearTimeout(timer));
|
|
@@ -115,9 +110,7 @@ class ToastRegionComponent {
|
|
|
115
110
|
this.leaveTimers.clear();
|
|
116
111
|
});
|
|
117
112
|
}
|
|
118
|
-
/** Newest goes NEAREST the anchor
|
|
119
|
-
* stack is pinned rather than at the far end of a list the reader has to hunt
|
|
120
|
-
* down. DOM order is the visual order, so this also keeps the reading order. */
|
|
113
|
+
/** Newest goes NEAREST the anchor; DOM order is the visual and reading order. */
|
|
121
114
|
newestFirst = (this.position?.verticalPosition ??
|
|
122
115
|
DS_TOAST_POSITION_DEFAULT.verticalPosition) === 'top';
|
|
123
116
|
add(entry) {
|
|
@@ -134,9 +127,7 @@ class ToastRegionComponent {
|
|
|
134
127
|
this.arm(entry.id, entry.durationMs);
|
|
135
128
|
this.slideNeighbours(before);
|
|
136
129
|
}
|
|
137
|
-
/** FLIP,
|
|
138
|
-
* to zero height, and it lives in a CDK pane sized to its content, so the hit area goes
|
|
139
|
-
* with it. */
|
|
130
|
+
/** FLIP, not an absolute stack: that collapses the region to zero height inside the content-sized CDK pane. */
|
|
140
131
|
slideNeighbours(before) {
|
|
141
132
|
if (!before.size) {
|
|
142
133
|
return;
|
|
@@ -189,8 +180,7 @@ class ToastRegionComponent {
|
|
|
189
180
|
return;
|
|
190
181
|
}
|
|
191
182
|
this.remaining.set(id, remaining);
|
|
192
|
-
//
|
|
193
|
-
// timeout — so this has to bank rather than trust that a pause event will follow.
|
|
183
|
+
// drainQueue arms from a timeout, with no user event nearby, so bank the pause state here.
|
|
194
184
|
if (this.hovered || this.focusWithin) {
|
|
195
185
|
this.startedAt.delete(id);
|
|
196
186
|
return;
|
|
@@ -215,9 +205,7 @@ class ToastRegionComponent {
|
|
|
215
205
|
this.hovered = entered;
|
|
216
206
|
this.syncPause();
|
|
217
207
|
}
|
|
218
|
-
// `focusout`
|
|
219
|
-
// tabbing from the action to the close button. Without the containment check that reads as
|
|
220
|
-
// leaving, and every round trip re-floors the remainder at MIN_RESUME_MS.
|
|
208
|
+
// `focusout` also fires when focus moves BETWEEN elements inside the region; the containment check avoids re-flooring at MIN_RESUME_MS.
|
|
221
209
|
onFocusWithin(event) {
|
|
222
210
|
this.focusWithin =
|
|
223
211
|
event === true ||
|
|
@@ -254,9 +242,8 @@ class ToastRegionComponent {
|
|
|
254
242
|
this.arm(id, left);
|
|
255
243
|
}
|
|
256
244
|
}
|
|
257
|
-
/**
|
|
258
|
-
*
|
|
259
|
-
* promotion — otherwise a duration would burn down while the toast is invisible. */
|
|
245
|
+
/** Replaces fields of a visible or queued toast in place. Patching `durationMs`
|
|
246
|
+
* restarts the clock; on a QUEUED toast it takes effect on promotion. */
|
|
260
247
|
update(id, patch) {
|
|
261
248
|
const inVisible = this.visibleEntries().some((entry) => entry.id === id);
|
|
262
249
|
if (inVisible) {
|
|
@@ -296,9 +283,8 @@ class ToastRegionComponent {
|
|
|
296
283
|
this.drainQueue();
|
|
297
284
|
}, this.leaveDuration(id)));
|
|
298
285
|
}
|
|
299
|
-
/** The leave transition is a public token, so
|
|
300
|
-
*
|
|
301
|
-
* is why the floor applies only when there is nothing to measure. */
|
|
286
|
+
/** The leave transition length is a public token, so read it off the node. Reduced
|
|
287
|
+
* motion zeroes it, so the floor applies only when there is nothing to measure. */
|
|
302
288
|
leaveDuration(id) {
|
|
303
289
|
const node = this.toastNodes().get(id);
|
|
304
290
|
if (!node) {
|
|
@@ -336,7 +322,7 @@ class ToastRegionComponent {
|
|
|
336
322
|
}
|
|
337
323
|
}
|
|
338
324
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ToastRegionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
339
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ToastRegionComponent, isStandalone: true, selector: "ds-toast-region", inputs: { maxVisible: { classPropertyName: "maxVisible", publicName: "maxVisible", isSignal: true, isRequired: false, transformFunction: null }, showQueueCount: { classPropertyName: "showQueueCount", publicName: "showQueueCount", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "region" }, listeners: { "mouseenter": "onHover(true)", "mouseleave": "onHover(false)", "focusin": "onFocusWithin(true)", "focusout": "onFocusWithin($event)" }, properties: { "attr.aria-label": "intl().toast.region", "class.stack-newest-last": "!newestFirst" } }, ngImport: i0, template: "@if (queuedLabel(); as label) {\n <!-- aria-hidden: ToastService
|
|
325
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ToastRegionComponent, isStandalone: true, selector: "ds-toast-region", inputs: { maxVisible: { classPropertyName: "maxVisible", publicName: "maxVisible", isSignal: true, isRequired: false, transformFunction: null }, showQueueCount: { classPropertyName: "showQueueCount", publicName: "showQueueCount", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "region" }, listeners: { "mouseenter": "onHover(true)", "mouseleave": "onHover(false)", "focusin": "onFocusWithin(true)", "focusout": "onFocusWithin($event)" }, properties: { "attr.aria-label": "intl().toast.region", "class.stack-newest-last": "!newestFirst" } }, ngImport: i0, template: "@if (queuedLabel(); as label) {\n <!-- aria-hidden: ToastService already announced every toast, queued ones included. -->\n <div\n class=\"queue-count\"\n aria-hidden=\"true\">\n {{ label }}\n </div>\n}\n\n@for (entry of visibleEntries(); track entry.id) {\n <ds-toast\n [variant]=\"entry.variant\"\n [title]=\"entry.title ?? ''\"\n [body]=\"entry.body\"\n [dismissible]=\"entry.dismissible\"\n [action]=\"entry.action ?? null\"\n [class.leaving]=\"isLeaving(entry.id)\"\n (closed)=\"remove(entry.id)\" />\n}\n", styles: [":host{display:flex;flex-direction:column;gap:var(--space-2)}.queue-count{--_toast-queue-bg-color: var(--ds-toast-queue-bg-color, var(--surface-overlay));--_toast-queue-text-color: var(--ds-toast-queue-text-color, var(--text-secondary));align-self:center;padding:var(--space-0-5) var(--space-2);border:var(--border-width-default) solid var(--border-default);border-radius:var(--radius-pill);background-color:var(--_toast-queue-bg-color);box-shadow:var(--shadow-toast);color:var(--_toast-queue-text-color);font:var(--font-weight-semibold) var(--font-size-xs)/1 var(--font-sans)}:host(.stack-newest-last) .queue-count{order:1}\n"], dependencies: [{ kind: "component", type: ToastComponent, selector: "ds-toast", inputs: ["variant", "title", "body", "dismissible", "icon", "action"], outputs: ["closed"] }] });
|
|
340
326
|
}
|
|
341
327
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ToastRegionComponent, decorators: [{
|
|
342
328
|
type: Component,
|
|
@@ -348,13 +334,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
348
334
|
'(focusin)': 'onFocusWithin(true)',
|
|
349
335
|
'(focusout)': 'onFocusWithin($event)',
|
|
350
336
|
'[class.stack-newest-last]': '!newestFirst',
|
|
351
|
-
}, template: "@if (queuedLabel(); as label) {\n <!-- aria-hidden: ToastService
|
|
337
|
+
}, template: "@if (queuedLabel(); as label) {\n <!-- aria-hidden: ToastService already announced every toast, queued ones included. -->\n <div\n class=\"queue-count\"\n aria-hidden=\"true\">\n {{ label }}\n </div>\n}\n\n@for (entry of visibleEntries(); track entry.id) {\n <ds-toast\n [variant]=\"entry.variant\"\n [title]=\"entry.title ?? ''\"\n [body]=\"entry.body\"\n [dismissible]=\"entry.dismissible\"\n [action]=\"entry.action ?? null\"\n [class.leaving]=\"isLeaving(entry.id)\"\n (closed)=\"remove(entry.id)\" />\n}\n", styles: [":host{display:flex;flex-direction:column;gap:var(--space-2)}.queue-count{--_toast-queue-bg-color: var(--ds-toast-queue-bg-color, var(--surface-overlay));--_toast-queue-text-color: var(--ds-toast-queue-text-color, var(--text-secondary));align-self:center;padding:var(--space-0-5) var(--space-2);border:var(--border-width-default) solid var(--border-default);border-radius:var(--radius-pill);background-color:var(--_toast-queue-bg-color);box-shadow:var(--shadow-toast);color:var(--_toast-queue-text-color);font:var(--font-weight-semibold) var(--font-size-xs)/1 var(--font-sans)}:host(.stack-newest-last) .queue-count{order:1}\n"] }]
|
|
352
338
|
}], ctorParameters: () => [], propDecorators: { maxVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxVisible", required: false }] }], showQueueCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "showQueueCount", required: false }] }] } });
|
|
353
339
|
|
|
354
|
-
// An error stays longer than a success: it usually needs reading, and often acting on.
|
|
355
340
|
const SETTLED_SUCCESS_MS = 4000;
|
|
356
341
|
const SETTLED_ERROR_MS = 6000;
|
|
357
|
-
//
|
|
342
|
+
// Must outlast the loop that fires a burst.
|
|
358
343
|
const ANNOUNCE_COALESCE_MS = 120;
|
|
359
344
|
class ToastService {
|
|
360
345
|
overlay = inject(Overlay);
|
|
@@ -380,23 +365,20 @@ class ToastService {
|
|
|
380
365
|
this.ensureRegion();
|
|
381
366
|
const id = this.nextId++;
|
|
382
367
|
const variant = opts.variant ?? 'info';
|
|
383
|
-
// An `action` toast cannot expire:
|
|
384
|
-
//
|
|
385
|
-
// to reach it inside five seconds.
|
|
368
|
+
// An `action` toast cannot expire: the region is the last child of `body`, so a
|
|
369
|
+
// keyboard user cannot reach the button in time.
|
|
386
370
|
const durationMs = variant === 'loading' || opts.action ? 0 : (opts.durationMs ?? 5000);
|
|
387
371
|
const entry = {
|
|
388
372
|
id,
|
|
389
373
|
title: opts.title,
|
|
390
374
|
body: opts.body,
|
|
391
375
|
variant,
|
|
392
|
-
// Nothing that cannot expire may also be unclosable, or it holds a slot for the
|
|
393
|
-
// life of the page — which is how a hung promise blocked the whole region.
|
|
376
|
+
// Nothing that cannot expire may also be unclosable, or it holds a slot for the page's life.
|
|
394
377
|
dismissible: durationMs > 0 ? (opts.dismissible ?? true) : true,
|
|
395
378
|
action: opts.action,
|
|
396
379
|
durationMs,
|
|
397
380
|
};
|
|
398
|
-
// The region runs the countdown
|
|
399
|
-
// visible — started here, one queued behind `maxVisible` expires unseen.
|
|
381
|
+
// The region runs the countdown: a toast queued behind `maxVisible` would expire unseen if started here.
|
|
400
382
|
this.regionRef.instance.add(entry);
|
|
401
383
|
this.announce(variant, entry.body, entry.title);
|
|
402
384
|
return {
|
|
@@ -404,20 +386,16 @@ class ToastService {
|
|
|
404
386
|
dismiss: () => this.regionRef?.instance.remove(id),
|
|
405
387
|
};
|
|
406
388
|
}
|
|
407
|
-
/**
|
|
408
|
-
*
|
|
409
|
-
* its own auto-dismiss delay.
|
|
389
|
+
/** Shows a loading toast for the duration of `source`; resolution and rejection turn the
|
|
390
|
+
* same toast into a success/error variant with its own auto-dismiss delay.
|
|
410
391
|
*
|
|
411
|
-
* Returns `source` itself, so the caller still owns rejection handling
|
|
412
|
-
* un-`catch`ed call produces an unhandled rejection exactly as it would without a
|
|
413
|
-
* toast. */
|
|
392
|
+
* Returns `source` itself, so the caller still owns rejection handling. */
|
|
414
393
|
promise(source, messages) {
|
|
415
394
|
const ref = this.show({
|
|
416
395
|
body: messages.loading,
|
|
417
396
|
variant: 'loading',
|
|
418
397
|
durationMs: 0,
|
|
419
398
|
});
|
|
420
|
-
// The duration goes to the region, for the reason given on `add()` above.
|
|
421
399
|
source.then((value) => {
|
|
422
400
|
const successBody = typeof messages.success === 'function'
|
|
423
401
|
? messages.success(value)
|
|
@@ -444,13 +422,11 @@ class ToastService {
|
|
|
444
422
|
return source;
|
|
445
423
|
}
|
|
446
424
|
/** The announcement must NOT ride the visual toast: `aria-live` on an element created
|
|
447
|
-
* together with its text announces nothing in NVDA or JAWS.
|
|
448
|
-
* exists from construction and only its text changes.
|
|
425
|
+
* together with its text announces nothing in NVDA or JAWS.
|
|
449
426
|
*
|
|
450
|
-
* Serialising a burst does not work either
|
|
451
|
-
* on a timeout,
|
|
452
|
-
*
|
|
453
|
-
* message is the only shape that survives. */
|
|
427
|
+
* Serialising a burst does not work either: `announce()` clears the region and writes
|
|
428
|
+
* on a timeout, so the next message wipes the previous one. One region change carrying
|
|
429
|
+
* every message is the only shape that survives. */
|
|
454
430
|
announce(variant, body, title) {
|
|
455
431
|
const spoken = [title, body].filter(Boolean).join('. ');
|
|
456
432
|
if (!spoken) {
|
|
@@ -482,8 +458,7 @@ class ToastService {
|
|
|
482
458
|
positionStrategy: this.buildPositionStrategy(),
|
|
483
459
|
});
|
|
484
460
|
this.regionRef = this.overlayRef.attach(new ComponentPortal(ToastRegionComponent));
|
|
485
|
-
// `>= 0`, not truthiness: 0
|
|
486
|
-
// to reach the region rather than read as "unset".
|
|
461
|
+
// `>= 0`, not truthiness: 0 asks for an uncapped stack and must not read as "unset".
|
|
487
462
|
const maxVisible = this.toastConfig?.maxVisible;
|
|
488
463
|
if (typeof maxVisible === 'number' && maxVisible >= 0) {
|
|
489
464
|
this.regionRef.setInput('maxVisible', maxVisible);
|
|
@@ -494,12 +469,9 @@ class ToastService {
|
|
|
494
469
|
}
|
|
495
470
|
this.keepAboveScrims();
|
|
496
471
|
}
|
|
497
|
-
/** Keeps the toast above a scrim opened AFTER it. `--layer-toast` cannot: CDK
|
|
498
|
-
*
|
|
499
|
-
*
|
|
500
|
-
*
|
|
501
|
-
* Scrimmed overlays only: the published layer scale puts `--layer-tooltip` above the
|
|
502
|
-
* toast. */
|
|
472
|
+
/** Keeps the toast above a scrim opened AFTER it. `--layer-toast` cannot: CDK overlay hosts
|
|
473
|
+
* are `popover="manual"` and the top layer paints in show order, ignoring z-index.
|
|
474
|
+
* Scrimmed overlays only: `--layer-tooltip` sits above the toast. */
|
|
503
475
|
keepAboveScrims() {
|
|
504
476
|
const host = this.overlayRef?.hostElement;
|
|
505
477
|
const container = host?.parentElement;
|
|
@@ -514,7 +486,7 @@ class ToastService {
|
|
|
514
486
|
if (!scrimAppeared || !host.isConnected) {
|
|
515
487
|
return;
|
|
516
488
|
}
|
|
517
|
-
// The top layer has no "raise";
|
|
489
|
+
// The top layer has no "raise"; re-showing is the only lever.
|
|
518
490
|
try {
|
|
519
491
|
host.hidePopover();
|
|
520
492
|
host.showPopover();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids-group-ltd-ids-design-system-components-toast.mjs","sources":["../../../src/lib/components/toast/toast.config.ts","../../../src/lib/components/toast/toast.component.ts","../../../src/lib/components/toast/toast.component.html","../../../src/lib/components/toast/toast-region.component.ts","../../../src/lib/components/toast/toast-region.component.html","../../../src/lib/components/toast/toast.service.ts","../../../src/lib/components/toast/ids-group-ltd-ids-design-system-components-toast.ts"],"sourcesContent":["import type { DsToastPosition } from '@ids-group-ltd/ids-design-system/core';\n\nexport const DS_TOAST_POSITION_DEFAULT: DsToastPosition = {\n horizontalPosition: 'right',\n verticalPosition: 'top',\n offset: 'var(--space-6)',\n};\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n inject,\n input,\n output,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { SpinnerComponent } from '@ids-group-ltd/ids-design-system/components/spinner';\nimport { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport type { ToastAction, ToastVariant } from './toast.types';\n\n/**\n * Single toast pill. Consumed by ToastRegion for service-driven runtime toasts\n * AND by static showcases that need to display a toast specimen inline.\n */\n@Component({\n selector: 'ds-toast',\n standalone: true,\n imports: [IconComponent, SpinnerComponent],\n templateUrl: './toast.component.html',\n styleUrl: './toast.component.scss',\n // A static `title=\"…\"` feeding the input below ALSO stays in the DOM as the global attribute,\n // which makes the host a native browser tooltip over everything inside it.\n host: { '[attr.title]': 'null' },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class ToastComponent {\n protected readonly intl = inject(DS_INTL);\n\n /** Severity — drives colour and the default icon or spinner. */\n readonly variant = input<ToastVariant>('info');\n /** Optional bold heading above the message. */\n readonly title = input<string>('');\n /** The same field `ToastOptions.body` carries, so a specimen and a raised toast agree. */\n readonly body = input<string>('');\n /** Show a close button that emits `closed`. */\n readonly dismissible = input(false, { transform: booleanAttribute });\n /** Override the variant's default icon. */\n readonly icon = input<IconName | null>(null);\n /** Optional action button rendered before the dismiss control. */\n readonly action = input<ToastAction | null>(null);\n /** Fires when the toast is dismissed or its action is invoked. */\n readonly closed = output<void>();\n\n protected readonly isLoading = computed(() => this.variant() === 'loading');\n\n protected onAction(action: ToastAction): void {\n action.handler();\n this.closed.emit();\n }\n\n protected readonly classes = computed(() => `toast ${this.variant()}`);\n\n protected readonly defaultIcon = computed<IconName>(() => {\n switch (this.variant()) {\n case 'success':\n return 'success';\n case 'warning':\n return 'warn';\n case 'error':\n return 'error';\n default:\n return 'info';\n }\n });\n\n protected onDismiss(): void {\n this.closed.emit();\n }\n}\n","<!-- No role or aria-live: a region created with its text already in it announces\n nothing, so ToastService speaks through the CDK LiveAnnouncer. A hand-placed\n <ds-toast> is therefore silent to a reader — it is a specimen, not an event. -->\n<div [class]=\"classes()\">\n @if (isLoading()) {\n <!-- aria-hidden because ds-spinner is a role=\"status\" of its own: the message is\n announced by ToastService, and a nested live region would speak twice. -->\n <ds-spinner\n class=\"icon\"\n size=\"sm\"\n aria-hidden=\"true\" />\n } @else {\n <ds-icon\n class=\"icon\"\n [name]=\"icon() ?? defaultIcon()\"\n [size]=\"16\" />\n }\n\n <div class=\"body\">\n @if (title()) {\n <div class=\"title\">\n {{ title() }}\n </div>\n }\n {{ body() }}\n <ng-content></ng-content>\n </div>\n\n @if (action(); as act) {\n <button\n type=\"button\"\n class=\"action\"\n (click)=\"onAction(act)\">\n {{ act.label }}\n </button>\n }\n\n <span class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </span>\n\n @if (dismissible()) {\n <button\n type=\"button\"\n class=\"close\"\n [attr.aria-label]=\"intl().dialog.dismiss\"\n (click)=\"onDismiss()\">\n <ds-icon\n name=\"x\"\n [size]=\"14\" />\n </button>\n }\n</div>\n","import {\n DestroyRef,\n ElementRef,\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n effect,\n inject,\n input,\n signal,\n} from '@angular/core';\nimport { DS_CONFIG, DS_INTL } from '@ids-group-ltd/ids-design-system/core';\nimport { devWarn } from '@ids-group-ltd/ids-design-system/core';\nimport { DS_TOAST_POSITION_DEFAULT } from './toast.config';\nimport { ToastComponent } from './toast.component';\nimport type { ToastEntry } from './toast.types';\n\n// Only the floor: see leaveDuration(), which reads the real length off the node.\nconst LEAVE_FALLBACK_MS = 180;\n\n// A toast whose clock ran out while the pointer was over it should not vanish the\n// instant the pointer leaves — the reader gets this much to see it go.\nconst MIN_RESUME_MS = 600;\n\nconst DEFAULT_MAX_VISIBLE = 5;\n\n// Past this the exact figure stops being information, so the counter says \"99+\".\nconst QUEUE_COUNT_CAP = 99;\n\n@Component({\n selector: 'ds-toast-region',\n standalone: true,\n imports: [ToastComponent],\n templateUrl: './toast-region.component.html',\n styleUrl: './toast-region.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'region',\n '[attr.aria-label]': 'intl().toast.region',\n '(mouseenter)': 'onHover(true)',\n '(mouseleave)': 'onHover(false)',\n '(focusin)': 'onFocusWithin(true)',\n '(focusout)': 'onFocusWithin($event)',\n '[class.stack-newest-last]': '!newestFirst',\n },\n})\nexport class ToastRegionComponent {\n protected readonly intl = inject(DS_INTL);\n\n /** Cap on concurrently visible toasts. Extras are queued and shown as\n * earlier ones dismiss. `0` = unlimited. */\n readonly maxVisible = input<number>(DEFAULT_MAX_VISIBLE);\n /** Show a `+N` strip while toasts wait behind `maxVisible`. */\n readonly showQueueCount = input(true, { transform: booleanAttribute });\n\n protected readonly visibleEntries = signal<readonly ToastEntry[]>([]);\n protected readonly leaving = signal<ReadonlySet<number>>(new Set());\n\n // A signal, not a plain array: the `+N` strip renders from its length.\n private readonly pendingQueue = signal<readonly ToastEntry[]>([]);\n\n protected readonly queuedLabel = computed(() => {\n const waiting = this.pendingQueue().length;\n if (waiting === 0 || !this.showQueueCount()) {\n return null;\n }\n\n return waiting > QUEUE_COUNT_CAP ? `+${QUEUE_COUNT_CAP}+` : `+${waiting}`;\n });\n private readonly timers = new Map<number, number>();\n private readonly leaveTimers = new Map<number, number>();\n private readonly remaining = new Map<number, number>();\n private readonly startedAt = new Map<number, number>();\n private hovered = false;\n private focusWithin = false;\n\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly position = inject(DS_CONFIG).toast?.position;\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n devWarn(() =>\n this.maxVisible() < 0\n ? `<ds-toast-region> maxVisible is ${this.maxVisible()}; a negative cap means unlimited, which is what 0 says. Pass 0 if that is the intent.`\n : null,\n );\n }\n effect(() => {\n this.maxVisible();\n this.drainQueue();\n });\n // An uncancelled timer fires into a destroyed component: invisible in an app that\n // never tears the root down, a stream of \"N timers still in the queue\" under fakeAsync.\n inject(DestroyRef).onDestroy(() => {\n this.timers.forEach((timer) => window.clearTimeout(timer));\n this.leaveTimers.forEach((timer) => window.clearTimeout(timer));\n this.timers.clear();\n this.leaveTimers.clear();\n });\n }\n\n /** Newest goes NEAREST the anchor, so the toast that just fired appears where the\n * stack is pinned rather than at the far end of a list the reader has to hunt\n * down. DOM order is the visual order, so this also keeps the reading order. */\n protected readonly newestFirst =\n (this.position?.verticalPosition ??\n DS_TOAST_POSITION_DEFAULT.verticalPosition) === 'top';\n\n add(entry: ToastEntry): void {\n const limit = this.maxVisible();\n if (limit > 0 && this.visibleEntries().length >= limit) {\n this.pendingQueue.update((queue) => [...queue, entry]);\n\n return;\n }\n\n this.show(entry);\n }\n\n private show(entry: ToastEntry): void {\n const before = this.measureTops();\n this.visibleEntries.update((existing) =>\n this.newestFirst ? [entry, ...existing] : [...existing, entry],\n );\n this.arm(entry.id, entry.durationMs);\n this.slideNeighbours(before);\n }\n\n /** FLIP, rather than the usual absolute stack: absolute positioning collapses the region\n * to zero height, and it lives in a CDK pane sized to its content, so the hit area goes\n * with it. */\n private slideNeighbours(before: Map<number, number>): void {\n if (!before.size) {\n return;\n }\n requestAnimationFrame(() => {\n const nodes = this.toastNodes();\n const deltas: [HTMLElement, number][] = [];\n for (const [id, node] of nodes) {\n const previousTop = before.get(id);\n if (previousTop === undefined) {\n continue;\n }\n const delta = previousTop - node.getBoundingClientRect().top;\n if (delta) {\n deltas.push([node, delta]);\n }\n }\n for (const [node, delta] of deltas) {\n node.style.setProperty('--_toast-shift', `${delta}px`);\n node.classList.add('shifting');\n }\n requestAnimationFrame(() => {\n for (const [node] of deltas) {\n node.classList.remove('shifting');\n node.style.removeProperty('--_toast-shift');\n }\n });\n });\n }\n\n private toastNodes(): Map<number, HTMLElement> {\n const nodes = new Map<number, HTMLElement>();\n const elements =\n this.host.nativeElement.querySelectorAll<HTMLElement>('ds-toast');\n this.visibleEntries().forEach((entry, index) => {\n const node = elements[index];\n if (node) {\n nodes.set(entry.id, node);\n }\n });\n\n return nodes;\n }\n\n private measureTops(): Map<number, number> {\n const tops = new Map<number, number>();\n for (const [id, node] of this.toastNodes()) {\n tops.set(id, node.getBoundingClientRect().top);\n }\n\n return tops;\n }\n\n private arm(id: number, remaining: number): void {\n if (remaining <= 0) {\n return;\n }\n this.remaining.set(id, remaining);\n // A toast can be armed with no user event anywhere near it — drainQueue runs from a\n // timeout — so this has to bank rather than trust that a pause event will follow.\n if (this.hovered || this.focusWithin) {\n this.startedAt.delete(id);\n\n return;\n }\n this.startedAt.set(id, Date.now());\n const existing = this.timers.get(id);\n if (existing !== undefined) {\n window.clearTimeout(existing);\n }\n this.timers.set(\n id,\n window.setTimeout(() => this.remove(id), remaining),\n );\n }\n\n private clearCountdown(id: number): void {\n const timer = this.timers.get(id);\n if (timer !== undefined) {\n window.clearTimeout(timer);\n this.timers.delete(id);\n }\n this.remaining.delete(id);\n this.startedAt.delete(id);\n }\n\n protected onHover(entered: boolean): void {\n this.hovered = entered;\n this.syncPause();\n }\n\n // `focusout` bubbles, so it also fires when focus moves BETWEEN elements inside the region —\n // tabbing from the action to the close button. Without the containment check that reads as\n // leaving, and every round trip re-floors the remainder at MIN_RESUME_MS.\n protected onFocusWithin(event: FocusEvent | true): void {\n this.focusWithin =\n event === true ||\n (event.relatedTarget instanceof Node &&\n this.host.nativeElement.contains(event.relatedTarget));\n this.syncPause();\n }\n\n private syncPause(): void {\n const shouldPause = this.hovered || this.focusWithin;\n if (shouldPause === this.paused) {\n return;\n }\n if (shouldPause) {\n this.pauseAll();\n } else {\n this.resumeAll();\n }\n }\n\n private get paused(): boolean {\n return this.timers.size === 0 && this.remaining.size > 0;\n }\n\n private pauseAll(): void {\n const now = Date.now();\n for (const [id, timer] of this.timers) {\n window.clearTimeout(timer);\n const left =\n (this.remaining.get(id) ?? 0) - (now - (this.startedAt.get(id) ?? now));\n this.remaining.set(id, Math.max(left, MIN_RESUME_MS));\n }\n this.timers.clear();\n }\n\n private resumeAll(): void {\n for (const [id, left] of [...this.remaining]) {\n this.arm(id, left);\n }\n }\n\n /** Replace fields of an already-visible or queued toast in place. Patching\n * `durationMs` restarts the clock, and on a QUEUED toast it takes effect only on\n * promotion — otherwise a duration would burn down while the toast is invisible. */\n update(\n id: number,\n patch: Partial<\n Pick<\n ToastEntry,\n 'body' | 'title' | 'variant' | 'dismissible' | 'action' | 'durationMs'\n >\n >,\n ): void {\n const inVisible = this.visibleEntries().some((entry) => entry.id === id);\n if (inVisible) {\n this.visibleEntries.update((entries) =>\n entries.map((entry) =>\n entry.id === id ? { ...entry, ...patch } : entry,\n ),\n );\n if (patch.durationMs !== undefined) {\n this.clearCountdown(id);\n this.arm(id, patch.durationMs);\n }\n\n return;\n }\n this.pendingQueue.update((queue) =>\n queue.map((entry) => (entry.id === id ? { ...entry, ...patch } : entry)),\n );\n }\n\n remove(id: number): void {\n // A `ToastRef` outlives its toast, so dismiss() can arrive for an id nothing holds.\n const isVisible = this.visibleEntries().some((entry) => entry.id === id);\n const queued = this.pendingQueue().some((entry) => entry.id === id);\n if (!isVisible && !queued) {\n return;\n }\n\n this.clearCountdown(id);\n if (queued) {\n this.pendingQueue.update((queue) =>\n queue.filter((entry) => entry.id !== id),\n );\n\n return;\n }\n if (this.leaving().has(id)) {\n return;\n }\n this.leaving.update((set) => new Set(set).add(id));\n this.leaveTimers.set(\n id,\n window.setTimeout(() => {\n this.leaveTimers.delete(id);\n this.visibleEntries.update((existing) =>\n existing.filter((entry) => entry.id !== id),\n );\n this.leaving.update((set) => {\n const next = new Set(set);\n next.delete(id);\n\n return next;\n });\n this.drainQueue();\n }, this.leaveDuration(id)),\n );\n }\n\n /** The leave transition is a public token, so its length is whatever the consumer\n * set — read it off the node rather than assuming. Reduced motion zeroes it, which\n * is why the floor applies only when there is nothing to measure. */\n private leaveDuration(id: number): number {\n const node = this.toastNodes().get(id);\n if (!node) {\n return LEAVE_FALLBACK_MS;\n }\n const declared = getComputedStyle(node)\n .transitionDuration.split(',')\n .map((part) => parseFloat(part) * 1000)\n .filter((ms) => !Number.isNaN(ms));\n\n return declared.length ? Math.max(...declared) : LEAVE_FALLBACK_MS;\n }\n\n protected isLeaving(id: number): boolean {\n return this.leaving().has(id);\n }\n\n clear(): void {\n this.timers.forEach((timer) => window.clearTimeout(timer));\n this.leaveTimers.forEach((timer) => window.clearTimeout(timer));\n this.timers.clear();\n this.leaveTimers.clear();\n this.remaining.clear();\n this.startedAt.clear();\n this.visibleEntries.set([]);\n this.leaving.set(new Set());\n this.pendingQueue.set([]);\n }\n\n private drainQueue(): void {\n while (this.pendingQueue().length) {\n const limit = this.maxVisible();\n if (limit > 0 && this.visibleEntries().length >= limit) {\n return;\n }\n const [next, ...rest] = this.pendingQueue();\n this.pendingQueue.set(rest);\n this.show(next);\n }\n }\n}\n","@if (queuedLabel(); as label) {\n <!-- aria-hidden: ToastService announces every toast through the LiveAnnouncer, queued ones\n included, so a reader has already heard everything this counts. -->\n <div\n class=\"queue-count\"\n aria-hidden=\"true\">\n {{ label }}\n </div>\n}\n\n@for (entry of visibleEntries(); track entry.id) {\n <ds-toast\n [variant]=\"entry.variant\"\n [title]=\"entry.title ?? ''\"\n [body]=\"entry.body\"\n [dismissible]=\"entry.dismissible\"\n [action]=\"entry.action ?? null\"\n [class.leaving]=\"isLeaving(entry.id)\"\n (closed)=\"remove(entry.id)\" />\n}\n","import { ComponentRef, DestroyRef, Injectable, inject } from '@angular/core';\nimport {\n Overlay,\n OverlayRef,\n GlobalPositionStrategy,\n} from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { LiveAnnouncer } from '@angular/cdk/a11y';\nimport { DS_CONFIG } from '@ids-group-ltd/ids-design-system/core';\nimport { ToastRegionComponent } from './toast-region.component';\nimport { DS_TOAST_POSITION_DEFAULT } from './toast.config';\nimport type {\n ToastEntry,\n ToastVariant,\n ToastOptions,\n ToastPromiseMessages,\n ToastRef,\n} from './toast.types';\n\n// An error stays longer than a success: it usually needs reading, and often acting on.\nconst SETTLED_SUCCESS_MS = 4000;\nconst SETTLED_ERROR_MS = 6000;\n\n// Has to outlast the loop that fires a burst, not any human interval.\nconst ANNOUNCE_COALESCE_MS = 120;\n\n@Injectable({ providedIn: 'root' })\nexport class ToastService {\n private readonly overlay = inject(Overlay);\n private readonly toastConfig = inject(DS_CONFIG).toast;\n private readonly announcer = inject(LiveAnnouncer);\n private overlayRef: OverlayRef | null = null;\n private regionRef: ComponentRef<ToastRegionComponent> | null = null;\n private nextId = 1;\n private pendingAnnouncements: string[] = [];\n private pendingAssertive = false;\n private announceTimer: number | undefined;\n private scrimWatcher: MutationObserver | null = null;\n\n constructor() {\n inject(DestroyRef).onDestroy(() => {\n clearTimeout(this.announceTimer);\n this.scrimWatcher?.disconnect();\n this.overlayRef?.dispose();\n this.overlayRef = null;\n this.regionRef = null;\n });\n }\n\n show(opts: ToastOptions): ToastRef {\n this.ensureRegion();\n const id = this.nextId++;\n const variant = opts.variant ?? 'info';\n // An `action` toast cannot expire: that button is the only way to take the action,\n // the region is the last child of `body`, and a keyboard user cannot cross a page\n // to reach it inside five seconds.\n const durationMs =\n variant === 'loading' || opts.action ? 0 : (opts.durationMs ?? 5000);\n const entry: ToastEntry = {\n id,\n title: opts.title,\n body: opts.body,\n variant,\n // Nothing that cannot expire may also be unclosable, or it holds a slot for the\n // life of the page — which is how a hung promise blocked the whole region.\n dismissible: durationMs > 0 ? (opts.dismissible ?? true) : true,\n action: opts.action,\n durationMs,\n };\n // The region runs the countdown, because only it knows when the toast became\n // visible — started here, one queued behind `maxVisible` expires unseen.\n this.regionRef!.instance.add(entry);\n this.announce(variant, entry.body, entry.title);\n\n return {\n id,\n dismiss: () => this.regionRef?.instance.remove(id),\n };\n }\n\n /** Show a loading toast for the duration of `source`. Resolution and rejection are\n * reflected in-place (same toast, no stack-up) as success/error variants, each with\n * its own auto-dismiss delay.\n *\n * Returns `source` itself, so the caller still owns rejection handling — an\n * un-`catch`ed call produces an unhandled rejection exactly as it would without a\n * toast. */\n promise<T>(\n source: Promise<T>,\n messages: ToastPromiseMessages<T>,\n ): Promise<T> {\n const ref = this.show({\n body: messages.loading,\n variant: 'loading',\n durationMs: 0,\n });\n\n // The duration goes to the region, for the reason given on `add()` above.\n source.then(\n (value) => {\n const successBody =\n typeof messages.success === 'function'\n ? messages.success(value)\n : messages.success;\n this.regionRef?.instance.update(ref.id, {\n body: successBody,\n variant: 'success',\n dismissible: true,\n durationMs: SETTLED_SUCCESS_MS,\n });\n this.announce('success', successBody);\n },\n (reason: unknown) => {\n const errorBody =\n typeof messages.error === 'function'\n ? messages.error(reason)\n : messages.error;\n this.regionRef?.instance.update(ref.id, {\n body: errorBody,\n variant: 'error',\n dismissible: true,\n durationMs: SETTLED_ERROR_MS,\n });\n this.announce('error', errorBody);\n },\n );\n\n return source;\n }\n\n /** The announcement must NOT ride the visual toast: `aria-live` on an element created\n * together with its text announces nothing in NVDA or JAWS. The CDK announcer's region\n * exists from construction and only its text changes.\n *\n * Serialising a burst does not work either — `announce()` clears the region and writes\n * on a timeout, resolving its promise inside that callback, so the next message wipes\n * the previous one before anything can read it. One region change carrying every\n * message is the only shape that survives. */\n private announce(variant: ToastVariant, body: string, title?: string): void {\n const spoken = [title, body].filter(Boolean).join('. ');\n if (!spoken) {\n return;\n }\n this.pendingAnnouncements.push(spoken);\n if (variant === 'error' || variant === 'warning') {\n this.pendingAssertive = true;\n }\n clearTimeout(this.announceTimer);\n this.announceTimer = window.setTimeout(() => {\n const message = this.pendingAnnouncements.join('. ');\n const politeness = this.pendingAssertive ? 'assertive' : 'polite';\n this.pendingAnnouncements = [];\n this.pendingAssertive = false;\n this.announcer.announce(message, politeness);\n }, ANNOUNCE_COALESCE_MS);\n }\n\n dismissAll(): void {\n this.regionRef?.instance.clear();\n }\n\n private ensureRegion(): void {\n if (this.overlayRef) {\n return;\n }\n this.overlayRef = this.overlay.create({\n hasBackdrop: false,\n panelClass: 'ds-toast-panel',\n positionStrategy: this.buildPositionStrategy(),\n });\n this.regionRef = this.overlayRef.attach(\n new ComponentPortal(ToastRegionComponent),\n );\n // `>= 0`, not truthiness: 0 is the only way to ask for an uncapped stack, so it has\n // to reach the region rather than read as \"unset\".\n const maxVisible = this.toastConfig?.maxVisible;\n if (typeof maxVisible === 'number' && maxVisible >= 0) {\n this.regionRef.setInput('maxVisible', maxVisible);\n }\n const showQueueCount = this.toastConfig?.showQueueCount;\n if (typeof showQueueCount === 'boolean') {\n this.regionRef.setInput('showQueueCount', showQueueCount);\n }\n this.keepAboveScrims();\n }\n\n /** Keeps the toast above a scrim opened AFTER it. `--layer-toast` cannot: CDK gives\n * every overlay host `popover=\"manual\"`, and the browser's top layer paints in the\n * order things were shown, ignoring z-index. Re-showing the host is the only lever.\n *\n * Scrimmed overlays only: the published layer scale puts `--layer-tooltip` above the\n * toast. */\n private keepAboveScrims(): void {\n const host = this.overlayRef?.hostElement;\n const container = host?.parentElement;\n if (!host || !container || typeof host.showPopover !== 'function') {\n return;\n }\n this.scrimWatcher = new MutationObserver((records) => {\n const scrimAppeared = records.some((record) =>\n [...record.addedNodes].some(\n (node) =>\n node instanceof HTMLElement &&\n node !== host &&\n (node.classList.contains('cdk-overlay-backdrop') ||\n node.querySelector?.('.cdk-overlay-backdrop')),\n ),\n );\n if (!scrimAppeared || !host.isConnected) {\n return;\n }\n // The top layer has no \"raise\"; nothing paints between these two calls.\n try {\n host.hidePopover();\n host.showPopover();\n } catch {\n // The host may not be showing, and hidePopover() throws when it is not.\n }\n });\n this.scrimWatcher.observe(container, { childList: true, subtree: true });\n }\n\n private buildPositionStrategy(): GlobalPositionStrategy {\n const config = {\n ...DS_TOAST_POSITION_DEFAULT,\n ...this.toastConfig?.position,\n };\n const strategy = this.overlay.position().global();\n if (config.verticalPosition === 'top') {\n strategy.top(config.offset);\n } else {\n strategy.bottom(config.offset);\n }\n if (config.horizontalPosition === 'left') {\n strategy.left(config.offset);\n } else if (config.horizontalPosition === 'right') {\n strategy.right(config.offset);\n } else {\n strategy.centerHorizontally();\n }\n\n return strategy;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAEO,MAAM,yBAAyB,GAAoB;AACxD,IAAA,kBAAkB,EAAE,OAAO;AAC3B,IAAA,gBAAgB,EAAE,KAAK;AACvB,IAAA,MAAM,EAAE,gBAAgB;;;ACU1B;;;AAGG;MAYU,cAAc,CAAA;AACN,IAAA,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC;;AAGhC,IAAA,OAAO,GAAG,KAAK,CAAe,MAAM,8EAAC;;AAErC,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;;AAEzB,IAAA,IAAI,GAAG,KAAK,CAAS,EAAE,2EAAC;;IAExB,WAAW,GAAG,KAAK,CAAC,KAAK,mFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAE3D,IAAA,IAAI,GAAG,KAAK,CAAkB,IAAI,2EAAC;;AAEnC,IAAA,MAAM,GAAG,KAAK,CAAqB,IAAI,6EAAC;;IAExC,MAAM,GAAG,MAAM,EAAQ;AAEb,IAAA,SAAS,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,OAAO,EAAE,KAAK,SAAS,gFAAC;AAEjE,IAAA,QAAQ,CAAC,MAAmB,EAAA;QACpC,MAAM,CAAC,OAAO,EAAE;AAChB,QAAA,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE;IACpB;AAEmB,IAAA,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAA,MAAA,EAAS,IAAI,CAAC,OAAO,EAAE,CAAA,CAAE,8EAA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Q,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE;AACjD,QAAA,IAAI,MAAM,CAAC,gBAAgB,KAAK,KAAK,EAAE;AACrC,YAAA,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC;QAC7B;aAAO;AACL,YAAA,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;QAChC;AACA,QAAA,IAAI,MAAM,CAAC,kBAAkB,KAAK,MAAM,EAAE;AACxC,YAAA,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;QAC9B;AAAO,aAAA,IAAI,MAAM,CAAC,kBAAkB,KAAK,OAAO,EAAE;AAChD,YAAA,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;QAC/B;aAAO;YACL,QAAQ,CAAC,kBAAkB,EAAE;QAC/B;AAEA,QAAA,OAAO,QAAQ;IACjB;wGAvNW,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAZ,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,cADC,MAAM,EAAA,CAAA;;4FACnB,YAAY,EAAA,UAAA,EAAA,CAAA;kBADxB,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;AC1BlC;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ids-group-ltd-ids-design-system-components-toast.mjs","sources":["../../../src/lib/components/toast/toast.config.ts","../../../src/lib/components/toast/toast.component.ts","../../../src/lib/components/toast/toast.component.html","../../../src/lib/components/toast/toast-region.component.ts","../../../src/lib/components/toast/toast-region.component.html","../../../src/lib/components/toast/toast.service.ts","../../../src/lib/components/toast/ids-group-ltd-ids-design-system-components-toast.ts"],"sourcesContent":["import type { DsToastPosition } from '@ids-group-ltd/ids-design-system/core';\n\nexport const DS_TOAST_POSITION_DEFAULT: DsToastPosition = {\n horizontalPosition: 'right',\n verticalPosition: 'top',\n offset: 'var(--space-6)',\n};\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n inject,\n input,\n output,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { SpinnerComponent } from '@ids-group-ltd/ids-design-system/components/spinner';\nimport { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport type { ToastAction, ToastVariant } from './toast.types';\n\n/**\n * Single toast pill, rendered by ToastRegion for service-driven toasts or placed inline as a specimen.\n */\n@Component({\n selector: 'ds-toast',\n standalone: true,\n imports: [IconComponent, SpinnerComponent],\n templateUrl: './toast.component.html',\n styleUrl: './toast.component.scss',\n // Keeps a static `title` attribute from becoming a native tooltip on the host.\n host: { '[attr.title]': 'null' },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class ToastComponent {\n protected readonly intl = inject(DS_INTL);\n\n /** Severity: drives colour and the default icon or spinner. */\n readonly variant = input<ToastVariant>('info');\n /** Optional bold heading above the message. */\n readonly title = input<string>('');\n /** Message text; the same field as `ToastOptions.body`. */\n readonly body = input<string>('');\n /** Show a close button that emits `closed`. */\n readonly dismissible = input(false, { transform: booleanAttribute });\n /** Override the variant's default icon. */\n readonly icon = input<IconName | null>(null);\n /** Optional action button rendered before the dismiss control. */\n readonly action = input<ToastAction | null>(null);\n /** Fires when the toast is dismissed or its action is invoked. */\n readonly closed = output<void>();\n\n protected readonly isLoading = computed(() => this.variant() === 'loading');\n\n protected onAction(action: ToastAction): void {\n action.handler();\n this.closed.emit();\n }\n\n protected readonly classes = computed(() => `toast ${this.variant()}`);\n\n protected readonly defaultIcon = computed<IconName>(() => {\n switch (this.variant()) {\n case 'success':\n return 'success';\n case 'warning':\n return 'warn';\n case 'error':\n return 'error';\n default:\n return 'info';\n }\n });\n\n protected onDismiss(): void {\n this.closed.emit();\n }\n}\n","<!-- No role or aria-live: a region created with its text already in it announces nothing;\n ToastService speaks through the CDK LiveAnnouncer. A hand-placed <ds-toast> is silent. -->\n<div [class]=\"classes()\">\n @if (isLoading()) {\n <!-- aria-hidden because ds-spinner is a role=\"status\" of its own: the message is\n announced by ToastService, and a nested live region would speak twice. -->\n <ds-spinner\n class=\"icon\"\n size=\"sm\"\n aria-hidden=\"true\" />\n } @else {\n <ds-icon\n class=\"icon\"\n [name]=\"icon() ?? defaultIcon()\"\n [size]=\"16\" />\n }\n\n <div class=\"body\">\n @if (title()) {\n <div class=\"title\">\n {{ title() }}\n </div>\n }\n {{ body() }}\n <ng-content></ng-content>\n </div>\n\n @if (action(); as act) {\n <button\n type=\"button\"\n class=\"action\"\n (click)=\"onAction(act)\">\n {{ act.label }}\n </button>\n }\n\n <span class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </span>\n\n @if (dismissible()) {\n <button\n type=\"button\"\n class=\"close\"\n [attr.aria-label]=\"intl().dialog.dismiss\"\n (click)=\"onDismiss()\">\n <ds-icon\n name=\"x\"\n [size]=\"14\" />\n </button>\n }\n</div>\n","import {\n DestroyRef,\n ElementRef,\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n effect,\n inject,\n input,\n signal,\n} from '@angular/core';\nimport { DS_CONFIG, DS_INTL } from '@ids-group-ltd/ids-design-system/core';\nimport { devWarn } from '@ids-group-ltd/ids-design-system/core';\nimport { DS_TOAST_POSITION_DEFAULT } from './toast.config';\nimport { ToastComponent } from './toast.component';\nimport type { ToastEntry } from './toast.types';\n\n// Fallback floor; leaveDuration() reads the real length off the node.\nconst LEAVE_FALLBACK_MS = 180;\n\n// Grace period once the pointer leaves a toast whose clock ran out under it.\nconst MIN_RESUME_MS = 600;\n\nconst DEFAULT_MAX_VISIBLE = 5;\n\nconst QUEUE_COUNT_CAP = 99;\n\n@Component({\n selector: 'ds-toast-region',\n standalone: true,\n imports: [ToastComponent],\n templateUrl: './toast-region.component.html',\n styleUrl: './toast-region.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'region',\n '[attr.aria-label]': 'intl().toast.region',\n '(mouseenter)': 'onHover(true)',\n '(mouseleave)': 'onHover(false)',\n '(focusin)': 'onFocusWithin(true)',\n '(focusout)': 'onFocusWithin($event)',\n '[class.stack-newest-last]': '!newestFirst',\n },\n})\nexport class ToastRegionComponent {\n protected readonly intl = inject(DS_INTL);\n\n /** Cap on concurrently visible toasts. Extras are queued and shown as\n * earlier ones dismiss. `0` = unlimited. */\n readonly maxVisible = input<number>(DEFAULT_MAX_VISIBLE);\n /** Show a `+N` strip while toasts wait behind `maxVisible`. */\n readonly showQueueCount = input(true, { transform: booleanAttribute });\n\n protected readonly visibleEntries = signal<readonly ToastEntry[]>([]);\n protected readonly leaving = signal<ReadonlySet<number>>(new Set());\n\n private readonly pendingQueue = signal<readonly ToastEntry[]>([]);\n\n protected readonly queuedLabel = computed(() => {\n const waiting = this.pendingQueue().length;\n if (waiting === 0 || !this.showQueueCount()) {\n return null;\n }\n\n return waiting > QUEUE_COUNT_CAP ? `+${QUEUE_COUNT_CAP}+` : `+${waiting}`;\n });\n private readonly timers = new Map<number, number>();\n private readonly leaveTimers = new Map<number, number>();\n private readonly remaining = new Map<number, number>();\n private readonly startedAt = new Map<number, number>();\n private hovered = false;\n private focusWithin = false;\n\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly position = inject(DS_CONFIG).toast?.position;\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n devWarn(() =>\n this.maxVisible() < 0\n ? `<ds-toast-region> maxVisible is ${this.maxVisible()}; a negative cap means unlimited, which is what 0 says. Pass 0 if that is the intent.`\n : null,\n );\n }\n effect(() => {\n this.maxVisible();\n this.drainQueue();\n });\n // An uncancelled timer fires into a destroyed component.\n inject(DestroyRef).onDestroy(() => {\n this.timers.forEach((timer) => window.clearTimeout(timer));\n this.leaveTimers.forEach((timer) => window.clearTimeout(timer));\n this.timers.clear();\n this.leaveTimers.clear();\n });\n }\n\n /** Newest goes NEAREST the anchor; DOM order is the visual and reading order. */\n protected readonly newestFirst =\n (this.position?.verticalPosition ??\n DS_TOAST_POSITION_DEFAULT.verticalPosition) === 'top';\n\n add(entry: ToastEntry): void {\n const limit = this.maxVisible();\n if (limit > 0 && this.visibleEntries().length >= limit) {\n this.pendingQueue.update((queue) => [...queue, entry]);\n\n return;\n }\n\n this.show(entry);\n }\n\n private show(entry: ToastEntry): void {\n const before = this.measureTops();\n this.visibleEntries.update((existing) =>\n this.newestFirst ? [entry, ...existing] : [...existing, entry],\n );\n this.arm(entry.id, entry.durationMs);\n this.slideNeighbours(before);\n }\n\n /** FLIP, not an absolute stack: that collapses the region to zero height inside the content-sized CDK pane. */\n private slideNeighbours(before: Map<number, number>): void {\n if (!before.size) {\n return;\n }\n requestAnimationFrame(() => {\n const nodes = this.toastNodes();\n const deltas: [HTMLElement, number][] = [];\n for (const [id, node] of nodes) {\n const previousTop = before.get(id);\n if (previousTop === undefined) {\n continue;\n }\n const delta = previousTop - node.getBoundingClientRect().top;\n if (delta) {\n deltas.push([node, delta]);\n }\n }\n for (const [node, delta] of deltas) {\n node.style.setProperty('--_toast-shift', `${delta}px`);\n node.classList.add('shifting');\n }\n requestAnimationFrame(() => {\n for (const [node] of deltas) {\n node.classList.remove('shifting');\n node.style.removeProperty('--_toast-shift');\n }\n });\n });\n }\n\n private toastNodes(): Map<number, HTMLElement> {\n const nodes = new Map<number, HTMLElement>();\n const elements =\n this.host.nativeElement.querySelectorAll<HTMLElement>('ds-toast');\n this.visibleEntries().forEach((entry, index) => {\n const node = elements[index];\n if (node) {\n nodes.set(entry.id, node);\n }\n });\n\n return nodes;\n }\n\n private measureTops(): Map<number, number> {\n const tops = new Map<number, number>();\n for (const [id, node] of this.toastNodes()) {\n tops.set(id, node.getBoundingClientRect().top);\n }\n\n return tops;\n }\n\n private arm(id: number, remaining: number): void {\n if (remaining <= 0) {\n return;\n }\n this.remaining.set(id, remaining);\n // drainQueue arms from a timeout, with no user event nearby, so bank the pause state here.\n if (this.hovered || this.focusWithin) {\n this.startedAt.delete(id);\n\n return;\n }\n this.startedAt.set(id, Date.now());\n const existing = this.timers.get(id);\n if (existing !== undefined) {\n window.clearTimeout(existing);\n }\n this.timers.set(\n id,\n window.setTimeout(() => this.remove(id), remaining),\n );\n }\n\n private clearCountdown(id: number): void {\n const timer = this.timers.get(id);\n if (timer !== undefined) {\n window.clearTimeout(timer);\n this.timers.delete(id);\n }\n this.remaining.delete(id);\n this.startedAt.delete(id);\n }\n\n protected onHover(entered: boolean): void {\n this.hovered = entered;\n this.syncPause();\n }\n\n // `focusout` also fires when focus moves BETWEEN elements inside the region; the containment check avoids re-flooring at MIN_RESUME_MS.\n protected onFocusWithin(event: FocusEvent | true): void {\n this.focusWithin =\n event === true ||\n (event.relatedTarget instanceof Node &&\n this.host.nativeElement.contains(event.relatedTarget));\n this.syncPause();\n }\n\n private syncPause(): void {\n const shouldPause = this.hovered || this.focusWithin;\n if (shouldPause === this.paused) {\n return;\n }\n if (shouldPause) {\n this.pauseAll();\n } else {\n this.resumeAll();\n }\n }\n\n private get paused(): boolean {\n return this.timers.size === 0 && this.remaining.size > 0;\n }\n\n private pauseAll(): void {\n const now = Date.now();\n for (const [id, timer] of this.timers) {\n window.clearTimeout(timer);\n const left =\n (this.remaining.get(id) ?? 0) - (now - (this.startedAt.get(id) ?? now));\n this.remaining.set(id, Math.max(left, MIN_RESUME_MS));\n }\n this.timers.clear();\n }\n\n private resumeAll(): void {\n for (const [id, left] of [...this.remaining]) {\n this.arm(id, left);\n }\n }\n\n /** Replaces fields of a visible or queued toast in place. Patching `durationMs`\n * restarts the clock; on a QUEUED toast it takes effect on promotion. */\n update(\n id: number,\n patch: Partial<\n Pick<\n ToastEntry,\n 'body' | 'title' | 'variant' | 'dismissible' | 'action' | 'durationMs'\n >\n >,\n ): void {\n const inVisible = this.visibleEntries().some((entry) => entry.id === id);\n if (inVisible) {\n this.visibleEntries.update((entries) =>\n entries.map((entry) =>\n entry.id === id ? { ...entry, ...patch } : entry,\n ),\n );\n if (patch.durationMs !== undefined) {\n this.clearCountdown(id);\n this.arm(id, patch.durationMs);\n }\n\n return;\n }\n this.pendingQueue.update((queue) =>\n queue.map((entry) => (entry.id === id ? { ...entry, ...patch } : entry)),\n );\n }\n\n remove(id: number): void {\n // A `ToastRef` outlives its toast, so dismiss() can arrive for an id nothing holds.\n const isVisible = this.visibleEntries().some((entry) => entry.id === id);\n const queued = this.pendingQueue().some((entry) => entry.id === id);\n if (!isVisible && !queued) {\n return;\n }\n\n this.clearCountdown(id);\n if (queued) {\n this.pendingQueue.update((queue) =>\n queue.filter((entry) => entry.id !== id),\n );\n\n return;\n }\n if (this.leaving().has(id)) {\n return;\n }\n this.leaving.update((set) => new Set(set).add(id));\n this.leaveTimers.set(\n id,\n window.setTimeout(() => {\n this.leaveTimers.delete(id);\n this.visibleEntries.update((existing) =>\n existing.filter((entry) => entry.id !== id),\n );\n this.leaving.update((set) => {\n const next = new Set(set);\n next.delete(id);\n\n return next;\n });\n this.drainQueue();\n }, this.leaveDuration(id)),\n );\n }\n\n /** The leave transition length is a public token, so read it off the node. Reduced\n * motion zeroes it, so the floor applies only when there is nothing to measure. */\n private leaveDuration(id: number): number {\n const node = this.toastNodes().get(id);\n if (!node) {\n return LEAVE_FALLBACK_MS;\n }\n const declared = getComputedStyle(node)\n .transitionDuration.split(',')\n .map((part) => parseFloat(part) * 1000)\n .filter((ms) => !Number.isNaN(ms));\n\n return declared.length ? Math.max(...declared) : LEAVE_FALLBACK_MS;\n }\n\n protected isLeaving(id: number): boolean {\n return this.leaving().has(id);\n }\n\n clear(): void {\n this.timers.forEach((timer) => window.clearTimeout(timer));\n this.leaveTimers.forEach((timer) => window.clearTimeout(timer));\n this.timers.clear();\n this.leaveTimers.clear();\n this.remaining.clear();\n this.startedAt.clear();\n this.visibleEntries.set([]);\n this.leaving.set(new Set());\n this.pendingQueue.set([]);\n }\n\n private drainQueue(): void {\n while (this.pendingQueue().length) {\n const limit = this.maxVisible();\n if (limit > 0 && this.visibleEntries().length >= limit) {\n return;\n }\n const [next, ...rest] = this.pendingQueue();\n this.pendingQueue.set(rest);\n this.show(next);\n }\n }\n}\n","@if (queuedLabel(); as label) {\n <!-- aria-hidden: ToastService already announced every toast, queued ones included. -->\n <div\n class=\"queue-count\"\n aria-hidden=\"true\">\n {{ label }}\n </div>\n}\n\n@for (entry of visibleEntries(); track entry.id) {\n <ds-toast\n [variant]=\"entry.variant\"\n [title]=\"entry.title ?? ''\"\n [body]=\"entry.body\"\n [dismissible]=\"entry.dismissible\"\n [action]=\"entry.action ?? null\"\n [class.leaving]=\"isLeaving(entry.id)\"\n (closed)=\"remove(entry.id)\" />\n}\n","import { ComponentRef, DestroyRef, Injectable, inject } from '@angular/core';\nimport {\n Overlay,\n OverlayRef,\n GlobalPositionStrategy,\n} from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { LiveAnnouncer } from '@angular/cdk/a11y';\nimport { DS_CONFIG } from '@ids-group-ltd/ids-design-system/core';\nimport { ToastRegionComponent } from './toast-region.component';\nimport { DS_TOAST_POSITION_DEFAULT } from './toast.config';\nimport type {\n ToastEntry,\n ToastVariant,\n ToastOptions,\n ToastPromiseMessages,\n ToastRef,\n} from './toast.types';\n\nconst SETTLED_SUCCESS_MS = 4000;\nconst SETTLED_ERROR_MS = 6000;\n\n// Must outlast the loop that fires a burst.\nconst ANNOUNCE_COALESCE_MS = 120;\n\n@Injectable({ providedIn: 'root' })\nexport class ToastService {\n private readonly overlay = inject(Overlay);\n private readonly toastConfig = inject(DS_CONFIG).toast;\n private readonly announcer = inject(LiveAnnouncer);\n private overlayRef: OverlayRef | null = null;\n private regionRef: ComponentRef<ToastRegionComponent> | null = null;\n private nextId = 1;\n private pendingAnnouncements: string[] = [];\n private pendingAssertive = false;\n private announceTimer: number | undefined;\n private scrimWatcher: MutationObserver | null = null;\n\n constructor() {\n inject(DestroyRef).onDestroy(() => {\n clearTimeout(this.announceTimer);\n this.scrimWatcher?.disconnect();\n this.overlayRef?.dispose();\n this.overlayRef = null;\n this.regionRef = null;\n });\n }\n\n show(opts: ToastOptions): ToastRef {\n this.ensureRegion();\n const id = this.nextId++;\n const variant = opts.variant ?? 'info';\n // An `action` toast cannot expire: the region is the last child of `body`, so a\n // keyboard user cannot reach the button in time.\n const durationMs =\n variant === 'loading' || opts.action ? 0 : (opts.durationMs ?? 5000);\n const entry: ToastEntry = {\n id,\n title: opts.title,\n body: opts.body,\n variant,\n // Nothing that cannot expire may also be unclosable, or it holds a slot for the page's life.\n dismissible: durationMs > 0 ? (opts.dismissible ?? true) : true,\n action: opts.action,\n durationMs,\n };\n // The region runs the countdown: a toast queued behind `maxVisible` would expire unseen if started here.\n this.regionRef!.instance.add(entry);\n this.announce(variant, entry.body, entry.title);\n\n return {\n id,\n dismiss: () => this.regionRef?.instance.remove(id),\n };\n }\n\n /** Shows a loading toast for the duration of `source`; resolution and rejection turn the\n * same toast into a success/error variant with its own auto-dismiss delay.\n *\n * Returns `source` itself, so the caller still owns rejection handling. */\n promise<T>(\n source: Promise<T>,\n messages: ToastPromiseMessages<T>,\n ): Promise<T> {\n const ref = this.show({\n body: messages.loading,\n variant: 'loading',\n durationMs: 0,\n });\n\n source.then(\n (value) => {\n const successBody =\n typeof messages.success === 'function'\n ? messages.success(value)\n : messages.success;\n this.regionRef?.instance.update(ref.id, {\n body: successBody,\n variant: 'success',\n dismissible: true,\n durationMs: SETTLED_SUCCESS_MS,\n });\n this.announce('success', successBody);\n },\n (reason: unknown) => {\n const errorBody =\n typeof messages.error === 'function'\n ? messages.error(reason)\n : messages.error;\n this.regionRef?.instance.update(ref.id, {\n body: errorBody,\n variant: 'error',\n dismissible: true,\n durationMs: SETTLED_ERROR_MS,\n });\n this.announce('error', errorBody);\n },\n );\n\n return source;\n }\n\n /** The announcement must NOT ride the visual toast: `aria-live` on an element created\n * together with its text announces nothing in NVDA or JAWS.\n *\n * Serialising a burst does not work either: `announce()` clears the region and writes\n * on a timeout, so the next message wipes the previous one. One region change carrying\n * every message is the only shape that survives. */\n private announce(variant: ToastVariant, body: string, title?: string): void {\n const spoken = [title, body].filter(Boolean).join('. ');\n if (!spoken) {\n return;\n }\n this.pendingAnnouncements.push(spoken);\n if (variant === 'error' || variant === 'warning') {\n this.pendingAssertive = true;\n }\n clearTimeout(this.announceTimer);\n this.announceTimer = window.setTimeout(() => {\n const message = this.pendingAnnouncements.join('. ');\n const politeness = this.pendingAssertive ? 'assertive' : 'polite';\n this.pendingAnnouncements = [];\n this.pendingAssertive = false;\n this.announcer.announce(message, politeness);\n }, ANNOUNCE_COALESCE_MS);\n }\n\n dismissAll(): void {\n this.regionRef?.instance.clear();\n }\n\n private ensureRegion(): void {\n if (this.overlayRef) {\n return;\n }\n this.overlayRef = this.overlay.create({\n hasBackdrop: false,\n panelClass: 'ds-toast-panel',\n positionStrategy: this.buildPositionStrategy(),\n });\n this.regionRef = this.overlayRef.attach(\n new ComponentPortal(ToastRegionComponent),\n );\n // `>= 0`, not truthiness: 0 asks for an uncapped stack and must not read as \"unset\".\n const maxVisible = this.toastConfig?.maxVisible;\n if (typeof maxVisible === 'number' && maxVisible >= 0) {\n this.regionRef.setInput('maxVisible', maxVisible);\n }\n const showQueueCount = this.toastConfig?.showQueueCount;\n if (typeof showQueueCount === 'boolean') {\n this.regionRef.setInput('showQueueCount', showQueueCount);\n }\n this.keepAboveScrims();\n }\n\n /** Keeps the toast above a scrim opened AFTER it. `--layer-toast` cannot: CDK overlay hosts\n * are `popover=\"manual\"` and the top layer paints in show order, ignoring z-index.\n * Scrimmed overlays only: `--layer-tooltip` sits above the toast. */\n private keepAboveScrims(): void {\n const host = this.overlayRef?.hostElement;\n const container = host?.parentElement;\n if (!host || !container || typeof host.showPopover !== 'function') {\n return;\n }\n this.scrimWatcher = new MutationObserver((records) => {\n const scrimAppeared = records.some((record) =>\n [...record.addedNodes].some(\n (node) =>\n node instanceof HTMLElement &&\n node !== host &&\n (node.classList.contains('cdk-overlay-backdrop') ||\n node.querySelector?.('.cdk-overlay-backdrop')),\n ),\n );\n if (!scrimAppeared || !host.isConnected) {\n return;\n }\n // The top layer has no \"raise\"; re-showing is the only lever.\n try {\n host.hidePopover();\n host.showPopover();\n } catch {\n // The host may not be showing, and hidePopover() throws when it is not.\n }\n });\n this.scrimWatcher.observe(container, { childList: true, subtree: true });\n }\n\n private buildPositionStrategy(): GlobalPositionStrategy {\n const config = {\n ...DS_TOAST_POSITION_DEFAULT,\n ...this.toastConfig?.position,\n };\n const strategy = this.overlay.position().global();\n if (config.verticalPosition === 'top') {\n strategy.top(config.offset);\n } else {\n strategy.bottom(config.offset);\n }\n if (config.horizontalPosition === 'left') {\n strategy.left(config.offset);\n } else if (config.horizontalPosition === 'right') {\n strategy.right(config.offset);\n } else {\n strategy.centerHorizontally();\n }\n\n return strategy;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAEO,MAAM,yBAAyB,GAAoB;AACxD,IAAA,kBAAkB,EAAE,OAAO;AAC3B,IAAA,gBAAgB,EAAE,KAAK;AACvB,IAAA,MAAM,EAAE,gBAAgB;;;ACU1B;;AAEG;MAWU,cAAc,CAAA;AACN,IAAA,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC;;AAGhC,IAAA,OAAO,GAAG,KAAK,CAAe,MAAM,8EAAC;;AAErC,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;;AAEzB,IAAA,IAAI,GAAG,KAAK,CAAS,EAAE,2EAAC;;IAExB,WAAW,GAAG,KAAK,CAAC,KAAK,mFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAE3D,IAAA,IAAI,GAAG,KAAK,CAAkB,IAAI,2EAAC;;AAEnC,IAAA,MAAM,GAAG,KAAK,CAAqB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E,UAAU,EAAE,MAAM,EAAE;;;ACzBlC;;AAEG;;;;"}
|
|
@@ -2,9 +2,8 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { model, input, booleanAttribute, ViewEncapsulation, Component } from '@angular/core';
|
|
3
3
|
import { IconComponent } from '@ids-group-ltd/ids-design-system/icons';
|
|
4
4
|
|
|
5
|
-
/** A
|
|
6
|
-
*
|
|
7
|
-
* one-of-many value toggle) — this is a standalone on/off control. */
|
|
5
|
+
/** A standalone on/off toggle button with an optional leading icon and a projected label.
|
|
6
|
+
* For a one-of-many choice use `ds-segmented`. */
|
|
8
7
|
class ToggleButtonComponent {
|
|
9
8
|
/** Pressed (on/off) state; two-way bound. */
|
|
10
9
|
pressed = model(false, ...(ngDevMode ? [{ debugName: "pressed" }] : /* istanbul ignore next */ []));
|