@forgeroute/ui 0.5.15 → 0.5.17
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/fesm2022/forgeroute-ui-action-bar.mjs +190 -0
- package/fesm2022/forgeroute-ui-action-bar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-address-input.mjs +1164 -0
- package/fesm2022/forgeroute-ui-address-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-alert.mjs +223 -0
- package/fesm2022/forgeroute-ui-alert.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-avatar.mjs +320 -0
- package/fesm2022/forgeroute-ui-avatar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-badge.mjs +158 -0
- package/fesm2022/forgeroute-ui-badge.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-bar-row.mjs +255 -0
- package/fesm2022/forgeroute-ui-bar-row.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-boards.mjs +2201 -0
- package/fesm2022/forgeroute-ui-boards.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-bulk-eligible.mjs +172 -0
- package/fesm2022/forgeroute-ui-bulk-eligible.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-business-hours.mjs +771 -0
- package/fesm2022/forgeroute-ui-business-hours.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-calendar.mjs +2006 -0
- package/fesm2022/forgeroute-ui-calendar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-card-list-item.mjs +556 -0
- package/fesm2022/forgeroute-ui-card-list-item.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-charts.mjs +1 -1
- package/fesm2022/forgeroute-ui-charts.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-checkbox.mjs +815 -0
- package/fesm2022/forgeroute-ui-checkbox.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-chip.mjs +379 -0
- package/fesm2022/forgeroute-ui-chip.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-color-input.mjs +492 -0
- package/fesm2022/forgeroute-ui-color-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-column-filter.mjs +645 -0
- package/fesm2022/forgeroute-ui-column-filter.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-columns.mjs +351 -0
- package/fesm2022/forgeroute-ui-columns.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-combobox.mjs +772 -0
- package/fesm2022/forgeroute-ui-combobox.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-confirm.mjs +48 -0
- package/fesm2022/forgeroute-ui-confirm.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-contact-picker.mjs +865 -0
- package/fesm2022/forgeroute-ui-contact-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-conversations.mjs +3627 -0
- package/fesm2022/forgeroute-ui-conversations.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-copy-field.mjs +378 -0
- package/fesm2022/forgeroute-ui-copy-field.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-data-table-core.mjs +6150 -0
- package/fesm2022/forgeroute-ui-data-table-core.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-date-input.mjs +384 -0
- package/fesm2022/forgeroute-ui-date-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-date-range-picker.mjs +453 -0
- package/fesm2022/forgeroute-ui-date-range-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-datetime-input.mjs +375 -0
- package/fesm2022/forgeroute-ui-datetime-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-detail-card.mjs +655 -0
- package/fesm2022/forgeroute-ui-detail-card.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-discount-selector.mjs +259 -0
- package/fesm2022/forgeroute-ui-discount-selector.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-divider.mjs +111 -0
- package/fesm2022/forgeroute-ui-divider.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-dropdown.mjs +550 -0
- package/fesm2022/forgeroute-ui-dropdown.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-editor.mjs +4545 -0
- package/fesm2022/forgeroute-ui-editor.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-empty-state.mjs +231 -0
- package/fesm2022/forgeroute-ui-empty-state.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-error-state.mjs +195 -0
- package/fesm2022/forgeroute-ui-error-state.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-error.mjs +93 -0
- package/fesm2022/forgeroute-ui-error.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-fade.mjs +117 -0
- package/fesm2022/forgeroute-ui-fade.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-file-input.mjs +999 -0
- package/fesm2022/forgeroute-ui-file-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-fixed-footer.mjs +115 -0
- package/fesm2022/forgeroute-ui-fixed-footer.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-form-row.mjs +126 -0
- package/fesm2022/forgeroute-ui-form-row.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-form-section.mjs +93 -0
- package/fesm2022/forgeroute-ui-form-section.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-form.mjs +139 -0
- package/fesm2022/forgeroute-ui-form.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-hint.mjs +47 -0
- package/fesm2022/forgeroute-ui-hint.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-icon-picker.mjs +424 -0
- package/fesm2022/forgeroute-ui-icon-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-icon.mjs +311 -0
- package/fesm2022/forgeroute-ui-icon.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-image-preview.mjs +237 -0
- package/fesm2022/forgeroute-ui-image-preview.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-keypad.mjs +278 -0
- package/fesm2022/forgeroute-ui-keypad.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-kpi-card.mjs +490 -0
- package/fesm2022/forgeroute-ui-kpi-card.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-language-switcher.mjs +134 -0
- package/fesm2022/forgeroute-ui-language-switcher.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-layout.mjs +18 -0
- package/fesm2022/forgeroute-ui-layout.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-list-item.mjs +620 -0
- package/fesm2022/forgeroute-ui-list-item.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-list.mjs +866 -0
- package/fesm2022/forgeroute-ui-list.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-live-region.mjs +118 -0
- package/fesm2022/forgeroute-ui-live-region.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-map.mjs +5 -1
- package/fesm2022/forgeroute-ui-map.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-maps.mjs +2 -1
- package/fesm2022/forgeroute-ui-maps.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-media.mjs +4615 -0
- package/fesm2022/forgeroute-ui-media.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-messaging.mjs +20 -1
- package/fesm2022/forgeroute-ui-messaging.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-more-menu.mjs +418 -0
- package/fesm2022/forgeroute-ui-more-menu.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-multi-select.mjs +532 -0
- package/fesm2022/forgeroute-ui-multi-select.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-notes.mjs +768 -0
- package/fesm2022/forgeroute-ui-notes.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-notification-bell.mjs +587 -0
- package/fesm2022/forgeroute-ui-notification-bell.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-offline-banner.mjs +156 -0
- package/fesm2022/forgeroute-ui-offline-banner.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-option-card.mjs +379 -0
- package/fesm2022/forgeroute-ui-option-card.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-page.mjs +317 -0
- package/fesm2022/forgeroute-ui-page.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-pagination.mjs +225 -0
- package/fesm2022/forgeroute-ui-pagination.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-panel-info-list.mjs +422 -0
- package/fesm2022/forgeroute-ui-panel-info-list.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-password-requirements.mjs +237 -0
- package/fesm2022/forgeroute-ui-password-requirements.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-payments.mjs +6243 -0
- package/fesm2022/forgeroute-ui-payments.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-pdf.mjs +9 -1
- package/fesm2022/forgeroute-ui-pdf.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-phone-number-picker.mjs +840 -0
- package/fesm2022/forgeroute-ui-phone-number-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-pill-tabs.mjs +546 -0
- package/fesm2022/forgeroute-ui-pill-tabs.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-print.mjs +76 -0
- package/fesm2022/forgeroute-ui-print.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-progress-bar.mjs +252 -0
- package/fesm2022/forgeroute-ui-progress-bar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-progress-ring.mjs +277 -0
- package/fesm2022/forgeroute-ui-progress-ring.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-quick-filter-tabs.mjs +301 -0
- package/fesm2022/forgeroute-ui-quick-filter-tabs.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-quickbooks.mjs +20 -3
- package/fesm2022/forgeroute-ui-quickbooks.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-radio-matrix.mjs +471 -0
- package/fesm2022/forgeroute-ui-radio-matrix.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-radio.mjs +911 -0
- package/fesm2022/forgeroute-ui-radio.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-read-only-mode.mjs +15 -0
- package/fesm2022/forgeroute-ui-read-only-mode.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-readonly-fieldset.mjs +146 -0
- package/fesm2022/forgeroute-ui-readonly-fieldset.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-reminder-alerts.mjs +249 -0
- package/fesm2022/forgeroute-ui-reminder-alerts.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-search-input.mjs +373 -0
- package/fesm2022/forgeroute-ui-search-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-section-header.mjs +296 -0
- package/fesm2022/forgeroute-ui-section-header.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-select.mjs +498 -0
- package/fesm2022/forgeroute-ui-select.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-setup.mjs +4649 -0
- package/fesm2022/forgeroute-ui-setup.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-share-menu.mjs +461 -0
- package/fesm2022/forgeroute-ui-share-menu.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-shell.mjs +981 -0
- package/fesm2022/forgeroute-ui-shell.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-show.mjs +129 -0
- package/fesm2022/forgeroute-ui-show.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-sidebar-layout.mjs +355 -0
- package/fesm2022/forgeroute-ui-sidebar-layout.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-skeleton.mjs +152 -0
- package/fesm2022/forgeroute-ui-skeleton.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-skip-link.mjs +129 -0
- package/fesm2022/forgeroute-ui-skip-link.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-snackbar.mjs +200 -0
- package/fesm2022/forgeroute-ui-snackbar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-square.mjs +17 -3
- package/fesm2022/forgeroute-ui-square.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-stack.mjs +233 -0
- package/fesm2022/forgeroute-ui-stack.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stacked-bar.mjs +200 -0
- package/fesm2022/forgeroute-ui-stacked-bar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stacking-plan.mjs +365 -0
- package/fesm2022/forgeroute-ui-stacking-plan.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-star-rating.mjs +498 -0
- package/fesm2022/forgeroute-ui-star-rating.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-star.mjs +184 -0
- package/fesm2022/forgeroute-ui-star.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stepper.mjs +615 -0
- package/fesm2022/forgeroute-ui-stepper.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stripe.mjs +16 -3
- package/fesm2022/forgeroute-ui-stripe.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-swatch-picker.mjs +416 -0
- package/fesm2022/forgeroute-ui-swatch-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-table-toolbar.mjs +770 -0
- package/fesm2022/forgeroute-ui-table-toolbar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-table-types.mjs +277 -0
- package/fesm2022/forgeroute-ui-table-types.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-text-input.mjs +1003 -0
- package/fesm2022/forgeroute-ui-text-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-text-template-picker.mjs +356 -0
- package/fesm2022/forgeroute-ui-text-template-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-text.mjs +195 -0
- package/fesm2022/forgeroute-ui-text.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-textarea-input.mjs +542 -0
- package/fesm2022/forgeroute-ui-textarea-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-time-input.mjs +401 -0
- package/fesm2022/forgeroute-ui-time-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-timeline.mjs +549 -0
- package/fesm2022/forgeroute-ui-timeline.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-toast.mjs +507 -0
- package/fesm2022/forgeroute-ui-toast.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-toggle-badge.mjs +177 -0
- package/fesm2022/forgeroute-ui-toggle-badge.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-toggle.mjs +275 -0
- package/fesm2022/forgeroute-ui-toggle.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-tooltip.mjs +155 -0
- package/fesm2022/forgeroute-ui-tooltip.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-utils.mjs +1071 -0
- package/fesm2022/forgeroute-ui-utils.mjs.map +1 -0
- package/fesm2022/forgeroute-ui.mjs +105 -70663
- package/package.json +417 -1
- package/types/forgeroute-ui-action-bar.d.ts +74 -0
- package/types/forgeroute-ui-address-input.d.ts +354 -0
- package/types/forgeroute-ui-alert.d.ts +89 -0
- package/types/forgeroute-ui-avatar.d.ts +85 -0
- package/types/forgeroute-ui-badge.d.ts +45 -0
- package/types/forgeroute-ui-bar-row.d.ts +90 -0
- package/types/forgeroute-ui-boards.d.ts +575 -0
- package/types/forgeroute-ui-bulk-eligible.d.ts +53 -0
- package/types/forgeroute-ui-business-hours.d.ts +191 -0
- package/types/forgeroute-ui-calendar.d.ts +544 -0
- package/types/forgeroute-ui-card-list-item.d.ts +186 -0
- package/types/forgeroute-ui-charts.d.ts +1 -1
- package/types/forgeroute-ui-checkbox.d.ts +270 -0
- package/types/forgeroute-ui-chip.d.ts +125 -0
- package/types/forgeroute-ui-color-input.d.ts +160 -0
- package/types/forgeroute-ui-column-filter.d.ts +130 -0
- package/types/forgeroute-ui-columns.d.ts +150 -0
- package/types/forgeroute-ui-combobox.d.ts +252 -0
- package/types/forgeroute-ui-confirm.d.ts +34 -0
- package/types/forgeroute-ui-contact-picker.d.ts +173 -0
- package/types/forgeroute-ui-conversations.d.ts +993 -0
- package/types/forgeroute-ui-copy-field.d.ts +122 -0
- package/types/forgeroute-ui-data-table-core.d.ts +1221 -0
- package/types/forgeroute-ui-date-input.d.ts +101 -0
- package/types/forgeroute-ui-date-range-picker.d.ts +109 -0
- package/types/forgeroute-ui-datetime-input.d.ts +97 -0
- package/types/forgeroute-ui-detail-card.d.ts +252 -0
- package/types/forgeroute-ui-discount-selector.d.ts +57 -0
- package/types/forgeroute-ui-divider.d.ts +40 -0
- package/types/forgeroute-ui-dropdown.d.ts +156 -0
- package/types/forgeroute-ui-editor.d.ts +873 -0
- package/types/forgeroute-ui-empty-state.d.ts +29 -0
- package/types/forgeroute-ui-error-state.d.ts +38 -0
- package/types/forgeroute-ui-error.d.ts +29 -0
- package/types/forgeroute-ui-fade.d.ts +39 -0
- package/types/forgeroute-ui-file-input.d.ts +337 -0
- package/types/forgeroute-ui-fixed-footer.d.ts +53 -0
- package/types/forgeroute-ui-form-row.d.ts +30 -0
- package/types/forgeroute-ui-form-section.d.ts +18 -0
- package/types/forgeroute-ui-form.d.ts +68 -0
- package/types/forgeroute-ui-hint.d.ts +10 -0
- package/types/forgeroute-ui-icon-picker.d.ts +122 -0
- package/types/forgeroute-ui-icon.d.ts +95 -0
- package/types/forgeroute-ui-image-preview.d.ts +88 -0
- package/types/forgeroute-ui-keypad.d.ts +73 -0
- package/types/forgeroute-ui-kpi-card.d.ts +161 -0
- package/types/forgeroute-ui-language-switcher.d.ts +41 -0
- package/types/forgeroute-ui-layout.d.ts +13 -0
- package/types/forgeroute-ui-list-item.d.ts +253 -0
- package/types/forgeroute-ui-list.d.ts +282 -0
- package/types/forgeroute-ui-live-region.d.ts +49 -0
- package/types/forgeroute-ui-map.d.ts +1 -1
- package/types/forgeroute-ui-maps.d.ts +1 -1
- package/types/forgeroute-ui-media.d.ts +1221 -0
- package/types/forgeroute-ui-messaging.d.ts +11 -6
- package/types/forgeroute-ui-more-menu.d.ts +91 -0
- package/types/forgeroute-ui-multi-select.d.ts +119 -0
- package/types/forgeroute-ui-notes.d.ts +172 -0
- package/types/forgeroute-ui-notification-bell.d.ts +135 -0
- package/types/forgeroute-ui-offline-banner.d.ts +44 -0
- package/types/forgeroute-ui-option-card.d.ts +106 -0
- package/types/forgeroute-ui-page.d.ts +115 -0
- package/types/forgeroute-ui-pagination.d.ts +55 -0
- package/types/forgeroute-ui-panel-info-list.d.ts +147 -0
- package/types/forgeroute-ui-password-requirements.d.ts +89 -0
- package/types/forgeroute-ui-payments.d.ts +1818 -0
- package/types/forgeroute-ui-pdf.d.ts +1 -1
- package/types/forgeroute-ui-phone-number-picker.d.ts +199 -0
- package/types/forgeroute-ui-pill-tabs.d.ts +208 -0
- package/types/forgeroute-ui-print.d.ts +40 -0
- package/types/forgeroute-ui-progress-bar.d.ts +88 -0
- package/types/forgeroute-ui-progress-ring.d.ts +102 -0
- package/types/forgeroute-ui-quick-filter-tabs.d.ts +51 -0
- package/types/forgeroute-ui-quickbooks.d.ts +6 -3
- package/types/forgeroute-ui-radio-matrix.d.ts +131 -0
- package/types/forgeroute-ui-radio.d.ts +311 -0
- package/types/forgeroute-ui-read-only-mode.d.ts +26 -0
- package/types/forgeroute-ui-readonly-fieldset.d.ts +62 -0
- package/types/forgeroute-ui-reminder-alerts.d.ts +71 -0
- package/types/forgeroute-ui-search-input.d.ts +93 -0
- package/types/forgeroute-ui-section-header.d.ts +149 -0
- package/types/forgeroute-ui-select.d.ts +183 -0
- package/types/forgeroute-ui-setup.d.ts +775 -0
- package/types/forgeroute-ui-share-menu.d.ts +99 -0
- package/types/forgeroute-ui-shell.d.ts +173 -0
- package/types/forgeroute-ui-show.d.ts +40 -0
- package/types/forgeroute-ui-sidebar-layout.d.ts +161 -0
- package/types/forgeroute-ui-skeleton.d.ts +51 -0
- package/types/forgeroute-ui-skip-link.d.ts +51 -0
- package/types/forgeroute-ui-snackbar.d.ts +50 -0
- package/types/forgeroute-ui-square.d.ts +5 -3
- package/types/forgeroute-ui-stack.d.ts +99 -0
- package/types/forgeroute-ui-stacked-bar.d.ts +84 -0
- package/types/forgeroute-ui-stacking-plan.d.ts +116 -0
- package/types/forgeroute-ui-star-rating.d.ts +151 -0
- package/types/forgeroute-ui-star.d.ts +46 -0
- package/types/forgeroute-ui-stepper.d.ts +273 -0
- package/types/forgeroute-ui-stripe.d.ts +4 -2
- package/types/forgeroute-ui-swatch-picker.d.ts +118 -0
- package/types/forgeroute-ui-table-toolbar.d.ts +116 -0
- package/types/forgeroute-ui-table-types.d.ts +624 -0
- package/types/forgeroute-ui-text-input.d.ts +359 -0
- package/types/forgeroute-ui-text-template-picker.d.ts +100 -0
- package/types/forgeroute-ui-text.d.ts +76 -0
- package/types/forgeroute-ui-textarea-input.d.ts +174 -0
- package/types/forgeroute-ui-time-input.d.ts +105 -0
- package/types/forgeroute-ui-timeline.d.ts +196 -0
- package/types/forgeroute-ui-toast.d.ts +131 -0
- package/types/forgeroute-ui-toggle-badge.d.ts +64 -0
- package/types/forgeroute-ui-toggle.d.ts +92 -0
- package/types/forgeroute-ui-tooltip.d.ts +36 -0
- package/types/forgeroute-ui-utils.d.ts +210 -0
- package/types/forgeroute-ui.d.ts +106 -19539
- package/fesm2022/forgeroute-ui.mjs.map +0 -1
|
@@ -0,0 +1,507 @@
|
|
|
1
|
+
import { DOCUMENT, NgTemplateOutlet, isPlatformBrowser } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { ApplicationRef, ChangeDetectionStrategy, Component, DestroyRef, EnvironmentInjector, Injectable, PLATFORM_ID, computed, createComponent, effect, inject, input, makeEnvironmentProviders, output, provideEnvironmentInitializer, signal, untracked } from "@angular/core";
|
|
4
|
+
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
5
|
+
import { ToastService, UiLabelsService } from "@forgeroute/ui/core";
|
|
6
|
+
var ToastHostRegistry = class ToastHostRegistry {
|
|
7
|
+
constructor() {
|
|
8
|
+
this._ids = signal([], ...ngDevMode ? [{ debugName: "_ids" }] : /* istanbul ignore next */ []);
|
|
9
|
+
this.host = computed(() => this._ids()[0], ...ngDevMode ? [{ debugName: "host" }] : /* istanbul ignore next */ []);
|
|
10
|
+
}
|
|
11
|
+
register(id) {
|
|
12
|
+
this._ids.update((a) => [...a, id]);
|
|
13
|
+
}
|
|
14
|
+
unregister(id) {
|
|
15
|
+
this._ids.update((a) => a.filter((x) => x !== id));
|
|
16
|
+
}
|
|
17
|
+
static {
|
|
18
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
19
|
+
minVersion: "12.0.0",
|
|
20
|
+
version: "22.2.2",
|
|
21
|
+
ngImport: i0,
|
|
22
|
+
type: ToastHostRegistry,
|
|
23
|
+
deps: [],
|
|
24
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
static {
|
|
28
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
29
|
+
minVersion: "12.0.0",
|
|
30
|
+
version: "22.2.2",
|
|
31
|
+
ngImport: i0,
|
|
32
|
+
type: ToastHostRegistry,
|
|
33
|
+
providedIn: "root"
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
38
|
+
minVersion: "12.0.0",
|
|
39
|
+
version: "22.2.2",
|
|
40
|
+
ngImport: i0,
|
|
41
|
+
type: ToastHostRegistry,
|
|
42
|
+
decorators: [{
|
|
43
|
+
type: Injectable,
|
|
44
|
+
args: [{ providedIn: "root" }]
|
|
45
|
+
}]
|
|
46
|
+
});
|
|
47
|
+
var ToastComponent = class ToastComponent {
|
|
48
|
+
onAction(id) {
|
|
49
|
+
this.toast.runAction(id);
|
|
50
|
+
}
|
|
51
|
+
onEscape(e) {
|
|
52
|
+
e.stopPropagation();
|
|
53
|
+
this.toast.dismiss();
|
|
54
|
+
}
|
|
55
|
+
setHover(on) {
|
|
56
|
+
this._hover = on;
|
|
57
|
+
this._syncPause();
|
|
58
|
+
}
|
|
59
|
+
setFocus(on) {
|
|
60
|
+
this._focus = on;
|
|
61
|
+
this._syncPause();
|
|
62
|
+
}
|
|
63
|
+
onFocusOut(e) {
|
|
64
|
+
const to = e.relatedTarget;
|
|
65
|
+
if (to && e.currentTarget.contains(to)) return;
|
|
66
|
+
this.setFocus(false);
|
|
67
|
+
}
|
|
68
|
+
_syncPause() {
|
|
69
|
+
if (this._hover || this._focus) this.toast.pause();
|
|
70
|
+
else this.toast.resume();
|
|
71
|
+
}
|
|
72
|
+
constructor() {
|
|
73
|
+
this.labels = inject(UiLabelsService);
|
|
74
|
+
this.toast = inject(ToastService);
|
|
75
|
+
this._registry = inject(ToastHostRegistry);
|
|
76
|
+
this._id = Symbol("ui-toast");
|
|
77
|
+
this.isHost = computed(() => this._registry.host() === this._id, ...ngDevMode ? [{ debugName: "isHost" }] : /* istanbul ignore next */ []);
|
|
78
|
+
this.dismissible = input(null, ...ngDevMode ? [{ debugName: "dismissible" }] : /* istanbul ignore next */ []);
|
|
79
|
+
this.showClose = computed(() => this.dismissible() ?? this.toast.dismissible(), ...ngDevMode ? [{ debugName: "showClose" }] : /* istanbul ignore next */ []);
|
|
80
|
+
this.persistentLiveRegion = input(null, ...ngDevMode ? [{ debugName: "persistentLiveRegion" }] : /* istanbul ignore next */ []);
|
|
81
|
+
this.persistent = computed(() => this.persistentLiveRegion() ?? this.toast.persistentLiveRegion(), ...ngDevMode ? [{ debugName: "persistent" }] : /* istanbul ignore next */ []);
|
|
82
|
+
this.queue = input(null, ...ngDevMode ? [{ debugName: "queue" }] : /* istanbul ignore next */ []);
|
|
83
|
+
this.countdown = input(null, ...ngDevMode ? [{ debugName: "countdown" }] : /* istanbul ignore next */ []);
|
|
84
|
+
this.maxQueued = input(null, ...ngDevMode ? [{ debugName: "maxQueued" }] : /* istanbul ignore next */ []);
|
|
85
|
+
this.countdownLabel = input(null, ...ngDevMode ? [{ debugName: "countdownLabel" }] : /* istanbul ignore next */ []);
|
|
86
|
+
this.queueLabelInput = input(null, {
|
|
87
|
+
...ngDevMode ? { debugName: "queueLabelInput" } : /* istanbul ignore next */ {},
|
|
88
|
+
alias: "queueLabel"
|
|
89
|
+
});
|
|
90
|
+
this.queueLabel = computed(() => this.queueLabelInput() ?? this.labels.t("toast.queueLabel"), ...ngDevMode ? [{ debugName: "queueLabel" }] : /* istanbul ignore next */ []);
|
|
91
|
+
this.action = output();
|
|
92
|
+
this.repeatKeys = computed(() => [this.toast.repeatTick()], ...ngDevMode ? [{ debugName: "repeatKeys" }] : /* istanbul ignore next */ []);
|
|
93
|
+
this.isRich = computed(() => {
|
|
94
|
+
const d = this.toast.details();
|
|
95
|
+
return !!d && (!!d.title || d.actions.length > 0 || d.countdown);
|
|
96
|
+
}, ...ngDevMode ? [{ debugName: "isRich" }] : /* istanbul ignore next */ []);
|
|
97
|
+
this.countdownPct = computed(() => {
|
|
98
|
+
const total = this.toast.totalMs();
|
|
99
|
+
return total > 0 ? Math.min(100, Math.max(0, this.toast.remainingMs() / total * 100)) : 0;
|
|
100
|
+
}, ...ngDevMode ? [{ debugName: "countdownPct" }] : /* istanbul ignore next */ []);
|
|
101
|
+
this.countdownText = computed(() => {
|
|
102
|
+
const n = Math.ceil(this.toast.remainingMs() / 1e3);
|
|
103
|
+
const custom = this.countdownLabel();
|
|
104
|
+
return custom ? custom.replace("{n}", String(n)) : this.labels.t("common.dismissingIn", { n });
|
|
105
|
+
}, ...ngDevMode ? [{ debugName: "countdownText" }] : /* istanbul ignore next */ []);
|
|
106
|
+
this.queueText = computed(() => this.queueLabel().replace("{n}", String(this.toast.queuedCount())), ...ngDevMode ? [{ debugName: "queueText" }] : /* istanbul ignore next */ []);
|
|
107
|
+
this._adoptedMessage = signal(null, ...ngDevMode ? [{ debugName: "_adoptedMessage" }] : /* istanbul ignore next */ []);
|
|
108
|
+
this.adopted = computed(() => {
|
|
109
|
+
const m = this._adoptedMessage();
|
|
110
|
+
return m !== null && m === this.toast.message();
|
|
111
|
+
}, ...ngDevMode ? [{ debugName: "adopted" }] : /* istanbul ignore next */ []);
|
|
112
|
+
this._lastRepeatTick = this.toast.repeatTick();
|
|
113
|
+
this._wasWaiting = false;
|
|
114
|
+
this._hover = false;
|
|
115
|
+
this._focus = false;
|
|
116
|
+
this._registry.register(this._id);
|
|
117
|
+
inject(DestroyRef).onDestroy(() => this._registry.unregister(this._id));
|
|
118
|
+
effect(() => {
|
|
119
|
+
if (!this.isHost()) return;
|
|
120
|
+
const q = this.queue(), c = this.countdown(), m = this.maxQueued();
|
|
121
|
+
untracked(() => {
|
|
122
|
+
if (q !== null) this.toast.queueDefault.set(q);
|
|
123
|
+
if (c !== null) this.toast.countdownDefault.set(c);
|
|
124
|
+
if (m !== null) this.toast.maxQueued.set(Math.max(0, Math.floor(m)));
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
this.toast.action$.pipe(takeUntilDestroyed()).subscribe((e) => {
|
|
128
|
+
if (this.isHost()) this.action.emit(e);
|
|
129
|
+
});
|
|
130
|
+
effect(() => {
|
|
131
|
+
const host = this.isHost();
|
|
132
|
+
const msg = this.toast.message();
|
|
133
|
+
const tick = this.toast.repeatTick();
|
|
134
|
+
untracked(() => {
|
|
135
|
+
if (tick !== this._lastRepeatTick) {
|
|
136
|
+
this._lastRepeatTick = tick;
|
|
137
|
+
if (host) this._adoptedMessage.set(null);
|
|
138
|
+
this._focus = false;
|
|
139
|
+
}
|
|
140
|
+
if (msg === null) {
|
|
141
|
+
this._hover = false;
|
|
142
|
+
this._focus = false;
|
|
143
|
+
} else if (host && (this._hover || this._focus)) this.toast.pause();
|
|
144
|
+
if (!host) {
|
|
145
|
+
this._wasWaiting = true;
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
if (this._wasWaiting) {
|
|
149
|
+
this._wasWaiting = false;
|
|
150
|
+
this._adoptedMessage.set(msg);
|
|
151
|
+
} else if (this._adoptedMessage() !== null && msg !== this._adoptedMessage()) this._adoptedMessage.set(null);
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
static {
|
|
156
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
157
|
+
minVersion: "12.0.0",
|
|
158
|
+
version: "22.2.2",
|
|
159
|
+
ngImport: i0,
|
|
160
|
+
type: ToastComponent,
|
|
161
|
+
deps: [],
|
|
162
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
static {
|
|
166
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
167
|
+
minVersion: "17.0.0",
|
|
168
|
+
version: "22.2.2",
|
|
169
|
+
type: ToastComponent,
|
|
170
|
+
isStandalone: true,
|
|
171
|
+
selector: "ui-toast",
|
|
172
|
+
inputs: {
|
|
173
|
+
dismissible: {
|
|
174
|
+
classPropertyName: "dismissible",
|
|
175
|
+
publicName: "dismissible",
|
|
176
|
+
isSignal: true,
|
|
177
|
+
isRequired: false,
|
|
178
|
+
transformFunction: null
|
|
179
|
+
},
|
|
180
|
+
persistentLiveRegion: {
|
|
181
|
+
classPropertyName: "persistentLiveRegion",
|
|
182
|
+
publicName: "persistentLiveRegion",
|
|
183
|
+
isSignal: true,
|
|
184
|
+
isRequired: false,
|
|
185
|
+
transformFunction: null
|
|
186
|
+
},
|
|
187
|
+
queue: {
|
|
188
|
+
classPropertyName: "queue",
|
|
189
|
+
publicName: "queue",
|
|
190
|
+
isSignal: true,
|
|
191
|
+
isRequired: false,
|
|
192
|
+
transformFunction: null
|
|
193
|
+
},
|
|
194
|
+
countdown: {
|
|
195
|
+
classPropertyName: "countdown",
|
|
196
|
+
publicName: "countdown",
|
|
197
|
+
isSignal: true,
|
|
198
|
+
isRequired: false,
|
|
199
|
+
transformFunction: null
|
|
200
|
+
},
|
|
201
|
+
maxQueued: {
|
|
202
|
+
classPropertyName: "maxQueued",
|
|
203
|
+
publicName: "maxQueued",
|
|
204
|
+
isSignal: true,
|
|
205
|
+
isRequired: false,
|
|
206
|
+
transformFunction: null
|
|
207
|
+
},
|
|
208
|
+
countdownLabel: {
|
|
209
|
+
classPropertyName: "countdownLabel",
|
|
210
|
+
publicName: "countdownLabel",
|
|
211
|
+
isSignal: true,
|
|
212
|
+
isRequired: false,
|
|
213
|
+
transformFunction: null
|
|
214
|
+
},
|
|
215
|
+
queueLabelInput: {
|
|
216
|
+
classPropertyName: "queueLabelInput",
|
|
217
|
+
publicName: "queueLabel",
|
|
218
|
+
isSignal: true,
|
|
219
|
+
isRequired: false,
|
|
220
|
+
transformFunction: null
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
outputs: { action: "action" },
|
|
224
|
+
ngImport: i0,
|
|
225
|
+
template: `
|
|
226
|
+
@if (isHost() && persistent()) {
|
|
227
|
+
<!-- Opt-in: the live regions are in the DOM before any message, so a screen reader (VoiceOver / Safari included) announces the text when it is added. -->
|
|
228
|
+
<div class="t-live" role="status" [attr.aria-live]="adopted() ? 'off' : 'polite'" aria-atomic="true" data-testid="toast-live-polite">
|
|
229
|
+
@if (toast.message() && toast.type() !== 'error') { <ng-container [ngTemplateOutlet]="card" /> }
|
|
230
|
+
</div>
|
|
231
|
+
<div class="t-live" role="alert" [attr.aria-live]="adopted() ? 'off' : 'assertive'" aria-atomic="true" data-testid="toast-live-assertive">
|
|
232
|
+
@if (toast.message() && toast.type() === 'error') { <ng-container [ngTemplateOutlet]="card" /> }
|
|
233
|
+
</div>
|
|
234
|
+
} @else if (isHost() && toast.message()) {
|
|
235
|
+
<ng-container [ngTemplateOutlet]="card" />
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
<ng-template #card>
|
|
239
|
+
@for (k of repeatKeys(); track k) {
|
|
240
|
+
<div
|
|
241
|
+
class="t-toast"
|
|
242
|
+
[class.t-rich]="isRich()"
|
|
243
|
+
[class.t-error]="toast.type() === 'error'"
|
|
244
|
+
[class.t-info]="toast.type() === 'info'"
|
|
245
|
+
[class.t-warning]="toast.type() === 'warning'"
|
|
246
|
+
[class.t-adopted]="adopted()"
|
|
247
|
+
[attr.role]="adopted() || persistent() ? null : (toast.type() === 'error' ? 'alert' : 'status')"
|
|
248
|
+
[attr.aria-live]="adopted() || persistent() ? null : (toast.type() === 'error' ? 'assertive' : 'polite')"
|
|
249
|
+
(mouseenter)="setHover(true)" (mouseleave)="setHover(false)"
|
|
250
|
+
(focusin)="setFocus(true)" (focusout)="onFocusOut($event)"
|
|
251
|
+
(keydown.escape)="onEscape($event)">
|
|
252
|
+
@if (toast.type() === 'error') {
|
|
253
|
+
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
|
|
254
|
+
<circle cx="12" cy="12" r="10"/><line x1="15" y1="9" x2="9" y2="15"/><line x1="9" y1="9" x2="15" y2="15"/>
|
|
255
|
+
</svg>
|
|
256
|
+
} @else if (toast.type() === 'warning') {
|
|
257
|
+
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
|
|
258
|
+
<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/>
|
|
259
|
+
</svg>
|
|
260
|
+
} @else if (toast.type() === 'info') {
|
|
261
|
+
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
|
|
262
|
+
<circle cx="12" cy="12" r="10"/><line x1="12" y1="16" x2="12" y2="12"/><line x1="12" y1="8" x2="12.01" y2="8"/>
|
|
263
|
+
</svg>
|
|
264
|
+
} @else {
|
|
265
|
+
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
|
|
266
|
+
<path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/>
|
|
267
|
+
</svg>
|
|
268
|
+
}
|
|
269
|
+
@if (isRich()) {
|
|
270
|
+
<span class="t-content">
|
|
271
|
+
@if (toast.details()?.title; as title) { <span class="t-title" data-testid="toast-title">{{ title }}</span> }
|
|
272
|
+
<span class="t-text">{{ toast.message() }}</span>
|
|
273
|
+
</span>
|
|
274
|
+
} @else {
|
|
275
|
+
<span class="t-text">{{ toast.message() }}</span>
|
|
276
|
+
}
|
|
277
|
+
@if (showClose()) {
|
|
278
|
+
<button type="button" class="t-close" [attr.aria-label]="labels.t('toast.dismissNotification')" (click)="toast.dismiss()">
|
|
279
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" aria-hidden="true">
|
|
280
|
+
<path d="M18 6L6 18"/><path d="M6 6l12 12"/>
|
|
281
|
+
</svg>
|
|
282
|
+
</button>
|
|
283
|
+
}
|
|
284
|
+
@if (toast.queuedCount() > 0) {
|
|
285
|
+
<span class="t-queue" data-testid="toast-queue">{{ queueText() }}</span>
|
|
286
|
+
}
|
|
287
|
+
@if (toast.details(); as d) {
|
|
288
|
+
@if (d.actions.length > 0) {
|
|
289
|
+
<div class="t-actions" role="group" [attr.aria-label]="labels.t('common.actions')" data-testid="toast-actions">
|
|
290
|
+
@for (a of d.actions; track a.id) {
|
|
291
|
+
<button type="button" class="t-action"
|
|
292
|
+
[class.t-action-primary]="a.variant === 'primary'" [class.t-action-danger]="a.variant === 'danger'"
|
|
293
|
+
[disabled]="a.disabled" [attr.data-testid]="'toast-action-' + a.id" (click)="onAction(a.id)">{{ a.label }}</button>
|
|
294
|
+
}
|
|
295
|
+
</div>
|
|
296
|
+
}
|
|
297
|
+
@if (d.countdown) {
|
|
298
|
+
<div class="t-countdown" aria-hidden="true">
|
|
299
|
+
<div class="t-countdown-bar"><div class="t-countdown-fill" [style.width.%]="countdownPct()" data-testid="toast-countdown-fill"></div></div>
|
|
300
|
+
<div class="t-countdown-label" data-testid="toast-countdown">{{ countdownText() }}</div>
|
|
301
|
+
</div>
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
</div>
|
|
305
|
+
}
|
|
306
|
+
</ng-template>
|
|
307
|
+
`,
|
|
308
|
+
isInline: true,
|
|
309
|
+
styles: [".t-live{position:absolute;width:0;height:0;margin:0;padding:0;overflow:visible}.t-toast{position:fixed;bottom:max(24px,env(safe-area-inset-bottom,0px));left:50%;transform:translate(-50%);background:#047857;color:#fff;padding:11px 20px;border-radius:12px;font-size:.875rem;font-weight:500;z-index:9999;box-shadow:0 4px 16px #0000002e;animation:t-in .28s cubic-bezier(.16,1,.3,1);display:flex;align-items:center;gap:8px;max-width:calc(100vw - 32px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));overflow-wrap:anywhere;word-break:break-word}.t-error{background:#dc2626}.t-info{background:#2563eb}.t-warning{background:#b45309}.t-adopted{animation:none}.t-text{min-width:0}.t-close{position:relative;flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;margin:-4px -10px -4px 0;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer}.t-close:after{content:\"\";position:absolute;inset:-8px}.t-close:hover{background:#fff3}.t-close:focus-visible{outline:2px solid #fff;outline-offset:1px}.t-rich{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;column-gap:8px;row-gap:10px;min-width:min(320px,calc(100vw - 32px))}.t-rich>svg:first-child{margin-top:2px}.t-content{display:flex;flex-direction:column;gap:2px;min-width:0}.t-title{font-weight:700}.t-queue{grid-column:1 / -1;justify-self:end;font-size:.75rem;font-weight:600;padding:1px 8px;border-radius:999px;background:#ffffff38}.t-actions{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:8px}.t-action{min-height:32px;padding:6px 14px;border-radius:8px;font:inherit;font-size:.8125rem;font-weight:600;cursor:pointer;color:#fff;background:#ffffff2e;border:1px solid rgba(255,255,255,.6)}.t-action:hover:not(:disabled){background:#ffffff4d}.t-action:focus-visible{outline:2px solid #fff;outline-offset:2px}.t-action:disabled{opacity:.5;cursor:not-allowed}.t-action-primary{background:#fff;color:#0f172a;border-color:#fff}.t-action-primary:hover:not(:disabled){background:#f1f5f9}.t-action-danger{background:#7f1d1d;border-color:#ffffffb3}.t-action-danger:hover:not(:disabled){background:#991b1b}.t-countdown{grid-column:1 / -1;display:flex;flex-direction:column;gap:4px}.t-countdown-bar{height:4px;border-radius:2px;background:#ffffff47;overflow:hidden}.t-countdown-fill{height:100%;background:#fff;transition:width .2s linear}.t-countdown-label{font-size:.75rem;opacity:.85;font-variant-numeric:tabular-nums}@media(prefers-reduced-motion:reduce){.t-countdown-fill{transition:none}}@media(pointer:coarse),(max-width:480px){.t-action{min-height:44px}}@keyframes t-in{0%{opacity:0;transform:translate(-50%) translateY(10px)}to{opacity:1;transform:translate(-50%) translateY(0)}}@media(prefers-reduced-motion:reduce){.t-toast{animation:none}}@media(max-width:480px){.t-toast{bottom:max(16px,env(safe-area-inset-bottom,16px));font-size:.8125rem;padding:10px 16px}}\n"],
|
|
310
|
+
dependencies: [{
|
|
311
|
+
kind: "directive",
|
|
312
|
+
type: NgTemplateOutlet,
|
|
313
|
+
selector: "[ngTemplateOutlet]",
|
|
314
|
+
inputs: [
|
|
315
|
+
"ngTemplateOutletContext",
|
|
316
|
+
"ngTemplateOutlet",
|
|
317
|
+
"ngTemplateOutletInjector"
|
|
318
|
+
]
|
|
319
|
+
}],
|
|
320
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
325
|
+
minVersion: "12.0.0",
|
|
326
|
+
version: "22.2.2",
|
|
327
|
+
ngImport: i0,
|
|
328
|
+
type: ToastComponent,
|
|
329
|
+
decorators: [{
|
|
330
|
+
type: Component,
|
|
331
|
+
args: [{
|
|
332
|
+
selector: "ui-toast",
|
|
333
|
+
standalone: true,
|
|
334
|
+
imports: [NgTemplateOutlet],
|
|
335
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
336
|
+
template: `
|
|
337
|
+
@if (isHost() && persistent()) {
|
|
338
|
+
<!-- Opt-in: the live regions are in the DOM before any message, so a screen reader (VoiceOver / Safari included) announces the text when it is added. -->
|
|
339
|
+
<div class="t-live" role="status" [attr.aria-live]="adopted() ? 'off' : 'polite'" aria-atomic="true" data-testid="toast-live-polite">
|
|
340
|
+
@if (toast.message() && toast.type() !== 'error') { <ng-container [ngTemplateOutlet]="card" /> }
|
|
341
|
+
</div>
|
|
342
|
+
<div class="t-live" role="alert" [attr.aria-live]="adopted() ? 'off' : 'assertive'" aria-atomic="true" data-testid="toast-live-assertive">
|
|
343
|
+
@if (toast.message() && toast.type() === 'error') { <ng-container [ngTemplateOutlet]="card" /> }
|
|
344
|
+
</div>
|
|
345
|
+
} @else if (isHost() && toast.message()) {
|
|
346
|
+
<ng-container [ngTemplateOutlet]="card" />
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
<ng-template #card>
|
|
350
|
+
@for (k of repeatKeys(); track k) {
|
|
351
|
+
<div
|
|
352
|
+
class="t-toast"
|
|
353
|
+
[class.t-rich]="isRich()"
|
|
354
|
+
[class.t-error]="toast.type() === 'error'"
|
|
355
|
+
[class.t-info]="toast.type() === 'info'"
|
|
356
|
+
[class.t-warning]="toast.type() === 'warning'"
|
|
357
|
+
[class.t-adopted]="adopted()"
|
|
358
|
+
[attr.role]="adopted() || persistent() ? null : (toast.type() === 'error' ? 'alert' : 'status')"
|
|
359
|
+
[attr.aria-live]="adopted() || persistent() ? null : (toast.type() === 'error' ? 'assertive' : 'polite')"
|
|
360
|
+
(mouseenter)="setHover(true)" (mouseleave)="setHover(false)"
|
|
361
|
+
(focusin)="setFocus(true)" (focusout)="onFocusOut($event)"
|
|
362
|
+
(keydown.escape)="onEscape($event)">
|
|
363
|
+
@if (toast.type() === 'error') {
|
|
364
|
+
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
|
|
365
|
+
<circle cx="12" cy="12" r="10"/><line x1="15" y1="9" x2="9" y2="15"/><line x1="9" y1="9" x2="15" y2="15"/>
|
|
366
|
+
</svg>
|
|
367
|
+
} @else if (toast.type() === 'warning') {
|
|
368
|
+
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
|
|
369
|
+
<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/>
|
|
370
|
+
</svg>
|
|
371
|
+
} @else if (toast.type() === 'info') {
|
|
372
|
+
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
|
|
373
|
+
<circle cx="12" cy="12" r="10"/><line x1="12" y1="16" x2="12" y2="12"/><line x1="12" y1="8" x2="12.01" y2="8"/>
|
|
374
|
+
</svg>
|
|
375
|
+
} @else {
|
|
376
|
+
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
|
|
377
|
+
<path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/>
|
|
378
|
+
</svg>
|
|
379
|
+
}
|
|
380
|
+
@if (isRich()) {
|
|
381
|
+
<span class="t-content">
|
|
382
|
+
@if (toast.details()?.title; as title) { <span class="t-title" data-testid="toast-title">{{ title }}</span> }
|
|
383
|
+
<span class="t-text">{{ toast.message() }}</span>
|
|
384
|
+
</span>
|
|
385
|
+
} @else {
|
|
386
|
+
<span class="t-text">{{ toast.message() }}</span>
|
|
387
|
+
}
|
|
388
|
+
@if (showClose()) {
|
|
389
|
+
<button type="button" class="t-close" [attr.aria-label]="labels.t('toast.dismissNotification')" (click)="toast.dismiss()">
|
|
390
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" aria-hidden="true">
|
|
391
|
+
<path d="M18 6L6 18"/><path d="M6 6l12 12"/>
|
|
392
|
+
</svg>
|
|
393
|
+
</button>
|
|
394
|
+
}
|
|
395
|
+
@if (toast.queuedCount() > 0) {
|
|
396
|
+
<span class="t-queue" data-testid="toast-queue">{{ queueText() }}</span>
|
|
397
|
+
}
|
|
398
|
+
@if (toast.details(); as d) {
|
|
399
|
+
@if (d.actions.length > 0) {
|
|
400
|
+
<div class="t-actions" role="group" [attr.aria-label]="labels.t('common.actions')" data-testid="toast-actions">
|
|
401
|
+
@for (a of d.actions; track a.id) {
|
|
402
|
+
<button type="button" class="t-action"
|
|
403
|
+
[class.t-action-primary]="a.variant === 'primary'" [class.t-action-danger]="a.variant === 'danger'"
|
|
404
|
+
[disabled]="a.disabled" [attr.data-testid]="'toast-action-' + a.id" (click)="onAction(a.id)">{{ a.label }}</button>
|
|
405
|
+
}
|
|
406
|
+
</div>
|
|
407
|
+
}
|
|
408
|
+
@if (d.countdown) {
|
|
409
|
+
<div class="t-countdown" aria-hidden="true">
|
|
410
|
+
<div class="t-countdown-bar"><div class="t-countdown-fill" [style.width.%]="countdownPct()" data-testid="toast-countdown-fill"></div></div>
|
|
411
|
+
<div class="t-countdown-label" data-testid="toast-countdown">{{ countdownText() }}</div>
|
|
412
|
+
</div>
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
</div>
|
|
416
|
+
}
|
|
417
|
+
</ng-template>
|
|
418
|
+
`,
|
|
419
|
+
styles: [".t-live{position:absolute;width:0;height:0;margin:0;padding:0;overflow:visible}.t-toast{position:fixed;bottom:max(24px,env(safe-area-inset-bottom,0px));left:50%;transform:translate(-50%);background:#047857;color:#fff;padding:11px 20px;border-radius:12px;font-size:.875rem;font-weight:500;z-index:9999;box-shadow:0 4px 16px #0000002e;animation:t-in .28s cubic-bezier(.16,1,.3,1);display:flex;align-items:center;gap:8px;max-width:calc(100vw - 32px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));overflow-wrap:anywhere;word-break:break-word}.t-error{background:#dc2626}.t-info{background:#2563eb}.t-warning{background:#b45309}.t-adopted{animation:none}.t-text{min-width:0}.t-close{position:relative;flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;margin:-4px -10px -4px 0;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer}.t-close:after{content:\"\";position:absolute;inset:-8px}.t-close:hover{background:#fff3}.t-close:focus-visible{outline:2px solid #fff;outline-offset:1px}.t-rich{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;column-gap:8px;row-gap:10px;min-width:min(320px,calc(100vw - 32px))}.t-rich>svg:first-child{margin-top:2px}.t-content{display:flex;flex-direction:column;gap:2px;min-width:0}.t-title{font-weight:700}.t-queue{grid-column:1 / -1;justify-self:end;font-size:.75rem;font-weight:600;padding:1px 8px;border-radius:999px;background:#ffffff38}.t-actions{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:8px}.t-action{min-height:32px;padding:6px 14px;border-radius:8px;font:inherit;font-size:.8125rem;font-weight:600;cursor:pointer;color:#fff;background:#ffffff2e;border:1px solid rgba(255,255,255,.6)}.t-action:hover:not(:disabled){background:#ffffff4d}.t-action:focus-visible{outline:2px solid #fff;outline-offset:2px}.t-action:disabled{opacity:.5;cursor:not-allowed}.t-action-primary{background:#fff;color:#0f172a;border-color:#fff}.t-action-primary:hover:not(:disabled){background:#f1f5f9}.t-action-danger{background:#7f1d1d;border-color:#ffffffb3}.t-action-danger:hover:not(:disabled){background:#991b1b}.t-countdown{grid-column:1 / -1;display:flex;flex-direction:column;gap:4px}.t-countdown-bar{height:4px;border-radius:2px;background:#ffffff47;overflow:hidden}.t-countdown-fill{height:100%;background:#fff;transition:width .2s linear}.t-countdown-label{font-size:.75rem;opacity:.85;font-variant-numeric:tabular-nums}@media(prefers-reduced-motion:reduce){.t-countdown-fill{transition:none}}@media(pointer:coarse),(max-width:480px){.t-action{min-height:44px}}@keyframes t-in{0%{opacity:0;transform:translate(-50%) translateY(10px)}to{opacity:1;transform:translate(-50%) translateY(0)}}@media(prefers-reduced-motion:reduce){.t-toast{animation:none}}@media(max-width:480px){.t-toast{bottom:max(16px,env(safe-area-inset-bottom,16px));font-size:.8125rem;padding:10px 16px}}\n"]
|
|
420
|
+
}]
|
|
421
|
+
}],
|
|
422
|
+
ctorParameters: () => [],
|
|
423
|
+
propDecorators: {
|
|
424
|
+
dismissible: [{
|
|
425
|
+
type: i0.Input,
|
|
426
|
+
args: [{
|
|
427
|
+
isSignal: true,
|
|
428
|
+
alias: "dismissible",
|
|
429
|
+
required: false
|
|
430
|
+
}]
|
|
431
|
+
}],
|
|
432
|
+
persistentLiveRegion: [{
|
|
433
|
+
type: i0.Input,
|
|
434
|
+
args: [{
|
|
435
|
+
isSignal: true,
|
|
436
|
+
alias: "persistentLiveRegion",
|
|
437
|
+
required: false
|
|
438
|
+
}]
|
|
439
|
+
}],
|
|
440
|
+
queue: [{
|
|
441
|
+
type: i0.Input,
|
|
442
|
+
args: [{
|
|
443
|
+
isSignal: true,
|
|
444
|
+
alias: "queue",
|
|
445
|
+
required: false
|
|
446
|
+
}]
|
|
447
|
+
}],
|
|
448
|
+
countdown: [{
|
|
449
|
+
type: i0.Input,
|
|
450
|
+
args: [{
|
|
451
|
+
isSignal: true,
|
|
452
|
+
alias: "countdown",
|
|
453
|
+
required: false
|
|
454
|
+
}]
|
|
455
|
+
}],
|
|
456
|
+
maxQueued: [{
|
|
457
|
+
type: i0.Input,
|
|
458
|
+
args: [{
|
|
459
|
+
isSignal: true,
|
|
460
|
+
alias: "maxQueued",
|
|
461
|
+
required: false
|
|
462
|
+
}]
|
|
463
|
+
}],
|
|
464
|
+
countdownLabel: [{
|
|
465
|
+
type: i0.Input,
|
|
466
|
+
args: [{
|
|
467
|
+
isSignal: true,
|
|
468
|
+
alias: "countdownLabel",
|
|
469
|
+
required: false
|
|
470
|
+
}]
|
|
471
|
+
}],
|
|
472
|
+
queueLabelInput: [{
|
|
473
|
+
type: i0.Input,
|
|
474
|
+
args: [{
|
|
475
|
+
isSignal: true,
|
|
476
|
+
alias: "queueLabel",
|
|
477
|
+
required: false
|
|
478
|
+
}]
|
|
479
|
+
}],
|
|
480
|
+
action: [{
|
|
481
|
+
type: i0.Output,
|
|
482
|
+
args: ["action"]
|
|
483
|
+
}]
|
|
484
|
+
}
|
|
485
|
+
});
|
|
486
|
+
function provideForgerouteToast(options = {}) {
|
|
487
|
+
return makeEnvironmentProviders([provideEnvironmentInitializer(() => {
|
|
488
|
+
if (options.dismissible) inject(ToastService).dismissible.set(true);
|
|
489
|
+
if (options.persistentLiveRegion) inject(ToastService).persistentLiveRegion.set(true);
|
|
490
|
+
if (options.queue) inject(ToastService).queueDefault.set(true);
|
|
491
|
+
if (options.countdown) inject(ToastService).countdownDefault.set(true);
|
|
492
|
+
if (options.maxQueued !== void 0) inject(ToastService).maxQueued.set(Math.max(0, Math.floor(options.maxQueued)));
|
|
493
|
+
if (!isPlatformBrowser(inject(PLATFORM_ID))) return;
|
|
494
|
+
const doc = inject(DOCUMENT);
|
|
495
|
+
const appRef = inject(ApplicationRef);
|
|
496
|
+
const ref = createComponent(ToastComponent, { environmentInjector: inject(EnvironmentInjector) });
|
|
497
|
+
appRef.attachView(ref.hostView);
|
|
498
|
+
doc.body.appendChild(ref.location.nativeElement);
|
|
499
|
+
inject(DestroyRef).onDestroy(() => {
|
|
500
|
+
ref.destroy();
|
|
501
|
+
ref.location.nativeElement.remove();
|
|
502
|
+
});
|
|
503
|
+
})]);
|
|
504
|
+
}
|
|
505
|
+
export { ToastComponent, provideForgerouteToast };
|
|
506
|
+
|
|
507
|
+
//# sourceMappingURL=forgeroute-ui-toast.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forgeroute-ui-toast.mjs","names":[],"sources":["../../../projects/forgeroute-ui/toast/src/lib/toast/toast-host-registry.ts","../../../projects/forgeroute-ui/toast/src/lib/toast/toast.component.ts","../../../projects/forgeroute-ui/toast/src/lib/toast/toast-outlet.ts"],"sourcesContent":["import { Injectable, signal, computed } from '@angular/core';\n\n/**\n * Tracks every live `<ui-toast>` so only one renders (internal — not exported from the public API).\n *\n * The data-table embeds its own toast and apps/shells render one too; they all read the same\n * ToastService at the same fixed position, which would show (and announce) each message twice.\n * Rule: the EARLIEST-CREATED live instance is the host. When it is destroyed the next one takes over.\n *\n * Not handled: a host with no layout box (e.g. inside a `display: none` ancestor) does not hand over.\n * Detecting that needs a post-render layout measurement on every toast; shells render their toast\n * outside hidden containers in practice.\n */\n@Injectable({ providedIn: 'root' })\nexport class ToastHostRegistry {\n private readonly _ids = signal<symbol[]>([]);\n /** The registered instance that currently renders, or undefined when none is alive. */\n readonly host = computed(() => this._ids()[0]);\n register(id: symbol) { this._ids.update(a => [...a, id]); }\n unregister(id: symbol) { this._ids.update(a => a.filter(x => x !== id)); }\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { Component, inject, input, output, signal, computed, effect, untracked, DestroyRef, ChangeDetectionStrategy } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { ToastActionEvent, ToastService } from '@forgeroute/ui/core';\nimport { ToastHostRegistry } from './toast-host-registry';\nimport { UiLabelsService } from '@forgeroute/ui/core';\n\n@Component({\n selector: 'ui-toast',\n standalone: true,\n imports: [NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n @if (isHost() && persistent()) {\n <!-- Opt-in: the live regions are in the DOM before any message, so a screen reader (VoiceOver / Safari included) announces the text when it is added. -->\n <div class=\"t-live\" role=\"status\" [attr.aria-live]=\"adopted() ? 'off' : 'polite'\" aria-atomic=\"true\" data-testid=\"toast-live-polite\">\n @if (toast.message() && toast.type() !== 'error') { <ng-container [ngTemplateOutlet]=\"card\" /> }\n </div>\n <div class=\"t-live\" role=\"alert\" [attr.aria-live]=\"adopted() ? 'off' : 'assertive'\" aria-atomic=\"true\" data-testid=\"toast-live-assertive\">\n @if (toast.message() && toast.type() === 'error') { <ng-container [ngTemplateOutlet]=\"card\" /> }\n </div>\n } @else if (isHost() && toast.message()) {\n <ng-container [ngTemplateOutlet]=\"card\" />\n }\n\n <ng-template #card>\n @for (k of repeatKeys(); track k) {\n <div\n class=\"t-toast\"\n [class.t-rich]=\"isRich()\"\n [class.t-error]=\"toast.type() === 'error'\"\n [class.t-info]=\"toast.type() === 'info'\"\n [class.t-warning]=\"toast.type() === 'warning'\"\n [class.t-adopted]=\"adopted()\"\n [attr.role]=\"adopted() || persistent() ? null : (toast.type() === 'error' ? 'alert' : 'status')\"\n [attr.aria-live]=\"adopted() || persistent() ? null : (toast.type() === 'error' ? 'assertive' : 'polite')\"\n (mouseenter)=\"setHover(true)\" (mouseleave)=\"setHover(false)\"\n (focusin)=\"setFocus(true)\" (focusout)=\"onFocusOut($event)\"\n (keydown.escape)=\"onEscape($event)\">\n @if (toast.type() === 'error') {\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" aria-hidden=\"true\">\n <circle cx=\"12\" cy=\"12\" r=\"10\"/><line x1=\"15\" y1=\"9\" x2=\"9\" y2=\"15\"/><line x1=\"9\" y1=\"9\" x2=\"15\" y2=\"15\"/>\n </svg>\n } @else if (toast.type() === 'warning') {\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" aria-hidden=\"true\">\n <path d=\"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z\"/><line x1=\"12\" y1=\"9\" x2=\"12\" y2=\"13\"/><line x1=\"12\" y1=\"17\" x2=\"12.01\" y2=\"17\"/>\n </svg>\n } @else if (toast.type() === 'info') {\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" aria-hidden=\"true\">\n <circle cx=\"12\" cy=\"12\" r=\"10\"/><line x1=\"12\" y1=\"16\" x2=\"12\" y2=\"12\"/><line x1=\"12\" y1=\"8\" x2=\"12.01\" y2=\"8\"/>\n </svg>\n } @else {\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" aria-hidden=\"true\">\n <path d=\"M22 11.08V12a10 10 0 1 1-5.93-9.14\"/><polyline points=\"22 4 12 14.01 9 11.01\"/>\n </svg>\n }\n @if (isRich()) {\n <span class=\"t-content\">\n @if (toast.details()?.title; as title) { <span class=\"t-title\" data-testid=\"toast-title\">{{ title }}</span> }\n <span class=\"t-text\">{{ toast.message() }}</span>\n </span>\n } @else {\n <span class=\"t-text\">{{ toast.message() }}</span>\n }\n @if (showClose()) {\n <button type=\"button\" class=\"t-close\" [attr.aria-label]=\"labels.t('toast.dismissNotification')\" (click)=\"toast.dismiss()\">\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <path d=\"M18 6L6 18\"/><path d=\"M6 6l12 12\"/>\n </svg>\n </button>\n }\n @if (toast.queuedCount() > 0) {\n <span class=\"t-queue\" data-testid=\"toast-queue\">{{ queueText() }}</span>\n }\n @if (toast.details(); as d) {\n @if (d.actions.length > 0) {\n <div class=\"t-actions\" role=\"group\" [attr.aria-label]=\"labels.t('common.actions')\" data-testid=\"toast-actions\">\n @for (a of d.actions; track a.id) {\n <button type=\"button\" class=\"t-action\"\n [class.t-action-primary]=\"a.variant === 'primary'\" [class.t-action-danger]=\"a.variant === 'danger'\"\n [disabled]=\"a.disabled\" [attr.data-testid]=\"'toast-action-' + a.id\" (click)=\"onAction(a.id)\">{{ a.label }}</button>\n }\n </div>\n }\n @if (d.countdown) {\n <div class=\"t-countdown\" aria-hidden=\"true\">\n <div class=\"t-countdown-bar\"><div class=\"t-countdown-fill\" [style.width.%]=\"countdownPct()\" data-testid=\"toast-countdown-fill\"></div></div>\n <div class=\"t-countdown-label\" data-testid=\"toast-countdown\">{{ countdownText() }}</div>\n </div>\n }\n }\n </div>\n }\n </ng-template>\n `,\n styles: [`\n /* The persistent live regions take no space: the toast itself is position: fixed. */\n .t-live { position: absolute; width: 0; height: 0; margin: 0; padding: 0; overflow: visible; }\n .t-toast {\n position: fixed; bottom: max(24px, env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%);\n background: #047857; color: #fff; padding: 11px 20px; border-radius: 12px;\n font-size: 0.875rem; font-weight: 500; z-index: 9999;\n box-shadow: 0 4px 16px rgba(0,0,0,0.18); animation: t-in 280ms cubic-bezier(0.16, 1, 0.3, 1);\n display: flex; align-items: center; gap: 8px;\n max-width: calc(100vw - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));\n overflow-wrap: anywhere; word-break: break-word;\n }\n .t-error { background: #dc2626; }\n .t-info { background: #2563eb; }\n .t-warning { background: #b45309; }\n /* Taken over from a destroyed host mid-toast: no slide-in replay. */\n .t-adopted { animation: none; }\n .t-text { min-width: 0; }\n .t-close {\n position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center;\n width: 28px; height: 28px; margin: -4px -10px -4px 0; padding: 0; border: 0; border-radius: 50%;\n background: transparent; color: inherit; cursor: pointer;\n }\n /* 44px hit area around the 28px control */\n .t-close::after { content: ''; position: absolute; inset: -8px; }\n .t-close:hover { background: rgba(255, 255, 255, 0.2); }\n .t-close:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }\n /* Rich toast (title / buttons / countdown): a grid so the buttons and the countdown sit under the message. Plain toasts never get .t-rich. */\n .t-rich { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; column-gap: 8px; row-gap: 10px; min-width: min(320px, calc(100vw - 32px)); }\n .t-rich > svg:first-child { margin-top: 2px; }\n .t-content { display: flex; flex-direction: column; gap: 2px; min-width: 0; }\n .t-title { font-weight: 700; }\n .t-queue {\n grid-column: 1 / -1; justify-self: end; font-size: 0.75rem; font-weight: 600; padding: 1px 8px; border-radius: 999px;\n background: rgba(255, 255, 255, 0.22);\n }\n .t-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }\n .t-action {\n min-height: 32px; padding: 6px 14px; border-radius: 8px; font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer;\n color: #fff; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.6);\n }\n .t-action:hover:not(:disabled) { background: rgba(255, 255, 255, 0.3); }\n .t-action:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }\n .t-action:disabled { opacity: 0.5; cursor: not-allowed; }\n .t-action-primary { background: #fff; color: #0f172a; border-color: #fff; }\n .t-action-primary:hover:not(:disabled) { background: #f1f5f9; }\n .t-action-danger { background: #7f1d1d; border-color: rgba(255, 255, 255, 0.7); }\n .t-action-danger:hover:not(:disabled) { background: #991b1b; }\n .t-countdown { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; }\n .t-countdown-bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.28); overflow: hidden; }\n .t-countdown-fill { height: 100%; background: #fff; transition: width 200ms linear; }\n .t-countdown-label { font-size: 0.75rem; opacity: 0.85; font-variant-numeric: tabular-nums; }\n @media (prefers-reduced-motion: reduce) { .t-countdown-fill { transition: none; } }\n @media (pointer: coarse), (max-width: 480px) { .t-action { min-height: 44px; } }\n @keyframes t-in {\n from { opacity: 0; transform: translateX(-50%) translateY(10px); }\n to { opacity: 1; transform: translateX(-50%) translateY(0); }\n }\n @media (prefers-reduced-motion: reduce) {\n .t-toast { animation: none; }\n }\n @media (max-width: 480px) {\n .t-toast {\n bottom: max(16px, env(safe-area-inset-bottom, 16px));\n font-size: 0.8125rem; padding: 10px 16px;\n }\n }\n `],\n})\nexport class ToastComponent {\n protected readonly labels = inject(UiLabelsService);\n protected readonly toast = inject(ToastService);\n private readonly _registry = inject(ToastHostRegistry);\n private readonly _id = Symbol('ui-toast');\n /** True only for the earliest live instance, so exactly one toast (and one live region) renders. */\n protected readonly isHost = computed(() => this._registry.host() === this._id);\n\n /**\n * Opt-in close button. `null` (default) = follow `ToastService.dismissible` (itself `false` unless the app opted in with\n * `provideForgerouteToast({ dismissible: true })`); `true` / `false` forces it for this outlet. Without it the toast has no\n * control and looks exactly as it always did.\n */\n readonly dismissible = input<boolean | null>(null);\n protected readonly showClose = computed(() => this.dismissible() ?? this.toast.dismissible());\n\n /**\n * Opt-in: keep two always-present live regions (polite for success / info, assertive for errors) and put the toast inside the\n * matching one, instead of giving the toast its own role when it appears. A live region that already exists when its text\n * changes is announced reliably by VoiceOver / Safari; one inserted together with its text often is not. `null` (default) =\n * follow `ToastService.persistentLiveRegion` (`false` unless the app sets it with `provideForgerouteToast({ persistentLiveRegion: true })`);\n * `true` / `false` forces it for this outlet. Off = the markup and roles are exactly as they always were.\n */\n readonly persistentLiveRegion = input<boolean | null>(null);\n protected readonly persistent = computed(() => this.persistentLiveRegion() ?? this.toast.persistentLiveRegion());\n\n /**\n * Outlet-wide defaults for the optional parts of a toast (a message's own options win). `null` (default) leaves the app / service setting alone\n * (`provideForgerouteToast`, itself off); a value is applied while this is the live outlet.\n *\n * - `queue`: a toast that arrives while another is showing waits for it instead of replacing it.\n * - `countdown`: show \"Dismissing in Ns\" and a shrinking bar on every toast.\n * - `maxQueued`: how many may wait (default 20).\n */\n readonly queue = input<boolean | null>(null);\n readonly countdown = input<boolean | null>(null);\n readonly maxQueued = input<number | null>(null);\n /** Wording of the countdown line; `{n}` is the seconds left. */\n /** Countdown text with `{n}` for the seconds; `null` (default) = the library text for the active language. */\n readonly countdownLabel = input<string | null>(null);\n /** Wording of the chip that says how many toasts are waiting; `{n}` is the count. */\n readonly queueLabelInput = input<string | null>(null, { alias: 'queueLabel' });\n readonly queueLabel = computed(() => this.queueLabelInput() ?? this.labels.t('toast.queueLabel'));\n /** A toast button was used (also after its own `onAction`). */\n readonly action = output<ToastActionEvent>();\n\n /** One entry that changes with every `repeat: true` toast: the @for re-creates the toast element, so identical text is announced again. */\n protected readonly repeatKeys = computed(() => [this.toast.repeatTick()]);\n\n protected readonly isRich = computed(() => {\n const d = this.toast.details();\n return !!d && (!!d.title || d.actions.length > 0 || d.countdown);\n });\n protected readonly countdownPct = computed(() => {\n const total = this.toast.totalMs();\n return total > 0 ? Math.min(100, Math.max(0, (this.toast.remainingMs() / total) * 100)) : 0;\n });\n protected readonly countdownText = computed(() => {\n const n = Math.ceil(this.toast.remainingMs() / 1000);\n const custom = this.countdownLabel();\n return custom ? custom.replace('{n}', String(n)) : this.labels.t('common.dismissingIn', { n });\n });\n protected readonly queueText = computed(() => this.queueLabel().replace('{n}', String(this.toast.queuedCount())));\n protected onAction(id: string) { this.toast.runAction(id); }\n\n /**\n * Message that was already on screen when this instance took over from a destroyed host. While it is\n * unchanged the toast renders without the entry animation and without live-region roles, so the\n * hand-over neither replays nor re-announces it. A new message clears this.\n */\n private readonly _adoptedMessage = signal<string | null>(null);\n protected readonly adopted = computed(() => {\n const m = this._adoptedMessage();\n return m !== null && m === this.toast.message();\n });\n private _lastRepeatTick = this.toast.repeatTick();\n private _wasWaiting = false;\n private _hover = false;\n private _focus = false;\n\n /** Escape on a focused toast dismisses only the toast: a panel or dialog behind it that also listens for Escape stays open. */\n protected onEscape(e: Event) { e.stopPropagation(); this.toast.dismiss(); }\n protected setHover(on: boolean) { this._hover = on; this._syncPause(); }\n protected setFocus(on: boolean) { this._focus = on; this._syncPause(); }\n protected onFocusOut(e: FocusEvent) {\n // focus moving to another control inside the toast keeps it paused\n const to = e.relatedTarget as Node | null;\n if (to && (e.currentTarget as HTMLElement).contains(to)) return;\n this.setFocus(false);\n }\n /** The countdown holds while the pointer or focus is on the toast and continues when both have left. */\n private _syncPause() {\n if (this._hover || this._focus) this.toast.pause(); else this.toast.resume();\n }\n\n constructor() {\n this._registry.register(this._id);\n inject(DestroyRef).onDestroy(() => this._registry.unregister(this._id));\n\n // Only the live outlet configures the service and re-emits button uses, so two outlets never fight over the defaults or emit twice.\n effect(() => {\n if (!this.isHost()) return;\n const q = this.queue(), c = this.countdown(), m = this.maxQueued();\n untracked(() => {\n if (q !== null) this.toast.queueDefault.set(q);\n if (c !== null) this.toast.countdownDefault.set(c);\n if (m !== null) this.toast.maxQueued.set(Math.max(0, Math.floor(m)));\n });\n });\n this.toast.action$.pipe(takeUntilDestroyed()).subscribe(e => { if (this.isHost()) this.action.emit(e); });\n\n effect(() => {\n const host = this.isHost();\n const msg = this.toast.message();\n const tick = this.toast.repeatTick(); // a repeated identical toast is a new element: hold it again if the pointer is still on the toast (the old element and its focus are gone)\n untracked(() => {\n // A repeat (`repeat: true`) must be announced, so it is never treated as the silent hand-over of the message that was already showing.\n if (tick !== this._lastRepeatTick) {\n this._lastRepeatTick = tick;\n if (host) this._adoptedMessage.set(null);\n // The repeated toast is a NEW element: the old one (and the focus inside it) is gone, and a browser may not fire focusout when a focused element is\n // removed, so a stale focus flag would hold the new toast forever. The pointer flag stays (the pointer is still over the same spot; mouseleave clears it).\n this._focus = false;\n }\n // A toast that goes away (close button, Escape, expiry) never fires mouseleave / focusout, so forget the pointer / focus here;\n // a stale flag would keep the NEXT toast paused forever. A new message replacing one that is held stays held.\n if (msg === null) { this._hover = false; this._focus = false; }\n else if (host && (this._hover || this._focus)) this.toast.pause();\n if (!host) { this._wasWaiting = true; return; }\n if (this._wasWaiting) { this._wasWaiting = false; this._adoptedMessage.set(msg); }\n else if (this._adoptedMessage() !== null && msg !== this._adoptedMessage()) this._adoptedMessage.set(null);\n });\n });\n }\n}\n","import { DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport {\n ApplicationRef, DestroyRef, EnvironmentInjector, EnvironmentProviders, PLATFORM_ID, createComponent, inject,\n makeEnvironmentProviders, provideEnvironmentInitializer,\n} from '@angular/core';\nimport { ToastComponent } from './toast.component';\nimport { ToastService } from '@forgeroute/ui/core';\n\n/**\n * Adds one app-wide toast outlet (a `<ui-toast>` appended to `<body>`) when the app starts, so toasts show on pages that have\n * no `<ui-data-table>` and no `<ui-toast />` of their own.\n *\n * providers: [provideForgerouteToast()]\n * providers: [provideForgerouteToast({ dismissible: true })] // every toast also gets a close button (default: none)\n * providers: [provideForgerouteToast({ persistentLiveRegion: true })] // always-present live regions: reliable announcements in VoiceOver / Safari\n * providers: [provideForgerouteToast({ queue: true, countdown: true, maxQueued: 10 })] // toasts wait for each other and show a countdown (defaults; a message's own options win)\n *\n * It is created first, so it is the registry's host and any other `<ui-toast>` (a table's own, a shell's) stays silent: each\n * message renders and is announced once. Nothing happens on the server. The outlet is destroyed with the app.\n */\nexport function provideForgerouteToast(options: { dismissible?: boolean; persistentLiveRegion?: boolean; queue?: boolean; countdown?: boolean; maxQueued?: number } = {}): EnvironmentProviders {\n return makeEnvironmentProviders([\n provideEnvironmentInitializer(() => {\n if (options.dismissible) inject(ToastService).dismissible.set(true);\n if (options.persistentLiveRegion) inject(ToastService).persistentLiveRegion.set(true);\n if (options.queue) inject(ToastService).queueDefault.set(true);\n if (options.countdown) inject(ToastService).countdownDefault.set(true);\n if (options.maxQueued !== undefined) inject(ToastService).maxQueued.set(Math.max(0, Math.floor(options.maxQueued)));\n if (!isPlatformBrowser(inject(PLATFORM_ID))) return;\n const doc = inject(DOCUMENT);\n const appRef = inject(ApplicationRef);\n const ref = createComponent(ToastComponent, { environmentInjector: inject(EnvironmentInjector) });\n appRef.attachView(ref.hostView);\n doc.body.appendChild(ref.location.nativeElement);\n inject(DestroyRef).onDestroy(() => { ref.destroy(); ref.location.nativeElement.remove(); });\n }),\n ]);\n}\n"],"mappings":";;;;;AAcA,IAAa,oBAAb,MAAa,kBAAiB;CAD9B,cAAA;EAEmB,KAAA,OAAO,OAAiB,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;EAEnC,KAAA,OAAO,eAAe,KAAK,KAAI,CAAE,CAAC,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAG/C;CAFC,SAAS,IAAU;EAAI,KAAK,KAAK,QAAO,MAAK,CAAC,GAAG,GAAG,EAAE,CAAC;CAAG;CAC1D,WAAW,IAAU;EAAI,KAAK,KAAK,QAAO,MAAK,EAAE,QAAO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