ngwr 16.2.0 → 16.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/badge/styles/_tag.scss +73 -1
- package/calendar/styles/_index.scss +22 -0
- package/cascader/styles/_rules.scss +7 -0
- package/color-picker/styles/_index.scss +21 -0
- package/date-picker/styles/_index.scss +19 -0
- package/dropdown/styles/_index.scss +13 -19
- package/fesm2022/ngwr-affix.mjs +3 -3
- package/fesm2022/ngwr-alert-testing.mjs +70 -0
- package/fesm2022/ngwr-alert-testing.mjs.map +1 -0
- package/fesm2022/ngwr-alert.mjs +3 -3
- package/fesm2022/ngwr-anchor.mjs +17 -6
- package/fesm2022/ngwr-anchor.mjs.map +1 -1
- package/fesm2022/ngwr-animations-aurora.mjs +3 -3
- package/fesm2022/ngwr-animations-blur-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-click-sparks.mjs +3 -3
- package/fesm2022/ngwr-animations-confetti.mjs +3 -3
- package/fesm2022/ngwr-animations-decode.mjs +3 -3
- package/fesm2022/ngwr-animations-destruct.mjs +3 -3
- package/fesm2022/ngwr-animations-dot-grid.mjs +3 -3
- package/fesm2022/ngwr-animations-falling-letters.mjs +3 -3
- package/fesm2022/ngwr-animations-flow-lines.mjs +3 -3
- package/fesm2022/ngwr-animations-fluid-cursor.mjs +3 -3
- package/fesm2022/ngwr-animations-glitch.mjs +3 -3
- package/fesm2022/ngwr-animations-glow-border.mjs +3 -3
- package/fesm2022/ngwr-animations-gradient-flow.mjs +3 -3
- package/fesm2022/ngwr-animations-marquee.mjs +3 -3
- package/fesm2022/ngwr-animations-orbit.mjs +3 -3
- package/fesm2022/ngwr-animations-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-ripple-grid.mjs +3 -3
- package/fesm2022/ngwr-animations-rotate-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-shimmer.mjs +3 -3
- package/fesm2022/ngwr-animations-spotlight.mjs +3 -3
- package/fesm2022/ngwr-animations-thread-lines.mjs +3 -3
- package/fesm2022/ngwr-animations-tilt.mjs +3 -3
- package/fesm2022/ngwr-animations-typewriter.mjs +3 -3
- package/fesm2022/ngwr-avatar.mjs +3 -3
- package/fesm2022/ngwr-back-top.mjs +3 -3
- package/fesm2022/ngwr-badge.mjs +129 -11
- package/fesm2022/ngwr-badge.mjs.map +1 -1
- package/fesm2022/ngwr-breadcrumbs-testing.mjs +83 -0
- package/fesm2022/ngwr-breadcrumbs-testing.mjs.map +1 -0
- package/fesm2022/ngwr-breadcrumbs.mjs +8 -8
- package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngwr-burger-testing.mjs +45 -0
- package/fesm2022/ngwr-burger-testing.mjs.map +1 -0
- package/fesm2022/ngwr-burger.mjs +3 -3
- package/fesm2022/ngwr-button.mjs +6 -6
- package/fesm2022/ngwr-calendar-testing.mjs +18 -0
- package/fesm2022/ngwr-calendar-testing.mjs.map +1 -1
- package/fesm2022/ngwr-calendar.mjs +500 -73
- package/fesm2022/ngwr-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-card.mjs +9 -9
- package/fesm2022/ngwr-carousel.mjs +6 -6
- package/fesm2022/ngwr-cascader.mjs +37 -16
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart.mjs +5 -4
- package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-boxplot-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-bullet-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs +3 -3
- package/fesm2022/ngwr-charts-candlestick-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-chart-legend.mjs +26 -11
- package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
- package/fesm2022/ngwr-charts-core.mjs +3 -3
- package/fesm2022/ngwr-charts-donut-chart.mjs +5 -4
- package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-funnel-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-gauge.mjs +3 -3
- package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-line-chart-testing.mjs +3 -2
- package/fesm2022/ngwr-charts-line-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-line-chart.mjs +17 -7
- package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-meter-group.mjs +5 -4
- package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
- package/fesm2022/ngwr-charts-radar-chart.mjs +5 -4
- package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-scatter-chart.mjs +5 -4
- package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-sparkline.mjs +3 -3
- package/fesm2022/ngwr-charts-treemap-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-waterfall-chart.mjs +3 -3
- package/fesm2022/ngwr-checkbox.mjs +6 -6
- package/fesm2022/ngwr-clipboard.mjs +3 -3
- package/fesm2022/ngwr-collapse.mjs +9 -9
- package/fesm2022/ngwr-color-picker-testing.mjs +11 -1
- package/fesm2022/ngwr-color-picker-testing.mjs.map +1 -1
- package/fesm2022/ngwr-color-picker.mjs +153 -37
- package/fesm2022/ngwr-color-picker.mjs.map +1 -1
- package/fesm2022/ngwr-command-palette.mjs +3 -3
- package/fesm2022/ngwr-comment.mjs +10 -6
- package/fesm2022/ngwr-comment.mjs.map +1 -1
- package/fesm2022/ngwr-compare-testing.mjs +84 -0
- package/fesm2022/ngwr-compare-testing.mjs.map +1 -0
- package/fesm2022/ngwr-compare.mjs +3 -3
- package/fesm2022/ngwr-context-menu.mjs +12 -12
- package/fesm2022/ngwr-cookie.mjs +3 -3
- package/fesm2022/ngwr-copy-value.mjs +3 -3
- package/fesm2022/ngwr-counter.mjs +6 -6
- package/fesm2022/ngwr-date-picker-testing.mjs +30 -4
- package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker.mjs +342 -69
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-date-stamp.mjs +3 -3
- package/fesm2022/ngwr-date.mjs +59 -8
- package/fesm2022/ngwr-date.mjs.map +1 -1
- package/fesm2022/ngwr-density.mjs +6 -6
- package/fesm2022/ngwr-descriptions.mjs +6 -6
- package/fesm2022/ngwr-dialog.mjs +18 -18
- package/fesm2022/ngwr-directives.mjs +15 -15
- package/fesm2022/ngwr-divider.mjs +3 -3
- package/fesm2022/ngwr-drawer.mjs +51 -29
- package/fesm2022/ngwr-drawer.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown-testing.mjs +11 -3
- package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +52 -95
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-editor.mjs +4 -3
- package/fesm2022/ngwr-editor.mjs.map +1 -1
- package/fesm2022/ngwr-empty.mjs +3 -3
- package/fesm2022/ngwr-event-calendar.mjs +186 -33
- package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload-testing.mjs +34 -2
- package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload.mjs +274 -15
- package/fesm2022/ngwr-file-upload.mjs.map +1 -1
- package/fesm2022/ngwr-form.mjs +9 -9
- package/fesm2022/ngwr-form.mjs.map +1 -1
- package/fesm2022/ngwr-graph-testing.mjs +3 -0
- package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
- package/fesm2022/ngwr-graph.mjs +102 -42
- package/fesm2022/ngwr-graph.mjs.map +1 -1
- package/fesm2022/ngwr-hotkey.mjs +6 -6
- package/fesm2022/ngwr-i18n-ar.mjs +19 -4
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +19 -4
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +19 -4
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +19 -4
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +19 -4
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +19 -4
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +19 -4
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +19 -4
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +19 -4
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +19 -4
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +19 -4
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +19 -4
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +19 -4
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +19 -4
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +19 -4
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +19 -4
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +19 -4
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +19 -4
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +19 -4
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +19 -4
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +19 -4
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +19 -4
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-i18n.mjs +9 -9
- package/fesm2022/ngwr-icon.mjs +6 -6
- package/fesm2022/ngwr-image-cropper.mjs +3 -3
- package/fesm2022/ngwr-input-number-testing.mjs +11 -0
- package/fesm2022/ngwr-input-number-testing.mjs.map +1 -1
- package/fesm2022/ngwr-input-number.mjs +68 -7
- package/fesm2022/ngwr-input-number.mjs.map +1 -1
- package/fesm2022/ngwr-input-otp.mjs +23 -3
- package/fesm2022/ngwr-input-otp.mjs.map +1 -1
- package/fesm2022/ngwr-input-testing.mjs +24 -1
- package/fesm2022/ngwr-input-testing.mjs.map +1 -1
- package/fesm2022/ngwr-input.mjs +152 -36
- package/fesm2022/ngwr-input.mjs.map +1 -1
- package/fesm2022/ngwr-keyboard.mjs +3 -3
- package/fesm2022/ngwr-knob.mjs +3 -3
- package/fesm2022/ngwr-layout.mjs +15 -15
- package/fesm2022/ngwr-lightbox.mjs +8 -8
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-list.mjs +8 -8
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-load-state.mjs +15 -15
- package/fesm2022/ngwr-loading-bar.mjs +6 -6
- package/fesm2022/ngwr-mention.mjs +6 -6
- package/fesm2022/ngwr-meta.mjs +6 -6
- package/fesm2022/ngwr-overlay.mjs +175 -13
- package/fesm2022/ngwr-overlay.mjs.map +1 -1
- package/fesm2022/ngwr-page-header.mjs +3 -3
- package/fesm2022/ngwr-pagination.mjs +5 -3
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +31 -29
- package/fesm2022/ngwr-pipes.mjs.map +1 -1
- package/fesm2022/ngwr-platform.mjs +9 -9
- package/fesm2022/ngwr-popconfirm-testing.mjs +5 -2
- package/fesm2022/ngwr-popconfirm-testing.mjs.map +1 -1
- package/fesm2022/ngwr-popconfirm.mjs +44 -63
- package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
- package/fesm2022/ngwr-popover-testing.mjs +7 -1
- package/fesm2022/ngwr-popover-testing.mjs.map +1 -1
- package/fesm2022/ngwr-popover.mjs +58 -156
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-progress.mjs +50 -9
- package/fesm2022/ngwr-progress.mjs.map +1 -1
- package/fesm2022/ngwr-pull-to-refresh-testing.mjs +57 -0
- package/fesm2022/ngwr-pull-to-refresh-testing.mjs.map +1 -0
- package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
- package/fesm2022/ngwr-qr.mjs +3 -3
- package/fesm2022/ngwr-radio.mjs +6 -6
- package/fesm2022/ngwr-rating.mjs +3 -3
- package/fesm2022/ngwr-resizable-testing.mjs +113 -0
- package/fesm2022/ngwr-resizable-testing.mjs.map +1 -0
- package/fesm2022/ngwr-resizable.mjs +3 -3
- package/fesm2022/ngwr-result.mjs +12 -12
- package/fesm2022/ngwr-schema-form-testing.mjs +336 -0
- package/fesm2022/ngwr-schema-form-testing.mjs.map +1 -0
- package/fesm2022/ngwr-schema-form.mjs +415 -19
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-scroll.mjs +3 -3
- package/fesm2022/ngwr-segmented.mjs +3 -3
- package/fesm2022/ngwr-select-testing.mjs +19 -0
- package/fesm2022/ngwr-select-testing.mjs.map +1 -1
- package/fesm2022/ngwr-select.mjs +263 -83
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-sidebar-testing.mjs +176 -0
- package/fesm2022/ngwr-sidebar-testing.mjs.map +1 -0
- package/fesm2022/ngwr-sidebar.mjs +3 -3
- package/fesm2022/ngwr-skeleton.mjs +3 -3
- package/fesm2022/ngwr-slider-testing.mjs +6 -0
- package/fesm2022/ngwr-slider-testing.mjs.map +1 -1
- package/fesm2022/ngwr-slider.mjs +21 -3
- package/fesm2022/ngwr-slider.mjs.map +1 -1
- package/fesm2022/ngwr-sortable-list.mjs +29 -12
- package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
- package/fesm2022/ngwr-speed-dial.mjs +3 -3
- package/fesm2022/ngwr-spinner.mjs +3 -3
- package/fesm2022/ngwr-splitter.mjs +3 -3
- package/fesm2022/ngwr-statistic.mjs +9 -9
- package/fesm2022/ngwr-stepper.mjs +42 -11
- package/fesm2022/ngwr-stepper.mjs.map +1 -1
- package/fesm2022/ngwr-storage.mjs +3 -3
- package/fesm2022/ngwr-switch.mjs +3 -3
- package/fesm2022/ngwr-table-testing.mjs +88 -2
- package/fesm2022/ngwr-table-testing.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +891 -74
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tabs-router.mjs +3 -3
- package/fesm2022/ngwr-tabs-testing.mjs +1 -1
- package/fesm2022/ngwr-tabs-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tabs.mjs +15 -10
- package/fesm2022/ngwr-tabs.mjs.map +1 -1
- package/fesm2022/ngwr-textarea-testing.mjs +11 -0
- package/fesm2022/ngwr-textarea-testing.mjs.map +1 -1
- package/fesm2022/ngwr-textarea.mjs +128 -16
- package/fesm2022/ngwr-textarea.mjs.map +1 -1
- package/fesm2022/ngwr-theme.mjs +3 -3
- package/fesm2022/ngwr-timeline.mjs +6 -6
- package/fesm2022/ngwr-toast.mjs +40 -19
- package/fesm2022/ngwr-toast.mjs.map +1 -1
- package/fesm2022/ngwr-toolbar.mjs +3 -3
- package/fesm2022/ngwr-tour.mjs +6 -6
- package/fesm2022/ngwr-transfer-testing.mjs +6 -0
- package/fesm2022/ngwr-transfer-testing.mjs.map +1 -1
- package/fesm2022/ngwr-transfer.mjs +24 -5
- package/fesm2022/ngwr-transfer.mjs.map +1 -1
- package/fesm2022/ngwr-tree-testing.mjs +62 -2
- package/fesm2022/ngwr-tree-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +966 -78
- package/fesm2022/ngwr-tree.mjs.map +1 -1
- package/fesm2022/ngwr-typography.mjs +3 -3
- package/fesm2022/ngwr-utils-router.mjs +3 -3
- package/fesm2022/ngwr-utils.mjs +34 -1
- package/fesm2022/ngwr-utils.mjs.map +1 -1
- package/fesm2022/ngwr-version.mjs +1 -1
- package/fesm2022/ngwr-version.mjs.map +1 -1
- package/fesm2022/ngwr-virtual-scroll.mjs +3 -3
- package/fesm2022/ngwr-window.mjs +33 -22
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/file-upload/styles/_index.scss +156 -0
- package/i18n/ar.json +21 -4
- package/i18n/cs.json +21 -4
- package/i18n/de.json +21 -4
- package/i18n/en.json +21 -4
- package/i18n/es.json +21 -4
- package/i18n/fr.json +21 -4
- package/i18n/he.json +21 -4
- package/i18n/hi.json +21 -4
- package/i18n/id.json +21 -4
- package/i18n/it.json +21 -4
- package/i18n/ja.json +21 -4
- package/i18n/ko.json +21 -4
- package/i18n/nl.json +21 -4
- package/i18n/pl.json +21 -4
- package/i18n/pt.json +21 -4
- package/i18n/ru.json +21 -4
- package/i18n/sv.json +21 -4
- package/i18n/tr.json +21 -4
- package/i18n/uk.json +21 -4
- package/i18n/vi.json +21 -4
- package/i18n/zh-TW.json +21 -4
- package/i18n/zh.json +21 -4
- package/input/styles/_index.scss +68 -1
- package/input-otp/styles/_index.scss +14 -0
- package/llms-full.txt +52 -20
- package/overlay/styles/_arrow.scss +4 -4
- package/package.json +33 -1
- package/popconfirm/styles/_index.scss +3 -11
- package/progress/styles/_index.scss +32 -0
- package/schema-form/styles/_index.scss +78 -0
- package/schematics/use/rule.js +2 -0
- package/schematics/use/symbol-map.json +4 -0
- package/select/styles/_index.scss +114 -22
- package/skills/ngwr/SKILL.md +1 -1
- package/skills/ngwr/references/catalog.md +9 -1
- package/slider/styles/_index.scss +22 -0
- package/table/styles/_index.scss +167 -3
- package/textarea/styles/_index.scss +80 -0
- package/theme/styles/_focus.scss +5 -0
- package/theme/styles/_motion.scss +5 -0
- package/transfer/styles/_index.scss +84 -0
- package/tree/styles/_index.scss +138 -5
- package/types/ngwr-alert-testing.d.ts +88 -0
- package/types/ngwr-badge.d.ts +72 -2
- package/types/ngwr-breadcrumbs-testing.d.ts +92 -0
- package/types/ngwr-burger-testing.d.ts +51 -0
- package/types/ngwr-calendar-testing.d.ts +18 -6
- package/types/ngwr-calendar.d.ts +272 -22
- package/types/ngwr-cascader.d.ts +10 -1
- package/types/ngwr-charts-chart-legend.d.ts +9 -4
- package/types/ngwr-charts-line-chart-testing.d.ts +4 -1
- package/types/ngwr-charts-line-chart.d.ts +7 -4
- package/types/ngwr-color-picker-testing.d.ts +15 -4
- package/types/ngwr-color-picker.d.ts +76 -6
- package/types/ngwr-compare-testing.d.ts +72 -0
- package/types/ngwr-date-picker-testing.d.ts +23 -8
- package/types/ngwr-date-picker.d.ts +100 -9
- package/types/ngwr-date.d.ts +71 -1
- package/types/ngwr-drawer.d.ts +9 -0
- package/types/ngwr-dropdown-testing.d.ts +20 -0
- package/types/ngwr-dropdown.d.ts +24 -6
- package/types/ngwr-event-calendar.d.ts +66 -8
- package/types/ngwr-file-upload-testing.d.ts +31 -2
- package/types/ngwr-file-upload.d.ts +148 -1
- package/types/ngwr-form.d.ts +47 -3
- package/types/ngwr-graph-testing.d.ts +8 -3
- package/types/ngwr-graph.d.ts +147 -7
- package/types/ngwr-input-number-testing.d.ts +10 -0
- package/types/ngwr-input-number.d.ts +30 -1
- package/types/ngwr-input-otp.d.ts +10 -0
- package/types/ngwr-input-testing.d.ts +30 -0
- package/types/ngwr-input.d.ts +54 -3
- package/types/ngwr-overlay.d.ts +84 -5
- package/types/ngwr-pipes.d.ts +2 -1
- package/types/ngwr-popconfirm-testing.d.ts +12 -3
- package/types/ngwr-popconfirm.d.ts +28 -3
- package/types/ngwr-popover-testing.d.ts +19 -2
- package/types/ngwr-popover.d.ts +22 -2
- package/types/ngwr-progress.d.ts +29 -1
- package/types/ngwr-pull-to-refresh-testing.d.ts +83 -0
- package/types/ngwr-resizable-testing.d.ts +116 -0
- package/types/ngwr-schema-form-testing.d.ts +260 -0
- package/types/ngwr-schema-form.d.ts +76 -6
- package/types/ngwr-select-testing.d.ts +20 -0
- package/types/ngwr-select.d.ts +112 -11
- package/types/ngwr-sidebar-testing.d.ts +176 -0
- package/types/ngwr-slider-testing.d.ts +3 -1
- package/types/ngwr-slider.d.ts +21 -1
- package/types/ngwr-sortable-list.d.ts +6 -0
- package/types/ngwr-stepper.d.ts +20 -11
- package/types/ngwr-table-testing.d.ts +70 -6
- package/types/ngwr-table.d.ts +480 -50
- package/types/ngwr-tabs-testing.d.ts +14 -17
- package/types/ngwr-tabs.d.ts +6 -0
- package/types/ngwr-textarea-testing.d.ts +10 -0
- package/types/ngwr-textarea.d.ts +48 -2
- package/types/ngwr-toast.d.ts +8 -1
- package/types/ngwr-transfer-testing.d.ts +3 -0
- package/types/ngwr-transfer.d.ts +24 -1
- package/types/ngwr-tree-testing.d.ts +65 -1
- package/types/ngwr-tree.d.ts +333 -12
- package/types/ngwr-utils.d.ts +28 -0
- package/types/ngwr-version.d.ts +1 -1
- package/types/ngwr-window.d.ts +7 -4
package/fesm2022/ngwr-toast.mjs
CHANGED
|
@@ -198,7 +198,7 @@ var WrToastChannels = class WrToastChannels {
|
|
|
198
198
|
}
|
|
199
199
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
200
200
|
minVersion: "12.0.0",
|
|
201
|
-
version: "22.2.
|
|
201
|
+
version: "22.2.6",
|
|
202
202
|
ngImport: i0,
|
|
203
203
|
type: WrToastChannels,
|
|
204
204
|
deps: [],
|
|
@@ -206,14 +206,14 @@ var WrToastChannels = class WrToastChannels {
|
|
|
206
206
|
});
|
|
207
207
|
static ɵprov = i0.ɵɵngDeclareService({
|
|
208
208
|
minVersion: "22.0.0",
|
|
209
|
-
version: "22.2.
|
|
209
|
+
version: "22.2.6",
|
|
210
210
|
ngImport: i0,
|
|
211
211
|
type: WrToastChannels
|
|
212
212
|
});
|
|
213
213
|
};
|
|
214
214
|
i0.ɵɵngDeclareClassMetadata({
|
|
215
215
|
minVersion: "12.0.0",
|
|
216
|
-
version: "22.2.
|
|
216
|
+
version: "22.2.6",
|
|
217
217
|
ngImport: i0,
|
|
218
218
|
type: WrToastChannels,
|
|
219
219
|
decorators: [{ type: Service }]
|
|
@@ -311,7 +311,7 @@ var WrToastItem = class WrToastItem {
|
|
|
311
311
|
}
|
|
312
312
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
313
313
|
minVersion: "12.0.0",
|
|
314
|
-
version: "22.2.
|
|
314
|
+
version: "22.2.6",
|
|
315
315
|
ngImport: i0,
|
|
316
316
|
type: WrToastItem,
|
|
317
317
|
deps: [],
|
|
@@ -319,7 +319,7 @@ var WrToastItem = class WrToastItem {
|
|
|
319
319
|
});
|
|
320
320
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
321
321
|
minVersion: "17.0.0",
|
|
322
|
-
version: "22.2.
|
|
322
|
+
version: "22.2.6",
|
|
323
323
|
type: WrToastItem,
|
|
324
324
|
isStandalone: true,
|
|
325
325
|
selector: "wr-toast",
|
|
@@ -431,7 +431,7 @@ var WrToastItem = class WrToastItem {
|
|
|
431
431
|
};
|
|
432
432
|
i0.ɵɵngDeclareClassMetadata({
|
|
433
433
|
minVersion: "12.0.0",
|
|
434
|
-
version: "22.2.
|
|
434
|
+
version: "22.2.6",
|
|
435
435
|
ngImport: i0,
|
|
436
436
|
type: WrToastItem,
|
|
437
437
|
decorators: [{
|
|
@@ -741,7 +741,7 @@ var WrToastHost = class WrToastHost {
|
|
|
741
741
|
closeAllVisible = computed(() => {
|
|
742
742
|
const cfg = this.config();
|
|
743
743
|
if (this.mode() === "stack" && !this.expanded()) return false;
|
|
744
|
-
return cfg.showCloseAll && this.
|
|
744
|
+
return cfg.showCloseAll && this.totalCount() >= cfg.closeAllThreshold;
|
|
745
745
|
}, ...ngDevMode ? [{ debugName: "closeAllVisible" }] : /* istanbul ignore next */ []);
|
|
746
746
|
showProgressFor(t) {
|
|
747
747
|
return t.showProgress ?? this.config().showProgress;
|
|
@@ -751,7 +751,7 @@ var WrToastHost = class WrToastHost {
|
|
|
751
751
|
}
|
|
752
752
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
753
753
|
minVersion: "12.0.0",
|
|
754
|
-
version: "22.2.
|
|
754
|
+
version: "22.2.6",
|
|
755
755
|
ngImport: i0,
|
|
756
756
|
type: WrToastHost,
|
|
757
757
|
deps: [],
|
|
@@ -759,7 +759,7 @@ var WrToastHost = class WrToastHost {
|
|
|
759
759
|
});
|
|
760
760
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
761
761
|
minVersion: "17.0.0",
|
|
762
|
-
version: "22.2.
|
|
762
|
+
version: "22.2.6",
|
|
763
763
|
type: WrToastHost,
|
|
764
764
|
isStandalone: true,
|
|
765
765
|
selector: "wr-toast-host",
|
|
@@ -846,7 +846,7 @@ var WrToastHost = class WrToastHost {
|
|
|
846
846
|
};
|
|
847
847
|
i0.ɵɵngDeclareClassMetadata({
|
|
848
848
|
minVersion: "12.0.0",
|
|
849
|
-
version: "22.2.
|
|
849
|
+
version: "22.2.6",
|
|
850
850
|
ngImport: i0,
|
|
851
851
|
type: WrToastHost,
|
|
852
852
|
decorators: [{
|
|
@@ -962,6 +962,8 @@ var WrToast = class WrToast {
|
|
|
962
962
|
overlayRef = null;
|
|
963
963
|
hostRef = null;
|
|
964
964
|
containerObserver = null;
|
|
965
|
+
raiseFrame = null;
|
|
966
|
+
raiseAgain = false;
|
|
965
967
|
currentPosition = this.config.position;
|
|
966
968
|
currentMode = this.config.mode;
|
|
967
969
|
nextId = 1;
|
|
@@ -1053,12 +1055,26 @@ var WrToast = class WrToast {
|
|
|
1053
1055
|
const host = this.overlayRef?.hostElement;
|
|
1054
1056
|
if (!host?.isConnected || !host.hasAttribute("popover")) return;
|
|
1055
1057
|
if (host.contains(host.ownerDocument.activeElement)) return;
|
|
1056
|
-
this.
|
|
1058
|
+
if (this.raiseFrame !== null) {
|
|
1059
|
+
this.raiseAgain = true;
|
|
1060
|
+
return;
|
|
1061
|
+
}
|
|
1062
|
+
if (!this.order.raiseToasts(host)) return;
|
|
1063
|
+
this.raiseFrame = requestAnimationFrame(() => {
|
|
1064
|
+
this.raiseFrame = null;
|
|
1065
|
+
if (!this.raiseAgain) return;
|
|
1066
|
+
this.raiseAgain = false;
|
|
1067
|
+
this.raiseHost();
|
|
1068
|
+
});
|
|
1057
1069
|
}
|
|
1058
1070
|
watchForNewerOverlays() {
|
|
1059
1071
|
const parent = this.overlayRef?.hostElement.parentElement;
|
|
1060
1072
|
if (!parent || typeof MutationObserver === "undefined") return;
|
|
1061
|
-
this.containerObserver = new MutationObserver(() =>
|
|
1073
|
+
this.containerObserver = new MutationObserver((records) => {
|
|
1074
|
+
if (!records.some((record) => record.addedNodes.length > 0)) return;
|
|
1075
|
+
this.order.joined();
|
|
1076
|
+
this.raiseHost();
|
|
1077
|
+
});
|
|
1062
1078
|
this.containerObserver.observe(parent, { childList: true });
|
|
1063
1079
|
}
|
|
1064
1080
|
pushToHost() {
|
|
@@ -1069,6 +1085,9 @@ var WrToast = class WrToast {
|
|
|
1069
1085
|
this.global.setHeld(false);
|
|
1070
1086
|
this.containerObserver?.disconnect();
|
|
1071
1087
|
this.containerObserver = null;
|
|
1088
|
+
if (this.raiseFrame !== null) cancelAnimationFrame(this.raiseFrame);
|
|
1089
|
+
this.raiseFrame = null;
|
|
1090
|
+
this.raiseAgain = false;
|
|
1072
1091
|
this.order.dropToasts();
|
|
1073
1092
|
if (this.overlayRef) {
|
|
1074
1093
|
this.overlayRef.dispose();
|
|
@@ -1078,7 +1097,7 @@ var WrToast = class WrToast {
|
|
|
1078
1097
|
}
|
|
1079
1098
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1080
1099
|
minVersion: "12.0.0",
|
|
1081
|
-
version: "22.2.
|
|
1100
|
+
version: "22.2.6",
|
|
1082
1101
|
ngImport: i0,
|
|
1083
1102
|
type: WrToast,
|
|
1084
1103
|
deps: [],
|
|
@@ -1086,14 +1105,14 @@ var WrToast = class WrToast {
|
|
|
1086
1105
|
});
|
|
1087
1106
|
static ɵprov = i0.ɵɵngDeclareService({
|
|
1088
1107
|
minVersion: "22.0.0",
|
|
1089
|
-
version: "22.2.
|
|
1108
|
+
version: "22.2.6",
|
|
1090
1109
|
ngImport: i0,
|
|
1091
1110
|
type: WrToast
|
|
1092
1111
|
});
|
|
1093
1112
|
};
|
|
1094
1113
|
i0.ɵɵngDeclareClassMetadata({
|
|
1095
1114
|
minVersion: "12.0.0",
|
|
1096
|
-
version: "22.2.
|
|
1115
|
+
version: "22.2.6",
|
|
1097
1116
|
ngImport: i0,
|
|
1098
1117
|
type: WrToast,
|
|
1099
1118
|
decorators: [{ type: Service }]
|
|
@@ -1156,11 +1175,13 @@ var WrToastOutlet = class WrToastOutlet {
|
|
|
1156
1175
|
this.push();
|
|
1157
1176
|
}
|
|
1158
1177
|
push() {
|
|
1159
|
-
this.
|
|
1178
|
+
const channel = this.channel();
|
|
1179
|
+
this.host()?.toasts.set(channel.toasts());
|
|
1180
|
+
this.host()?.queued.set(channel.queued());
|
|
1160
1181
|
}
|
|
1161
1182
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1162
1183
|
minVersion: "12.0.0",
|
|
1163
|
-
version: "22.2.
|
|
1184
|
+
version: "22.2.6",
|
|
1164
1185
|
ngImport: i0,
|
|
1165
1186
|
type: WrToastOutlet,
|
|
1166
1187
|
deps: [],
|
|
@@ -1168,7 +1189,7 @@ var WrToastOutlet = class WrToastOutlet {
|
|
|
1168
1189
|
});
|
|
1169
1190
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1170
1191
|
minVersion: "17.0.0",
|
|
1171
|
-
version: "22.2.
|
|
1192
|
+
version: "22.2.6",
|
|
1172
1193
|
type: WrToastOutlet,
|
|
1173
1194
|
isStandalone: true,
|
|
1174
1195
|
selector: "wr-toast-outlet",
|
|
@@ -1273,7 +1294,7 @@ var WrToastOutlet = class WrToastOutlet {
|
|
|
1273
1294
|
};
|
|
1274
1295
|
i0.ɵɵngDeclareClassMetadata({
|
|
1275
1296
|
minVersion: "12.0.0",
|
|
1276
|
-
version: "22.2.
|
|
1297
|
+
version: "22.2.6",
|
|
1277
1298
|
ngImport: i0,
|
|
1278
1299
|
type: WrToastOutlet,
|
|
1279
1300
|
decorators: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngwr-toast.mjs","names":[],"sources":["../../../projects/lib/toast/default-toast-config.ts","../../../projects/lib/toast/tokens/toast-config.token.ts","../../../projects/lib/toast/toast-channel.ts","../../../projects/lib/toast/toast-item.ts","../../../projects/lib/toast/toast-item.html","../../../projects/lib/toast/toast-host.ts","../../../projects/lib/toast/toast-host.html","../../../projects/lib/toast/toast-ref.ts","../../../projects/lib/toast/services/toast.ts","../../../projects/lib/toast/toast-outlet.ts","../../../projects/lib/toast/toast-outlet.html","../../../projects/lib/toast/with-toast.ts"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport type { WrToastConfig } from './types';\n\n/**\n * Library defaults applied when no {@link withToast} feature is registered.\n * Merged shallowly with the consumer's overrides (the `labels` sub-object is\n * merged separately so callers can override one string at a time).\n */\nexport const DEFAULT_WR_TOAST_CONFIG: WrToastConfig = {\n position: 'top-end',\n mode: 'stack',\n duration: 4000,\n showProgress: true,\n showCopy: false,\n showCloseAll: true,\n closeAllThreshold: 2,\n maxStack: 5,\n // Null, not English: the host resolves each one through the i18n catalog and\n // falls back to English only if nothing is registered. See `WrToastConfig`.\n labels: {\n close: null,\n copy: null,\n copied: null,\n closeAll: null,\n },\n};\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { InjectionToken } from '@angular/core';\n\nimport { DEFAULT_WR_TOAST_CONFIG } from '../default-toast-config';\nimport type { WrToastConfig } from '../types';\n\n/**\n * Holds the global {@link WrToastConfig} used by {@link WrToast}.\n * The default factory returns {@link DEFAULT_WR_TOAST_CONFIG} so the service\n * works out of the box; override via `provideWr(withToast(...))`.\n */\nexport const WR_TOAST_CONFIG = new InjectionToken<WrToastConfig>('WR_TOAST_CONFIG', {\n providedIn: 'root',\n factory: () => DEFAULT_WR_TOAST_CONFIG,\n});\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { Service, inject, signal } from '@angular/core';\n\nimport { WR_TOAST_CONFIG } from './tokens';\nimport type { WrToastOptions } from './types';\n\n/** A toast in a channel, with the bookkeeping its countdown needs. */\nexport type WrToastEntry = WrToastOptions & {\n readonly id: number;\n /** Auto-dismiss duration in ms after merging with the config. */\n readonly resolvedDuration: number;\n timer?: ReturnType<typeof setTimeout>;\n /** Timestamp of the last timer (re)start, used to compute remaining on pause. */\n startedAt?: number;\n /** Milliseconds left when paused. */\n remaining: number;\n};\n\n/**\n * One independent stack of toasts: the global one, or an outlet's.\n *\n * At most one pending timer per visible toast, and every operation is\n * O(`maxStack`), however many toasts have passed through.\n *\n * @internal\n */\nexport class WrToastChannel {\n /** The rendered toasts, capped at `maxStack`. */\n readonly toasts = signal<readonly WrToastEntry[]>([]);\n /** How many wait behind the cap. */\n readonly queued = signal(0);\n\n private queue: WrToastEntry[] = [];\n /** The pointer or focus is inside the host: no countdown runs, a toast that\n * arrives meanwhile included. See `WrToastHost.syncHold`. */\n private held = false;\n /** Outlets rendering this channel. */\n private mounts = 0;\n\n /**\n * @param expire called when a toast's countdown runs out\n * @param drops past the cap the oldest toast is dropped; otherwise the newest waits in a queue\n * @param live `false` until an outlet mounts: a toast nobody can see does not count down\n */\n constructor(\n private readonly expire: (id: number) => void,\n private readonly drops: boolean,\n private live: boolean,\n public maxStack: number,\n public duration: number\n ) {}\n\n get empty(): boolean {\n return this.toasts().length === 0 && this.queue.length === 0;\n }\n\n find(id: number): WrToastEntry | undefined {\n return this.toasts().find(t => t.id === id);\n }\n\n add(entry: WrToastEntry): void {\n const max = this.maxStack;\n const active = this.toasts();\n if (max <= 0 || active.length < max) {\n this.toasts.set([...active, entry]);\n } else if (this.drops && this.held) {\n // What the user is reading stays. The arrivals wait, bounded like the\n // stack, and enter on release.\n if (this.queue.length >= max) this.queue.shift();\n this.queue.push(entry);\n this.queued.set(this.queue.length);\n return;\n } else if (this.drops) {\n // Straight out of the array, with no exit to run.\n const kept = active.length - max + 1;\n for (let i = 0; i < kept; i++) this.stopTimer(active[i]);\n this.toasts.set([...active.slice(kept), entry]);\n } else {\n // No timer until it is shown.\n this.queue.push(entry);\n this.queued.set(this.queue.length);\n return;\n }\n this.startTimer(entry);\n }\n\n /** Whether the toast was in this channel, visible or queued. */\n remove(id: number): boolean {\n const active = this.toasts();\n const entry = active.find(t => t.id === id);\n const queuedAt = entry ? -1 : this.queue.findIndex(t => t.id === id);\n if (!entry && queuedAt < 0) return false;\n if (entry) {\n this.stopTimer(entry);\n this.toasts.set(active.filter(t => t !== entry));\n } else {\n this.queue.splice(queuedAt, 1);\n }\n this.promote();\n // The host goes with its last toast, and takes the pointer's hold with it.\n if (this.empty) this.held = false;\n return true;\n }\n\n clear(): void {\n for (const entry of this.toasts()) this.stopTimer(entry);\n this.toasts.set([]);\n this.queue = [];\n this.queued.set(0);\n this.held = false;\n }\n\n pause(id: number): void {\n const entry = this.find(id);\n if (entry) this.pauseTimer(entry);\n }\n\n resume(id: number): void {\n const entry = this.find(id);\n if (entry) this.startTimer(entry);\n }\n\n setHeld(held: boolean): void {\n this.held = held;\n if (!held) this.release();\n this.syncTimers();\n }\n\n /** An outlet's own cap and default duration. A lower cap drops the oldest at once. */\n configure(maxStack: number, duration: number): void {\n this.maxStack = maxStack;\n this.duration = duration;\n const active = this.toasts();\n if (!this.drops || maxStack <= 0 || active.length <= maxStack) return;\n const over = active.length - maxStack;\n for (let i = 0; i < over; i++) this.stopTimer(active[i]);\n this.toasts.set(active.slice(over));\n }\n\n /** How many outlets render the channel after this one joined. */\n mount(): number {\n this.mounts++;\n this.live = true;\n this.syncTimers();\n return this.mounts;\n }\n\n unmount(): void {\n if (--this.mounts > 0) return;\n this.live = false;\n this.held = false;\n this.release();\n this.syncTimers();\n }\n\n /** Let in what arrived during a hold, in arrival order, the oldest toasts making room. */\n private release(): void {\n if (!this.drops || this.queue.length === 0) return;\n const all = [...this.toasts(), ...this.queue];\n const over = this.maxStack > 0 ? Math.max(0, all.length - this.maxStack) : 0;\n for (let i = 0; i < over; i++) this.stopTimer(all[i]);\n this.queue = [];\n this.queued.set(0);\n this.toasts.set(all.slice(over));\n }\n\n private syncTimers(): void {\n const running = this.live && !this.held;\n for (const entry of this.toasts()) {\n if (running) this.startTimer(entry);\n else this.pauseTimer(entry);\n }\n }\n\n /** Fill free slots from the queue, FIFO; a countdown starts as its toast becomes visible. */\n private promote(): void {\n const max = this.maxStack;\n const promoted: WrToastEntry[] = [];\n while (this.queue.length > 0 && (max <= 0 || this.toasts().length + promoted.length < max)) {\n promoted.push(this.queue.shift()!);\n }\n if (promoted.length === 0) return;\n this.toasts.update(active => [...active, ...promoted]);\n this.queued.set(this.queue.length);\n for (const entry of promoted) this.startTimer(entry);\n }\n\n private startTimer(entry: WrToastEntry): void {\n // Never a second timer for one entry: a toast's own pause and the host's\n // hold both resume, and whichever comes second finds the clock running.\n if (entry.remaining <= 0 || entry.timer || this.held || !this.live) return;\n entry.startedAt = Date.now();\n entry.timer = setTimeout(() => this.expire(entry.id), entry.remaining);\n }\n\n private pauseTimer(entry: WrToastEntry): void {\n if (!entry.timer) return;\n this.stopTimer(entry);\n if (entry.startedAt) {\n entry.remaining = Math.max(0, entry.remaining - (Date.now() - entry.startedAt));\n }\n }\n\n private stopTimer(entry: WrToastEntry): void {\n if (!entry.timer) return;\n clearTimeout(entry.timer);\n entry.timer = undefined;\n }\n}\n\n/**\n * The outlet channels, by name. A channel outlives its outlet, so a toast sent\n * before the outlet is in the page waits for it.\n *\n * @internal\n */\n@Service()\nexport class WrToastChannels {\n private readonly config = inject(WR_TOAST_CONFIG);\n private readonly channels = new Map<string, WrToastChannel>();\n\n get(name: string): WrToastChannel {\n let channel = this.channels.get(name);\n if (!channel) {\n channel = new WrToastChannel(id => channel?.remove(id), true, false, this.config.maxStack, this.config.duration);\n this.channels.set(name, channel);\n }\n return channel;\n }\n\n /** Remove the toast from whichever channel holds it. */\n remove(id: number): void {\n for (const channel of this.channels.values()) {\n if (channel.remove(id)) return;\n }\n }\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { Component, ElementRef, ViewEncapsulation, computed, inject, input, output, signal } from '@angular/core';\n\nimport { wrToClassList, wrCheckStyles, type WrClassInput } from 'ngwr/utils';\n\nimport type { WrToastConfig, WrToastType } from './types';\n\n/**\n * One toast row inside the toast host. Not used directly — see\n * `WrToast.show()`.\n *\n * @internal\n */\n@Component({\n selector: 'wr-toast',\n templateUrl: './toast-item.html',\n encapsulation: ViewEncapsulation.None,\n host: {\n // See `WrAlert`: a static `title=` feeds the input AND lands on the host.\n '[attr.title]': 'null',\n class: 'wr-toast',\n '[class]': 'classes()',\n '[style.--wr-toast-duration]': 'durationMs()',\n '[style.transform]': 'swipeTransform()',\n '[style.opacity]': 'swipeOpacity()',\n '[style.transition]': 'swiping() ? \"none\" : null',\n '[attr.role]': 'liveRole()',\n '[attr.aria-live]': 'liveLevel()',\n '(mouseenter)': 'onPointer(true)',\n '(mouseleave)': 'onPointer(false)',\n '(focusin)': 'onFocusIn()',\n '(focusout)': 'onFocusOut($event)',\n '(touchstart)': 'onSwipeStart($event)',\n '(touchmove)': 'onSwipeMove($event)',\n '(touchend)': 'onSwipeEnd()',\n '(touchcancel)': 'onSwipeEnd()',\n },\n})\nexport class WrToastItem {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('toast');\n }\n\n readonly type = input<WrToastType>('info');\n readonly title = input<string | null>(null);\n readonly message = input.required<string>();\n readonly closable = input<boolean>(true);\n readonly showProgress = input<boolean>(false);\n readonly showCopy = input<boolean>(false);\n /** Text of the action button, from `WrToastOptions.action`. `null` renders none. */\n readonly actionLabel = input<string | null>(null);\n /** Extra classes from `WrToastOptions.class`, merged into the host's own. */\n readonly extraClass = input<WrClassInput>(null);\n /** Auto-dismiss duration in ms — used to scale the progress bar. `0` hides it. */\n readonly duration = input<number>(0);\n /**\n * Already resolved by the host — strings, not the config's nullable shape.\n * The item renders them and never reaches for the catalog itself.\n */\n readonly labels = input.required<{ [K in keyof WrToastConfig['labels']]: string }>();\n\n readonly dismissed = output<void>();\n readonly actionRequested = output<void>();\n readonly pauseRequested = output<void>();\n readonly resumeRequested = output<void>();\n\n /**\n * The countdown holds while the pointer rests on the toast OR focus is inside\n * it. Hover alone left a keyboard user's toast running: focus its Close button\n * and it was removed from under the focus four seconds later, which dropped\n * focus on `<body>` — WCAG 2.2.1 asks for a way to hold a time limit, and the\n * pointer was the only one. Two flags, so leaving by one road while still in\n * by the other does not resume it.\n */\n private hovered = false;\n private focused = false;\n\n /** @internal */\n protected onPointer(over: boolean): void {\n this.syncPause(() => (this.hovered = over));\n }\n\n /** @internal */\n protected onFocusIn(): void {\n this.syncPause(() => (this.focused = true));\n }\n\n /** @internal Focus moving between two buttons of this toast is not leaving it. */\n protected onFocusOut(event: FocusEvent): void {\n const next = event.relatedTarget as Node | null;\n if (next && this.elRef.nativeElement.contains(next)) return;\n this.syncPause(() => (this.focused = false));\n }\n\n private syncPause(change: () => void): void {\n const wasHeld = this.hovered || this.focused;\n change();\n const held = this.hovered || this.focused;\n if (held === wasHeld) return;\n if (held) this.pauseRequested.emit();\n else this.resumeRequested.emit();\n }\n\n /** True for ~1.5s after a successful copy; flips the icon to a check. */\n protected readonly justCopied = signal(false);\n private copyResetTimer: ReturnType<typeof setTimeout> | null = null;\n\n /**\n * `--untitled` when the toast opens on its message. The glyph and the\n * actions are centred on the FIRST line, and with no title that line is the\n * message's, whose line height is its own hook — so the stylesheet needs to\n * know which one it is reading.\n */\n protected readonly classes = computed(() =>\n wrToClassList(\n 'wr-toast',\n `wr-toast--${this.type()}`,\n this.title() ? null : 'wr-toast--untitled',\n this.extraClass()\n ).join(' ')\n );\n\n /** Escalate to `alert`/`assertive` for danger/warning toasts. */\n protected readonly liveRole = computed(() => (this.type() === 'danger' ? 'alert' : 'status'));\n protected readonly liveLevel = computed(() =>\n this.type() === 'danger' || this.type() === 'warning' ? 'assertive' : 'polite'\n );\n\n /** Inline CSS value for `--wr-toast-duration`. */\n protected readonly durationMs = computed(() => `${this.duration()}ms`);\n\n protected readonly progressVisible = computed(() => this.showProgress() && this.duration() > 0);\n\n /**\n * What the copy button puts on the clipboard: the message, or the title when\n * the toast has nothing else. A title-only toast copied an empty string, and\n * still flipped the glyph to the \"Copied\" check.\n */\n private readonly copyText = computed(() => (this.message() !== '' ? this.message() : (this.title() ?? '')));\n\n protected async onCopy(): Promise<void> {\n try {\n await navigator.clipboard.writeText(this.copyText());\n this.justCopied.set(true);\n if (this.copyResetTimer) clearTimeout(this.copyResetTimer);\n this.copyResetTimer = setTimeout(() => this.justCopied.set(false), 1500);\n } catch {\n // Clipboard unavailable (insecure context / permission denied) — silent.\n }\n }\n\n // Swipe-sideways-to-dismiss. The toast follows the finger and fades; releasing\n // past 40% of its width emits `dismissed`, otherwise it snaps back.\n private readonly elRef = inject<ElementRef<HTMLElement>>(ElementRef);\n private swipeStartX = 0;\n private swipeWidth = 0;\n protected readonly swipeX = signal(0);\n protected readonly swiping = signal(false);\n\n protected readonly swipeTransform = computed(() => (this.swipeX() === 0 ? null : `translateX(${this.swipeX()}px)`));\n protected readonly swipeOpacity = computed(() => {\n const dist = Math.abs(this.swipeX());\n return dist === 0 ? null : Math.max(0, 1 - dist / (this.swipeWidth || 1));\n });\n\n protected onSwipeStart(event: TouchEvent): void {\n if (!this.closable()) return;\n const touch = event.touches[0];\n if (!touch) return;\n this.swipeStartX = touch.clientX;\n this.swipeWidth = this.elRef.nativeElement.offsetWidth;\n this.swiping.set(true);\n }\n\n protected onSwipeMove(event: TouchEvent): void {\n if (!this.swiping()) return;\n const touch = event.touches[0];\n if (!touch) return;\n this.swipeX.set(touch.clientX - this.swipeStartX);\n }\n\n protected onSwipeEnd(): void {\n if (!this.swiping()) return;\n this.swiping.set(false);\n if (Math.abs(this.swipeX()) > (this.swipeWidth || 0) * 0.4) {\n this.dismissed.emit();\n } else {\n this.swipeX.set(0);\n }\n }\n}\n","<!-- A glyph per type, and this is the one channel the toast had none of. Its\n four types differed by `--wr-toast-accent` alone — a 3px inline-start\n border, in four colours that sit within 1.06:1 of each other in relative\n luminance, so `success` and `danger` were the same 3px line to a reader\n who cannot separate hue. The shapes are the ones `wr-alert` and\n `wr-result` already use for the same four meanings: a check in a broken\n circle, a triangle, an octagon, an `i`. Three components agreeing is worth\n more than three components each being locally reasonable.\n\n `aria-hidden`, because the type is already announced: the host takes\n `role=\"alert\"` for danger and `role=\"status\"` otherwise. -->\n<svg\n class=\"wr-toast__icon wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n>\n @switch (type()) {\n @case ('success') {\n <path d=\"M21.801 10A10 10 0 1 1 17 3.335\" />\n <path d=\"m9 11 3 3L22 4\" />\n }\n @case ('warning') {\n <path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\" />\n <path d=\"M12 9v4\" />\n <path d=\"M12 17h.01\" />\n }\n @case ('danger') {\n <path\n d=\"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z\"\n />\n <path d=\"M12 8v4\" />\n <path d=\"M12 16h.01\" />\n }\n @default {\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M12 16v-4\" />\n <path d=\"M12 8h.01\" />\n }\n }\n</svg>\n\n<!-- Each part renders only when it has text. A title-only toast is shown with\n `message: ''`, and the empty `<p>` it used to leave behind kept the title's\n bottom margin under it: 4px of dead space that made the card taller below\n its one line than above it. -->\n<div class=\"wr-toast__body\">\n @if (title(); as text) {\n <p class=\"wr-toast__title\">{{ text }}</p>\n }\n @if (message(); as text) {\n <p class=\"wr-toast__message\">{{ text }}</p>\n }\n</div>\n\n<div class=\"wr-toast__actions\">\n @if (actionLabel(); as label) {\n <button type=\"button\" class=\"wr-toast__action wr-toast__action--run\" (click)=\"actionRequested.emit()\">\n {{ label }}\n </button>\n }\n\n @if (showCopy()) {\n <button\n type=\"button\"\n class=\"wr-toast__action wr-toast__action--copy\"\n [attr.aria-label]=\"justCopied() ? labels().copied : labels().copy\"\n [title]=\"justCopied() ? labels().copied : labels().copy\"\n (click)=\"onCopy()\"\n >\n @if (justCopied()) {\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M20 6 9 17l-5-5\" />\n </svg>\n } @else {\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\" />\n <path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\" />\n </svg>\n }\n </button>\n }\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"wr-toast__action wr-toast__action--close\"\n [attr.aria-label]=\"labels().close\"\n [title]=\"labels().close\"\n (click)=\"dismissed.emit()\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </button>\n }\n</div>\n\n@if (progressVisible()) {\n <span class=\"wr-toast__progress\" aria-hidden=\"true\"></span>\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { FocusMonitor } from '@angular/cdk/a11y';\nimport {\n Component,\n DestroyRef,\n ElementRef,\n Injector,\n ViewEncapsulation,\n afterNextRender,\n computed,\n effect,\n inject,\n input,\n output,\n signal,\n viewChildren,\n} from '@angular/core';\n\nimport { useI18nText } from 'ngwr/i18n';\nimport { wrCheckStyles, wrRestoreFocus } from 'ngwr/utils';\n\nimport { WrToastItem } from './toast-item';\nimport type { WrToastConfig, WrToastMode, WrToastOptions, WrToastPosition } from './types';\n\n/** ms before the pointer or focus leaving actually collapses the stack. Buffers\n * the cursor briefly leaving the host as toasts reflow underneath it, and focus\n * hopping between two buttons inside the host. */\nconst COLLAPSE_DELAY_MS = 120;\n\n/** Send focus back to `origin` when it is still in the page. */\nfunction returnFocus(origin: HTMLElement | null, monitor: FocusMonitor): void {\n if (origin?.isConnected) wrRestoreFocus(origin, monitor);\n}\n\n/**\n * Whether `el`, the focused element, holds focus the keyboard way — the focus a\n * removal would strand.\n *\n * A pointer press on Close focuses the button too, in Chromium, and handing\n * THAT focus on is a regression rather than a fix: focus inside the region\n * holds every countdown, so after one click the rest of the stack stayed up\n * until the reader clicked somewhere else — measured, two toasts still on\n * screen six seconds after the pointer left. Left alone, the removed button's\n * `focusout` releases the hold, as it always did.\n */\nfunction hasKeyboardFocus(el: Element | null | undefined): boolean {\n if (!el) return false;\n try {\n return el.matches(':focus-visible');\n } catch {\n // An engine without the pseudo-class: err on the side of not losing focus.\n return true;\n }\n}\n\n/** Active entry pushed by the service — adds the bookkeeping fields the host renders. */\ntype ActiveToast = WrToastOptions & {\n readonly id: number;\n readonly resolvedDuration: number;\n};\n\n/**\n * Internal host that lives inside the toast overlay and renders the\n * active stack. Owned by `WrToast`.\n *\n * @internal\n */\n@Component({\n selector: 'wr-toast-host',\n templateUrl: './toast-host.html',\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'wr-toast-host',\n '[class]': 'classes()',\n '[style.--wr-toast-front-height]': 'frontHeight()',\n role: 'region',\n '[attr.aria-label]': 'regionLabel()',\n '(mouseenter)': 'onMouseEnter()',\n '(mouseleave)': 'onMouseLeave()',\n '(focusin)': 'onFocusIn($event)',\n '(focusout)': 'onFocusOut($event)',\n },\n imports: [WrToastItem],\n})\nexport class WrToastHost {\n readonly position = input<WrToastPosition>('top-end');\n readonly config = input.required<WrToastConfig>();\n /** Layout mode. @default 'stack' (Sonner-style; hover to fan out) */\n readonly mode = input<WrToastMode>('stack');\n\n /**\n * Every string this host and its items render, resolved through the catalog.\n *\n * The config value WINS when the consumer sets one, and its default is now\n * `null` — until v11 those defaults were English literals, so the four\n * `toast.*` keys in the shipped catalogs were dead and a Russian app got an\n * English close button. `region` had no key at all: the live region's name\n * was the literal `'Notifications'` in a host binding.\n */\n protected readonly regionLabel = useI18nText(signal(null), 'toast.region', 'Notifications');\n\n private readonly closeLabel = useI18nText(\n computed(() => this.config().labels.close),\n 'toast.close',\n 'Close'\n );\n private readonly copyLabel = useI18nText(\n computed(() => this.config().labels.copy),\n 'toast.copy',\n 'Copy'\n );\n private readonly copiedLabel = useI18nText(\n computed(() => this.config().labels.copied),\n 'toast.copied',\n 'Copied'\n );\n protected readonly closeAllLabel = useI18nText(\n computed(() => this.config().labels.closeAll),\n 'toast.closeAll',\n 'Close all'\n );\n\n /** What `wr-toast-item` receives — resolved, so the item stays presentational. */\n protected readonly labels = computed(() => ({\n close: this.closeLabel(),\n copy: this.copyLabel(),\n copied: this.copiedLabel(),\n closeAll: this.closeAllLabel(),\n }));\n\n /** @internal — hovering or focusing the stack toggles this in stack mode. */\n protected readonly expanded = signal(false);\n\n /** Pointer is over the host. */\n private readonly hovered = signal(false);\n /** Focus is somewhere inside the host — keyboard equivalent of hovering, and\n * the only way a keyboard user can reach the \"Close all\" button. */\n private readonly focusWithin = signal(false);\n\n private readonly focusMonitor = inject(FocusMonitor);\n private readonly destroyRef = inject(DestroyRef);\n private readonly elRef = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly injector = inject(Injector);\n private collapseTimer: ReturnType<typeof setTimeout> | null = null;\n /** The last value `holdChange` emitted. */\n private held = false;\n\n /** The rendered toasts, in `toasts()` order. */\n private readonly items = viewChildren(WrToastItem, { read: ElementRef });\n\n /**\n * Where focus was before it entered the region, which is where it goes back\n * to when the last toast is closed from inside. Recorded off the `focusin`\n * that crosses INTO the host; a hop between two toasts is not an entry.\n */\n private focusOrigin: HTMLElement | null = null;\n /** True while this host moves focus itself, so the move is not read as an entry. */\n private movingFocus = false;\n\n /**\n * The front toast's height, which the cards behind it take while the stack\n * is collapsed. Each card used to keep its own, so a short front toast — a\n * title alone, a one-line message — left a taller card hanging below it, and\n * that card's last line read through underneath. `null` until measured, and\n * on the server, where the stylesheet falls back to each card's own height.\n */\n protected readonly frontHeight = signal<string | null>(null);\n\n private readonly frontObserver =\n typeof ResizeObserver === 'undefined'\n ? null\n : new ResizeObserver(entries => {\n // `offsetHeight`, the layout box, which no transform reaches: the\n // collapsed stack scales and offsets its cards with them.\n const front = entries[entries.length - 1]?.target as HTMLElement | undefined;\n this.frontHeight.set(front ? `${front.offsetHeight}px` : null);\n });\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('toast');\n this.destroyRef.onDestroy(() => {\n this.clearCollapseTimer();\n this.frontObserver?.disconnect();\n });\n\n // The front card is the LAST one rendered, whichever way the stack grows.\n // Follow it as toasts come and go; the observer reports its height on the\n // first observation and again whenever its text rewraps.\n effect(() => {\n const items = this.items();\n const front = items[items.length - 1]?.nativeElement as HTMLElement | undefined;\n if (!this.frontObserver) return;\n this.frontObserver.disconnect();\n if (front) this.frontObserver.observe(front);\n else this.frontHeight.set(null);\n });\n }\n\n /** @internal */\n protected onMouseEnter(): void {\n this.hovered.set(true);\n this.syncExpanded();\n }\n\n /** @internal */\n protected onMouseLeave(): void {\n this.hovered.set(false);\n this.syncExpanded();\n }\n\n /** @internal */\n protected onFocusIn(event: FocusEvent): void {\n if (!this.focusWithin() && !this.movingFocus) {\n const from = event.relatedTarget;\n this.focusOrigin = from instanceof HTMLElement && !this.elRef.nativeElement.contains(from) ? from : null;\n }\n this.focusWithin.set(true);\n this.syncExpanded();\n }\n\n /**\n * A toast asked to go — its Close button, or a swipe.\n *\n * When keyboard focus was inside it, the removal would drop focus on\n * `<body>`, so it is handed on: to the Close button of the toast that takes\n * its place (the next one in the stack, a promoted one included), else to the\n * previous one. When no toast is left, focus goes back to where it was before\n * it entered the region. A toast closed while focus was elsewhere, or with a\n * pointer, moves nothing — see `hasKeyboardFocus`.\n *\n * @internal\n */\n protected onItemDismissed(id: number, index: number): void {\n this.removeItem(index, () => this.dismissed.emit(id));\n }\n\n /** The action button closes its toast too, so focus moves the same way. @internal */\n protected onItemAction(id: number, index: number): void {\n this.removeItem(index, () => this.actionRequested.emit(id));\n }\n\n private removeItem(index: number, remove: () => void): void {\n const item = this.items()[index]?.nativeElement as HTMLElement | undefined;\n const active = item?.ownerDocument.activeElement;\n const hadFocus = !!item?.contains(active ?? null) && hasKeyboardFocus(active);\n const origin = this.focusOrigin;\n // Synchronous: the service removes the toast here, and disposes this host\n // when it was the last one.\n remove();\n if (!hadFocus) return;\n if (this.toasts().length === 0) {\n returnFocus(origin, this.focusMonitor);\n return;\n }\n afterNextRender(() => this.focusNeighbour(index), { injector: this.injector });\n }\n\n /** \"Close all\" from the keyboard: nothing is left, so focus goes back. @internal */\n protected onCloseAll(): void {\n const host = this.elRef.nativeElement;\n const active = host.ownerDocument.activeElement;\n const hadFocus = host.contains(active) && hasKeyboardFocus(active);\n const origin = this.focusOrigin;\n this.dismissAllRequested.emit();\n if (hadFocus) returnFocus(origin, this.focusMonitor);\n }\n\n /**\n * Focus the Close button nearest to where the removed toast stood: the one\n * now at its index, then forward, then back. A toast with no Close button\n * (`closable: false`) is passed over; with none anywhere, \"Close all\" if\n * it is showing, else the origin.\n */\n private focusNeighbour(index: number): void {\n const items = this.items().map(ref => ref.nativeElement as HTMLElement);\n const order = [...items.slice(index), ...items.slice(0, index).reverse()];\n const close = order\n .map(el => el.querySelector<HTMLElement>('.wr-toast__action--close'))\n .find((el): el is HTMLElement => !!el);\n const target = close ?? this.elRef.nativeElement.querySelector<HTMLElement>('.wr-toast-host__close-all');\n if (!target) {\n returnFocus(this.focusOrigin, this.focusMonitor);\n return;\n }\n this.movingFocus = true;\n try {\n target.focus();\n } finally {\n this.movingFocus = false;\n }\n }\n\n /** @internal Focus moving between two buttons inside the host is not leaving it. */\n protected onFocusOut(event: FocusEvent): void {\n const next = event.relatedTarget as Node | null;\n if (next && this.elRef.nativeElement.contains(next)) return;\n this.focusWithin.set(false);\n this.syncExpanded();\n }\n\n /** Expand immediately while the pointer or focus is inside, and delay the\n * collapse so a cursor briefly slipping off the host during a layout reflow\n * — or focus moving between two buttons inside it — doesn't cause a flicker. */\n private syncExpanded(): void {\n this.syncHold();\n if (this.hovered() || this.focusWithin()) {\n this.clearCollapseTimer();\n this.expanded.set(true);\n return;\n }\n if (this.collapseTimer !== null) return;\n this.collapseTimer = setTimeout(() => {\n this.collapseTimer = null;\n if (!this.hovered() && !this.focusWithin()) this.expanded.set(false);\n }, COLLAPSE_DELAY_MS);\n }\n\n /**\n * Hold EVERY countdown while the reader is in the region, not only the toast\n * under the pointer. Per-toast pausing let the others expire around the one\n * being read: in an expanded stack the pointer rested on #2 while #1 and #3\n * ran out, the stack collapsed, and #2 jumped 140px up from under a pointer\n * that never moved — and a gutter between toasts, which keeps the stack\n * expanded, paused nothing at all. Released at once on leaving, with no\n * collapse delay, so the timers and the progress bars (paused by the same\n * `:hover` / `:focus-within` in the stylesheet) agree.\n */\n private syncHold(): void {\n const held = this.hovered() || this.focusWithin();\n if (held === this.held) return;\n this.held = held;\n this.holdChange.emit(held);\n }\n\n private clearCollapseTimer(): void {\n if (this.collapseTimer !== null) {\n clearTimeout(this.collapseTimer);\n this.collapseTimer = null;\n }\n }\n\n /** @internal — pushed by the service: the rendered (capped) stack. */\n readonly toasts = signal<readonly ActiveToast[]>([]);\n\n /** @internal — pushed by the service: count still queued behind the cap. */\n readonly queued = signal(0);\n\n /** Total outstanding toasts (visible + queued) — what \"Close all\" clears. */\n protected readonly totalCount = computed(() => this.toasts().length + this.queued());\n\n /** @internal — service listens to update its internal state. */\n readonly dismissed = output<number>();\n readonly actionRequested = output<number>();\n readonly pauseRequested = output<number>();\n readonly resumeRequested = output<number>();\n /** @internal — `true` while the pointer or focus is inside the region. */\n readonly holdChange = output<boolean>();\n readonly dismissAllRequested = output<void>();\n\n protected readonly classes = computed(() => {\n const parts = ['wr-toast-host', `wr-toast-host--${this.position()}`, `wr-toast-host--${this.mode()}`];\n if (this.mode() === 'stack' && this.expanded()) parts.push('wr-toast-host--expanded');\n return parts.join(' ');\n });\n\n /** Distance from the front of the stack (0 = newest / fully visible). */\n protected stackIndex(i: number): number {\n return this.toasts().length - 1 - i;\n }\n\n protected readonly closeAllVisible = computed(() => {\n const cfg = this.config();\n // In stack mode the toasts cascade absolutely while collapsed, which\n // makes the close-all button jump between layout positions on hover\n // (button moves → cursor leaves → host collapses → cycle = blink).\n // Only show it once the stack is expanded — by hover OR by focus entering\n // it, so it stays reachable from the keyboard — or always in list mode.\n if (this.mode() === 'stack' && !this.expanded()) return false;\n return cfg.showCloseAll && this.toasts().length >= cfg.closeAllThreshold;\n });\n\n protected showProgressFor(t: WrToastOptions): boolean {\n return t.showProgress ?? this.config().showProgress;\n }\n\n protected showCopyFor(t: WrToastOptions): boolean {\n return t.showCopy ?? this.config().showCopy;\n }\n}\n","@if (closeAllVisible()) {\n <button type=\"button\" class=\"wr-toast-host__close-all\" (click)=\"onCloseAll()\">\n {{ closeAllLabel() }} ({{ totalCount() }})\n </button>\n}\n\n@for (toast of toasts(); track toast.id) {\n <wr-toast\n [style.--wr-toast-stack-index]=\"stackIndex($index)\"\n [type]=\"toast.type ?? 'info'\"\n [title]=\"toast.title ?? null\"\n [message]=\"toast.message\"\n [closable]=\"toast.closable ?? true\"\n [showProgress]=\"showProgressFor(toast)\"\n [showCopy]=\"showCopyFor(toast)\"\n [extraClass]=\"toast.class ?? null\"\n [duration]=\"toast.resolvedDuration\"\n [labels]=\"labels()\"\n [actionLabel]=\"toast.action?.label ?? null\"\n (dismissed)=\"onItemDismissed(toast.id, $index)\"\n (actionRequested)=\"onItemAction(toast.id, $index)\"\n (pauseRequested)=\"pauseRequested.emit(toast.id)\"\n (resumeRequested)=\"resumeRequested.emit(toast.id)\"\n />\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport type { WrToastOptions } from './types';\n\n/**\n * Handle returned by `WrToast.show()`. Call `dismiss()` to remove\n * the toast early. Inspect `options` to see what the caller requested.\n */\nexport class WrToastRef {\n constructor(\n public readonly id: number,\n public readonly options: WrToastOptions,\n private readonly onDismiss: (id: number) => void\n ) {}\n\n /** Remove this toast from the stack. */\n dismiss(): void {\n this.onDismiss(this.id);\n }\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { Directionality } from '@angular/cdk/bidi';\nimport { type OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { type ComponentRef, Injector, Service, inject } from '@angular/core';\n\nimport { WR_OVERLAY, WrOverlayOrder, wrFollowDirection } from 'ngwr/overlay';\n\nimport { WrToastChannel, WrToastChannels, type WrToastEntry } from '../toast-channel';\nimport { WrToastHost } from '../toast-host';\nimport { WrToastRef } from '../toast-ref';\nimport { WR_TOAST_CONFIG } from '../tokens';\nimport type { WrToastOptions, WrToastPosition } from '../types';\n\n/**\n * Opens toast notifications in a single shared overlay, or in the page\n * through a `<wr-toast-outlet>` when `show()` names one.\n *\n * Global defaults come from {@link WR_TOAST_CONFIG}; register\n * `provideWr(withToast(...))` once at bootstrap to customise. Each\n * `show()` call accepts per-toast overrides via {@link WrToastOptions}.\n *\n * @example\n * ```ts\n * const toast = inject(WrToast);\n *\n * toast.show({ type: 'success', title: 'Saved', message: 'Profile updated.' });\n * toast.show({ type: 'danger', message: 'Network error', duration: 0 });\n * toast.show({ message: 'Permalink copied', position: 'bottom', showCopy: true });\n * toast.show({ message: 'Item deleted', action: { label: 'Undo', run: () => restore() } });\n * toast.show({ type: 'danger', message: 'Door forced', outlet: 'alarms' });\n * ```\n *\n * @see https://ngwr.dev/reference/components/toast\n */\n@Service()\nexport class WrToast {\n private readonly overlay = inject(WR_OVERLAY);\n private readonly order = inject(WrOverlayOrder);\n private readonly config = inject(WR_TOAST_CONFIG);\n private readonly injector = inject(Injector);\n private readonly dir = inject(Directionality, { optional: true });\n\n private overlayRef: OverlayRef | null = null;\n private hostRef: ComponentRef<WrToastHost> | null = null;\n /** Watches the overlay container for overlays opened after the host. */\n private containerObserver: MutationObserver | null = null;\n private currentPosition: WrToastPosition = this.config.position;\n private currentMode: 'stack' | 'list' = this.config.mode;\n private nextId = 1;\n /** The stack in the overlay. Past `maxStack` the newest waits, so nothing is\n * ever silently dropped. */\n private readonly global = new WrToastChannel(\n id => this.dismiss(id),\n false,\n true,\n this.config.maxStack,\n this.config.duration\n );\n private readonly outlets = inject(WrToastChannels);\n\n /** Open a toast. Returns a handle you can `dismiss()` early. */\n show(options: WrToastOptions): WrToastRef {\n const id = this.nextId++;\n const ref = new WrToastRef(id, options, toastId => this.dismiss(toastId));\n\n if (options.outlet != null) {\n const channel = this.outlets.get(options.outlet);\n const resolvedDuration = options.duration ?? channel.duration;\n channel.add({ ...options, id, resolvedDuration, remaining: resolvedDuration });\n return ref;\n }\n\n // `currentPosition` before the injected default, so `setPosition()` holds\n // across a host that has been disposed. `dismiss()` and `dismissAll()`\n // tear the host down, so \"no host alive\" is the state before the first\n // toast of a run and after the last one goes — exactly where the stack\n // used to snap back to the configured corner with nothing to say so.\n // `setMode` already persisted this way, and its JSDoc says it does.\n // `currentPosition` is seeded from the config, so the default still wins\n // when nobody has called `setPosition`.\n const resolvedPosition = options.position ?? this.currentPosition;\n const resolvedDuration = options.duration ?? this.config.duration;\n\n this.ensureHost(resolvedPosition);\n // A toast raised now belongs above everything already on screen, and the host\n // it goes into may be much older than the dialog it has to clear. See\n // `raiseHost`.\n this.raiseHost();\n\n const entry: WrToastEntry = { ...options, id, resolvedDuration, remaining: resolvedDuration };\n this.global.add(entry);\n this.pushToHost();\n\n return ref;\n }\n\n /** Dismiss a single toast by id, in whichever stack holds it. */\n dismiss(id: number): void {\n if (!this.global.remove(id)) this.outlets.remove(id);\n this.pushToHost();\n if (this.global.empty) this.disposeHost();\n }\n\n /**\n * Closes first: a second press finds no entry, so `run` cannot fire twice,\n * and a `run` that throws still leaves the toast closed.\n */\n private runAction(id: number): void {\n const action = this.global.find(id)?.action;\n if (!action) return;\n this.dismiss(id);\n action.run();\n }\n\n /**\n * Dismiss every toast of one stack: the global one, or the named outlet's.\n * The global \"Close all\" button calls it with no name, so it leaves the\n * outlets alone.\n */\n dismissAll(outlet?: string): void {\n if (outlet != null) {\n this.outlets.get(outlet).clear();\n return;\n }\n this.global.clear();\n this.disposeHost();\n }\n\n /** Change the corner the stack opens in. Affects future toasts. */\n setPosition(position: WrToastPosition): void {\n this.currentPosition = position;\n if (this.hostRef) this.hostRef.setInput('position', position);\n }\n\n /** Switch the layout mode at runtime. Persists across host re-creation. */\n setMode(mode: 'stack' | 'list'): void {\n this.currentMode = mode;\n if (this.hostRef) this.hostRef.setInput('mode', mode);\n }\n\n // Host plumbing\n\n private ensureHost(position: WrToastPosition): void {\n if (this.overlayRef) {\n if (position !== this.currentPosition) this.setPosition(position);\n return;\n }\n\n this.currentPosition = position;\n\n this.overlayRef = this.overlay.create({\n positionStrategy: this.overlay.position().global(),\n scrollStrategy: this.overlay.scrollStrategies.noop(),\n hasBackdrop: false,\n panelClass: ['wr-toast-overlay'],\n });\n\n // The corner is `inset-inline-start` / `-end` on the host component, so the\n // side the stack sits on is decided entirely by the `dir` the CDK wrote at\n // create. This host outlives every individual toast — it is torn down only\n // when the last one leaves — so without this a stack raised before a flip\n // stays on the reader's old side for the rest of the run. The position\n // strategy is bare, so nothing else moves. Torn down with the ref by\n // `disposeHost()`, and the next `ensureHost()` installs a new follower.\n wrFollowDirection(this.overlayRef, this.dir, this.injector);\n\n const portal = new ComponentPortal(WrToastHost);\n this.hostRef = this.overlayRef.attach(portal);\n this.hostRef.setInput('position', position);\n this.hostRef.setInput('mode', this.currentMode);\n this.hostRef.setInput('config', this.config);\n\n const inst = this.hostRef.instance;\n inst.dismissed.subscribe(id => this.dismiss(id));\n inst.actionRequested.subscribe(id => this.runAction(id));\n inst.dismissAllRequested.subscribe(() => this.dismissAll());\n inst.pauseRequested.subscribe(id => this.global.pause(id));\n inst.resumeRequested.subscribe(id => this.global.resume(id));\n inst.holdChange.subscribe(held => this.global.setHeld(held));\n\n this.watchForNewerOverlays();\n }\n\n /**\n * Put the host back on top of the browser's top layer.\n *\n * The stacking rule here is not a z-index and cannot be fixed with one. CDK 22\n * promotes every overlay by calling `showPopover()` on its host element, and\n * the top layer is ordered by the MOMENT of promotion — a popover shown later\n * paints over one shown earlier no matter what either element's z-index, DOM\n * order or containing block says. The toast host is created once and kept\n * alive until the last toast leaves, so its place in that order is frozen at\n * whenever the first toast of the run appeared. Every dialog and drawer opened\n * after that sits above it.\n *\n * The symptom was as bad as the mechanism is quiet: a toast raised from inside\n * an open dialog rendered UNDER the dialog's backdrop, dimmed by it and\n * hit-tested as it — so the close button was unreachable and clicking where it\n * appeared closed the dialog instead. Nothing threw, and a toast with\n * `duration: 0` never went away on its own.\n *\n * Hiding and re-showing moves the host to the end of the top layer. Both calls\n * happen in one task, so there is no frame in which the host is `display:\n * none` and nothing re-runs a toast's enter animation.\n *\n * Skipped while focus is inside the host: Chromium keeps focus across this\n * pair, but the hide-popover algorithm is specified to restore focus to the\n * previously focused element, and a host the user is already tabbing through\n * is by definition reachable. In practice the two never coincide — a modal\n * traps focus, so focus inside the host means nothing is above it to escape.\n *\n * `WrOverlayOrder` does the move, because \"on top\" has an exception: an\n * overlay opened with `toasts: 'below'` stays over the host, so it leaves the\n * host alone where it already sits under one and promotes those overlays\n * again where it does not.\n */\n private raiseHost(): void {\n const host = this.overlayRef?.hostElement;\n // `usePopover` is off when the platform has no popover support (and on the\n // server), and then there is no top layer to be at the wrong end of.\n if (!host?.isConnected || !host.hasAttribute('popover')) return;\n if (host.contains(host.ownerDocument.activeElement)) return;\n this.order.raiseToasts(host);\n }\n\n /**\n * Re-raise the host whenever another overlay joins the container.\n *\n * `show()` covers the reported order (toast raised while a dialog is up). This\n * covers the mirror image, which is the same defect seen from the other side:\n * a toast already on screen when the dialog opens is left under it, unclickable\n * for the rest of its duration, and no further `show()` is coming to fix it.\n *\n * Observing the host's own parent rather than a container resolved from the\n * injector keeps this correct even for an app that rebinds `WR_OVERLAY` — the\n * host is in whichever container it was actually appended to. Re-showing a\n * popover moves nothing in the DOM, so this cannot re-trigger itself.\n */\n private watchForNewerOverlays(): void {\n const parent = this.overlayRef?.hostElement.parentElement;\n if (!parent || typeof MutationObserver === 'undefined') return;\n this.containerObserver = new MutationObserver(() => this.raiseHost());\n this.containerObserver.observe(parent, { childList: true });\n }\n\n private pushToHost(): void {\n this.hostRef?.instance.toasts.set(this.global.toasts());\n this.hostRef?.instance.queued.set(this.global.queued());\n }\n\n private disposeHost(): void {\n // The next host starts with nobody in it.\n this.global.setHeld(false);\n this.containerObserver?.disconnect();\n this.containerObserver = null;\n this.order.dropToasts();\n if (this.overlayRef) {\n this.overlayRef.dispose();\n this.overlayRef = null;\n this.hostRef = null;\n }\n }\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { Component, ViewEncapsulation, computed, effect, inject, input, untracked, viewChild } from '@angular/core';\n\nimport { wrCheckStyles } from 'ngwr/utils';\n\nimport { WrToastChannels } from './toast-channel';\nimport { WrToastHost } from './toast-host';\nimport { WR_TOAST_CONFIG } from './tokens';\nimport type { WrToastConfig, WrToastMode, WrToastPosition } from './types';\n\n/**\n * Renders a toast stack inside the page instead of the browser's top layer.\n *\n * `WrToast.show({ outlet: 'alarms' })` sends a toast to the outlet of that\n * name. Each name is a stack of its own: its cap, its countdown hold, its\n * \"Close all\". The global stack is not affected.\n *\n * The outlet fills its nearest positioned ancestor, so give the container\n * `position: relative`. It lets clicks through wherever no toast is, and it\n * carries no `z-index`: order it against its siblings in your own CSS.\n *\n * Past `maxStack` the OLDEST toast is dropped, where the global stack queues\n * the newest, so a busy stream stays at `maxStack` toasts and timers. While\n * the pointer or focus is in the stack nothing shown is dropped: arrivals\n * wait, at most `maxStack` of them, and enter when it leaves. A toast\n * sent while no outlet of the name is in the page waits, without counting\n * down, and shows when the outlet appears.\n *\n * @example\n * ```html\n * <div class=\"map\" style=\"position: relative\">\n * <wr-toast-outlet name=\"alarms\" position=\"top\" [maxStack]=\"10\" />\n * </div>\n * ```\n *\n * ```ts\n * toast.show({ type: 'danger', message: 'Door forced', outlet: 'alarms' });\n * toast.dismissAll('alarms');\n * ```\n *\n * @see https://ngwr.dev/reference/components/toast\n */\n@Component({\n selector: 'wr-toast-outlet',\n templateUrl: './toast-outlet.html',\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'wr-toast-outlet',\n '[attr.name]': 'name()',\n },\n imports: [WrToastHost],\n})\nexport class WrToastOutlet {\n private readonly config = inject(WR_TOAST_CONFIG);\n private readonly channels = inject(WrToastChannels);\n\n /** The channel this outlet renders: the `outlet` of `WrToast.show()`. */\n readonly name = input.required<string>();\n /** Where the stack sits inside the outlet's box. @default the `withToast()` position */\n readonly position = input<WrToastPosition>(this.config.position);\n /** Layout for several toasts: a cascade or a column. @default the `withToast()` mode */\n readonly mode = input<WrToastMode>(this.config.mode);\n /** Auto-dismiss in ms for a toast that sets none; `0` disables. @default the `withToast()` duration */\n readonly duration = input<number>(this.config.duration);\n /** Render the countdown bar. @default the `withToast()` value */\n readonly showProgress = input<boolean>(this.config.showProgress);\n /** Render a copy button on each toast. @default the `withToast()` value */\n readonly showCopy = input<boolean>(this.config.showCopy);\n /** Render \"Close all\" once the stack reaches the threshold. @default the `withToast()` value */\n readonly showCloseAll = input<boolean>(this.config.showCloseAll);\n /** Minimum stack size before \"Close all\" appears. @default the `withToast()` value */\n readonly closeAllThreshold = input<number>(this.config.closeAllThreshold);\n /**\n * Maximum toasts in the stack; `0` is unlimited. Past it the oldest toast is\n * dropped to make room, once the pointer and focus are out of the stack.\n *\n * @default the `withToast()` value\n */\n readonly maxStack = input<number>(this.config.maxStack);\n\n protected readonly channel = computed(() => this.channels.get(this.name()));\n\n /** The app-wide config with this outlet's own inputs over it. */\n protected readonly resolved = computed<WrToastConfig>(() => ({\n ...this.config,\n position: this.position(),\n mode: this.mode(),\n duration: this.duration(),\n showProgress: this.showProgress(),\n showCopy: this.showCopy(),\n showCloseAll: this.showCloseAll(),\n closeAllThreshold: this.closeAllThreshold(),\n maxStack: this.maxStack(),\n }));\n\n private readonly host = viewChild(WrToastHost);\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('toast');\n\n effect(() => this.channel().configure(this.maxStack(), this.duration()));\n\n effect(onCleanup => {\n const channel = this.channel();\n // `mount()` reads the stack; tracked, every toast would remount the\n // channel and drop its hold.\n if (untracked(() => channel.mount()) > 1 && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n // eslint-disable-next-line no-console -- dev-mode misconfiguration diagnostic\n console.warn(\n `[NGWR] Two <wr-toast-outlet> share the name \"${this.name()}\", so both render the same toasts. ` +\n 'Give each outlet its own name.'\n );\n }\n onCleanup(() => channel.unmount());\n });\n\n effect(() => this.push());\n }\n\n /** @internal */\n protected onDismissed(id: number): void {\n this.channel().remove(id);\n this.push();\n }\n\n /** @internal Closes first, like the global stack: `run` cannot fire twice. */\n protected onAction(id: number): void {\n const channel = this.channel();\n const action = channel.find(id)?.action;\n if (!action) return;\n channel.remove(id);\n this.push();\n action.run();\n }\n\n /** @internal */\n protected onDismissAll(): void {\n this.channel().clear();\n this.push();\n }\n\n /**\n * The host reads its list right after it asks for a removal, to decide where\n * focus goes, so a removal it asked for is pushed at once and not on the next\n * render.\n */\n private push(): void {\n this.host()?.toasts.set(this.channel().toasts());\n }\n}\n","@if (channel().toasts().length > 0) {\n <wr-toast-host\n [position]=\"position()\"\n [mode]=\"mode()\"\n [config]=\"resolved()\"\n (dismissed)=\"onDismissed($event)\"\n (actionRequested)=\"onAction($event)\"\n (dismissAllRequested)=\"onDismissAll()\"\n (pauseRequested)=\"channel().pause($event)\"\n (resumeRequested)=\"channel().resume($event)\"\n (holdChange)=\"channel().setHeld($event)\"\n />\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { ApplicationRef, ENVIRONMENT_INITIALIZER, EnvironmentInjector, inject, isDevMode } from '@angular/core';\n\nimport { type WrFeature, wrFeature } from 'ngwr/utils';\n\nimport { DEFAULT_WR_TOAST_CONFIG } from './default-toast-config';\nimport { WR_TOAST_CONFIG } from './tokens';\nimport type { WrToastConfig } from './types';\n\n/**\n * Registers a global {@link WrToastConfig} for {@link WrToast}, as a feature of\n * `provideWr()`. Any field you omit falls back to {@link DEFAULT_WR_TOAST_CONFIG};\n * the `labels` sub-object is merged separately so you can override a single\n * string at a time (useful for i18n).\n *\n * @example\n * ```ts\n * import { provideWr } from 'ngwr';\n * import { withToast } from 'ngwr/toast';\n *\n * bootstrapApplication(AppComponent, {\n * providers: [\n * provideWr(\n * withToast({\n * position: 'bottom-end',\n * showCopy: true,\n * maxStack: 3,\n * labels: { close: 'Закрыть' },\n * }),\n * ),\n * ],\n * });\n * ```\n *\n * **Bootstrap only, unlike the icon registry.** {@link WrToast} is\n * root-provided, so it reads this token once from the ROOT injector — a\n * `provideWr(withToast())` in a route's `providers` is never seen, and used to\n * be ignored in silence. It now warns in dev mode instead. By contrast\n * `provideWrIcons()` works at any level and chains, so a route may add icons to\n * the set its parent registered.\n */\nexport function withToast(\n config: Partial<Omit<WrToastConfig, 'labels'>> & { readonly labels?: Partial<WrToastConfig['labels']> }\n): WrFeature<'toast'> {\n const merged: WrToastConfig = {\n ...DEFAULT_WR_TOAST_CONFIG,\n ...config,\n labels: { ...DEFAULT_WR_TOAST_CONFIG.labels, ...config.labels },\n };\n return wrFeature('toast', [\n { provide: WR_TOAST_CONFIG, useValue: merged },\n ...(isDevMode()\n ? [\n {\n provide: ENVIRONMENT_INITIALIZER,\n multi: true,\n useValue: (): void => {\n // Compared by identity against the application's own injector: a\n // route creates a child EnvironmentInjector, and the root-provided\n // service will resolve the token from the root regardless of what\n // this one holds. Reported here rather than at the call site,\n // because a feature function cannot know where it was spread.\n const here = inject(EnvironmentInjector);\n if (here !== inject(ApplicationRef).injector) {\n // eslint-disable-next-line no-console -- dev-mode misconfiguration diagnostic\n console.warn(\n '[NGWR] withToast() is in a route or child injector, where WrToast will never read it — ' +\n 'the service is root-provided and resolves WR_TOAST_CONFIG once, from the root. Move ' +\n 'provideWr(withToast()) to the application providers, or set the same fields per call on toast.show().'\n );\n }\n },\n },\n ]\n : []),\n ]);\n}\n"],"mappings":";;;;;;;;;;;;;;AAcA,MAAa,0BAAyC;CACpD,UAAU;CACV,MAAM;CACN,UAAU;CACV,cAAc;CACd,UAAU;CACV,cAAc;CACd,mBAAmB;CACnB,UAAU;CAGV,QAAQ;EACN,OAAO;EACP,MAAM;EACN,QAAQ;EACR,UAAU;CACX;AACF;;;;;;;ACdD,MAAa,kBAAkB,IAAI,eAA8B,mBAAmB;CAClF,YAAY;CACZ,eAAe;AAChB,CAAA;;;;;;;ACYD,IAAa,iBAAb,MAA2B;CAmBN;CACA;CACT;CACD;CACA;CArBA,SAAS,OAAgC,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CAE5C,SAAS,OAAO,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CAEnB,QAAwB,CAAA;CAGxB,OAAO;CAEP,SAAS;CAOjB,YACmB,QACA,OACT,MACD,UACA,UAAgB;EAJN,KAAA,SAAA;EACA,KAAA,QAAA;EACT,KAAA,OAAA;EACD,KAAA,WAAA;EACA,KAAA,WAAA;CACN;CAEH,IAAI,QAAK;EACP,OAAO,KAAK,OAAM,CAAE,CAAC,WAAW,KAAK,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A;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,cAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,mBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,MAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAAA,WAAW,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA;;;;;;;AEtD/C,SAAgB,UACd,QAAuG;CAEvG,MAAM,SAAwB;EAC5B,GAAG;EACH,GAAG;EACH,QAAQ;GAAE,GAAG,wBAAwB;GAAQ,GAAG,OAAO;EAAM;CAC9D;CACD,OAAO,UAAU,SAAS,CACxB;EAAE,SAAS;EAAiB,UAAU;CAAM,GAC5C,GAAI,UAAS,IACT,CACE;EACE,SAAS;EACT,OAAO;EACP,gBAAqB;GAOnB,IADa,OAAO,mBAChB,MAAS,OAAO,cAAc,CAAC,CAAC,UAElC,QAAQ,KACN,kRAEyG;EAG/G;CACD,CACF,IACD,CAAA,CACL,CAAA;AACH"}
|
|
1
|
+
{"version":3,"file":"ngwr-toast.mjs","names":[],"sources":["../../../projects/lib/toast/default-toast-config.ts","../../../projects/lib/toast/tokens/toast-config.token.ts","../../../projects/lib/toast/toast-channel.ts","../../../projects/lib/toast/toast-item.ts","../../../projects/lib/toast/toast-item.html","../../../projects/lib/toast/toast-host.ts","../../../projects/lib/toast/toast-host.html","../../../projects/lib/toast/toast-ref.ts","../../../projects/lib/toast/services/toast.ts","../../../projects/lib/toast/toast-outlet.ts","../../../projects/lib/toast/toast-outlet.html","../../../projects/lib/toast/with-toast.ts"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport type { WrToastConfig } from './types';\n\n/**\n * Library defaults applied when no {@link withToast} feature is registered.\n * Merged shallowly with the consumer's overrides (the `labels` sub-object is\n * merged separately so callers can override one string at a time).\n */\nexport const DEFAULT_WR_TOAST_CONFIG: WrToastConfig = {\n position: 'top-end',\n mode: 'stack',\n duration: 4000,\n showProgress: true,\n showCopy: false,\n showCloseAll: true,\n closeAllThreshold: 2,\n maxStack: 5,\n // Null, not English: the host resolves each one through the i18n catalog and\n // falls back to English only if nothing is registered. See `WrToastConfig`.\n labels: {\n close: null,\n copy: null,\n copied: null,\n closeAll: null,\n },\n};\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { InjectionToken } from '@angular/core';\n\nimport { DEFAULT_WR_TOAST_CONFIG } from '../default-toast-config';\nimport type { WrToastConfig } from '../types';\n\n/**\n * Holds the global {@link WrToastConfig} used by {@link WrToast}.\n * The default factory returns {@link DEFAULT_WR_TOAST_CONFIG} so the service\n * works out of the box; override via `provideWr(withToast(...))`.\n */\nexport const WR_TOAST_CONFIG = new InjectionToken<WrToastConfig>('WR_TOAST_CONFIG', {\n providedIn: 'root',\n factory: () => DEFAULT_WR_TOAST_CONFIG,\n});\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { Service, inject, signal } from '@angular/core';\n\nimport { WR_TOAST_CONFIG } from './tokens';\nimport type { WrToastOptions } from './types';\n\n/** A toast in a channel, with the bookkeeping its countdown needs. */\nexport type WrToastEntry = WrToastOptions & {\n readonly id: number;\n /** Auto-dismiss duration in ms after merging with the config. */\n readonly resolvedDuration: number;\n timer?: ReturnType<typeof setTimeout>;\n /** Timestamp of the last timer (re)start, used to compute remaining on pause. */\n startedAt?: number;\n /** Milliseconds left when paused. */\n remaining: number;\n};\n\n/**\n * One independent stack of toasts: the global one, or an outlet's.\n *\n * At most one pending timer per visible toast, and every operation is\n * O(`maxStack`), however many toasts have passed through.\n *\n * @internal\n */\nexport class WrToastChannel {\n /** The rendered toasts, capped at `maxStack`. */\n readonly toasts = signal<readonly WrToastEntry[]>([]);\n /** How many wait behind the cap. */\n readonly queued = signal(0);\n\n private queue: WrToastEntry[] = [];\n /** The pointer or focus is inside the host: no countdown runs, a toast that\n * arrives meanwhile included. See `WrToastHost.syncHold`. */\n private held = false;\n /** Outlets rendering this channel. */\n private mounts = 0;\n\n /**\n * @param expire called when a toast's countdown runs out\n * @param drops past the cap the oldest toast is dropped; otherwise the newest waits in a queue\n * @param live `false` until an outlet mounts: a toast nobody can see does not count down\n */\n constructor(\n private readonly expire: (id: number) => void,\n private readonly drops: boolean,\n private live: boolean,\n public maxStack: number,\n public duration: number\n ) {}\n\n get empty(): boolean {\n return this.toasts().length === 0 && this.queue.length === 0;\n }\n\n find(id: number): WrToastEntry | undefined {\n return this.toasts().find(t => t.id === id);\n }\n\n add(entry: WrToastEntry): void {\n const max = this.maxStack;\n const active = this.toasts();\n if (max <= 0 || active.length < max) {\n this.toasts.set([...active, entry]);\n } else if (this.drops && this.held) {\n // What the user is reading stays. The arrivals wait, bounded like the\n // stack, and enter on release.\n if (this.queue.length >= max) this.queue.shift();\n this.queue.push(entry);\n this.queued.set(this.queue.length);\n return;\n } else if (this.drops) {\n // Straight out of the array, with no exit to run.\n const kept = active.length - max + 1;\n for (let i = 0; i < kept; i++) this.stopTimer(active[i]);\n this.toasts.set([...active.slice(kept), entry]);\n } else {\n // No timer until it is shown.\n this.queue.push(entry);\n this.queued.set(this.queue.length);\n return;\n }\n this.startTimer(entry);\n }\n\n /** Whether the toast was in this channel, visible or queued. */\n remove(id: number): boolean {\n const active = this.toasts();\n const entry = active.find(t => t.id === id);\n const queuedAt = entry ? -1 : this.queue.findIndex(t => t.id === id);\n if (!entry && queuedAt < 0) return false;\n if (entry) {\n this.stopTimer(entry);\n this.toasts.set(active.filter(t => t !== entry));\n } else {\n this.queue.splice(queuedAt, 1);\n }\n this.promote();\n // The host goes with its last toast, and takes the pointer's hold with it.\n if (this.empty) this.held = false;\n return true;\n }\n\n clear(): void {\n for (const entry of this.toasts()) this.stopTimer(entry);\n this.toasts.set([]);\n this.queue = [];\n this.queued.set(0);\n this.held = false;\n }\n\n pause(id: number): void {\n const entry = this.find(id);\n if (entry) this.pauseTimer(entry);\n }\n\n resume(id: number): void {\n const entry = this.find(id);\n if (entry) this.startTimer(entry);\n }\n\n setHeld(held: boolean): void {\n this.held = held;\n if (!held) this.release();\n this.syncTimers();\n }\n\n /** An outlet's own cap and default duration. A lower cap drops the oldest at once. */\n configure(maxStack: number, duration: number): void {\n this.maxStack = maxStack;\n this.duration = duration;\n const active = this.toasts();\n if (!this.drops || maxStack <= 0 || active.length <= maxStack) return;\n const over = active.length - maxStack;\n for (let i = 0; i < over; i++) this.stopTimer(active[i]);\n this.toasts.set(active.slice(over));\n }\n\n /** How many outlets render the channel after this one joined. */\n mount(): number {\n this.mounts++;\n this.live = true;\n this.syncTimers();\n return this.mounts;\n }\n\n unmount(): void {\n if (--this.mounts > 0) return;\n this.live = false;\n this.held = false;\n this.release();\n this.syncTimers();\n }\n\n /** Let in what arrived during a hold, in arrival order, the oldest toasts making room. */\n private release(): void {\n if (!this.drops || this.queue.length === 0) return;\n const all = [...this.toasts(), ...this.queue];\n const over = this.maxStack > 0 ? Math.max(0, all.length - this.maxStack) : 0;\n for (let i = 0; i < over; i++) this.stopTimer(all[i]);\n this.queue = [];\n this.queued.set(0);\n this.toasts.set(all.slice(over));\n }\n\n private syncTimers(): void {\n const running = this.live && !this.held;\n for (const entry of this.toasts()) {\n if (running) this.startTimer(entry);\n else this.pauseTimer(entry);\n }\n }\n\n /** Fill free slots from the queue, FIFO; a countdown starts as its toast becomes visible. */\n private promote(): void {\n const max = this.maxStack;\n const promoted: WrToastEntry[] = [];\n while (this.queue.length > 0 && (max <= 0 || this.toasts().length + promoted.length < max)) {\n promoted.push(this.queue.shift()!);\n }\n if (promoted.length === 0) return;\n this.toasts.update(active => [...active, ...promoted]);\n this.queued.set(this.queue.length);\n for (const entry of promoted) this.startTimer(entry);\n }\n\n private startTimer(entry: WrToastEntry): void {\n // Never a second timer for one entry: a toast's own pause and the host's\n // hold both resume, and whichever comes second finds the clock running.\n if (entry.remaining <= 0 || entry.timer || this.held || !this.live) return;\n entry.startedAt = Date.now();\n entry.timer = setTimeout(() => this.expire(entry.id), entry.remaining);\n }\n\n private pauseTimer(entry: WrToastEntry): void {\n if (!entry.timer) return;\n this.stopTimer(entry);\n if (entry.startedAt) {\n entry.remaining = Math.max(0, entry.remaining - (Date.now() - entry.startedAt));\n }\n }\n\n private stopTimer(entry: WrToastEntry): void {\n if (!entry.timer) return;\n clearTimeout(entry.timer);\n entry.timer = undefined;\n }\n}\n\n/**\n * The outlet channels, by name. A channel outlives its outlet, so a toast sent\n * before the outlet is in the page waits for it.\n *\n * @internal\n */\n@Service()\nexport class WrToastChannels {\n private readonly config = inject(WR_TOAST_CONFIG);\n private readonly channels = new Map<string, WrToastChannel>();\n\n get(name: string): WrToastChannel {\n let channel = this.channels.get(name);\n if (!channel) {\n channel = new WrToastChannel(id => channel?.remove(id), true, false, this.config.maxStack, this.config.duration);\n this.channels.set(name, channel);\n }\n return channel;\n }\n\n /** Remove the toast from whichever channel holds it. */\n remove(id: number): void {\n for (const channel of this.channels.values()) {\n if (channel.remove(id)) return;\n }\n }\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { Component, ElementRef, ViewEncapsulation, computed, inject, input, output, signal } from '@angular/core';\n\nimport { wrToClassList, wrCheckStyles, type WrClassInput } from 'ngwr/utils';\n\nimport type { WrToastConfig, WrToastType } from './types';\n\n/**\n * One toast row inside the toast host. Not used directly — see\n * `WrToast.show()`.\n *\n * @internal\n */\n@Component({\n selector: 'wr-toast',\n templateUrl: './toast-item.html',\n encapsulation: ViewEncapsulation.None,\n host: {\n // See `WrAlert`: a static `title=` feeds the input AND lands on the host.\n '[attr.title]': 'null',\n class: 'wr-toast',\n '[class]': 'classes()',\n '[style.--wr-toast-duration]': 'durationMs()',\n '[style.transform]': 'swipeTransform()',\n '[style.opacity]': 'swipeOpacity()',\n '[style.transition]': 'swiping() ? \"none\" : null',\n '[attr.role]': 'liveRole()',\n '[attr.aria-live]': 'liveLevel()',\n '(mouseenter)': 'onPointer(true)',\n '(mouseleave)': 'onPointer(false)',\n '(focusin)': 'onFocusIn()',\n '(focusout)': 'onFocusOut($event)',\n '(touchstart)': 'onSwipeStart($event)',\n '(touchmove)': 'onSwipeMove($event)',\n '(touchend)': 'onSwipeEnd()',\n '(touchcancel)': 'onSwipeEnd()',\n },\n})\nexport class WrToastItem {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('toast');\n }\n\n readonly type = input<WrToastType>('info');\n readonly title = input<string | null>(null);\n readonly message = input.required<string>();\n readonly closable = input<boolean>(true);\n readonly showProgress = input<boolean>(false);\n readonly showCopy = input<boolean>(false);\n /** Text of the action button, from `WrToastOptions.action`. `null` renders none. */\n readonly actionLabel = input<string | null>(null);\n /** Extra classes from `WrToastOptions.class`, merged into the host's own. */\n readonly extraClass = input<WrClassInput>(null);\n /** Auto-dismiss duration in ms — used to scale the progress bar. `0` hides it. */\n readonly duration = input<number>(0);\n /**\n * Already resolved by the host — strings, not the config's nullable shape.\n * The item renders them and never reaches for the catalog itself.\n */\n readonly labels = input.required<{ [K in keyof WrToastConfig['labels']]: string }>();\n\n readonly dismissed = output<void>();\n readonly actionRequested = output<void>();\n readonly pauseRequested = output<void>();\n readonly resumeRequested = output<void>();\n\n /**\n * The countdown holds while the pointer rests on the toast OR focus is inside\n * it. Hover alone left a keyboard user's toast running: focus its Close button\n * and it was removed from under the focus four seconds later, which dropped\n * focus on `<body>` — WCAG 2.2.1 asks for a way to hold a time limit, and the\n * pointer was the only one. Two flags, so leaving by one road while still in\n * by the other does not resume it.\n */\n private hovered = false;\n private focused = false;\n\n /** @internal */\n protected onPointer(over: boolean): void {\n this.syncPause(() => (this.hovered = over));\n }\n\n /** @internal */\n protected onFocusIn(): void {\n this.syncPause(() => (this.focused = true));\n }\n\n /** @internal Focus moving between two buttons of this toast is not leaving it. */\n protected onFocusOut(event: FocusEvent): void {\n const next = event.relatedTarget as Node | null;\n if (next && this.elRef.nativeElement.contains(next)) return;\n this.syncPause(() => (this.focused = false));\n }\n\n private syncPause(change: () => void): void {\n const wasHeld = this.hovered || this.focused;\n change();\n const held = this.hovered || this.focused;\n if (held === wasHeld) return;\n if (held) this.pauseRequested.emit();\n else this.resumeRequested.emit();\n }\n\n /** True for ~1.5s after a successful copy; flips the icon to a check. */\n protected readonly justCopied = signal(false);\n private copyResetTimer: ReturnType<typeof setTimeout> | null = null;\n\n /**\n * `--untitled` when the toast opens on its message. The glyph and the\n * actions are centred on the FIRST line, and with no title that line is the\n * message's, whose line height is its own hook — so the stylesheet needs to\n * know which one it is reading.\n */\n protected readonly classes = computed(() =>\n wrToClassList(\n 'wr-toast',\n `wr-toast--${this.type()}`,\n this.title() ? null : 'wr-toast--untitled',\n this.extraClass()\n ).join(' ')\n );\n\n /** Escalate to `alert`/`assertive` for danger/warning toasts. */\n protected readonly liveRole = computed(() => (this.type() === 'danger' ? 'alert' : 'status'));\n protected readonly liveLevel = computed(() =>\n this.type() === 'danger' || this.type() === 'warning' ? 'assertive' : 'polite'\n );\n\n /** Inline CSS value for `--wr-toast-duration`. */\n protected readonly durationMs = computed(() => `${this.duration()}ms`);\n\n protected readonly progressVisible = computed(() => this.showProgress() && this.duration() > 0);\n\n /**\n * What the copy button puts on the clipboard: the message, or the title when\n * the toast has nothing else. A title-only toast copied an empty string, and\n * still flipped the glyph to the \"Copied\" check.\n */\n private readonly copyText = computed(() => (this.message() !== '' ? this.message() : (this.title() ?? '')));\n\n protected async onCopy(): Promise<void> {\n try {\n await navigator.clipboard.writeText(this.copyText());\n this.justCopied.set(true);\n if (this.copyResetTimer) clearTimeout(this.copyResetTimer);\n this.copyResetTimer = setTimeout(() => this.justCopied.set(false), 1500);\n } catch {\n // Clipboard unavailable (insecure context / permission denied) — silent.\n }\n }\n\n // Swipe-sideways-to-dismiss. The toast follows the finger and fades; releasing\n // past 40% of its width emits `dismissed`, otherwise it snaps back.\n private readonly elRef = inject<ElementRef<HTMLElement>>(ElementRef);\n private swipeStartX = 0;\n private swipeWidth = 0;\n protected readonly swipeX = signal(0);\n protected readonly swiping = signal(false);\n\n protected readonly swipeTransform = computed(() => (this.swipeX() === 0 ? null : `translateX(${this.swipeX()}px)`));\n protected readonly swipeOpacity = computed(() => {\n const dist = Math.abs(this.swipeX());\n return dist === 0 ? null : Math.max(0, 1 - dist / (this.swipeWidth || 1));\n });\n\n protected onSwipeStart(event: TouchEvent): void {\n if (!this.closable()) return;\n const touch = event.touches[0];\n if (!touch) return;\n this.swipeStartX = touch.clientX;\n this.swipeWidth = this.elRef.nativeElement.offsetWidth;\n this.swiping.set(true);\n }\n\n protected onSwipeMove(event: TouchEvent): void {\n if (!this.swiping()) return;\n const touch = event.touches[0];\n if (!touch) return;\n this.swipeX.set(touch.clientX - this.swipeStartX);\n }\n\n protected onSwipeEnd(): void {\n if (!this.swiping()) return;\n this.swiping.set(false);\n if (Math.abs(this.swipeX()) > (this.swipeWidth || 0) * 0.4) {\n this.dismissed.emit();\n } else {\n this.swipeX.set(0);\n }\n }\n}\n","<!-- A glyph per type, and this is the one channel the toast had none of. Its\n four types differed by `--wr-toast-accent` alone — a 3px inline-start\n border, in four colours that sit within 1.06:1 of each other in relative\n luminance, so `success` and `danger` were the same 3px line to a reader\n who cannot separate hue. The shapes are the ones `wr-alert` and\n `wr-result` already use for the same four meanings: a check in a broken\n circle, a triangle, an octagon, an `i`. Three components agreeing is worth\n more than three components each being locally reasonable.\n\n `aria-hidden`, because the type is already announced: the host takes\n `role=\"alert\"` for danger and `role=\"status\"` otherwise. -->\n<svg\n class=\"wr-toast__icon wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n>\n @switch (type()) {\n @case ('success') {\n <path d=\"M21.801 10A10 10 0 1 1 17 3.335\" />\n <path d=\"m9 11 3 3L22 4\" />\n }\n @case ('warning') {\n <path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\" />\n <path d=\"M12 9v4\" />\n <path d=\"M12 17h.01\" />\n }\n @case ('danger') {\n <path\n d=\"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z\"\n />\n <path d=\"M12 8v4\" />\n <path d=\"M12 16h.01\" />\n }\n @default {\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M12 16v-4\" />\n <path d=\"M12 8h.01\" />\n }\n }\n</svg>\n\n<!-- Each part renders only when it has text. A title-only toast is shown with\n `message: ''`, and the empty `<p>` it used to leave behind kept the title's\n bottom margin under it: 4px of dead space that made the card taller below\n its one line than above it. -->\n<div class=\"wr-toast__body\">\n @if (title(); as text) {\n <p class=\"wr-toast__title\">{{ text }}</p>\n }\n @if (message(); as text) {\n <p class=\"wr-toast__message\">{{ text }}</p>\n }\n</div>\n\n<div class=\"wr-toast__actions\">\n @if (actionLabel(); as label) {\n <button type=\"button\" class=\"wr-toast__action wr-toast__action--run\" (click)=\"actionRequested.emit()\">\n {{ label }}\n </button>\n }\n\n @if (showCopy()) {\n <button\n type=\"button\"\n class=\"wr-toast__action wr-toast__action--copy\"\n [attr.aria-label]=\"justCopied() ? labels().copied : labels().copy\"\n [title]=\"justCopied() ? labels().copied : labels().copy\"\n (click)=\"onCopy()\"\n >\n @if (justCopied()) {\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M20 6 9 17l-5-5\" />\n </svg>\n } @else {\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\" />\n <path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\" />\n </svg>\n }\n </button>\n }\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"wr-toast__action wr-toast__action--close\"\n [attr.aria-label]=\"labels().close\"\n [title]=\"labels().close\"\n (click)=\"dismissed.emit()\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </button>\n }\n</div>\n\n@if (progressVisible()) {\n <span class=\"wr-toast__progress\" aria-hidden=\"true\"></span>\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { FocusMonitor } from '@angular/cdk/a11y';\nimport {\n Component,\n DestroyRef,\n ElementRef,\n Injector,\n ViewEncapsulation,\n afterNextRender,\n computed,\n effect,\n inject,\n input,\n output,\n signal,\n viewChildren,\n} from '@angular/core';\n\nimport { useI18nText } from 'ngwr/i18n';\nimport { wrCheckStyles, wrRestoreFocus } from 'ngwr/utils';\n\nimport { WrToastItem } from './toast-item';\nimport type { WrToastConfig, WrToastMode, WrToastOptions, WrToastPosition } from './types';\n\n/** ms before the pointer or focus leaving actually collapses the stack. Buffers\n * the cursor briefly leaving the host as toasts reflow underneath it, and focus\n * hopping between two buttons inside the host. */\nconst COLLAPSE_DELAY_MS = 120;\n\n/** Send focus back to `origin` when it is still in the page. */\nfunction returnFocus(origin: HTMLElement | null, monitor: FocusMonitor): void {\n if (origin?.isConnected) wrRestoreFocus(origin, monitor);\n}\n\n/**\n * Whether `el`, the focused element, holds focus the keyboard way — the focus a\n * removal would strand.\n *\n * A pointer press on Close focuses the button too, in Chromium, and handing\n * THAT focus on is a regression rather than a fix: focus inside the region\n * holds every countdown, so after one click the rest of the stack stayed up\n * until the reader clicked somewhere else — measured, two toasts still on\n * screen six seconds after the pointer left. Left alone, the removed button's\n * `focusout` releases the hold, as it always did.\n */\nfunction hasKeyboardFocus(el: Element | null | undefined): boolean {\n if (!el) return false;\n try {\n return el.matches(':focus-visible');\n } catch {\n // An engine without the pseudo-class: err on the side of not losing focus.\n return true;\n }\n}\n\n/** Active entry pushed by the service — adds the bookkeeping fields the host renders. */\ntype ActiveToast = WrToastOptions & {\n readonly id: number;\n readonly resolvedDuration: number;\n};\n\n/**\n * Internal host that lives inside the toast overlay and renders the\n * active stack. Owned by `WrToast`.\n *\n * @internal\n */\n@Component({\n selector: 'wr-toast-host',\n templateUrl: './toast-host.html',\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'wr-toast-host',\n '[class]': 'classes()',\n '[style.--wr-toast-front-height]': 'frontHeight()',\n role: 'region',\n '[attr.aria-label]': 'regionLabel()',\n '(mouseenter)': 'onMouseEnter()',\n '(mouseleave)': 'onMouseLeave()',\n '(focusin)': 'onFocusIn($event)',\n '(focusout)': 'onFocusOut($event)',\n },\n imports: [WrToastItem],\n})\nexport class WrToastHost {\n readonly position = input<WrToastPosition>('top-end');\n readonly config = input.required<WrToastConfig>();\n /** Layout mode. @default 'stack' (Sonner-style; hover to fan out) */\n readonly mode = input<WrToastMode>('stack');\n\n /**\n * Every string this host and its items render, resolved through the catalog.\n *\n * The config value WINS when the consumer sets one, and its default is now\n * `null` — until v11 those defaults were English literals, so the four\n * `toast.*` keys in the shipped catalogs were dead and a Russian app got an\n * English close button. `region` had no key at all: the live region's name\n * was the literal `'Notifications'` in a host binding.\n */\n protected readonly regionLabel = useI18nText(signal(null), 'toast.region', 'Notifications');\n\n private readonly closeLabel = useI18nText(\n computed(() => this.config().labels.close),\n 'toast.close',\n 'Close'\n );\n private readonly copyLabel = useI18nText(\n computed(() => this.config().labels.copy),\n 'toast.copy',\n 'Copy'\n );\n private readonly copiedLabel = useI18nText(\n computed(() => this.config().labels.copied),\n 'toast.copied',\n 'Copied'\n );\n protected readonly closeAllLabel = useI18nText(\n computed(() => this.config().labels.closeAll),\n 'toast.closeAll',\n 'Close all'\n );\n\n /** What `wr-toast-item` receives — resolved, so the item stays presentational. */\n protected readonly labels = computed(() => ({\n close: this.closeLabel(),\n copy: this.copyLabel(),\n copied: this.copiedLabel(),\n closeAll: this.closeAllLabel(),\n }));\n\n /** @internal — hovering or focusing the stack toggles this in stack mode. */\n protected readonly expanded = signal(false);\n\n /** Pointer is over the host. */\n private readonly hovered = signal(false);\n /** Focus is somewhere inside the host — keyboard equivalent of hovering, and\n * the only way a keyboard user can reach the \"Close all\" button. */\n private readonly focusWithin = signal(false);\n\n private readonly focusMonitor = inject(FocusMonitor);\n private readonly destroyRef = inject(DestroyRef);\n private readonly elRef = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly injector = inject(Injector);\n private collapseTimer: ReturnType<typeof setTimeout> | null = null;\n /** The last value `holdChange` emitted. */\n private held = false;\n\n /** The rendered toasts, in `toasts()` order. */\n private readonly items = viewChildren(WrToastItem, { read: ElementRef });\n\n /**\n * Where focus was before it entered the region, which is where it goes back\n * to when the last toast is closed from inside. Recorded off the `focusin`\n * that crosses INTO the host; a hop between two toasts is not an entry.\n */\n private focusOrigin: HTMLElement | null = null;\n /** True while this host moves focus itself, so the move is not read as an entry. */\n private movingFocus = false;\n\n /**\n * The front toast's height, which the cards behind it take while the stack\n * is collapsed. Each card used to keep its own, so a short front toast — a\n * title alone, a one-line message — left a taller card hanging below it, and\n * that card's last line read through underneath. `null` until measured, and\n * on the server, where the stylesheet falls back to each card's own height.\n */\n protected readonly frontHeight = signal<string | null>(null);\n\n private readonly frontObserver =\n typeof ResizeObserver === 'undefined'\n ? null\n : new ResizeObserver(entries => {\n // `offsetHeight`, the layout box, which no transform reaches: the\n // collapsed stack scales and offsets its cards with them.\n const front = entries[entries.length - 1]?.target as HTMLElement | undefined;\n this.frontHeight.set(front ? `${front.offsetHeight}px` : null);\n });\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('toast');\n this.destroyRef.onDestroy(() => {\n this.clearCollapseTimer();\n this.frontObserver?.disconnect();\n });\n\n // The front card is the LAST one rendered, whichever way the stack grows.\n // Follow it as toasts come and go; the observer reports its height on the\n // first observation and again whenever its text rewraps.\n effect(() => {\n const items = this.items();\n const front = items[items.length - 1]?.nativeElement as HTMLElement | undefined;\n if (!this.frontObserver) return;\n this.frontObserver.disconnect();\n if (front) this.frontObserver.observe(front);\n else this.frontHeight.set(null);\n });\n }\n\n /** @internal */\n protected onMouseEnter(): void {\n this.hovered.set(true);\n this.syncExpanded();\n }\n\n /** @internal */\n protected onMouseLeave(): void {\n this.hovered.set(false);\n this.syncExpanded();\n }\n\n /** @internal */\n protected onFocusIn(event: FocusEvent): void {\n if (!this.focusWithin() && !this.movingFocus) {\n const from = event.relatedTarget;\n this.focusOrigin = from instanceof HTMLElement && !this.elRef.nativeElement.contains(from) ? from : null;\n }\n this.focusWithin.set(true);\n this.syncExpanded();\n }\n\n /**\n * A toast asked to go — its Close button, or a swipe.\n *\n * When keyboard focus was inside it, the removal would drop focus on\n * `<body>`, so it is handed on: to the Close button of the toast that takes\n * its place (the next one in the stack, a promoted one included), else to the\n * previous one. When no toast is left, focus goes back to where it was before\n * it entered the region. A toast closed while focus was elsewhere, or with a\n * pointer, moves nothing — see `hasKeyboardFocus`.\n *\n * @internal\n */\n protected onItemDismissed(id: number, index: number): void {\n this.removeItem(index, () => this.dismissed.emit(id));\n }\n\n /** The action button closes its toast too, so focus moves the same way. @internal */\n protected onItemAction(id: number, index: number): void {\n this.removeItem(index, () => this.actionRequested.emit(id));\n }\n\n private removeItem(index: number, remove: () => void): void {\n const item = this.items()[index]?.nativeElement as HTMLElement | undefined;\n const active = item?.ownerDocument.activeElement;\n const hadFocus = !!item?.contains(active ?? null) && hasKeyboardFocus(active);\n const origin = this.focusOrigin;\n // Synchronous: the service removes the toast here, and disposes this host\n // when it was the last one.\n remove();\n if (!hadFocus) return;\n if (this.toasts().length === 0) {\n returnFocus(origin, this.focusMonitor);\n return;\n }\n afterNextRender(() => this.focusNeighbour(index), { injector: this.injector });\n }\n\n /** \"Close all\" from the keyboard: nothing is left, so focus goes back. @internal */\n protected onCloseAll(): void {\n const host = this.elRef.nativeElement;\n const active = host.ownerDocument.activeElement;\n const hadFocus = host.contains(active) && hasKeyboardFocus(active);\n const origin = this.focusOrigin;\n this.dismissAllRequested.emit();\n if (hadFocus) returnFocus(origin, this.focusMonitor);\n }\n\n /**\n * Focus the Close button nearest to where the removed toast stood: the one\n * now at its index, then forward, then back. A toast with no Close button\n * (`closable: false`) is passed over; with none anywhere, \"Close all\" if\n * it is showing, else the origin.\n */\n private focusNeighbour(index: number): void {\n const items = this.items().map(ref => ref.nativeElement as HTMLElement);\n const order = [...items.slice(index), ...items.slice(0, index).reverse()];\n const close = order\n .map(el => el.querySelector<HTMLElement>('.wr-toast__action--close'))\n .find((el): el is HTMLElement => !!el);\n const target = close ?? this.elRef.nativeElement.querySelector<HTMLElement>('.wr-toast-host__close-all');\n if (!target) {\n returnFocus(this.focusOrigin, this.focusMonitor);\n return;\n }\n this.movingFocus = true;\n try {\n target.focus();\n } finally {\n this.movingFocus = false;\n }\n }\n\n /** @internal Focus moving between two buttons inside the host is not leaving it. */\n protected onFocusOut(event: FocusEvent): void {\n const next = event.relatedTarget as Node | null;\n if (next && this.elRef.nativeElement.contains(next)) return;\n this.focusWithin.set(false);\n this.syncExpanded();\n }\n\n /** Expand immediately while the pointer or focus is inside, and delay the\n * collapse so a cursor briefly slipping off the host during a layout reflow\n * — or focus moving between two buttons inside it — doesn't cause a flicker. */\n private syncExpanded(): void {\n this.syncHold();\n if (this.hovered() || this.focusWithin()) {\n this.clearCollapseTimer();\n this.expanded.set(true);\n return;\n }\n if (this.collapseTimer !== null) return;\n this.collapseTimer = setTimeout(() => {\n this.collapseTimer = null;\n if (!this.hovered() && !this.focusWithin()) this.expanded.set(false);\n }, COLLAPSE_DELAY_MS);\n }\n\n /**\n * Hold EVERY countdown while the reader is in the region, not only the toast\n * under the pointer. Per-toast pausing let the others expire around the one\n * being read: in an expanded stack the pointer rested on #2 while #1 and #3\n * ran out, the stack collapsed, and #2 jumped 140px up from under a pointer\n * that never moved — and a gutter between toasts, which keeps the stack\n * expanded, paused nothing at all. Released at once on leaving, with no\n * collapse delay, so the timers and the progress bars (paused by the same\n * `:hover` / `:focus-within` in the stylesheet) agree.\n */\n private syncHold(): void {\n const held = this.hovered() || this.focusWithin();\n if (held === this.held) return;\n this.held = held;\n this.holdChange.emit(held);\n }\n\n private clearCollapseTimer(): void {\n if (this.collapseTimer !== null) {\n clearTimeout(this.collapseTimer);\n this.collapseTimer = null;\n }\n }\n\n /** @internal — pushed by the service: the rendered (capped) stack. */\n readonly toasts = signal<readonly ActiveToast[]>([]);\n\n /** @internal — pushed by the service: count still queued behind the cap. */\n readonly queued = signal(0);\n\n /** Total outstanding toasts (visible + queued) — what \"Close all\" clears. */\n protected readonly totalCount = computed(() => this.toasts().length + this.queued());\n\n /** @internal — service listens to update its internal state. */\n readonly dismissed = output<number>();\n readonly actionRequested = output<number>();\n readonly pauseRequested = output<number>();\n readonly resumeRequested = output<number>();\n /** @internal — `true` while the pointer or focus is inside the region. */\n readonly holdChange = output<boolean>();\n readonly dismissAllRequested = output<void>();\n\n protected readonly classes = computed(() => {\n const parts = ['wr-toast-host', `wr-toast-host--${this.position()}`, `wr-toast-host--${this.mode()}`];\n if (this.mode() === 'stack' && this.expanded()) parts.push('wr-toast-host--expanded');\n return parts.join(' ');\n });\n\n /** Distance from the front of the stack (0 = newest / fully visible). */\n protected stackIndex(i: number): number {\n return this.toasts().length - 1 - i;\n }\n\n protected readonly closeAllVisible = computed(() => {\n const cfg = this.config();\n // In stack mode the toasts cascade absolutely while collapsed, which\n // makes the close-all button jump between layout positions on hover\n // (button moves → cursor leaves → host collapses → cycle = blink).\n // Only show it once the stack is expanded — by hover OR by focus entering\n // it, so it stays reachable from the keyboard — or always in list mode.\n if (this.mode() === 'stack' && !this.expanded()) return false;\n return cfg.showCloseAll && this.totalCount() >= cfg.closeAllThreshold;\n });\n\n protected showProgressFor(t: WrToastOptions): boolean {\n return t.showProgress ?? this.config().showProgress;\n }\n\n protected showCopyFor(t: WrToastOptions): boolean {\n return t.showCopy ?? this.config().showCopy;\n }\n}\n","@if (closeAllVisible()) {\n <button type=\"button\" class=\"wr-toast-host__close-all\" (click)=\"onCloseAll()\">\n {{ closeAllLabel() }} ({{ totalCount() }})\n </button>\n}\n\n@for (toast of toasts(); track toast.id) {\n <wr-toast\n [style.--wr-toast-stack-index]=\"stackIndex($index)\"\n [type]=\"toast.type ?? 'info'\"\n [title]=\"toast.title ?? null\"\n [message]=\"toast.message\"\n [closable]=\"toast.closable ?? true\"\n [showProgress]=\"showProgressFor(toast)\"\n [showCopy]=\"showCopyFor(toast)\"\n [extraClass]=\"toast.class ?? null\"\n [duration]=\"toast.resolvedDuration\"\n [labels]=\"labels()\"\n [actionLabel]=\"toast.action?.label ?? null\"\n (dismissed)=\"onItemDismissed(toast.id, $index)\"\n (actionRequested)=\"onItemAction(toast.id, $index)\"\n (pauseRequested)=\"pauseRequested.emit(toast.id)\"\n (resumeRequested)=\"resumeRequested.emit(toast.id)\"\n />\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport type { WrToastOptions } from './types';\n\n/**\n * Handle returned by `WrToast.show()`. Call `dismiss()` to remove\n * the toast early. Inspect `options` to see what the caller requested.\n */\nexport class WrToastRef {\n constructor(\n public readonly id: number,\n public readonly options: WrToastOptions,\n private readonly onDismiss: (id: number) => void\n ) {}\n\n /** Remove this toast from the stack. */\n dismiss(): void {\n this.onDismiss(this.id);\n }\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { Directionality } from '@angular/cdk/bidi';\nimport { type OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { type ComponentRef, Injector, Service, inject } from '@angular/core';\n\nimport { WR_OVERLAY, WrOverlayOrder, wrFollowDirection } from 'ngwr/overlay';\n\nimport { WrToastChannel, WrToastChannels, type WrToastEntry } from '../toast-channel';\nimport { WrToastHost } from '../toast-host';\nimport { WrToastRef } from '../toast-ref';\nimport { WR_TOAST_CONFIG } from '../tokens';\nimport type { WrToastOptions, WrToastPosition } from '../types';\n\n/**\n * Opens toast notifications in a single shared overlay, or in the page\n * through a `<wr-toast-outlet>` when `show()` names one.\n *\n * Global defaults come from {@link WR_TOAST_CONFIG}; register\n * `provideWr(withToast(...))` once at bootstrap to customise. Each\n * `show()` call accepts per-toast overrides via {@link WrToastOptions}.\n *\n * @example\n * ```ts\n * const toast = inject(WrToast);\n *\n * toast.show({ type: 'success', title: 'Saved', message: 'Profile updated.' });\n * toast.show({ type: 'danger', message: 'Network error', duration: 0 });\n * toast.show({ message: 'Permalink copied', position: 'bottom', showCopy: true });\n * toast.show({ message: 'Item deleted', action: { label: 'Undo', run: () => restore() } });\n * toast.show({ type: 'danger', message: 'Door forced', outlet: 'alarms' });\n * ```\n *\n * @see https://ngwr.dev/reference/components/toast\n */\n@Service()\nexport class WrToast {\n private readonly overlay = inject(WR_OVERLAY);\n private readonly order = inject(WrOverlayOrder);\n private readonly config = inject(WR_TOAST_CONFIG);\n private readonly injector = inject(Injector);\n private readonly dir = inject(Directionality, { optional: true });\n\n private overlayRef: OverlayRef | null = null;\n private hostRef: ComponentRef<WrToastHost> | null = null;\n /** Watches the overlay container for overlays opened after the host. */\n private containerObserver: MutationObserver | null = null;\n /** Set for the rest of the frame in which the host was moved. */\n private raiseFrame: number | null = null;\n private raiseAgain = false;\n private currentPosition: WrToastPosition = this.config.position;\n private currentMode: 'stack' | 'list' = this.config.mode;\n private nextId = 1;\n /** The stack in the overlay. Past `maxStack` the newest waits, so nothing is\n * ever silently dropped. */\n private readonly global = new WrToastChannel(\n id => this.dismiss(id),\n false,\n true,\n this.config.maxStack,\n this.config.duration\n );\n private readonly outlets = inject(WrToastChannels);\n\n /** Open a toast. Returns a handle you can `dismiss()` early. */\n show(options: WrToastOptions): WrToastRef {\n const id = this.nextId++;\n const ref = new WrToastRef(id, options, toastId => this.dismiss(toastId));\n\n if (options.outlet != null) {\n const channel = this.outlets.get(options.outlet);\n const resolvedDuration = options.duration ?? channel.duration;\n channel.add({ ...options, id, resolvedDuration, remaining: resolvedDuration });\n return ref;\n }\n\n // `currentPosition` before the injected default, so `setPosition()` holds\n // across a host that has been disposed. `dismiss()` and `dismissAll()`\n // tear the host down, so \"no host alive\" is the state before the first\n // toast of a run and after the last one goes — exactly where the stack\n // used to snap back to the configured corner with nothing to say so.\n // `setMode` already persisted this way, and its JSDoc says it does.\n // `currentPosition` is seeded from the config, so the default still wins\n // when nobody has called `setPosition`.\n const resolvedPosition = options.position ?? this.currentPosition;\n const resolvedDuration = options.duration ?? this.config.duration;\n\n this.ensureHost(resolvedPosition);\n // A toast raised now belongs above everything already on screen, and the host\n // it goes into may be much older than the dialog it has to clear. It moves\n // only if something joined the top layer since. See `raiseHost`.\n this.raiseHost();\n\n const entry: WrToastEntry = { ...options, id, resolvedDuration, remaining: resolvedDuration };\n this.global.add(entry);\n this.pushToHost();\n\n return ref;\n }\n\n /** Dismiss a single toast by id, in whichever stack holds it. */\n dismiss(id: number): void {\n if (!this.global.remove(id)) this.outlets.remove(id);\n this.pushToHost();\n if (this.global.empty) this.disposeHost();\n }\n\n /**\n * Closes first: a second press finds no entry, so `run` cannot fire twice,\n * and a `run` that throws still leaves the toast closed.\n */\n private runAction(id: number): void {\n const action = this.global.find(id)?.action;\n if (!action) return;\n this.dismiss(id);\n action.run();\n }\n\n /**\n * Dismiss every toast of one stack: the global one, or the named outlet's.\n * The global \"Close all\" button calls it with no name, so it leaves the\n * outlets alone.\n */\n dismissAll(outlet?: string): void {\n if (outlet != null) {\n this.outlets.get(outlet).clear();\n return;\n }\n this.global.clear();\n this.disposeHost();\n }\n\n /** Change the corner the stack opens in. Affects future toasts. */\n setPosition(position: WrToastPosition): void {\n this.currentPosition = position;\n if (this.hostRef) this.hostRef.setInput('position', position);\n }\n\n /** Switch the layout mode at runtime. Persists across host re-creation. */\n setMode(mode: 'stack' | 'list'): void {\n this.currentMode = mode;\n if (this.hostRef) this.hostRef.setInput('mode', mode);\n }\n\n // Host plumbing\n\n private ensureHost(position: WrToastPosition): void {\n if (this.overlayRef) {\n if (position !== this.currentPosition) this.setPosition(position);\n return;\n }\n\n this.currentPosition = position;\n\n this.overlayRef = this.overlay.create({\n positionStrategy: this.overlay.position().global(),\n scrollStrategy: this.overlay.scrollStrategies.noop(),\n hasBackdrop: false,\n panelClass: ['wr-toast-overlay'],\n });\n\n // The corner is `inset-inline-start` / `-end` on the host component, so the\n // side the stack sits on is decided entirely by the `dir` the CDK wrote at\n // create. This host outlives every individual toast — it is torn down only\n // when the last one leaves — so without this a stack raised before a flip\n // stays on the reader's old side for the rest of the run. The position\n // strategy is bare, so nothing else moves. Torn down with the ref by\n // `disposeHost()`, and the next `ensureHost()` installs a new follower.\n wrFollowDirection(this.overlayRef, this.dir, this.injector);\n\n const portal = new ComponentPortal(WrToastHost);\n this.hostRef = this.overlayRef.attach(portal);\n this.hostRef.setInput('position', position);\n this.hostRef.setInput('mode', this.currentMode);\n this.hostRef.setInput('config', this.config);\n\n const inst = this.hostRef.instance;\n inst.dismissed.subscribe(id => this.dismiss(id));\n inst.actionRequested.subscribe(id => this.runAction(id));\n inst.dismissAllRequested.subscribe(() => this.dismissAll());\n inst.pauseRequested.subscribe(id => this.global.pause(id));\n inst.resumeRequested.subscribe(id => this.global.resume(id));\n inst.holdChange.subscribe(held => this.global.setHeld(held));\n\n this.watchForNewerOverlays();\n }\n\n /**\n * Put the host back on top of the browser's top layer.\n *\n * The stacking rule here is not a z-index and cannot be fixed with one. CDK 22\n * promotes every overlay by calling `showPopover()` on its host element, and\n * the top layer is ordered by the MOMENT of promotion — a popover shown later\n * paints over one shown earlier no matter what either element's z-index, DOM\n * order or containing block says. The toast host is created once and kept\n * alive until the last toast leaves, so its place in that order is frozen at\n * whenever the first toast of the run appeared. Every dialog and drawer opened\n * after that sits above it.\n *\n * The symptom was as bad as the mechanism is quiet: a toast raised from inside\n * an open dialog rendered UNDER the dialog's backdrop, dimmed by it and\n * hit-tested as it — so the close button was unreachable and clicking where it\n * appeared closed the dialog instead. Nothing threw, and a toast with\n * `duration: 0` never went away on its own.\n *\n * Hiding and re-showing moves the host to the end of the top layer. Both calls\n * happen in one task, so there is no frame in which the host is `display:\n * none` and nothing re-runs a toast's enter animation.\n *\n * Skipped while focus is inside the host: Chromium keeps focus across this\n * pair, but the hide-popover algorithm is specified to restore focus to the\n * previously focused element, and a host the user is already tabbing through\n * is by definition reachable. In practice the two never coincide — a modal\n * traps focus, so focus inside the host means nothing is above it to escape.\n *\n * `WrOverlayOrder` does the move, because \"on top\" has an exception: an\n * overlay opened with `toasts: 'below'` stays over the host, so it leaves the\n * host alone where it already sits under one and promotes those overlays\n * again where it does not. It also knows whether anything joined the top\n * layer since the last move, and moves nothing when nothing did.\n *\n * The move restyles the whole stack, so it runs once a frame at most: a\n * second one asked for in the same frame waits for the next.\n */\n private raiseHost(): void {\n const host = this.overlayRef?.hostElement;\n // `usePopover` is off when the platform has no popover support (and on the\n // server), and then there is no top layer to be at the wrong end of.\n if (!host?.isConnected || !host.hasAttribute('popover')) return;\n if (host.contains(host.ownerDocument.activeElement)) return;\n if (this.raiseFrame !== null) {\n this.raiseAgain = true;\n return;\n }\n if (!this.order.raiseToasts(host)) return;\n this.raiseFrame = requestAnimationFrame(() => {\n this.raiseFrame = null;\n if (!this.raiseAgain) return;\n this.raiseAgain = false;\n this.raiseHost();\n });\n }\n\n /**\n * Re-raise the host whenever another overlay joins the container.\n *\n * `show()` covers the reported order (toast raised while a dialog is up). This\n * covers the mirror image, which is the same defect seen from the other side:\n * a toast already on screen when the dialog opens is left under it, unclickable\n * for the rest of its duration, and no further `show()` is coming to fix it.\n *\n * Observing the host's own parent rather than a container resolved from the\n * injector keeps this correct even for an app that rebinds `WR_OVERLAY` — the\n * host is in whichever container it was actually appended to. Re-showing a\n * popover moves nothing in the DOM, so this cannot re-trigger itself.\n */\n private watchForNewerOverlays(): void {\n const parent = this.overlayRef?.hostElement.parentElement;\n if (!parent || typeof MutationObserver === 'undefined') return;\n this.containerObserver = new MutationObserver(records => {\n if (!records.some(record => record.addedNodes.length > 0)) return;\n this.order.joined();\n this.raiseHost();\n });\n this.containerObserver.observe(parent, { childList: true });\n }\n\n private pushToHost(): void {\n this.hostRef?.instance.toasts.set(this.global.toasts());\n this.hostRef?.instance.queued.set(this.global.queued());\n }\n\n private disposeHost(): void {\n // The next host starts with nobody in it.\n this.global.setHeld(false);\n this.containerObserver?.disconnect();\n this.containerObserver = null;\n if (this.raiseFrame !== null) cancelAnimationFrame(this.raiseFrame);\n this.raiseFrame = null;\n this.raiseAgain = false;\n this.order.dropToasts();\n if (this.overlayRef) {\n this.overlayRef.dispose();\n this.overlayRef = null;\n this.hostRef = null;\n }\n }\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { Component, ViewEncapsulation, computed, effect, inject, input, untracked, viewChild } from '@angular/core';\n\nimport { wrCheckStyles } from 'ngwr/utils';\n\nimport { WrToastChannels } from './toast-channel';\nimport { WrToastHost } from './toast-host';\nimport { WR_TOAST_CONFIG } from './tokens';\nimport type { WrToastConfig, WrToastMode, WrToastPosition } from './types';\n\n/**\n * Renders a toast stack inside the page instead of the browser's top layer.\n *\n * `WrToast.show({ outlet: 'alarms' })` sends a toast to the outlet of that\n * name. Each name is a stack of its own: its cap, its countdown hold, its\n * \"Close all\". The global stack is not affected.\n *\n * The outlet fills its nearest positioned ancestor, so give the container\n * `position: relative`. It lets clicks through wherever no toast is, and it\n * carries no `z-index`: order it against its siblings in your own CSS.\n *\n * Past `maxStack` the OLDEST toast is dropped, where the global stack queues\n * the newest, so a busy stream stays at `maxStack` toasts and timers. While\n * the pointer or focus is in the stack nothing shown is dropped: arrivals\n * wait, at most `maxStack` of them, and enter when it leaves. A toast\n * sent while no outlet of the name is in the page waits, without counting\n * down, and shows when the outlet appears.\n *\n * @example\n * ```html\n * <div class=\"map\" style=\"position: relative\">\n * <wr-toast-outlet name=\"alarms\" position=\"top\" [maxStack]=\"10\" />\n * </div>\n * ```\n *\n * ```ts\n * toast.show({ type: 'danger', message: 'Door forced', outlet: 'alarms' });\n * toast.dismissAll('alarms');\n * ```\n *\n * @see https://ngwr.dev/reference/components/toast\n */\n@Component({\n selector: 'wr-toast-outlet',\n templateUrl: './toast-outlet.html',\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'wr-toast-outlet',\n '[attr.name]': 'name()',\n },\n imports: [WrToastHost],\n})\nexport class WrToastOutlet {\n private readonly config = inject(WR_TOAST_CONFIG);\n private readonly channels = inject(WrToastChannels);\n\n /** The channel this outlet renders: the `outlet` of `WrToast.show()`. */\n readonly name = input.required<string>();\n /** Where the stack sits inside the outlet's box. @default the `withToast()` position */\n readonly position = input<WrToastPosition>(this.config.position);\n /** Layout for several toasts: a cascade or a column. @default the `withToast()` mode */\n readonly mode = input<WrToastMode>(this.config.mode);\n /** Auto-dismiss in ms for a toast that sets none; `0` disables. @default the `withToast()` duration */\n readonly duration = input<number>(this.config.duration);\n /** Render the countdown bar. @default the `withToast()` value */\n readonly showProgress = input<boolean>(this.config.showProgress);\n /** Render a copy button on each toast. @default the `withToast()` value */\n readonly showCopy = input<boolean>(this.config.showCopy);\n /** Render \"Close all\" once the stack reaches the threshold. @default the `withToast()` value */\n readonly showCloseAll = input<boolean>(this.config.showCloseAll);\n /** Minimum stack size before \"Close all\" appears. @default the `withToast()` value */\n readonly closeAllThreshold = input<number>(this.config.closeAllThreshold);\n /**\n * Maximum toasts in the stack; `0` is unlimited. Past it the oldest toast is\n * dropped to make room, once the pointer and focus are out of the stack.\n *\n * @default the `withToast()` value\n */\n readonly maxStack = input<number>(this.config.maxStack);\n\n protected readonly channel = computed(() => this.channels.get(this.name()));\n\n /** The app-wide config with this outlet's own inputs over it. */\n protected readonly resolved = computed<WrToastConfig>(() => ({\n ...this.config,\n position: this.position(),\n mode: this.mode(),\n duration: this.duration(),\n showProgress: this.showProgress(),\n showCopy: this.showCopy(),\n showCloseAll: this.showCloseAll(),\n closeAllThreshold: this.closeAllThreshold(),\n maxStack: this.maxStack(),\n }));\n\n private readonly host = viewChild(WrToastHost);\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('toast');\n\n effect(() => this.channel().configure(this.maxStack(), this.duration()));\n\n effect(onCleanup => {\n const channel = this.channel();\n // `mount()` reads the stack; tracked, every toast would remount the\n // channel and drop its hold.\n if (untracked(() => channel.mount()) > 1 && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n // eslint-disable-next-line no-console -- dev-mode misconfiguration diagnostic\n console.warn(\n `[NGWR] Two <wr-toast-outlet> share the name \"${this.name()}\", so both render the same toasts. ` +\n 'Give each outlet its own name.'\n );\n }\n onCleanup(() => channel.unmount());\n });\n\n effect(() => this.push());\n }\n\n /** @internal */\n protected onDismissed(id: number): void {\n this.channel().remove(id);\n this.push();\n }\n\n /** @internal Closes first, like the global stack: `run` cannot fire twice. */\n protected onAction(id: number): void {\n const channel = this.channel();\n const action = channel.find(id)?.action;\n if (!action) return;\n channel.remove(id);\n this.push();\n action.run();\n }\n\n /** @internal */\n protected onDismissAll(): void {\n this.channel().clear();\n this.push();\n }\n\n /**\n * The host reads its list right after it asks for a removal, to decide where\n * focus goes, so a removal it asked for is pushed at once and not on the next\n * render.\n */\n private push(): void {\n const channel = this.channel();\n this.host()?.toasts.set(channel.toasts());\n this.host()?.queued.set(channel.queued());\n }\n}\n","@if (channel().toasts().length > 0) {\n <wr-toast-host\n [position]=\"position()\"\n [mode]=\"mode()\"\n [config]=\"resolved()\"\n (dismissed)=\"onDismissed($event)\"\n (actionRequested)=\"onAction($event)\"\n (dismissAllRequested)=\"onDismissAll()\"\n (pauseRequested)=\"channel().pause($event)\"\n (resumeRequested)=\"channel().resume($event)\"\n (holdChange)=\"channel().setHeld($event)\"\n />\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { ApplicationRef, ENVIRONMENT_INITIALIZER, EnvironmentInjector, inject, isDevMode } from '@angular/core';\n\nimport { type WrFeature, wrFeature } from 'ngwr/utils';\n\nimport { DEFAULT_WR_TOAST_CONFIG } from './default-toast-config';\nimport { WR_TOAST_CONFIG } from './tokens';\nimport type { WrToastConfig } from './types';\n\n/**\n * Registers a global {@link WrToastConfig} for {@link WrToast}, as a feature of\n * `provideWr()`. Any field you omit falls back to {@link DEFAULT_WR_TOAST_CONFIG};\n * the `labels` sub-object is merged separately so you can override a single\n * string at a time (useful for i18n).\n *\n * @example\n * ```ts\n * import { provideWr } from 'ngwr';\n * import { withToast } from 'ngwr/toast';\n *\n * bootstrapApplication(AppComponent, {\n * providers: [\n * provideWr(\n * withToast({\n * position: 'bottom-end',\n * showCopy: true,\n * maxStack: 3,\n * labels: { close: 'Закрыть' },\n * }),\n * ),\n * ],\n * });\n * ```\n *\n * **Bootstrap only, unlike the icon registry.** {@link WrToast} is\n * root-provided, so it reads this token once from the ROOT injector — a\n * `provideWr(withToast())` in a route's `providers` is never seen, and used to\n * be ignored in silence. It now warns in dev mode instead. By contrast\n * `provideWrIcons()` works at any level and chains, so a route may add icons to\n * the set its parent registered.\n */\nexport function withToast(\n config: Partial<Omit<WrToastConfig, 'labels'>> & { readonly labels?: Partial<WrToastConfig['labels']> }\n): WrFeature<'toast'> {\n const merged: WrToastConfig = {\n ...DEFAULT_WR_TOAST_CONFIG,\n ...config,\n labels: { ...DEFAULT_WR_TOAST_CONFIG.labels, ...config.labels },\n };\n return wrFeature('toast', [\n { provide: WR_TOAST_CONFIG, useValue: merged },\n ...(isDevMode()\n ? [\n {\n provide: ENVIRONMENT_INITIALIZER,\n multi: true,\n useValue: (): void => {\n // Compared by identity against the application's own injector: a\n // route creates a child EnvironmentInjector, and the root-provided\n // service will resolve the token from the root regardless of what\n // this one holds. Reported here rather than at the call site,\n // because a feature function cannot know where it was spread.\n const here = inject(EnvironmentInjector);\n if (here !== inject(ApplicationRef).injector) {\n // eslint-disable-next-line no-console -- dev-mode misconfiguration diagnostic\n console.warn(\n '[NGWR] withToast() is in a route or child injector, where WrToast will never read it — ' +\n 'the service is root-provided and resolves WR_TOAST_CONFIG once, from the root. Move ' +\n 'provideWr(withToast()) to the application providers, or set the same fields per call on toast.show().'\n );\n }\n },\n },\n ]\n : []),\n ]);\n}\n"],"mappings":";;;;;;;;;;;;;;AAcA,MAAa,0BAAyC;CACpD,UAAU;CACV,MAAM;CACN,UAAU;CACV,cAAc;CACd,UAAU;CACV,cAAc;CACd,mBAAmB;CACnB,UAAU;CAGV,QAAQ;EACN,OAAO;EACP,MAAM;EACN,QAAQ;EACR,UAAU;CACX;AACF;;;;;;;ACdD,MAAa,kBAAkB,IAAI,eAA8B,mBAAmB;CAClF,YAAY;CACZ,eAAe;AAChB,CAAA;;;;;;;ACYD,IAAa,iBAAb,MAA2B;CAmBN;CACA;CACT;CACD;CACA;CArBA,SAAS,OAAgC,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CAE5C,SAAS,OAAO,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CAEnB,QAAwB,CAAA;CAGxB,OAAO;CAEP,SAAS;CAOjB,YACmB,QACA,OACT,MACD,UACA,UAAgB;EAJN,KAAA,SAAA;EACA,KAAA,QAAA;EACT,KAAA,OAAA;EACD,KAAA,WAAA;EACA,KAAA,WAAA;CACN;CAEH,IAAI,QAAK;EACP,OAAO,KAAK,OAAM,CAAE,CAAC,WAAW,KAAK,KAAK,MAAM,WAAW;CAC7D;CAEA,KAAK,IAAU;EACb,OAAO,KAAK,OAAM,CAAE,CAAC,MAAK,MAAK,EAAE,OAAO,EAAE;CAC5C;CAEA,IAAI,OAAmB;EACrB,MAAM,MAAM,KAAK;EACjB,MAAM,SAAS,KAAK,OAAM;EAC1B,IAAI,OAAO,KAAK,OAAO,SAAS,KAC9B,KAAK,OAAO,IAAI,CAAC,GAAG,QAAQ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