@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 @@
|
|
|
1
|
+
{"version":3,"file":"forgeroute-ui-radio.mjs","names":[],"sources":["../../../projects/forgeroute-ui/radio/src/lib/radio/radio.component.ts","../../../projects/forgeroute-ui/radio/src/lib/radio/radio-option-content.directive.ts","../../../projects/forgeroute-ui/radio/src/lib/radio/radio-group.component.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, input, output, computed, inject } from '@angular/core';\nimport { iconPath } from '@forgeroute/ui/icon';\nimport { opensInNewTab, safeLinkHref } from '@forgeroute/ui/utils';\nimport { UiLabelsService } from '@forgeroute/ui/core';\n\n/**\n * Single native radio button (visual tokens of `ui-checkbox`). Normally rendered by `ui-radio-group`; usable standalone\n * when the host manages the shared `name` and the `checked` state itself.\n */\n@Component({\n selector: 'ui-radio',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <label class=\"rd-wrap\" [class.rd-disabled]=\"disabled()\">\n <span class=\"rd-dot\" [class.rd-checked]=\"checked()\" [class.rd-invalid]=\"invalid()\" [class.rd-disabled]=\"disabled()\">\n @if (checked()) { <span class=\"rd-core\"></span> }\n </span>\n <input\n type=\"radio\"\n class=\"rd-hidden\"\n [name]=\"name()\"\n [value]=\"value()\"\n [checked]=\"checked()\"\n [disabled]=\"disabled()\"\n [attr.data-testid]=\"testId() || null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"_labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-describedby]=\"_describedByIds()\"\n [attr.aria-controls]=\"controls() || null\"\n (change)=\"onChange($event)\"\n />\n @if (_iconD(); as d) {\n <!-- Optional icon in front of the label (library source 2026-11-04): decorative, so the radio's accessible name is unchanged. -->\n <svg class=\"rd-icon\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path [attr.d]=\"d\" /></svg>\n }\n <span class=\"rd-text\">\n @if (label()) { <span class=\"rd-label\" [id]=\"_labelId()\">{{ label() }}</span> }\n @if (description()) { <span class=\"rd-description\" [id]=\"_descriptionId\">{{ description() }}</span> }\n @if (_linkHref(); as href) {\n <!-- Optional link after the description (library source 2026-11-05): a real anchor, so it is its own tab stop; clicking it follows the link and never selects the radio. -->\n <a class=\"rd-link\" [attr.href]=\"href\" [attr.target]=\"_linkNewTab() ? '_blank' : null\" [attr.rel]=\"_linkNewTab() ? 'noopener noreferrer' : null\" [attr.data-testid]=\"linkTestId() || null\">{{ linkLabel() }}@if (_linkNewTab()) { <span class=\"rd-sr\">{{ labels.t('dataTable.opensInNewTab') }}</span> }</a>\n }\n <ng-content />\n </span>\n </label>\n `,\n styles: [`\n :host { display: block; }\n\n .rd-wrap {\n position: relative; /* contains the absolutely positioned hidden input, so it can never extend a scroll container or the page */\n display: inline-flex; align-items: flex-start; gap: 9px;\n vertical-align: top; /* an inline-flex box sits on the text baseline; the dot's baseline changes when it is selected, which moved the row 4px */\n cursor: pointer; user-select: none;\n &.rd-disabled { cursor: not-allowed; opacity: 0.5; }\n }\n\n .rd-hidden {\n position: absolute; width: 1px; height: 1px;\n margin: -1px; padding: 0; overflow: hidden;\n clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;\n }\n\n .rd-wrap:has(.rd-hidden:focus-visible) .rd-dot {\n outline: 2px solid #3b82f6;\n outline-offset: 2px;\n }\n\n /* Touch targets: the real input becomes a transparent 44px square centred on the 20px dot (desktop unchanged). */\n @media (pointer: coarse), (max-width: 480px) {\n .rd-wrap { position: relative; }\n .rd-hidden {\n width: 44px; height: 44px; margin: 0; clip: auto; overflow: visible;\n left: -12px; top: 0;\n opacity: 0; cursor: pointer; z-index: 1;\n }\n .rd-wrap.rd-disabled .rd-hidden { cursor: not-allowed; }\n /* The whole label row is the target: >= 44px high. The 12px padding keeps the 20px dot level with the first text line (a multi-line label just grows). */\n .rd-wrap { box-sizing: border-box; min-height: 44px; padding: 12px 0; }\n }\n\n .rd-dot {\n flex-shrink: 0; width: 20px; height: 20px; box-sizing: border-box;\n border: 2px solid #7c8ba1; border-radius: 50%; background: #fff;\n display: flex; align-items: center; justify-content: center;\n transition: background 0.12s, border-color 0.12s;\n\n &.rd-checked { background: #3b82f6; border-color: #3b82f6; }\n &.rd-invalid:not(.rd-checked) { border-color: #ef4444; }\n &:not(.rd-checked):not(.rd-disabled) {\n .rd-wrap:hover & { border-color: #3b82f6; }\n }\n }\n .rd-core { width: 8px; height: 8px; border-radius: 50%; background: #fff; }\n\n @media (max-width: 640px), (pointer: coarse) {\n .rd-dot { position: relative; }\n .rd-dot::after { content: ''; position: absolute; inset: -12px; }\n }\n\n /* Optional icon in front of the label: aligned with the first text line (0.875rem x 1.4), never shrinks, dimmed with a disabled option by the wrap's opacity. */\n .rd-icon { flex-shrink: 0; margin-top: 1px; color: #64748b; }\n .rd-text { display: flex; flex-direction: column; gap: 2px; }\n .rd-label { font-size: 0.875rem; color: #334155; line-height: 1.4; }\n .rd-description { font-size: 0.75rem; color: #64748b; line-height: 1.4; }\n /* Target size (WCAG 2.5.8 >= 24px; 44px on touch / phones): a min-height with an equal negative margin on both sides, so the hit area grows without moving the layout. Only rendered with a link. */\n .rd-link { font-size: 0.75rem; line-height: 1.4; color: #2563eb; text-decoration: underline; align-self: flex-start; cursor: pointer; display: inline-flex; align-items: center; min-height: 24px; box-sizing: border-box; padding: 0; margin: -3.6px 0; } /* (24px - 16.8px line) / 2 per side: the box is 24px tall but takes up one text line of layout */\n @media (pointer: coarse), (max-width: 480px) { .rd-link { min-height: 44px; margin: -13.6px 0; } } /* (44px - 16.8px line) / 2 per side */\n .rd-link:hover { color: #1d4ed8; }\n .rd-link:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; border-radius: 2px; }\n .rd-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }\n `],\n})\nexport class RadioComponent {\n protected readonly labels = inject(UiLabelsService);\n readonly label = input('');\n readonly description = input('');\n /**\n * Library source 2026-11-05, not yet published. Optional link shown after the description: `linkLabel` is its text, `linkUrl` its address. Only `http:`, `https:`,\n * `mailto:` and `tel:` addresses and in-app paths (`/...`, `#...`) are linked; anything else (`javascript:`, `data:`, empty) draws nothing. An absolute http(s)\n * address opens in a new tab (`noopener noreferrer`, with \"(opens in a new tab)\" for screen readers); the others follow in the same tab. The radio's\n * accessible name stays the label only.\n */\n readonly linkLabel = input('');\n readonly linkUrl = input('');\n /** `data-testid` of the link; none when empty. */\n readonly linkTestId = input('');\n /**\n * Library source 2026-11-04, not yet published. Optional icon drawn in front of the label: a `<ui-icon>` key (`cup`, `wrench`, `card`, ...) or a raw 24x24\n * stroke SVG path (`M12 5v14 M5 12h14`). Decorative (`aria-hidden`), so the accessible name stays the label. Empty (default), an unknown key or\n * text that is not a path = nothing is drawn and the DOM is unchanged.\n */\n readonly icon = input('');\n /** Accessible name when there is no visible `label`. */\n readonly ariaLabel = input('');\n /** `data-testid` of the native radio input; none when empty. */\n readonly testId = input('');\n readonly value = input('');\n /** Radios with the same `name` form one keyboard (arrow key) group. */\n readonly name = input('');\n readonly checked = input(false);\n readonly invalid = input(false);\n /** Id(s) of the element(s) describing the group (hint / error). */\n readonly describedBy = input('');\n /** Id of an element this radio reveals while selected (`aria-controls`); no attribute when empty. */\n readonly controls = input('');\n /** Public so a host template can bind `[disabled]` (a protected input fails strict template type-checking). */\n readonly _disabledInput = input(false, { alias: 'disabled' });\n protected readonly disabled = this._disabledInput;\n\n /** Path of the icon: a known icon key, else the text itself when it looks like an SVG path (drawing commands and numbers only), else none. */\n protected readonly _iconD = computed((): string | null => {\n const v = this.icon().trim();\n if (!v) return null;\n return iconPath(v) ?? (/^[Mm][\\d\\s.,\\-MmLlHhVvCcSsQqTtAaZz]+$/.test(v) ? v : null);\n });\n\n /** The address to link, or null when the link is not drawn (no label, empty or unsafe address: see [safeLinkHref]). */\n protected readonly _linkHref = computed((): string | null => (this.linkLabel().trim() ? safeLinkHref(this.linkUrl()) : null));\n protected readonly _linkNewTab = computed(() => opensInNewTab(this._linkHref()));\n\n /** Id of the visible label text. Optional: a host (e.g. `ui-radio-group`) can set it to point another element at the label with `aria-labelledby`; a unique id is generated when empty. */\n readonly labelId = input('');\n private readonly _generatedLabelId = `rd-${Math.random().toString(36).slice(2, 8)}-label`;\n protected readonly _labelId = computed(() => this.labelId() || this._generatedLabelId);\n /** With a description or link inside the <label>, the accessible name would read \"Email We send a message\": name the input by the label text only. */\n protected readonly _labelledBy = computed(() => (this.label() && (this.description() || this._linkHref()) && !this.ariaLabel() ? this._labelId() : null));\n protected readonly _descriptionId = `rd-${Math.random().toString(36).slice(2, 8)}-desc`;\n /** Group hint/error id plus the option's own description (kept out of the label so the accessible name is label-only). */\n protected readonly _describedByIds = computed(() => {\n const ids = [this.describedBy(), this.description() ? this._descriptionId : ''].filter(Boolean).join(' ');\n return ids || null;\n });\n\n /** Emits the radio's `value` when the user selects it. */\n readonly selected = output<string>();\n\n protected onChange(event: Event) {\n if ((event.target as HTMLInputElement).checked) this.selected.emit(this.value());\n }\n}\n","import { Directive, TemplateRef, inject, input } from '@angular/core';\n\n/**\n * Content shown directly under ONE option of a `ui-radio-group`, only while that option is selected (e.g. an address form under\n * \"Ship to an alternate address\"). Put an `<ng-template>` inside the group and name the option's value:\n *\n * <ui-radio-group label=\"Delivery\" [options]=\"opts\" [(ngModel)]=\"method\">\n * <ng-template uiRadioOptionContent=\"SHIP\">\n * <ui-text-input label=\"Street\" ... />\n * </ng-template>\n * </ui-radio-group>\n *\n * Groups without such a template render exactly as before. The content is indented under the option's label; in a horizontal group it\n * takes a full row below the options. It lives inside the group's fieldset, so moving focus into it does not count as leaving the group.\n */\n@Directive({\n selector: 'ng-template[uiRadioOptionContent]',\n standalone: true,\n})\nexport class RadioOptionContentDirective {\n /** The `value` of the option this content belongs to. */\n readonly value = input.required<string>({ alias: 'uiRadioOptionContent' });\n readonly template = inject<TemplateRef<unknown>>(TemplateRef);\n}\n","import { Component, ChangeDetectionStrategy, contentChildren, input, output, signal, computed, effect, forwardRef, TemplateRef, inject } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { AbstractControl, ControlValueAccessor, NG_VALIDATORS, NG_VALUE_ACCESSOR, ValidationErrors, Validator } from '@angular/forms';\nimport { FieldIssue, UiFieldValidity, createFieldReveal, issueToErrors, requiredIssue } from '@forgeroute/ui/core';\nimport { RadioComponent } from './radio.component';\nimport { RadioOptionContentDirective } from './radio-option-content.directive';\nimport { UiLabelsService } from '@forgeroute/ui/core';\n\nexport interface RadioOption {\n value: string;\n label: string;\n description?: string;\n disabled?: boolean;\n /** `data-testid` of this option's native radio input (e.g. for end-to-end tests); none when omitted. */\n testId?: string;\n /**\n * Library source 2026-11-04, not yet published. Icon drawn in front of the option's label: a `<ui-icon>` key (`cup`, `wrench`, ...) or a raw SVG\n * path. Decorative (`aria-hidden`); none when omitted.\n */\n icon?: string;\n /**\n * Library source 2026-11-05, not yet published. Link shown after the option's description (e.g. \"Read the terms\"): only http(s), mailto, tel and\n * in-app paths are linked, an absolute http(s) address opens in a new tab. `testId` is the link's `data-testid`. None when omitted.\n */\n descriptionLink?: { label: string; url: string; testId?: string };\n}\n\n/**\n * Group of native radio buttons inside a `<fieldset>` (+ `<legend>` = `label`), a ControlValueAccessor (string value, `''`\n * = nothing selected). Arrow keys move and select natively because all radios share one `name`.\n * Built-in validation: `required` -> \"<label> is required.\"; a non-empty value that is not one of the `options` ->\n * \"Select a valid option.\" (not checked while `options` is empty). Disabled groups are never invalid.\n *\n * Option content (`<ng-template uiRadioOptionContent=\"value\">`) is rendered right under its option, inside the fieldset, so the layout and\n * keyboard flow stay as they are. Because it is not a radio, it is exposed as its own `role=\"group\"` named by that option's label\n * (`aria-labelledby` = the radio's label id, e.g. \"Deliver, group\") instead of being read as part of the radio group. Groups without\n * templates render no extra attributes or ids.\n *\n * Validity API (same on every ui input): Angular `Validator`, signals `invalid` + `errorMessage`, `invalidChange` output,\n * provides `UiFieldValidity`. Messages (built-in and a host `[error]`) show only after the group lost focus; `[showErrors]=\"true\"` also reveals it on an untouched group.\n */\n@Component({\n selector: 'ui-radio-group',\n standalone: true,\n imports: [RadioComponent, NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => RadioGroupComponent),\n multi: true,\n }, {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => RadioGroupComponent),\n multi: true,\n }, {\n provide: UiFieldValidity,\n useExisting: forwardRef(() => RadioGroupComponent),\n }],\n template: `\n <fieldset\n class=\"rg-field\"\n role=\"radiogroup\"\n [class.rg-error]=\"_activeError()\"\n [class.rg-disabled]=\"disabled()\"\n [disabled]=\"disabled()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"_activeError() ? 'true' : null\"\n [attr.aria-describedby]=\"(_activeError() || hint()) ? _descId : null\"\n (focusout)=\"onFocusOut($event)\">\n @if (label()) {\n <legend class=\"rg-label\">\n {{ label() }}\n @if (required()) { <span class=\"rg-required\" aria-hidden=\"true\">*</span> }\n </legend>\n }\n <div class=\"rg-options\" [class.rg-horizontal]=\"orientation() === 'horizontal'\">\n @for (opt of options(); track opt.value) {\n <ui-radio\n [name]=\"_name\"\n [value]=\"opt.value\"\n [label]=\"opt.label\"\n [description]=\"opt.description ?? ''\"\n [icon]=\"opt.icon ?? ''\"\n [linkLabel]=\"opt.descriptionLink?.label ?? ''\"\n [linkUrl]=\"opt.descriptionLink?.url ?? ''\"\n [linkTestId]=\"opt.descriptionLink?.testId ?? ''\"\n [checked]=\"_value() === opt.value\"\n [disabled]=\"disabled() || !!opt.disabled\"\n [invalid]=\"!!_activeError()\"\n [describedBy]=\"(_activeError() || hint()) ? _descId : ''\"\n [controls]=\"(_value() === opt.value && _nestedContent().has(opt.value)) ? _nestedId : ''\"\n [labelId]=\"_nestedContent().has(opt.value) ? _optionLabelId($index) : ''\"\n [testId]=\"opt.testId ?? ''\"\n (selected)=\"onSelect($event)\" />\n @if (_value() === opt.value && _nestedContent().get(opt.value); as nested) {\n <div class=\"rg-nested\" role=\"group\" [id]=\"_nestedId\" [attr.aria-labelledby]=\"opt.label ? _optionLabelId($index) : null\"><ng-container [ngTemplateOutlet]=\"nested\" /></div>\n }\n }\n </div>\n @if (_activeError()) {\n <p class=\"rg-desc rg-desc-error\" [id]=\"_descId\" role=\"alert\">{{ _activeError() }}</p>\n } @else if (hint()) {\n <p class=\"rg-desc\" [id]=\"_descId\">{{ hint() }}</p>\n }\n </fieldset>\n `,\n styles: [`\n :host { display: block; }\n\n .rg-field { display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }\n .rg-label { padding: 0; margin-bottom: 6px; font-size: 0.8125rem; font-weight: 600; color: #374151; line-height: 1; }\n .rg-required { color: #dc2626; margin-left: 2px; }\n\n .rg-options { display: flex; flex-direction: column; gap: 10px; }\n .rg-options.rg-horizontal { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }\n\n /* Content under the selected option (uiRadioOptionContent): indented under the label (20px dot + 9px gap), a full row when horizontal. */\n .rg-nested { padding-left: 29px; min-width: 0; }\n .rg-options.rg-horizontal .rg-nested { flex: 1 0 100%; }\n\n .rg-disabled { cursor: not-allowed; }\n\n .rg-desc { margin: 0; font-size: 0.75rem; line-height: 1.4; color: #64748b; }\n .rg-desc-error { color: #dc2626; }\n\n @media (pointer: coarse), (max-width: 480px) { .rg-options { gap: 0; } .rg-options.rg-horizontal { gap: 0 20px; } } /* each radio row is now 44px high, so the rows touch; no gap between them */\n `],\n})\nexport class RadioGroupComponent implements ControlValueAccessor, Validator, UiFieldValidity {\n private readonly _labels = inject(UiLabelsService);\n readonly label = input('');\n readonly options = input<RadioOption[]>([]);\n readonly required = input(false);\n readonly hint = input('');\n readonly error = input('');\n /** The host's \"tried to submit\" flag (e.g. after a failed Save click). `true` reveals the message of an untouched field at once (the field also shows it after the user left THIS field); switching it from true back to false forgets that the field was left. */\n readonly showErrors = input(false);\n readonly orientation = input<'vertical' | 'horizontal'>('vertical');\n /** Native `name` shared by the radios; a unique one is generated when omitted. */\n readonly name = input('');\n\n /** `<ng-template uiRadioOptionContent=\"value\">` children: content shown under that option while it is selected. */\n private readonly _optionContent = contentChildren(RadioOptionContentDirective);\n protected readonly _nestedContent = computed(() => {\n const byValue = new Map<string, TemplateRef<unknown>>();\n for (const content of this._optionContent()) byValue.set(content.value(), content.template);\n return byValue;\n });\n\n readonly _disabledInput = input(false, { alias: 'disabled' });\n private readonly _cvaDisabled = signal(false);\n protected readonly disabled = computed(() => this._disabledInput() || this._cvaDisabled());\n\n private readonly _generatedName = `rg-${Math.random().toString(36).slice(2, 8)}`;\n protected get _name(): string { return this.name() || this._generatedName; }\n protected readonly _descId = `${this._generatedName}-desc`;\n /** Id of the content block under the selected option; that radio points at it with aria-controls. */\n protected readonly _nestedId = `${this._generatedName}-nested`;\n /** Id of an option's label text (set on the radio only for options that have nested content); the nested group is named by it. */\n protected _optionLabelId(index: number): string { return `${this._generatedName}-opt-${index}-label`; }\n protected readonly _value = signal('');\n\n private readonly _reveal = createFieldReveal(this.showErrors);\n private readonly _issue = computed(() => this._check(this._value()));\n /** True while the value breaks a built-in rule or the host passed an `[error]`. */\n readonly invalid = computed(() => !!this.error() || !!this._issue());\n /** Message of the first broken built-in rule ('' when valid), shown or not. */\n readonly errorMessage = computed(() => this._issue()?.message ?? '');\n /** Emits whenever the field becomes invalid / valid. */\n readonly invalidChange = output<boolean>();\n protected readonly _activeError = computed(() => this._reveal.revealed() ? (this.error() || this.errorMessage()) : '');\n private _onValidatorChange = () => {};\n\n constructor() {\n effect(() => { this.invalidChange.emit(this.invalid()); });\n }\n\n /** Re-run the form control's validation when a rule input (required, options) changes. */\n ngOnChanges() { this._onValidatorChange(); }\n\n validate(control: AbstractControl): ValidationErrors | null {\n const v = control.value;\n return issueToErrors(this._check(v == null ? '' : String(v)));\n }\n registerOnValidatorChange(fn: () => void) { this._onValidatorChange = fn; }\n\n private _onChange = (_: string) => {};\n private _onTouched = () => {};\n\n writeValue(val: string) { this._value.set(val ?? ''); }\n registerOnChange(fn: (v: string) => void) { this._onChange = fn; }\n registerOnTouched(fn: () => void) { this._onTouched = fn; }\n setDisabledState(d: boolean) { this._cvaDisabled.set(d); }\n\n protected onSelect(value: string) {\n this._value.set(value);\n this._onChange(value);\n }\n\n /** Touched once focus leaves the whole group (moving between its radios does not count). */\n protected onFocusOut(event: FocusEvent) {\n const next = event.relatedTarget as Node | null;\n if (next && (event.currentTarget as HTMLElement).contains(next)) return;\n this._onTouched();\n this._reveal.touched.set(true);\n }\n\n private _check(value: string): FieldIssue | null {\n if (this.disabled()) return null;\n if (!value) return this.required() ? requiredIssue(this.label()) : null;\n const opts = this.options();\n if (opts.length > 0 && !opts.some(o => o.value === value)) return { key: 'option', message: this._labels.t('common.selectValidOption') };\n return null;\n }\n}\n"],"mappings":";;;;;;;AAmHA,IAAa,iBAAb,MAAa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AA;GAAA,CAAA;EAAA,CAAA;EAAA,YAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,aAAA,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;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,gBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAAA,2BAA2B,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,gBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,eAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,eAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { InjectionToken, computed, inject } from "@angular/core";
|
|
2
|
+
const UI_READ_ONLY_MODE = new InjectionToken("UI_READ_ONLY_MODE");
|
|
3
|
+
function provideReadOnlyMode(active) {
|
|
4
|
+
return {
|
|
5
|
+
provide: UI_READ_ONLY_MODE,
|
|
6
|
+
useFactory: () => ({ active: active() })
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
const NEVER_READ_ONLY = computed(() => false, ...ngDevMode ? [{ debugName: "NEVER_READ_ONLY" }] : /* istanbul ignore next */ []);
|
|
10
|
+
function injectReadOnlyMode() {
|
|
11
|
+
return inject(UI_READ_ONLY_MODE, { optional: true })?.active ?? NEVER_READ_ONLY;
|
|
12
|
+
}
|
|
13
|
+
export { UI_READ_ONLY_MODE, injectReadOnlyMode, provideReadOnlyMode };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=forgeroute-ui-read-only-mode.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forgeroute-ui-read-only-mode.mjs","names":[],"sources":["../../../projects/forgeroute-ui/read-only-mode/src/lib/read-only-mode/read-only-mode.ts"],"sourcesContent":["import { InjectionToken, Provider, Signal, computed, inject } from '@angular/core';\n\n/**\n * The app's ONE central \"everything is read-only right now\" switch (optional).\n *\n * Some apps have a state in which the whole signed-in area must be view-only for reasons that are not a user's role: an expired trial or sandbox, a suspended\n * account, a maintenance window. The server refuses the writes anyway, but without this every page still offers Add / Edit / Delete and each one fails on its own.\n * Provide this once and every `<ui-data-table>` in the app behaves exactly as if its `[permission]` were not `'full'` (no Add / Import / bulk actions / checkbox\n * column / mutating row actions: see `DataTableComponent.permission`); pages that have their own buttons read it with {@link injectReadOnlyMode}.\n *\n * Nothing changes for an app that does not provide it: the table and every helper behave exactly as before.\n */\nexport interface ReadOnlyMode {\n /** `true` while the app is read-only. A signal, so screens follow it live (it may flip while a page is open). */\n readonly active: Signal<boolean>;\n}\n\nexport const UI_READ_ONLY_MODE = new InjectionToken<ReadOnlyMode>('UI_READ_ONLY_MODE');\n\n/**\n * Provides the central read-only switch. `active` runs once, in an injection context, so it can `inject()` the app's own state service:\n *\n * ```ts\n * provideReadOnlyMode(() => inject(SandboxService).expired)\n * ```\n */\nexport function provideReadOnlyMode(active: () => Signal<boolean>): Provider {\n return { provide: UI_READ_ONLY_MODE, useFactory: (): ReadOnlyMode => ({ active: active() }) };\n}\n\n/** What {@link injectReadOnlyMode} answers when the app provides no switch: never read-only. One shared constant signal. */\nconst NEVER_READ_ONLY: Signal<boolean> = computed(() => false);\n\n/** The central read-only signal (always `false` when the app did not provide one). Call it in an injection context (a field initialiser or constructor). */\nexport function injectReadOnlyMode(): Signal<boolean> {\n return inject(UI_READ_ONLY_MODE, { optional: true })?.active ?? NEVER_READ_ONLY;\n}\n"],"mappings":";AAiBA,MAAa,oBAAoB,IAAI,eAA6B,mBAAmB;AASrF,SAAgB,oBAAoB,QAA6B;CAC/D,OAAO;EAAE,SAAS;EAAmB,mBAAiC,EAAE,QAAQ,OAAM,EAAE;CAAG;AAC7F;AAGA,MAAM,kBAAmC,eAAe,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,kBAAA,CAAA,+BAAA,CAAA,CAAA;AAG9D,SAAgB,qBAAkB;CAChC,OAAO,OAAO,mBAAmB,EAAE,UAAU,KAAI,CAAE,CAAC,EAAE,UAAU;AAClE"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, computed, input } from "@angular/core";
|
|
3
|
+
let nextId = 0;
|
|
4
|
+
var ReadonlyFieldsetComponent = class ReadonlyFieldsetComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.readOnly = input(false, ...ngDevMode ? [{ debugName: "readOnly" }] : /* istanbul ignore next */ []);
|
|
7
|
+
this.gap = input("0", ...ngDevMode ? [{ debugName: "gap" }] : /* istanbul ignore next */ []);
|
|
8
|
+
this.ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
9
|
+
this.reason = input("", ...ngDevMode ? [{ debugName: "reason" }] : /* istanbul ignore next */ []);
|
|
10
|
+
this._reasonId = `rf-reason-${nextId++}`;
|
|
11
|
+
this._showReason = computed(() => this.readOnly() && !!this.reason().trim(), ...ngDevMode ? [{ debugName: "_showReason" }] : /* istanbul ignore next */ []);
|
|
12
|
+
}
|
|
13
|
+
static {
|
|
14
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
15
|
+
minVersion: "12.0.0",
|
|
16
|
+
version: "22.2.2",
|
|
17
|
+
ngImport: i0,
|
|
18
|
+
type: ReadonlyFieldsetComponent,
|
|
19
|
+
deps: [],
|
|
20
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
static {
|
|
24
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
25
|
+
minVersion: "17.0.0",
|
|
26
|
+
version: "22.2.2",
|
|
27
|
+
type: ReadonlyFieldsetComponent,
|
|
28
|
+
isStandalone: true,
|
|
29
|
+
selector: "ui-readonly-fieldset",
|
|
30
|
+
inputs: {
|
|
31
|
+
readOnly: {
|
|
32
|
+
classPropertyName: "readOnly",
|
|
33
|
+
publicName: "readOnly",
|
|
34
|
+
isSignal: true,
|
|
35
|
+
isRequired: false,
|
|
36
|
+
transformFunction: null
|
|
37
|
+
},
|
|
38
|
+
gap: {
|
|
39
|
+
classPropertyName: "gap",
|
|
40
|
+
publicName: "gap",
|
|
41
|
+
isSignal: true,
|
|
42
|
+
isRequired: false,
|
|
43
|
+
transformFunction: null
|
|
44
|
+
},
|
|
45
|
+
ariaLabel: {
|
|
46
|
+
classPropertyName: "ariaLabel",
|
|
47
|
+
publicName: "ariaLabel",
|
|
48
|
+
isSignal: true,
|
|
49
|
+
isRequired: false,
|
|
50
|
+
transformFunction: null
|
|
51
|
+
},
|
|
52
|
+
reason: {
|
|
53
|
+
classPropertyName: "reason",
|
|
54
|
+
publicName: "reason",
|
|
55
|
+
isSignal: true,
|
|
56
|
+
isRequired: false,
|
|
57
|
+
transformFunction: null
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
ngImport: i0,
|
|
61
|
+
template: `
|
|
62
|
+
<fieldset
|
|
63
|
+
class="rf-fieldset"
|
|
64
|
+
[disabled]="readOnly()"
|
|
65
|
+
[style.gap]="gap()"
|
|
66
|
+
[attr.data-read-only]="readOnly() ? 'true' : null"
|
|
67
|
+
[attr.aria-label]="ariaLabel() || null"
|
|
68
|
+
[attr.aria-describedby]="_showReason() ? _reasonId : null">
|
|
69
|
+
@if (_showReason()) {
|
|
70
|
+
<span class="rf-reason" [id]="_reasonId">{{ reason() }}</span>
|
|
71
|
+
}
|
|
72
|
+
<ng-content />
|
|
73
|
+
</fieldset>
|
|
74
|
+
`,
|
|
75
|
+
isInline: true,
|
|
76
|
+
styles: [":host{display:block;min-width:0}.rf-fieldset{border:0;margin:0;padding:0;min-width:0;display:flex;flex-direction:column}.rf-reason{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}\n"],
|
|
77
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
82
|
+
minVersion: "12.0.0",
|
|
83
|
+
version: "22.2.2",
|
|
84
|
+
ngImport: i0,
|
|
85
|
+
type: ReadonlyFieldsetComponent,
|
|
86
|
+
decorators: [{
|
|
87
|
+
type: Component,
|
|
88
|
+
args: [{
|
|
89
|
+
selector: "ui-readonly-fieldset",
|
|
90
|
+
standalone: true,
|
|
91
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
92
|
+
template: `
|
|
93
|
+
<fieldset
|
|
94
|
+
class="rf-fieldset"
|
|
95
|
+
[disabled]="readOnly()"
|
|
96
|
+
[style.gap]="gap()"
|
|
97
|
+
[attr.data-read-only]="readOnly() ? 'true' : null"
|
|
98
|
+
[attr.aria-label]="ariaLabel() || null"
|
|
99
|
+
[attr.aria-describedby]="_showReason() ? _reasonId : null">
|
|
100
|
+
@if (_showReason()) {
|
|
101
|
+
<span class="rf-reason" [id]="_reasonId">{{ reason() }}</span>
|
|
102
|
+
}
|
|
103
|
+
<ng-content />
|
|
104
|
+
</fieldset>
|
|
105
|
+
`,
|
|
106
|
+
styles: [":host{display:block;min-width:0}.rf-fieldset{border:0;margin:0;padding:0;min-width:0;display:flex;flex-direction:column}.rf-reason{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}\n"]
|
|
107
|
+
}]
|
|
108
|
+
}],
|
|
109
|
+
propDecorators: {
|
|
110
|
+
readOnly: [{
|
|
111
|
+
type: i0.Input,
|
|
112
|
+
args: [{
|
|
113
|
+
isSignal: true,
|
|
114
|
+
alias: "readOnly",
|
|
115
|
+
required: false
|
|
116
|
+
}]
|
|
117
|
+
}],
|
|
118
|
+
gap: [{
|
|
119
|
+
type: i0.Input,
|
|
120
|
+
args: [{
|
|
121
|
+
isSignal: true,
|
|
122
|
+
alias: "gap",
|
|
123
|
+
required: false
|
|
124
|
+
}]
|
|
125
|
+
}],
|
|
126
|
+
ariaLabel: [{
|
|
127
|
+
type: i0.Input,
|
|
128
|
+
args: [{
|
|
129
|
+
isSignal: true,
|
|
130
|
+
alias: "ariaLabel",
|
|
131
|
+
required: false
|
|
132
|
+
}]
|
|
133
|
+
}],
|
|
134
|
+
reason: [{
|
|
135
|
+
type: i0.Input,
|
|
136
|
+
args: [{
|
|
137
|
+
isSignal: true,
|
|
138
|
+
alias: "reason",
|
|
139
|
+
required: false
|
|
140
|
+
}]
|
|
141
|
+
}]
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
export { ReadonlyFieldsetComponent };
|
|
145
|
+
|
|
146
|
+
//# sourceMappingURL=forgeroute-ui-readonly-fieldset.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forgeroute-ui-readonly-fieldset.mjs","names":[],"sources":["../../../projects/forgeroute-ui/readonly-fieldset/src/lib/readonly-fieldset/readonly-fieldset.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\n\nlet nextId = 0;\n\n/**\n * Wraps a block of form controls (a settings page, a configuration card) so a view-only user can look at the current\n * values but change nothing. While `readOnly` is true the wrapper's native `<fieldset>` is `disabled`, and the browser\n * disables every native form control inside it: text inputs, checkboxes, selects, textareas, radios and the `<button>`\n * rendered by `ui-button`, plus the native controls inside the `ui-*` inputs.\n *\n * **Default: `readOnly` is false.** With no input nothing is locked and every control is fully editable. The wrapper only\n * locks when the host passes `[readOnly]=\"true\"` (typically `perm() !== 'full'`). Flipping it live re-enables / disables\n * the same projected DOM nodes; values, `ngModel` state and focus targets are preserved.\n *\n * Limits (native `<fieldset disabled>` semantics):\n * - Only NATIVE form controls are disabled. Non-native clickable things (divs with click handlers, links, drag handles,\n * `ui-data-table` toolbars and row menus) are NOT affected: hide or guard them in the host.\n * - A `ui-data-table` has its own `[permission]` input. Keep tables outside the wrapper or use that input.\n * - Nesting: a nested wrapper with `readOnly=false` inside a locked wrapper stays disabled, because a disabled\n * ancestor fieldset always disables its descendants. A nested wrapper cannot \"unlock\" a region.\n *\n * Layout: the fieldset is reset (border 0, margin 0, padding 0, min-width 0) and is a plain flex column, not\n * `display: contents` (unreliable on `<fieldset>` in some browsers). Children therefore lay out as direct children;\n * set `gap` when the parent spaced them with a flex gap.\n *\n * Accessibility: optional `ariaLabel` names the group; optional `reason` (\"You have view-only access\") is rendered as\n * visually-hidden text linked via `aria-describedby`, only while locked.\n *\n * Usage: `<ui-readonly-fieldset [readOnly]=\"perm() !== 'full'\" gap=\"20px\"> ...controls... </ui-readonly-fieldset>`\n */\n@Component({\n selector: 'ui-readonly-fieldset',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <fieldset\n class=\"rf-fieldset\"\n [disabled]=\"readOnly()\"\n [style.gap]=\"gap()\"\n [attr.data-read-only]=\"readOnly() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-describedby]=\"_showReason() ? _reasonId : null\">\n @if (_showReason()) {\n <span class=\"rf-reason\" [id]=\"_reasonId\">{{ reason() }}</span>\n }\n <ng-content />\n </fieldset>\n `,\n styles: [`\n :host { display: block; min-width: 0; }\n .rf-fieldset {\n border: 0; margin: 0; padding: 0; min-width: 0;\n display: flex; flex-direction: column;\n }\n .rf-reason {\n position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;\n clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;\n }\n `],\n})\nexport class ReadonlyFieldsetComponent {\n /** Lock every native control inside. Default false: nothing is locked. */\n readonly readOnly = input(false);\n /** CSS `gap` between the children (default none). */\n readonly gap = input('0');\n /** Optional accessible name for the group. */\n readonly ariaLabel = input('');\n /** Optional explanation announced while locked (visually hidden), e.g. \"You have view-only access\". */\n readonly reason = input('');\n\n protected readonly _reasonId = `rf-reason-${nextId++}`;\n protected readonly _showReason = computed(() => this.readOnly() && !!this.reason().trim());\n}\n"],"mappings":";;AAEA,IAAI,SAAS;AA0Db,IAAa,4BAAb,MAAa,0BAAyB;CA9BtC,cAAA;EAgCW,KAAA,WAAY,MAAM,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;EAExB,KAAA,MAAY,MAAM,KAAI,GAAA,YAAA,CAAA,EAAA,WAAA,MAAA,CAAA,+BAAA,CAAA,CAAA;EAEtB,KAAA,YAAY,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;EAErB,KAAA,SAAY,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;EAEX,KAAA,YAAY,aAAa;EACzB,KAAA,cAAc,eAAe,KAAK,SAAQ,KAAM,CAAC,CAAC,KAAK,OAAM,CAAE,CAAC,KAAI,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;CAC3F;CAZY;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAyB,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAzB;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAyB,cAAA;GAAA,UAAA;GAAA,QAAA;IAAA,UAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,KAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,WAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,QAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;GAAA;GAAA,UAAA;GAAA,UA1B1B;;;;;;;;;;;;;;GAaT,UAAA;GAAA,QAAA,CAAA,wRAAA;GAAA,iBAAA,GAAA,wBAAA;EAAA,CAAA;CAAA;;AAaU,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAyB,YAAA,CAAA;EA9BrC,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAsB,YACpB;GAAI,iBACC,wBAAwB;GAAM,UACrC;;;;;;;;;;;;;;GAaT,QAAA,CAAA,wRAAA;EAAA,CAAA"}
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, computed, inject, input, output } from "@angular/core";
|
|
3
|
+
import { AlertComponent } from "@forgeroute/ui/alert";
|
|
4
|
+
import { BadgeComponent } from "@forgeroute/ui/badge";
|
|
5
|
+
import { ButtonComponent, UiLabelsService } from "@forgeroute/ui/core";
|
|
6
|
+
import { IconComponent } from "@forgeroute/ui/icon";
|
|
7
|
+
var ReminderAlertsComponent = class ReminderAlertsComponent {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.labels = inject(UiLabelsService);
|
|
10
|
+
this.items = input([], ...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
|
|
11
|
+
this.ariaLabelInput = input(null, {
|
|
12
|
+
...ngDevMode ? { debugName: "ariaLabelInput" } : /* istanbul ignore next */ {},
|
|
13
|
+
alias: "ariaLabel"
|
|
14
|
+
});
|
|
15
|
+
this.ariaLabel = computed(() => this.ariaLabelInput() ?? this.labels.t("reminderAlerts.ariaLabel"), ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
16
|
+
this.action = output();
|
|
17
|
+
this.hidden = output();
|
|
18
|
+
}
|
|
19
|
+
variant(item) {
|
|
20
|
+
return item.tone;
|
|
21
|
+
}
|
|
22
|
+
static {
|
|
23
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
24
|
+
minVersion: "12.0.0",
|
|
25
|
+
version: "22.2.2",
|
|
26
|
+
ngImport: i0,
|
|
27
|
+
type: ReminderAlertsComponent,
|
|
28
|
+
deps: [],
|
|
29
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
static {
|
|
33
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
34
|
+
minVersion: "17.0.0",
|
|
35
|
+
version: "22.2.2",
|
|
36
|
+
type: ReminderAlertsComponent,
|
|
37
|
+
isStandalone: true,
|
|
38
|
+
selector: "ui-reminder-alerts",
|
|
39
|
+
inputs: {
|
|
40
|
+
items: {
|
|
41
|
+
classPropertyName: "items",
|
|
42
|
+
publicName: "items",
|
|
43
|
+
isSignal: true,
|
|
44
|
+
isRequired: false,
|
|
45
|
+
transformFunction: null
|
|
46
|
+
},
|
|
47
|
+
ariaLabelInput: {
|
|
48
|
+
classPropertyName: "ariaLabelInput",
|
|
49
|
+
publicName: "ariaLabel",
|
|
50
|
+
isSignal: true,
|
|
51
|
+
isRequired: false,
|
|
52
|
+
transformFunction: null
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
outputs: {
|
|
56
|
+
action: "action",
|
|
57
|
+
hidden: "hidden"
|
|
58
|
+
},
|
|
59
|
+
ngImport: i0,
|
|
60
|
+
template: `
|
|
61
|
+
@if (items().length) {
|
|
62
|
+
<div class="ra-stack" role="region" [attr.aria-label]="ariaLabel()" aria-live="polite">
|
|
63
|
+
@for (item of items(); track item.id) {
|
|
64
|
+
<ui-alert class="ra-item" [variant]="variant(item)" [attr.data-testid]="'reminder-alert-' + item.id">
|
|
65
|
+
<div class="ra-body">
|
|
66
|
+
<ui-button class="ra-hide" variant="icon" size="xs" [ariaLabel]="item.hideLabel || labels.t('reminderAlerts.hideAlert')" [attr.data-testid]="item.hideTestId || 'alert-hide'" (click)="hidden.emit(item)">
|
|
67
|
+
<ui-icon name="close" [size]="14" [interactive]="false" />
|
|
68
|
+
</ui-button>
|
|
69
|
+
<span class="ra-label">{{ item.label }}</span>
|
|
70
|
+
<p class="ra-title">{{ item.title }}</p>
|
|
71
|
+
@if (item.badge; as b) {
|
|
72
|
+
<ui-badge class="ra-badge" role="img" variant="purple" [label]="b.label" [attr.aria-label]="b.ariaLabel || b.label" [attr.title]="b.ariaLabel || b.label" [attr.data-testid]="b.testId || 'alert-badge'" />
|
|
73
|
+
}
|
|
74
|
+
@for (line of item.lines ?? []; track $index) {
|
|
75
|
+
<p class="ra-line">{{ line }}</p>
|
|
76
|
+
}
|
|
77
|
+
@if (item.actions?.length) {
|
|
78
|
+
<div class="ra-actions">
|
|
79
|
+
@for (a of item.actions; track a.id) {
|
|
80
|
+
<ui-button [variant]="a.variant || 'secondary'" size="xs" [attr.data-testid]="'alert-' + a.id" (click)="action.emit({ item, actionId: a.id })">{{ a.label }}</ui-button>
|
|
81
|
+
}
|
|
82
|
+
</div>
|
|
83
|
+
}
|
|
84
|
+
</div>
|
|
85
|
+
</ui-alert>
|
|
86
|
+
}
|
|
87
|
+
</div>
|
|
88
|
+
}
|
|
89
|
+
`,
|
|
90
|
+
isInline: true,
|
|
91
|
+
styles: [":host{display:contents}.ra-stack{position:fixed;top:16px;right:16px;z-index:9990;display:flex;flex-direction:column;gap:8px;width:24rem;max-width:calc(100vw - 32px);pointer-events:none}.ra-item{pointer-events:auto;box-shadow:0 8px 20px #0f172a2e;border-radius:8px;animation:ra-in .3s ease-out}.ra-body{position:relative;display:flex;flex-direction:column;gap:2px;min-width:0;width:100%;padding-right:28px}.ra-hide{position:absolute;top:-4px;right:-4px}.ra-label{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.02em}.ra-title{margin:0;font-size:.875rem;font-weight:600;overflow-wrap:anywhere}.ra-line{margin:0;font-size:.75rem;overflow-wrap:anywhere}.ra-badge{align-self:flex-start;max-width:100%;overflow:hidden}.ra-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}@keyframes ra-in{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}@media(prefers-reduced-motion:reduce){.ra-item{animation:none}}\n"],
|
|
92
|
+
dependencies: [
|
|
93
|
+
{
|
|
94
|
+
kind: "component",
|
|
95
|
+
type: AlertComponent,
|
|
96
|
+
selector: "ui-alert",
|
|
97
|
+
inputs: [
|
|
98
|
+
"variant",
|
|
99
|
+
"title",
|
|
100
|
+
"dismissible",
|
|
101
|
+
"dismissAriaLabel",
|
|
102
|
+
"quiet",
|
|
103
|
+
"compact",
|
|
104
|
+
"inline",
|
|
105
|
+
"fill"
|
|
106
|
+
],
|
|
107
|
+
outputs: ["dismissed"]
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
kind: "component",
|
|
111
|
+
type: BadgeComponent,
|
|
112
|
+
selector: "ui-badge",
|
|
113
|
+
inputs: [
|
|
114
|
+
"label",
|
|
115
|
+
"variant",
|
|
116
|
+
"color"
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
kind: "component",
|
|
121
|
+
type: ButtonComponent,
|
|
122
|
+
selector: "ui-button",
|
|
123
|
+
inputs: [
|
|
124
|
+
"variant",
|
|
125
|
+
"routerLink",
|
|
126
|
+
"queryParams",
|
|
127
|
+
"fragment",
|
|
128
|
+
"state",
|
|
129
|
+
"href",
|
|
130
|
+
"target",
|
|
131
|
+
"rel",
|
|
132
|
+
"shortLabel",
|
|
133
|
+
"shortBelow",
|
|
134
|
+
"color",
|
|
135
|
+
"active",
|
|
136
|
+
"size",
|
|
137
|
+
"type",
|
|
138
|
+
"disabled",
|
|
139
|
+
"loading",
|
|
140
|
+
"fullWidth",
|
|
141
|
+
"ariaLabel",
|
|
142
|
+
"ariaExpanded",
|
|
143
|
+
"ariaPressed",
|
|
144
|
+
"ariaDescribedBy",
|
|
145
|
+
"modal-footer-left",
|
|
146
|
+
"modal-footer-right"
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
kind: "component",
|
|
151
|
+
type: IconComponent,
|
|
152
|
+
selector: "ui-icon",
|
|
153
|
+
inputs: [
|
|
154
|
+
"name",
|
|
155
|
+
"tooltip",
|
|
156
|
+
"ariaLabel",
|
|
157
|
+
"size",
|
|
158
|
+
"variant",
|
|
159
|
+
"disabled",
|
|
160
|
+
"loading",
|
|
161
|
+
"interactive"
|
|
162
|
+
],
|
|
163
|
+
outputs: ["iconClick"]
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
171
|
+
minVersion: "12.0.0",
|
|
172
|
+
version: "22.2.2",
|
|
173
|
+
ngImport: i0,
|
|
174
|
+
type: ReminderAlertsComponent,
|
|
175
|
+
decorators: [{
|
|
176
|
+
type: Component,
|
|
177
|
+
args: [{
|
|
178
|
+
selector: "ui-reminder-alerts",
|
|
179
|
+
standalone: true,
|
|
180
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
181
|
+
imports: [
|
|
182
|
+
AlertComponent,
|
|
183
|
+
BadgeComponent,
|
|
184
|
+
ButtonComponent,
|
|
185
|
+
IconComponent
|
|
186
|
+
],
|
|
187
|
+
template: `
|
|
188
|
+
@if (items().length) {
|
|
189
|
+
<div class="ra-stack" role="region" [attr.aria-label]="ariaLabel()" aria-live="polite">
|
|
190
|
+
@for (item of items(); track item.id) {
|
|
191
|
+
<ui-alert class="ra-item" [variant]="variant(item)" [attr.data-testid]="'reminder-alert-' + item.id">
|
|
192
|
+
<div class="ra-body">
|
|
193
|
+
<ui-button class="ra-hide" variant="icon" size="xs" [ariaLabel]="item.hideLabel || labels.t('reminderAlerts.hideAlert')" [attr.data-testid]="item.hideTestId || 'alert-hide'" (click)="hidden.emit(item)">
|
|
194
|
+
<ui-icon name="close" [size]="14" [interactive]="false" />
|
|
195
|
+
</ui-button>
|
|
196
|
+
<span class="ra-label">{{ item.label }}</span>
|
|
197
|
+
<p class="ra-title">{{ item.title }}</p>
|
|
198
|
+
@if (item.badge; as b) {
|
|
199
|
+
<ui-badge class="ra-badge" role="img" variant="purple" [label]="b.label" [attr.aria-label]="b.ariaLabel || b.label" [attr.title]="b.ariaLabel || b.label" [attr.data-testid]="b.testId || 'alert-badge'" />
|
|
200
|
+
}
|
|
201
|
+
@for (line of item.lines ?? []; track $index) {
|
|
202
|
+
<p class="ra-line">{{ line }}</p>
|
|
203
|
+
}
|
|
204
|
+
@if (item.actions?.length) {
|
|
205
|
+
<div class="ra-actions">
|
|
206
|
+
@for (a of item.actions; track a.id) {
|
|
207
|
+
<ui-button [variant]="a.variant || 'secondary'" size="xs" [attr.data-testid]="'alert-' + a.id" (click)="action.emit({ item, actionId: a.id })">{{ a.label }}</ui-button>
|
|
208
|
+
}
|
|
209
|
+
</div>
|
|
210
|
+
}
|
|
211
|
+
</div>
|
|
212
|
+
</ui-alert>
|
|
213
|
+
}
|
|
214
|
+
</div>
|
|
215
|
+
}
|
|
216
|
+
`,
|
|
217
|
+
styles: [":host{display:contents}.ra-stack{position:fixed;top:16px;right:16px;z-index:9990;display:flex;flex-direction:column;gap:8px;width:24rem;max-width:calc(100vw - 32px);pointer-events:none}.ra-item{pointer-events:auto;box-shadow:0 8px 20px #0f172a2e;border-radius:8px;animation:ra-in .3s ease-out}.ra-body{position:relative;display:flex;flex-direction:column;gap:2px;min-width:0;width:100%;padding-right:28px}.ra-hide{position:absolute;top:-4px;right:-4px}.ra-label{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.02em}.ra-title{margin:0;font-size:.875rem;font-weight:600;overflow-wrap:anywhere}.ra-line{margin:0;font-size:.75rem;overflow-wrap:anywhere}.ra-badge{align-self:flex-start;max-width:100%;overflow:hidden}.ra-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}@keyframes ra-in{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}@media(prefers-reduced-motion:reduce){.ra-item{animation:none}}\n"]
|
|
218
|
+
}]
|
|
219
|
+
}],
|
|
220
|
+
propDecorators: {
|
|
221
|
+
items: [{
|
|
222
|
+
type: i0.Input,
|
|
223
|
+
args: [{
|
|
224
|
+
isSignal: true,
|
|
225
|
+
alias: "items",
|
|
226
|
+
required: false
|
|
227
|
+
}]
|
|
228
|
+
}],
|
|
229
|
+
ariaLabelInput: [{
|
|
230
|
+
type: i0.Input,
|
|
231
|
+
args: [{
|
|
232
|
+
isSignal: true,
|
|
233
|
+
alias: "ariaLabel",
|
|
234
|
+
required: false
|
|
235
|
+
}]
|
|
236
|
+
}],
|
|
237
|
+
action: [{
|
|
238
|
+
type: i0.Output,
|
|
239
|
+
args: ["action"]
|
|
240
|
+
}],
|
|
241
|
+
hidden: [{
|
|
242
|
+
type: i0.Output,
|
|
243
|
+
args: ["hidden"]
|
|
244
|
+
}]
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
export { ReminderAlertsComponent };
|
|
248
|
+
|
|
249
|
+
//# sourceMappingURL=forgeroute-ui-reminder-alerts.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forgeroute-ui-reminder-alerts.mjs","names":[],"sources":["../../../projects/forgeroute-ui/reminder-alerts/src/lib/reminder-alerts/reminder-alerts.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input, output, computed, inject } from '@angular/core';\nimport { AlertComponent, AlertVariant } from '@forgeroute/ui/alert';\nimport { BadgeComponent } from '@forgeroute/ui/badge';\nimport { ButtonComponent } from '@forgeroute/ui/core';\nimport { IconComponent } from '@forgeroute/ui/icon';\nimport { UiLabelsService } from '@forgeroute/ui/core';\n\nexport type ReminderAlertTone = 'danger' | 'warning' | 'info' | 'neutral';\n\nexport interface ReminderAlertAction {\n /** Reported by `(action)`; also part of the button's test id (`alert-<id>`). */\n id: string;\n label: string;\n variant?: 'primary' | 'secondary' | 'ghost';\n}\n\n/** One in-app alert: a due reminder, an event starting soon, anything the user should notice now. The HOST decides what is due and what the buttons do. */\nexport interface ReminderAlertItem {\n id: string;\n tone: ReminderAlertTone;\n /** Small uppercase line above the title, e.g. \"Overdue Reminder\". */\n label: string;\n title: string;\n /** Plain lines under the title (case name, description, due date…). */\n lines?: string[];\n /** A small purple pill under the title, e.g. the organization that created the item. */\n badge?: { label: string; ariaLabel?: string; testId?: string };\n actions?: ReminderAlertAction[];\n /** Accessible name of the hide (X) button; default \"Hide alert\". */\n hideLabel?: string;\n /** Test id of the hide button; default `alert-hide`. */\n hideTestId?: string;\n}\n\n/**\n * The stack of in-app alerts in the top-right corner (above the page, newest app state wins: the host passes the list). Each alert is a\n * library `ui-alert` with a coloured tone, its label / title / lines, an optional badge, action buttons and a hide (X) button:\n *\n * <ui-reminder-alerts [items]=\"alerts()\" (action)=\"onAction($event)\" (hidden)=\"hide($event)\" />\n *\n * `(action)` gives `{ item, actionId }`; `(hidden)` gives the item. The component keeps no state: the host removes an item from `items`\n * to make it go away (hiding, completing, snoozing are the host's rules). Nothing is drawn for an empty list.\n */\n@Component({\n selector: 'ui-reminder-alerts',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [AlertComponent, BadgeComponent, ButtonComponent, IconComponent],\n template: `\n @if (items().length) {\n <div class=\"ra-stack\" role=\"region\" [attr.aria-label]=\"ariaLabel()\" aria-live=\"polite\">\n @for (item of items(); track item.id) {\n <ui-alert class=\"ra-item\" [variant]=\"variant(item)\" [attr.data-testid]=\"'reminder-alert-' + item.id\">\n <div class=\"ra-body\">\n <ui-button class=\"ra-hide\" variant=\"icon\" size=\"xs\" [ariaLabel]=\"item.hideLabel || labels.t('reminderAlerts.hideAlert')\" [attr.data-testid]=\"item.hideTestId || 'alert-hide'\" (click)=\"hidden.emit(item)\">\n <ui-icon name=\"close\" [size]=\"14\" [interactive]=\"false\" />\n </ui-button>\n <span class=\"ra-label\">{{ item.label }}</span>\n <p class=\"ra-title\">{{ item.title }}</p>\n @if (item.badge; as b) {\n <ui-badge class=\"ra-badge\" role=\"img\" variant=\"purple\" [label]=\"b.label\" [attr.aria-label]=\"b.ariaLabel || b.label\" [attr.title]=\"b.ariaLabel || b.label\" [attr.data-testid]=\"b.testId || 'alert-badge'\" />\n }\n @for (line of item.lines ?? []; track $index) {\n <p class=\"ra-line\">{{ line }}</p>\n }\n @if (item.actions?.length) {\n <div class=\"ra-actions\">\n @for (a of item.actions; track a.id) {\n <ui-button [variant]=\"a.variant || 'secondary'\" size=\"xs\" [attr.data-testid]=\"'alert-' + a.id\" (click)=\"action.emit({ item, actionId: a.id })\">{{ a.label }}</ui-button>\n }\n </div>\n }\n </div>\n </ui-alert>\n }\n </div>\n }\n `,\n styles: [`\n :host { display: contents; }\n .ra-stack { position: fixed; top: 16px; right: 16px; z-index: 9990; display: flex; flex-direction: column; gap: 8px; width: 24rem; max-width: calc(100vw - 32px); pointer-events: none; }\n .ra-item { pointer-events: auto; box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18); border-radius: 8px; animation: ra-in 300ms ease-out; }\n .ra-body { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; width: 100%; padding-right: 28px; }\n .ra-hide { position: absolute; top: -4px; right: -4px; }\n .ra-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }\n .ra-title { margin: 0; font-size: 0.875rem; font-weight: 600; overflow-wrap: anywhere; }\n .ra-line { margin: 0; font-size: 0.75rem; overflow-wrap: anywhere; }\n .ra-badge { align-self: flex-start; max-width: 100%; overflow: hidden; }\n .ra-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }\n @keyframes ra-in { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }\n @media (prefers-reduced-motion: reduce) { .ra-item { animation: none; } }\n `],\n})\nexport class ReminderAlertsComponent {\n protected readonly labels = inject(UiLabelsService);\n readonly items = input<ReminderAlertItem[]>([]);\n /** Accessible name of the region. */\n readonly ariaLabelInput = input<string | null>(null, { alias: 'ariaLabel' });\n readonly ariaLabel = computed(() => this.ariaLabelInput() ?? this.labels.t('reminderAlerts.ariaLabel'));\n /** An action button was clicked. */\n readonly action = output<{ item: ReminderAlertItem; actionId: string }>();\n /** The hide (X) button was clicked. */\n readonly hidden = output<ReminderAlertItem>();\n\n protected variant(item: ReminderAlertItem): AlertVariant {\n return item.tone;\n }\n}\n"],"mappings":";;;;;;AA6FA,IAAa,0BAAb,MAAa,wBAAuB;CAlDpC,cAAA;EAmDqB,KAAA,SAAS,OAAO,eAAe;EACzC,KAAA,QAAQ,MAA2B,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EAEtC,KAAA,iBAAiB,MAAqB,MAAI;GAAA,GAAA,YAAA,EAAA,WAAA,iBAAA,+BAAA,CAAA;GAAI,OAAO;EAAW,CAAA;EAChE,KAAA,YAAY,eAAe,KAAK,eAAc,KAAM,KAAK,OAAO,EAAE,0BAA0B,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;EAE9F,KAAA,SAAS,OAAM;EAEf,KAAA,SAAS,OAAM;CAKzB;CAHW,QAAQ,MAAuB;EACvC,OAAO,KAAK;CACd;CAbW;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAuB,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAA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