@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-pill-tabs.mjs","names":[],"sources":["../../../projects/forgeroute-ui/pill-tabs/src/lib/pill-tabs/tab-panel.directive.ts","../../../projects/forgeroute-ui/pill-tabs/src/lib/pill-tabs/pill-tabs.component.ts"],"sourcesContent":["import { Directive, input } from '@angular/core';\n\n/** Id of the tab button `ui-pill-tabs` renders for [key] when its `name` input is [name] (always `<name>-<key>`). */\nexport function pillTabId(name: string, key: string): string { return `${name}-${key}`; }\n\n/** Id a `uiTabPanel` element gets, and the id every tab's `aria-controls` points at when `controlsPanels` is on: `<name>-panel-<key>`. */\nexport function pillTabPanelId(name: string, key: string): string { return `${name}-panel-${key}`; }\n\n/** Id of the heading `ui-pill-tabs` renders for the active tab when `showDescription` is on: `<name>--title`. */\nexport function pillTabTitleId(name: string): string { return `${name}--title`; }\n\n/** Id of the description paragraph `ui-pill-tabs` renders for the active tab when `showDescription` is on: `<name>--description`. */\nexport function pillTabDescriptionId(name: string): string { return `${name}--description`; }\n\n/**\n * (library source 2026-11-04, not yet published) The panel that belongs to one `ui-pill-tabs` tab: a correct\n * WAI-ARIA tablist / tabpanel association with the smallest possible markup.\n *\n * ```html\n * <ui-pill-tabs name=\"billing\" [tabs]=\"tabs\" [activeKey]=\"tab()\" [controlsPanels]=\"true\" (tabChange)=\"tab.set($event)\" />\n * <section uiTabPanel=\"invoices\" tabsName=\"billing\" [activeKey]=\"tab()\"> ... </section>\n * <section uiTabPanel=\"payments\" tabsName=\"billing\" [activeKey]=\"tab()\"> ... </section>\n * ```\n *\n * The host element gets `role=\"tabpanel\"`, `id=\"<tabsName>-panel-<key>\"` and `aria-labelledby=\"<tabsName>-<key>\"` (the tab button).\n * - `uiTabPanel` the key of the tab this panel belongs to (required, the same `key` as in the tabs list).\n * - `tabsName` the `name` input of the `ui-pill-tabs` (required; give the tabs a fixed `name` so the ids are predictable).\n * - `activeKey` the tabs' active key. When given (not null), the panel gets the `hidden` attribute while another tab is active\n * (the panels stay in the DOM, so their state survives a tab change). Leave it unset when the page renders only the\n * active panel itself (`@if`), then no `hidden` attribute is ever set.\n * - `describedByHeader` default false. true adds `aria-describedby=\"<tabsName>--description\"` (the description `ui-pill-tabs` shows under the\n * tab list with `showDescription`) while the panel is not hidden. Turn it on only when the active tab has a `description`.\n * - `tabbable` default false. true adds `tabindex=\"0\"` so a panel without any focusable content can be reached by keyboard\n * (WAI-ARIA tabs pattern).\n *\n * Id collision: ids are plain strings, so a tab whose KEY is `panel-x` has the tab id `<name>-panel-x`, which is the same string as the panel id of the\n * key `x`. Do not use keys that start with `panel-` together with `controlsPanels` (`ui-pill-tabs` logs a `console.warn` for such a key in development mode).\n *\n * Note: the `hidden` attribute loses against an author rule such as `display: flex` on the same element; put such layout on an\n * inner element, or style `[hidden] { display: none }`.\n */\n@Directive({\n selector: '[uiTabPanel]',\n standalone: true,\n host: {\n role: 'tabpanel',\n '[id]': 'panelId()',\n '[attr.aria-labelledby]': 'tabId()',\n '[attr.hidden]': 'isHidden() ? \\'\\' : null',\n '[attr.aria-describedby]': 'describedId()',\n '[attr.tabindex]': 'tabbable() ? 0 : null',\n },\n})\nexport class PillTabPanelDirective {\n /** Key of the tab this panel belongs to. */\n readonly key = input.required<string>({ alias: 'uiTabPanel' });\n /** `name` of the `ui-pill-tabs` this panel belongs to. */\n readonly tabsName = input.required<string>();\n /** Active key of the tabs; the panel is `hidden` while it is another key. null (default) = never hidden by this directive. */\n readonly activeKey = input<string | null>(null);\n /** Makes the panel itself a Tab stop (for panels with no focusable content). Default false. */\n readonly tabbable = input(false);\n\n /** Adds `aria-describedby` pointing at the description `ui-pill-tabs` renders under the tab list (`showDescription`). Default false. */\n readonly describedByHeader = input(false);\n\n protected describedId() { return this.describedByHeader() && !this.isHidden() ? pillTabDescriptionId(this.tabsName()) : null; }\n protected panelId() { return pillTabPanelId(this.tabsName(), this.key()); }\n protected tabId() { return pillTabId(this.tabsName(), this.key()); }\n protected isHidden() { const a = this.activeKey(); return a !== null && a !== this.key(); }\n}\n","import {\n Component, ChangeDetectionStrategy, ElementRef, DestroyRef, inject, input, output, signal, computed, effect, afterNextRender, afterEveryRender, isDevMode, untracked,\n} from '@angular/core';\nimport { pillTabId, pillTabPanelId, pillTabTitleId, pillTabDescriptionId } from './tab-panel.directive';\n\nexport interface PillTab {\n key: string;\n label: string;\n count?: number;\n disabled?: boolean;\n /**\n * Optional help text. When set, an info icon is shown next to the label and the text appears in a tooltip when the\n * tab is hovered or keyboard-focused. It is also the tab's accessible description (`aria-describedby`), not part of\n * its name. The tooltip is not shown in the horizontally scrolling mobile layout (it would be clipped).\n */\n info?: string;\n /** (library source 2026-11-05) Heading shown under the tab list while this tab is active, when the tabs' `showDescription` input is on. */\n title?: string;\n /** (library source 2026-11-05) Explanatory paragraph shown under the heading while this tab is active (`showDescription`). */\n description?: string;\n}\n\n/**\n * Pill-style tabs following the WAI-ARIA tabs pattern: each tab is a real <button role=\"tab\">,\n * only the selected tab is in the Tab order (roving tabindex), and Arrow Left/Right, Home and End\n * move focus + selection between enabled tabs.\n */\n@Component({\n selector: 'ui-pill-tabs',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div class=\"pill-wrap\" [class.pill-wrap--vertical]=\"vertical()\">\n <div class=\"pill-tabs\" [class.pill-tabs--nowrap]=\"noWrap()\" [class.pill-tabs--vertical]=\"vertical()\" role=\"tablist\" [attr.aria-label]=\"ariaLabel()\" [attr.aria-orientation]=\"vertical() ? 'vertical' : null\" (keydown)=\"onKeydown($event)\" (scroll)=\"updateOverflow()\">\n @for (tab of tabs(); track tab.key) {\n <button type=\"button\" class=\"pill-tab\" role=\"tab\"\n [id]=\"tabId(tab.key)\"\n [class.active]=\"activeKey() === tab.key\"\n [class.disabled]=\"tab.disabled\"\n [disabled]=\"tab.disabled ?? false\"\n [attr.aria-selected]=\"activeKey() === tab.key\"\n [attr.tabindex]=\"tabIndexFor(tab)\"\n [attr.aria-describedby]=\"tab.info ? tabId(tab.key) + '-info' : null\"\n [attr.aria-controls]=\"controlsFor(tab.key)\"\n (click)=\"select(tab.key)\">\n <span>{{ tab.label }}</span>\n @if (tab.count !== undefined) {\n <span class=\"pill-count\">{{ tab.count }}</span>\n }\n @if (tab.info) {\n <svg class=\"pill-info-icon\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" data-testid=\"pill-info-icon\">\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 <span class=\"pill-info-tip\" role=\"tooltip\" aria-hidden=\"true\" [id]=\"tabId(tab.key) + '-info'\" data-testid=\"pill-info-tip\">{{ tab.info }}</span>\n }\n </button>\n }\n </div>\n <span class=\"pill-fade pill-fade--start\" [class.visible]=\"canScrollStart()\" aria-hidden=\"true\" data-testid=\"pill-fade-start\"></span>\n <span class=\"pill-fade pill-fade--end\" [class.visible]=\"canScrollEnd()\" aria-hidden=\"true\" data-testid=\"pill-fade-end\"></span>\n </div>\n @if (showDescription() && (activeTab()?.title || activeTab()?.description)) {\n <div class=\"pill-header\" data-testid=\"pill-header\">\n @if (activeTab()?.title) {\n @if (headingLevel() === 3) {\n <h3 class=\"pill-header-title\" [id]=\"titleId()\" data-testid=\"pill-header-title\">{{ activeTab()!.title }}</h3>\n } @else {\n <h2 class=\"pill-header-title\" [id]=\"titleId()\" data-testid=\"pill-header-title\">{{ activeTab()!.title }}</h2>\n }\n }\n @if (activeTab()?.description) {\n <p class=\"pill-header-description\" [id]=\"descriptionId()\" data-testid=\"pill-header-description\">{{ activeTab()!.description }}</p>\n }\n </div>\n }\n `,\n styles: [`\n .pill-header { margin-top: 16px; min-width: 0; }\n .pill-header-title { margin: 0; font-size: 1.125rem; font-weight: 600; line-height: 1.3; color: var(--ui-text, #1e293b); overflow-wrap: anywhere; }\n .pill-header-description { margin: 4px 0 0; font-size: 0.875rem; line-height: 1.5; color: var(--ui-text-muted, #475569); overflow-wrap: anywhere; }\n .pill-wrap { position: relative; }\n /* Scroll hint: edge fades shown only while more pills are scrollable in that direction. Absolutely positioned\n and pointer-events none, so no layout shift and no blocked clicks. Override the colour with\n --ui-pill-tabs-fade when the tabs sit on a non-white background. */\n .pill-fade {\n position: absolute; top: 0; bottom: 0; width: 28px; pointer-events: none;\n opacity: 0; transition: opacity 0.15s;\n }\n .pill-fade.visible { opacity: 1; }\n .pill-fade--start { left: 0; background: linear-gradient(to right, var(--ui-pill-tabs-fade, #fff), transparent); }\n .pill-fade--end { right: 0; background: linear-gradient(to left, var(--ui-pill-tabs-fade, #fff), transparent); }\n .pill-tabs {\n display: flex;\n gap: 8px;\n flex-wrap: wrap;\n }\n @media (max-width: 768px) {\n .pill-tabs {\n flex-wrap: nowrap;\n overflow-x: auto;\n -webkit-overflow-scrolling: touch;\n padding-bottom: 2px;\n scrollbar-width: none;\n &::-webkit-scrollbar { display: none; }\n }\n }\n /* noWrap: every pill keeps its own width and stays on one line (it is never squeezed into a narrow, multi-line pill); the row scrolls instead. */\n .pill-tabs--nowrap .pill-tab { flex: 0 0 auto; white-space: nowrap; }\n .pill-tab {\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 7px 16px;\n border-radius: 999px;\n border: 1px solid #e2e8f0;\n background: #fff;\n font-size: 0.8125rem;\n font-weight: 500;\n color: #64748b;\n cursor: pointer;\n transition: all 0.15s;\n font-family: inherit;\n\n &:hover:not(.disabled):not(.active) { background: #f8fafc; border-color: #94a3b8; }\n &:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }\n\n .pill-count {\n background: #e2e8f0; color: #475569;\n font-size: 0.7rem; font-weight: 600;\n padding: 1px 6px; border-radius: 999px; line-height: 1.4;\n }\n\n &.active {\n background: #1e293b; color: #fff; border-color: #1e293b;\n .pill-count { background: rgba(255,255,255,0.2); color: #fff; }\n &:hover { background: #1e293b; color: #fff; }\n }\n\n &.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }\n\n .pill-info-icon { flex-shrink: 0; opacity: 0.7; }\n &:hover .pill-info-icon, &:focus-visible .pill-info-icon { opacity: 1; }\n\n /* Tooltip with the tab's info text. Hidden until hover / keyboard focus; never intercepts the pointer. */\n .pill-info-tip {\n position: absolute; left: 0; top: calc(100% + 8px); z-index: 20;\n width: max-content; max-width: 280px;\n padding: 8px 12px; border-radius: 8px;\n background: #1e293b; color: #fff;\n font-size: 0.75rem; font-weight: 400; line-height: 1.45; text-align: left; white-space: normal;\n box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);\n opacity: 0; visibility: hidden; pointer-events: none;\n transition: opacity 0.12s, visibility 0.12s;\n }\n &:hover .pill-info-tip, &:focus-visible .pill-info-tip { opacity: 1; visibility: visible; }\n }\n /* The last tab's tooltip anchors to its right edge so it never runs past the right side of the viewport. */\n .pill-tab:last-child .pill-info-tip { left: auto; right: 0; }\n /* orientation=\"vertical\": a stacked list (e.g. a settings sidebar). Full-width, left-aligned rows; never scrolls sideways, even on a phone. */\n .pill-wrap--vertical .pill-fade { display: none; }\n .pill-tabs.pill-tabs--vertical { flex-direction: column; flex-wrap: nowrap; overflow: visible; gap: 4px; padding-bottom: 0; }\n .pill-tabs--vertical .pill-tab { width: 100%; justify-content: flex-start; border-radius: 10px; text-align: left; }\n .pill-tabs--vertical .pill-tab .pill-count { margin-left: auto; }\n .pill-tabs--vertical .pill-tab .pill-info-tip { left: calc(100% + 8px); top: 50%; transform: translateY(-50%); }\n .pill-tabs--vertical .pill-tab:last-child .pill-info-tip { left: calc(100% + 8px); right: auto; }\n /* Touch targets: >= 44px hit height on touch devices and phones (desktop unchanged). */\n @media (pointer: coarse), (max-width: 480px) {\n .pill-tab { min-height: 44px; }\n }\n `],\n})\nexport class PillTabsComponent {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly tabs = input<PillTab[]>([]);\n readonly activeKey = input('');\n /** Accessible name for the tab list (e.g. 'Reporting period'). Omit to leave it unnamed. */\n readonly ariaLabel = input<string | null>(null);\n readonly name = input('pill-tabs-' + Math.random().toString(36).slice(2));\n /** Keep every pill at its own width on one line (default false: pills may shrink and wrap their text). On a phone the row scrolls sideways, as it always does. */\n readonly noWrap = input(false);\n /** 'vertical' stacks the tabs in a column (Up/Down arrows move between them, `aria-orientation=\"vertical\"`). Default 'horizontal' = unchanged. */\n readonly orientation = input<'horizontal' | 'vertical'>('horizontal');\n protected readonly vertical = () => this.orientation() === 'vertical';\n /**\n * (library source 2026-11-04, not yet published) Associate the tabs with their panels: every tab gets\n * `aria-controls=\"<name>-panel-<key>\"`, the id a `uiTabPanel` directive gives its element (see `PillTabPanelDirective`).\n * Default false = no `aria-controls` at all (unchanged markup). Turn it on only when every tab has a `uiTabPanel`\n * element in the page, otherwise `aria-controls` would point at a missing id. The tab ids themselves are unchanged\n * and always `<name>-<key>` (see `pillTabId`).\n *\n * (library source 2026-11-19) Not needed any more for a host that uses `uiTabPanel`: while this is off, a tab still gets `aria-controls` automatically\n * as soon as a panel with the id `<name>-panel-<key>` exists in the same document / shadow root (checked after every render), so the attribute never\n * points at a missing id. Turn it on only to force `aria-controls` on every tab (e.g. panels that are rendered later with `@if`).\n *\n * Id collision: a tab whose KEY is `panel-x` has the id `<name>-panel-x`, which is also the panel id for key `x`. Avoid keys that start with\n * `panel-` when this is on; in development mode a `console.warn` names such a key.\n */\n readonly controlsPanels = input(false);\n /**\n * (library source 2026-11-05) Show the ACTIVE tab's `title` (heading) and `description` (paragraph) under the tab list. Default false = no extra DOM.\n * A tab with only one of them renders only that one; a tab with neither renders nothing. The ids are `<name>--title` / `<name>--description`\n * (`pillTabTitleId` / `pillTabDescriptionId`); `[uiTabPanel] [describedByHeader]=\"true\"` points the panel's `aria-describedby` at the description.\n */\n readonly showDescription = input(false);\n /** Heading level of the active tab's title when `showDescription` is on: 2 (default) or 3. */\n readonly headingLevel = input<2 | 3>(2);\n readonly tabChange = output<string>();\n\n /** Panel ids (`<name>-panel-<key>`) found in the page after the last render; they get `aria-controls` even when `controlsPanels` is off. */\n private readonly foundPanels = signal<ReadonlySet<string>>(new Set());\n\n protected readonly activeTab = computed(() => this.tabs().find(t => t.key === this.activeKey()) ?? null);\n protected titleId() { return pillTabTitleId(this.name()); }\n protected descriptionId() { return pillTabDescriptionId(this.name()); }\n\n /** True while pills are hidden past the start / end edge of the scroll area (drives the fade hints). */\n protected readonly canScrollStart = signal(false);\n protected readonly canScrollEnd = signal(false);\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n // Development mode only: keys that start with \"panel-\" can collide with a panel id when controlsPanels is on (see the input's doc).\n const warned = new Set<string>();\n effect(() => {\n const on = this.controlsPanels(), tabs = this.tabs(), name = this.name();\n if (!on || !isDevMode()) return;\n untracked(() => {\n for (const t of tabs) {\n if (!t.key.startsWith('panel-') || warned.has(name + '|' + t.key)) continue;\n warned.add(name + '|' + t.key);\n console.warn(`ui-pill-tabs \"${name}\": the tab key \"${t.key}\" starts with \"panel-\", so its id \"${pillTabId(name, t.key)}\" can equal the panel id of the key \"${t.key.slice(6)}\" (${pillTabPanelId(name, t.key.slice(6))}) when controlsPanels is on. Rename the key.`);\n }\n });\n });\n // Automatic aria-controls: remember which panel ids really exist (only a changed set is written, so this settles after one extra pass).\n afterEveryRender(() => {\n const root = this.host.nativeElement.getRootNode() as Partial<Document>;\n if (typeof root.getElementById !== 'function') return; // not attached to a document / shadow root\n const found = new Set(this.tabs().map(t => this.panelId(t.key)).filter(id => !!root.getElementById!(id)));\n const prev = this.foundPanels();\n if (found.size !== prev.size || [...found].some(id => !prev.has(id))) this.foundPanels.set(found);\n });\n // Re-measure whenever the tab list changes.\n effect(() => { this.tabs(); queueMicrotask(() => this.updateOverflow()); });\n afterNextRender(() => {\n this.updateOverflow();\n const list = this.host.nativeElement.querySelector('.pill-tabs');\n if (list && typeof ResizeObserver !== 'undefined') {\n const ro = new ResizeObserver(() => this.updateOverflow());\n ro.observe(list);\n destroyRef.onDestroy(() => ro.disconnect());\n }\n });\n }\n\n /** Id of the tab button for [key] (`<name>-<key>`, the exported `pillTabId`). */\n protected tabId(key: string): string { return pillTabId(this.name(), key); }\n /** Id of the panel [key] controls (`<name>-panel-<key>`, the exported `pillTabPanelId`). */\n protected panelId(key: string): string { return pillTabPanelId(this.name(), key); }\n\n /** `aria-controls` value of a tab: its panel id when `controlsPanels` is on or that panel exists in the page, otherwise none. */\n protected controlsFor(key: string): string | null {\n const id = this.panelId(key);\n return this.controlsPanels() || this.foundPanels().has(id) ? id : null;\n }\n\n protected updateOverflow() {\n const el = this.host.nativeElement.querySelector<HTMLElement>('.pill-tabs');\n if (!el) return;\n const max = el.scrollWidth - el.clientWidth;\n const pos = Math.abs(el.scrollLeft); // abs: RTL scrollLeft is negative\n this.canScrollStart.set(max > 1 && pos > 1);\n this.canScrollEnd.set(max > 1 && pos < max - 1);\n }\n\n select(key: string) {\n if (key !== this.activeKey()) this.tabChange.emit(key);\n }\n\n /** Roving tabindex — the selected tab (or the first enabled one when none is selected) is tabbable. */\n protected tabIndexFor(tab: PillTab): number {\n const tabs = this.tabs();\n const focusKey = tabs.some(t => t.key === this.activeKey() && !t.disabled)\n ? this.activeKey()\n : tabs.find(t => !t.disabled)?.key;\n return tab.key === focusKey ? 0 : -1;\n }\n\n protected onKeydown(e: KeyboardEvent) {\n const enabled = this.tabs().filter(t => !t.disabled);\n const [nextKey, prevKey] = this.vertical() ? ['ArrowDown', 'ArrowUp'] : ['ArrowRight', 'ArrowLeft'];\n if (!enabled.length || ![nextKey, prevKey, 'Home', 'End'].includes(e.key)) return;\n const current = Math.max(0, enabled.findIndex(t => t.key === this.activeKey()));\n const next = e.key === 'Home' ? 0\n : e.key === 'End' ? enabled.length - 1\n : (current + (e.key === nextKey ? 1 : -1) + enabled.length) % enabled.length;\n e.preventDefault();\n const key = enabled[next].key;\n this.select(key);\n this.host.nativeElement.querySelector<HTMLElement>(`#${CSS.escape(this.tabId(key))}`)?.focus();\n }\n}\n"],"mappings":";;AAGA,SAAgB,UAAU,MAAc,KAAW;CAAY,OAAO,GAAG,KAAI,GAAI;AAAO;AAGxF,SAAgB,eAAe,MAAc,KAAW;CAAY,OAAO,GAAG,KAAI,SAAU;AAAO;AAGnG,SAAgB,eAAe,MAAY;CAAY,OAAO,GAAG,KAAI;AAAW;AAGhF,SAAgB,qBAAqB,MAAY;CAAY,OAAO,GAAG,KAAI;AAAiB;AAyC5F,IAAa,wBAAb,MAAa,sBAAqB;CAZlC,cAAA;EAcW,KAAA,MAAM,MAAM,SAAQ;GAAA,GAAA,YAAA,EAAA,WAAA,MAAA,+BAAA,CAAA;GAAW,OAAO;EAAY,CAAA;EAElD,KAAA,WAAW,MAAM,SAAkB,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;EAEnC,KAAA,YAAY,MAAqB,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA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,UAAA;GAAA,QAAA,CAAA,q9FAAA;GAAA,iBAAA,GAAA,wBAAA;EAAA,CAAA;CAAA;;AAiGU,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAiB,YAAA,CAAA;EAjJ7B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAc,YACZ;GAAI,iBACC,wBAAwB;GAAM,UACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CT,QAAA,CAAA,q9FAAA;EAAA,CAAA"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Injectable } from "@angular/core";
|
|
3
|
+
import { downloadBlob } from "@forgeroute/ui/utils";
|
|
4
|
+
var PrintService = class PrintService {
|
|
5
|
+
openWindow() {
|
|
6
|
+
return typeof window === "undefined" ? null : window.open("", "_blank");
|
|
7
|
+
}
|
|
8
|
+
print(html, existing, timings = {}) {
|
|
9
|
+
const win = existing ?? this.openWindow();
|
|
10
|
+
if (!win) return false;
|
|
11
|
+
win.document.write(html);
|
|
12
|
+
win.document.close();
|
|
13
|
+
win.focus();
|
|
14
|
+
setTimeout(() => win.print(), timings.windowDelayMs ?? 300);
|
|
15
|
+
return true;
|
|
16
|
+
}
|
|
17
|
+
printInFrame(html, timings = {}) {
|
|
18
|
+
if (typeof document === "undefined") return;
|
|
19
|
+
const iframe = document.createElement("iframe");
|
|
20
|
+
iframe.style.cssText = "position:fixed;left:0;top:0;width:1px;height:1px;border:0;opacity:0;pointer-events:none;";
|
|
21
|
+
iframe.setAttribute("aria-hidden", "true");
|
|
22
|
+
iframe.tabIndex = -1;
|
|
23
|
+
document.body.appendChild(iframe);
|
|
24
|
+
const doc = iframe.contentDocument || iframe.contentWindow?.document;
|
|
25
|
+
if (!doc) {
|
|
26
|
+
document.body.removeChild(iframe);
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
doc.open();
|
|
30
|
+
doc.write(html);
|
|
31
|
+
doc.close();
|
|
32
|
+
setTimeout(() => {
|
|
33
|
+
iframe.contentWindow?.print();
|
|
34
|
+
setTimeout(() => {
|
|
35
|
+
try {
|
|
36
|
+
document.body.removeChild(iframe);
|
|
37
|
+
} catch {}
|
|
38
|
+
}, timings.frameCleanupMs ?? 2e3);
|
|
39
|
+
}, timings.frameDelayMs ?? 400);
|
|
40
|
+
}
|
|
41
|
+
downloadHtml(fileName, html) {
|
|
42
|
+
downloadBlob(new Blob([html], { type: "text/html;charset=utf-8" }), /\.html?$/i.test(fileName) ? fileName : `${fileName}.html`);
|
|
43
|
+
}
|
|
44
|
+
static {
|
|
45
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
46
|
+
minVersion: "12.0.0",
|
|
47
|
+
version: "22.2.2",
|
|
48
|
+
ngImport: i0,
|
|
49
|
+
type: PrintService,
|
|
50
|
+
deps: [],
|
|
51
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
static {
|
|
55
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
56
|
+
minVersion: "12.0.0",
|
|
57
|
+
version: "22.2.2",
|
|
58
|
+
ngImport: i0,
|
|
59
|
+
type: PrintService,
|
|
60
|
+
providedIn: "root"
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
65
|
+
minVersion: "12.0.0",
|
|
66
|
+
version: "22.2.2",
|
|
67
|
+
ngImport: i0,
|
|
68
|
+
type: PrintService,
|
|
69
|
+
decorators: [{
|
|
70
|
+
type: Injectable,
|
|
71
|
+
args: [{ providedIn: "root" }]
|
|
72
|
+
}]
|
|
73
|
+
});
|
|
74
|
+
export { PrintService };
|
|
75
|
+
|
|
76
|
+
//# sourceMappingURL=forgeroute-ui-print.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forgeroute-ui-print.mjs","names":[],"sources":["../../../projects/forgeroute-ui/print/src/lib/print/print.service.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { downloadBlob } from '@forgeroute/ui/utils';\n\n/** Delays of the print helpers, in milliseconds (the page needs a moment to lay out before the browser prints it). */\nexport interface PrintTimings {\n /** After the pop-up window is filled, before `print()` is called. Default 300. */\n windowDelayMs?: number;\n /** After the hidden frame is filled, before `print()` is called. Default 400. */\n frameDelayMs?: number;\n /** After printing from the hidden frame, before the frame is removed. Default 2000. */\n frameCleanupMs?: number;\n}\n\n/**\n * Prints or saves a finished HTML document, the same way in every app.\n *\n * const win = print.openWindow(); // straight from the click handler (Safari only allows a pop-up inside the user's gesture)\n * const html = await buildTheDocument(); // may take a while\n * if (!print.print(html, win)) toast.error('The print window was blocked. Allow pop-ups for this site.');\n *\n * print.printInFrame(html); // no pop-up: a hidden frame prints; the print dialog offers \"Save as PDF\"\n * print.downloadHtml('checklist.html', html); // saves the HTML file itself\n *\n * No server, no state. Safe to call without a DOM (nothing happens).\n */\n@Injectable({ providedIn: 'root' })\nexport class PrintService {\n /** Opens an empty window. Call it directly from the click handler, then hand it to [print] later. Returns null when the browser blocked it. */\n openWindow(): Window | null {\n return typeof window === 'undefined' ? null : window.open('', '_blank');\n }\n\n /**\n * Writes `html` into a window (a new one, or `existing` opened earlier with [openWindow]), focuses it and prints it after `windowDelayMs`.\n * Returns false when the browser blocked the pop-up, so the caller can tell the user.\n */\n print(html: string, existing?: Window | null, timings: PrintTimings = {}): boolean {\n const win = existing ?? this.openWindow();\n if (!win) return false;\n win.document.write(html);\n win.document.close();\n win.focus();\n setTimeout(() => win.print(), timings.windowDelayMs ?? 300);\n return true;\n }\n\n /**\n * Prints through a hidden frame (no pop-up). The frame is 1px, on screen and transparent, because Safari does not print a frame that is off screen\n * or `display:none`. It is removed `frameCleanupMs` after printing. Does nothing without a DOM or when the frame has no document.\n */\n printInFrame(html: string, timings: PrintTimings = {}): void {\n if (typeof document === 'undefined') return;\n const iframe = document.createElement('iframe');\n iframe.style.cssText = 'position:fixed;left:0;top:0;width:1px;height:1px;border:0;opacity:0;pointer-events:none;';\n iframe.setAttribute('aria-hidden', 'true');\n iframe.tabIndex = -1;\n document.body.appendChild(iframe);\n const doc = iframe.contentDocument || iframe.contentWindow?.document;\n if (!doc) { document.body.removeChild(iframe); return; }\n doc.open();\n doc.write(html);\n doc.close();\n setTimeout(() => {\n iframe.contentWindow?.print();\n setTimeout(() => { try { document.body.removeChild(iframe); } catch { /* already removed */ } }, timings.frameCleanupMs ?? 2000);\n }, timings.frameDelayMs ?? 400);\n }\n\n /** Saves `html` as a file named `fileName` (`.html` is added when missing). */\n downloadHtml(fileName: string, html: string): void {\n downloadBlob(new Blob([html], { type: 'text/html;charset=utf-8' }), /\\.html?$/i.test(fileName) ? fileName : `${fileName}.html`);\n }\n}\n"],"mappings":";;;AA0BA,IAAa,eAAb,MAAa,aAAY;CAEvB,aAAU;EACR,OAAO,OAAO,WAAW,cAAc,OAAO,OAAO,KAAK,IAAI,QAAQ;CACxE;CAMA,MAAM,MAAc,UAA0B,UAAwB,CAAA,GAAE;EACtE,MAAM,MAAM,YAAY,KAAK,WAAU;EACvC,IAAI,CAAC,KAAK,OAAO;EACjB,IAAI,SAAS,MAAM,IAAI;EACvB,IAAI,SAAS,MAAK;EAClB,IAAI,MAAK;EACT,iBAAiB,IAAI,MAAK,GAAI,QAAQ,iBAAiB,GAAG;EAC1D,OAAO;CACT;CAMA,aAAa,MAAc,UAAwB,CAAA,GAAE;EACnD,IAAI,OAAO,aAAa,aAAa;EACrC,MAAM,SAAS,SAAS,cAAc,QAAQ;EAC9C,OAAO,MAAM,UAAU;EACvB,OAAO,aAAa,eAAe,MAAM;EACzC,OAAO,WAAW;EAClB,SAAS,KAAK,YAAY,MAAM;EAChC,MAAM,MAAM,OAAO,mBAAmB,OAAO,eAAe;EAC5D,IAAI,CAAC,KAAK;GAAE,SAAS,KAAK,YAAY,MAAM;GAAG;EAAQ;EACvD,IAAI,KAAI;EACR,IAAI,MAAM,IAAI;EACd,IAAI,MAAK;EACT,iBAAgB;GACd,OAAO,eAAe,MAAK;GAC3B,iBAAgB;IAAG,IAAI;KAAE,SAAS,KAAK,YAAY,MAAM;IAAG,QAAQ,CAAwB;GAAE,GAAG,QAAQ,kBAAkB,GAAI;EACjI,GAAG,QAAQ,gBAAgB,GAAG;CAChC;CAGA,aAAa,UAAkB,MAAY;EACzC,aAAa,IAAI,KAAK,CAAC,IAAI,GAAG,EAAE,MAAM,0BAAyB,CAAE,GAAG,YAAY,KAAK,QAAQ,IAAI,WAAW,GAAG,SAAQ,MAAO;CAChI;CA7CW;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAY,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAZ;EAAA,KAAA,QAAA,GAAA,sBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAY,YADC;EAAM,CAAA;CAAA;;AACnB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAY,YAAA,CAAA;EADxB,MAAA;EAAW,MAAA,CAAA,EAAE,YAAY,OAAM,CAAE"}
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import { TooltipDirective } from "@forgeroute/ui/tooltip";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { ChangeDetectionStrategy, Component, computed, input } from "@angular/core";
|
|
4
|
+
const MIN_VISIBLE_PERCENT = 2;
|
|
5
|
+
var ProgressBarComponent = class ProgressBarComponent {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.value = input(0, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
8
|
+
this.max = input(100, ...ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []);
|
|
9
|
+
this.label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
10
|
+
this.variant = input(null, ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
|
|
11
|
+
this.color = input("", ...ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []);
|
|
12
|
+
this.tooltip = input("", ...ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []);
|
|
13
|
+
this.ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
14
|
+
this.ariaLabelledby = input("", ...ngDevMode ? [{ debugName: "ariaLabelledby" }] : /* istanbul ignore next */ []);
|
|
15
|
+
this.valueText = input("", ...ngDevMode ? [{ debugName: "valueText" }] : /* istanbul ignore next */ []);
|
|
16
|
+
this.safeMax = computed(() => {
|
|
17
|
+
const m = this.max();
|
|
18
|
+
return Number.isFinite(m) && m > 0 ? m : 0;
|
|
19
|
+
}, ...ngDevMode ? [{ debugName: "safeMax" }] : /* istanbul ignore next */ []);
|
|
20
|
+
this.clampedValue = computed(() => {
|
|
21
|
+
const v = this.value();
|
|
22
|
+
return Math.min(Math.max(Number.isNaN(v) ? 0 : v, 0), this.safeMax());
|
|
23
|
+
}, ...ngDevMode ? [{ debugName: "clampedValue" }] : /* istanbul ignore next */ []);
|
|
24
|
+
this.percent = computed(() => {
|
|
25
|
+
if (this.safeMax() <= 0 || this.clampedValue() <= 0) return 0;
|
|
26
|
+
return Math.max(Math.round(this.clampedValue() / this.safeMax() * 100), MIN_VISIBLE_PERCENT);
|
|
27
|
+
}, ...ngDevMode ? [{ debugName: "percent" }] : /* istanbul ignore next */ []);
|
|
28
|
+
this.effectiveVariant = computed(() => {
|
|
29
|
+
const fixed = this.variant();
|
|
30
|
+
if (fixed) return fixed;
|
|
31
|
+
const exact = this.safeMax() > 0 ? this.clampedValue() / this.safeMax() * 100 : 0;
|
|
32
|
+
return exact <= 25 ? "red" : exact <= 50 ? "amber" : exact <= 75 ? "blue" : "green";
|
|
33
|
+
}, ...ngDevMode ? [{ debugName: "effectiveVariant" }] : /* istanbul ignore next */ []);
|
|
34
|
+
}
|
|
35
|
+
static {
|
|
36
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
37
|
+
minVersion: "12.0.0",
|
|
38
|
+
version: "22.2.2",
|
|
39
|
+
ngImport: i0,
|
|
40
|
+
type: ProgressBarComponent,
|
|
41
|
+
deps: [],
|
|
42
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
static {
|
|
46
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
47
|
+
minVersion: "17.0.0",
|
|
48
|
+
version: "22.2.2",
|
|
49
|
+
type: ProgressBarComponent,
|
|
50
|
+
isStandalone: true,
|
|
51
|
+
selector: "ui-progress-bar",
|
|
52
|
+
inputs: {
|
|
53
|
+
value: {
|
|
54
|
+
classPropertyName: "value",
|
|
55
|
+
publicName: "value",
|
|
56
|
+
isSignal: true,
|
|
57
|
+
isRequired: false,
|
|
58
|
+
transformFunction: null
|
|
59
|
+
},
|
|
60
|
+
max: {
|
|
61
|
+
classPropertyName: "max",
|
|
62
|
+
publicName: "max",
|
|
63
|
+
isSignal: true,
|
|
64
|
+
isRequired: false,
|
|
65
|
+
transformFunction: null
|
|
66
|
+
},
|
|
67
|
+
label: {
|
|
68
|
+
classPropertyName: "label",
|
|
69
|
+
publicName: "label",
|
|
70
|
+
isSignal: true,
|
|
71
|
+
isRequired: false,
|
|
72
|
+
transformFunction: null
|
|
73
|
+
},
|
|
74
|
+
variant: {
|
|
75
|
+
classPropertyName: "variant",
|
|
76
|
+
publicName: "variant",
|
|
77
|
+
isSignal: true,
|
|
78
|
+
isRequired: false,
|
|
79
|
+
transformFunction: null
|
|
80
|
+
},
|
|
81
|
+
color: {
|
|
82
|
+
classPropertyName: "color",
|
|
83
|
+
publicName: "color",
|
|
84
|
+
isSignal: true,
|
|
85
|
+
isRequired: false,
|
|
86
|
+
transformFunction: null
|
|
87
|
+
},
|
|
88
|
+
tooltip: {
|
|
89
|
+
classPropertyName: "tooltip",
|
|
90
|
+
publicName: "tooltip",
|
|
91
|
+
isSignal: true,
|
|
92
|
+
isRequired: false,
|
|
93
|
+
transformFunction: null
|
|
94
|
+
},
|
|
95
|
+
ariaLabel: {
|
|
96
|
+
classPropertyName: "ariaLabel",
|
|
97
|
+
publicName: "ariaLabel",
|
|
98
|
+
isSignal: true,
|
|
99
|
+
isRequired: false,
|
|
100
|
+
transformFunction: null
|
|
101
|
+
},
|
|
102
|
+
ariaLabelledby: {
|
|
103
|
+
classPropertyName: "ariaLabelledby",
|
|
104
|
+
publicName: "ariaLabelledby",
|
|
105
|
+
isSignal: true,
|
|
106
|
+
isRequired: false,
|
|
107
|
+
transformFunction: null
|
|
108
|
+
},
|
|
109
|
+
valueText: {
|
|
110
|
+
classPropertyName: "valueText",
|
|
111
|
+
publicName: "valueText",
|
|
112
|
+
isSignal: true,
|
|
113
|
+
isRequired: false,
|
|
114
|
+
transformFunction: null
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
ngImport: i0,
|
|
118
|
+
template: `
|
|
119
|
+
<div class="pb"
|
|
120
|
+
role="progressbar"
|
|
121
|
+
[attr.aria-valuemin]="0"
|
|
122
|
+
[attr.aria-valuemax]="safeMax()"
|
|
123
|
+
[attr.aria-valuenow]="clampedValue()"
|
|
124
|
+
[attr.aria-valuetext]="valueText() || null"
|
|
125
|
+
[attr.aria-labelledby]="ariaLabelledby() || null"
|
|
126
|
+
[attr.aria-label]="ariaLabelledby() ? null : (ariaLabel() || label() || null)"
|
|
127
|
+
[uiTooltip]="tooltip()"
|
|
128
|
+
[attr.tabindex]="tooltip() ? 0 : null">
|
|
129
|
+
<div class="pb-track"><div class="pb-fill" [class]="'pb-fill pb-' + effectiveVariant()" [style.width.%]="percent()" [style.background]="color() || null"></div></div>
|
|
130
|
+
@if (label()) { <span class="pb-label">{{ label() }}</span> }
|
|
131
|
+
</div>
|
|
132
|
+
`,
|
|
133
|
+
isInline: true,
|
|
134
|
+
styles: [":host{display:block}.pb{display:flex;align-items:center;gap:8px;min-width:100px}.pb-track{flex:1;height:6px;background:#e2e8f0;border-radius:3px;overflow:hidden}.pb-fill{height:100%;border-radius:3px;transition:width .3s}@media(prefers-reduced-motion:reduce){.pb-fill{transition:none}}.pb-blue{background:var(--ui-progress-fill, var(--ui-accent, #3b82f6))}.pb-green{background:#16a34a}.pb-amber{background:#f59e0b}.pb-orange{background:#f97316}.pb-red{background:#ef4444}.pb-slate{background:#94a3b8}@media(forced-colors:active){.pb-track{background:Canvas;border:1px solid CanvasText}.pb-fill{background:Highlight;forced-color-adjust:none}}.pb-label{font-size:.75rem;font-weight:500;color:#64748b;white-space:nowrap}\n"],
|
|
135
|
+
dependencies: [{
|
|
136
|
+
kind: "directive",
|
|
137
|
+
type: TooltipDirective,
|
|
138
|
+
selector: "[uiTooltip]",
|
|
139
|
+
inputs: ["uiTooltip", "tooltipPosition"]
|
|
140
|
+
}],
|
|
141
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
146
|
+
minVersion: "12.0.0",
|
|
147
|
+
version: "22.2.2",
|
|
148
|
+
ngImport: i0,
|
|
149
|
+
type: ProgressBarComponent,
|
|
150
|
+
decorators: [{
|
|
151
|
+
type: Component,
|
|
152
|
+
args: [{
|
|
153
|
+
selector: "ui-progress-bar",
|
|
154
|
+
standalone: true,
|
|
155
|
+
imports: [TooltipDirective],
|
|
156
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
157
|
+
template: `
|
|
158
|
+
<div class="pb"
|
|
159
|
+
role="progressbar"
|
|
160
|
+
[attr.aria-valuemin]="0"
|
|
161
|
+
[attr.aria-valuemax]="safeMax()"
|
|
162
|
+
[attr.aria-valuenow]="clampedValue()"
|
|
163
|
+
[attr.aria-valuetext]="valueText() || null"
|
|
164
|
+
[attr.aria-labelledby]="ariaLabelledby() || null"
|
|
165
|
+
[attr.aria-label]="ariaLabelledby() ? null : (ariaLabel() || label() || null)"
|
|
166
|
+
[uiTooltip]="tooltip()"
|
|
167
|
+
[attr.tabindex]="tooltip() ? 0 : null">
|
|
168
|
+
<div class="pb-track"><div class="pb-fill" [class]="'pb-fill pb-' + effectiveVariant()" [style.width.%]="percent()" [style.background]="color() || null"></div></div>
|
|
169
|
+
@if (label()) { <span class="pb-label">{{ label() }}</span> }
|
|
170
|
+
</div>
|
|
171
|
+
`,
|
|
172
|
+
styles: [":host{display:block}.pb{display:flex;align-items:center;gap:8px;min-width:100px}.pb-track{flex:1;height:6px;background:#e2e8f0;border-radius:3px;overflow:hidden}.pb-fill{height:100%;border-radius:3px;transition:width .3s}@media(prefers-reduced-motion:reduce){.pb-fill{transition:none}}.pb-blue{background:var(--ui-progress-fill, var(--ui-accent, #3b82f6))}.pb-green{background:#16a34a}.pb-amber{background:#f59e0b}.pb-orange{background:#f97316}.pb-red{background:#ef4444}.pb-slate{background:#94a3b8}@media(forced-colors:active){.pb-track{background:Canvas;border:1px solid CanvasText}.pb-fill{background:Highlight;forced-color-adjust:none}}.pb-label{font-size:.75rem;font-weight:500;color:#64748b;white-space:nowrap}\n"]
|
|
173
|
+
}]
|
|
174
|
+
}],
|
|
175
|
+
propDecorators: {
|
|
176
|
+
value: [{
|
|
177
|
+
type: i0.Input,
|
|
178
|
+
args: [{
|
|
179
|
+
isSignal: true,
|
|
180
|
+
alias: "value",
|
|
181
|
+
required: false
|
|
182
|
+
}]
|
|
183
|
+
}],
|
|
184
|
+
max: [{
|
|
185
|
+
type: i0.Input,
|
|
186
|
+
args: [{
|
|
187
|
+
isSignal: true,
|
|
188
|
+
alias: "max",
|
|
189
|
+
required: false
|
|
190
|
+
}]
|
|
191
|
+
}],
|
|
192
|
+
label: [{
|
|
193
|
+
type: i0.Input,
|
|
194
|
+
args: [{
|
|
195
|
+
isSignal: true,
|
|
196
|
+
alias: "label",
|
|
197
|
+
required: false
|
|
198
|
+
}]
|
|
199
|
+
}],
|
|
200
|
+
variant: [{
|
|
201
|
+
type: i0.Input,
|
|
202
|
+
args: [{
|
|
203
|
+
isSignal: true,
|
|
204
|
+
alias: "variant",
|
|
205
|
+
required: false
|
|
206
|
+
}]
|
|
207
|
+
}],
|
|
208
|
+
color: [{
|
|
209
|
+
type: i0.Input,
|
|
210
|
+
args: [{
|
|
211
|
+
isSignal: true,
|
|
212
|
+
alias: "color",
|
|
213
|
+
required: false
|
|
214
|
+
}]
|
|
215
|
+
}],
|
|
216
|
+
tooltip: [{
|
|
217
|
+
type: i0.Input,
|
|
218
|
+
args: [{
|
|
219
|
+
isSignal: true,
|
|
220
|
+
alias: "tooltip",
|
|
221
|
+
required: false
|
|
222
|
+
}]
|
|
223
|
+
}],
|
|
224
|
+
ariaLabel: [{
|
|
225
|
+
type: i0.Input,
|
|
226
|
+
args: [{
|
|
227
|
+
isSignal: true,
|
|
228
|
+
alias: "ariaLabel",
|
|
229
|
+
required: false
|
|
230
|
+
}]
|
|
231
|
+
}],
|
|
232
|
+
ariaLabelledby: [{
|
|
233
|
+
type: i0.Input,
|
|
234
|
+
args: [{
|
|
235
|
+
isSignal: true,
|
|
236
|
+
alias: "ariaLabelledby",
|
|
237
|
+
required: false
|
|
238
|
+
}]
|
|
239
|
+
}],
|
|
240
|
+
valueText: [{
|
|
241
|
+
type: i0.Input,
|
|
242
|
+
args: [{
|
|
243
|
+
isSignal: true,
|
|
244
|
+
alias: "valueText",
|
|
245
|
+
required: false
|
|
246
|
+
}]
|
|
247
|
+
}]
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
export { ProgressBarComponent };
|
|
251
|
+
|
|
252
|
+
//# sourceMappingURL=forgeroute-ui-progress-bar.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forgeroute-ui-progress-bar.mjs","names":[],"sources":["../../../projects/forgeroute-ui/progress-bar/src/lib/progress-bar/progress-bar.component.ts"],"sourcesContent":["import { TooltipDirective } from '@forgeroute/ui/tooltip';\nimport { Component, ChangeDetectionStrategy, input, computed } from '@angular/core';\n\n/** The narrowest fill (in %) a bar with a value above 0 is drawn with, so a small share is still visible. */\nconst MIN_VISIBLE_PERCENT = 2;\n\nexport type ProgressBarVariant = 'blue' | 'green' | 'amber' | 'orange' | 'red' | 'slate';\n\n/**\n * Horizontal progress bar with an optional trailing label (e.g. \"3/5\").\n * Pass `value` and `max`; the fill width is clamped to 0–100%, rounded to whole percents, and a value above 0 is never drawn narrower\n * than 2% (so 1 of 300 is a visible sliver, not an empty bar). A value of 0 draws no fill.\n *\n * The fill color is built in and follows completion, in four bands: red up to 25%, amber up to 50%, blue up to 75%,\n * green above 75% (full = green). Nothing needs to be passed. `variant` is an optional override for a bar whose\n * color means something else (for example an overdue status, or a category-share bar) — when it is set the color stays fixed\n * at every value. For a share-of-largest bar pass `[value]=\"count\" [max]=\"largestCount\" variant=\"blue\"`.\n * The width is set inline exactly as before (`style=\"width: N%;\"` and nothing else, so existing consumers and e2e keep working); the transition is off for\n * `prefers-reduced-motion` and the bar stays visible in forced-colors mode. Invalid numbers (NaN, negative max) draw an empty bar.\n */\n@Component({\n selector: 'ui-progress-bar',\n standalone: true,\n imports: [TooltipDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div class=\"pb\"\n role=\"progressbar\"\n [attr.aria-valuemin]=\"0\"\n [attr.aria-valuemax]=\"safeMax()\"\n [attr.aria-valuenow]=\"clampedValue()\"\n [attr.aria-valuetext]=\"valueText() || null\"\n [attr.aria-labelledby]=\"ariaLabelledby() || null\"\n [attr.aria-label]=\"ariaLabelledby() ? null : (ariaLabel() || label() || null)\"\n [uiTooltip]=\"tooltip()\"\n [attr.tabindex]=\"tooltip() ? 0 : null\">\n <div class=\"pb-track\"><div class=\"pb-fill\" [class]=\"'pb-fill pb-' + effectiveVariant()\" [style.width.%]=\"percent()\" [style.background]=\"color() || null\"></div></div>\n @if (label()) { <span class=\"pb-label\">{{ label() }}</span> }\n </div>\n `,\n styles: [`\n :host { display: block; }\n .pb { display: flex; align-items: center; gap: 8px; min-width: 100px; }\n .pb-track { flex: 1; height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }\n .pb-fill { height: 100%; border-radius: 3px; transition: width 0.3s; }\n @media (prefers-reduced-motion: reduce) { .pb-fill { transition: none; } }\n .pb-blue { background: var(--ui-progress-fill, var(--ui-accent, #3b82f6)); }\n .pb-green { background: #16a34a; }\n .pb-amber { background: #f59e0b; }\n .pb-orange { background: #f97316; }\n .pb-red { background: #ef4444; }\n .pb-slate { background: #94a3b8; }\n /* After the variant rules so Highlight wins over the variant colours (same specificity, later wins). */\n @media (forced-colors: active) {\n .pb-track { background: Canvas; border: 1px solid CanvasText; }\n .pb-fill { background: Highlight; forced-color-adjust: none; }\n }\n .pb-label { font-size: 0.75rem; font-weight: 500; color: #64748b; white-space: nowrap; }\n `],\n})\nexport class ProgressBarComponent {\n /** Completed amount. */\n readonly value = input(0);\n /** Total amount; 0 renders an empty bar. */\n readonly max = input(100);\n /** Text shown to the right of the bar, e.g. \"3/5\". */\n readonly label = input('');\n /** Optional fixed color override. Leave it out and the color follows completion (red / amber / blue / green). */\n readonly variant = input<ProgressBarVariant | null | undefined>(null);\n /** Any CSS colour for the fill (e.g. the brand colour). Wins over `variant` and the completion bands; empty = the built-in colours. (Or set `--ui-progress-fill` / `--ui-accent` once in the app to recolour the blue band.) */\n readonly color = input('');\n /** Hover / focus tooltip (library `uiTooltip`); `\\n` starts a new line. */\n readonly tooltip = input('');\n readonly ariaLabel = input('');\n /** Id of an element that names the bar (wins over `ariaLabel` / `label`). */\n readonly ariaLabelledby = input('');\n /** Human text for `aria-valuetext`, e.g. \"12 documents, 40% of the largest category\". Empty = not set. */\n readonly valueText = input('');\n\n /** `max` made safe: NaN / negative / infinite become 0 (empty bar, no division by zero). */\n protected readonly safeMax = computed(() => { const m = this.max(); return Number.isFinite(m) && m > 0 ? m : 0; });\n protected readonly clampedValue = computed(() => { const v = this.value(); return Math.min(Math.max(Number.isNaN(v) ? 0 : v, 0), this.safeMax()); });\n /** Fill width in %: the rounded share, but never less than MIN_VISIBLE_PERCENT while the value is above 0 (1 of 300 would round to 0% and look empty). */\n protected readonly percent = computed(() => {\n if (this.safeMax() <= 0 || this.clampedValue() <= 0) return 0;\n return Math.max(Math.round((this.clampedValue() / this.safeMax()) * 100), MIN_VISIBLE_PERCENT);\n });\n\n /** The override when given, else the completion band: up to 25% red, up to 50% amber, up to 75% blue, above 75% green. */\n protected readonly effectiveVariant = computed((): ProgressBarVariant => {\n const fixed = this.variant();\n if (fixed) return fixed;\n const exact = this.safeMax() > 0 ? (this.clampedValue() / this.safeMax()) * 100 : 0;\n return exact <= 25 ? 'red' : exact <= 50 ? 'amber' : exact <= 75 ? 'blue' : 'green';\n });\n}\n"],"mappings":";;;AAIA,MAAM,sBAAsB;AAwD5B,IAAa,uBAAb,MAAa,qBAAoB;CAxCjC,cAAA;EA0CW,KAAA,QAAQ,MAAM,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EAEhB,KAAA,MAAM,MAAM,KAAI,GAAA,YAAA,CAAA,EAAA,WAAA,MAAA,CAAA,+BAAA,CAAA,CAAA;EAEhB,KAAA,QAAQ,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EAEjB,KAAA,UAAU,MAA6C,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;EAE5D,KAAA,QAAQ,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EAEjB,KAAA,UAAU,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;EACnB,KAAA,YAAY,MAAM,IAAG,GAAA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