@forgeroute/ui 0.5.16 → 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 +18 -1
- 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 +15 -1
- 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 +14 -1
- 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 +6 -1
- 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 +4 -1
- 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 +3 -1
- 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 +3 -1
- 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-media.mjs","names":[],"sources":["../../../projects/forgeroute-ui/media/src/lib/audio-player/audio-player.component.ts","../../../projects/forgeroute-ui/media/src/lib/image-reposition/image-position.ts","../../../projects/forgeroute-ui/media/src/lib/image-reposition/image-reposition.component.ts","../../../projects/forgeroute-ui/media/src/lib/image-field/image-field.component.ts","../../../projects/forgeroute-ui/media/src/lib/qr-code/qr-encoder.ts","../../../projects/forgeroute-ui/media/src/lib/qr-code/qr-code.component.ts","../../../projects/forgeroute-ui/media/src/lib/tour/tour.component.ts","../../../projects/forgeroute-ui/media/src/lib/image/image.component.ts","../../../projects/forgeroute-ui/media/src/lib/image-gallery/image-gallery.component.ts","../../../projects/forgeroute-ui/media/src/lib/signature-pad/signature-pad.component.ts","../../../projects/forgeroute-ui/media/src/lib/pdf-hotspot/pdf-hotspot.component.ts","../../../projects/forgeroute-ui/media/src/lib/image-gallery-dialog/image-gallery-dialog.component.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, input, output, signal, effect, inject } from '@angular/core';\nimport { UiLabelsService } from '@forgeroute/ui/core';\n\n/**\n * Audio player for a recording (a call, a voicemail, a message): the browser's own controls (play / pause, seek, time, volume,\n * keyboard and screen-reader support, the same in Chrome, Edge, Firefox and Safari) in the library's look, plus a readable message\n * when the file can't be played.\n *\n * <ui-audio-player [src]=\"blobUrl()\" ariaLabel=\"Call recording playback\" />\n *\n * - `src`: the audio URL (an object URL from a fetched blob works). An empty `src` renders the player with nothing to play.\n * - `ariaLabel`: the accessible name of the player. Give it one; without it assistive tech just hears \"audio\".\n * - `preload`: 'metadata' (default; loads the length only), 'auto' or 'none'.\n * - `playbackError` fires once per failed source; the message \"Audio could not be played.\" replaces the player until `src` changes.\n */\n@Component({\n selector: 'ui-audio-player',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n @if (failed()) {\n <p class=\"ap-error\" role=\"alert\">{{ labels.t('audioPlayer.audioCouldNotBePlayed') }}</p>\n } @else {\n <audio class=\"ap-audio\" controls [attr.preload]=\"preload()\" [attr.src]=\"src() || null\" [attr.aria-label]=\"ariaLabel() || null\"\n (error)=\"onError()\">{{ labels.t('audioPlayer.yourBrowserDoesNotSupport') }}</audio>\n }\n `,\n styles: [`\n :host { display: block; }\n .ap-audio { display: block; width: 100%; height: 40px; border-radius: 8px; outline: none; accent-color: #3b82f6; }\n .ap-audio:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }\n .ap-error { margin: 0; font-size: 0.8125rem; line-height: 1.4; color: #dc2626; }\n `],\n})\nexport class AudioPlayerComponent {\n protected readonly labels = inject(UiLabelsService);\n /** The audio URL. */\n readonly src = input('');\n /** Accessible name of the player. */\n readonly ariaLabel = input('');\n /** How much to load before play: 'metadata' (default), 'auto' or 'none'. */\n readonly preload = input<'none' | 'metadata' | 'auto'>('metadata');\n /** Fires when the browser can't load or decode the source. */\n readonly playbackError = output<void>();\n\n protected readonly failed = signal(false);\n\n constructor() {\n // a new source gets a fresh try\n effect(() => { this.src(); this.failed.set(false); });\n }\n\n protected onError(): void {\n // an empty source is \"nothing to play\", not a failure\n if (!this.src()) return;\n this.failed.set(true);\n this.playbackError.emit();\n }\n}\n","/**\n * Focal point of an image in percent (`x` from the left, `y` from the top, 0-100, 50/50 = centered): which part of a photo\n * stays visible where it is cropped. `ui-image-reposition` edits it; these helpers apply it everywhere the photo is shown.\n */\nexport interface ImageFocalPoint {\n x?: number | null;\n y?: number | null;\n}\n\n/** The centered default. */\nexport const CENTERED_FOCAL_POINT = 50;\n\n/** Rounds to a whole percent and keeps it inside 0-100. A missing or non-numeric value is centered (50). */\nexport function clampFocalPoint(value: number | null | undefined): number {\n if (typeof value !== 'number' || !Number.isFinite(value)) return CENTERED_FOCAL_POINT;\n return Math.min(100, Math.max(0, Math.round(value)));\n}\n\n/**\n * CSS `object-position` for a stored focal point, e.g. `'15% 85%'`. Centered (`'50% 50%'`) when nothing is stored, so images\n * saved before positioning existed render as they always did. Bind it to `[style.object-position]` on an `object-fit: cover` image.\n */\nexport function imageObjectPosition(point: ImageFocalPoint | null | undefined): string {\n // CSS, not user-facing text\n return [clampFocalPoint(point?.x), clampFocalPoint(point?.y)].map((n) => n + '%').join(' ');\n}\n\n/**\n * The `aspect-ratio` the frame uses: `'16 / 9'`, `'4/3'`, `'1.5 / 1'` (two positive numbers). Anything else falls back to a square,\n * so a typo can never collapse the frame to nothing.\n */\nexport function frameAspectRatio(value: string | null | undefined): string {\n const m = /^\\s*(\\d+(?:\\.\\d+)?)\\s*\\/\\s*(\\d+(?:\\.\\d+)?)\\s*$/.exec(value ?? '');\n if (!m || Number(m[1]) <= 0 || Number(m[2]) <= 0) return '1 / 1';\n return `${m[1]} / ${m[2]}`;\n}\n\nconst MIN_FRAME_WIDTH = 64;\nconst MAX_FRAME_WIDTH = 1200;\nconst DEFAULT_FRAME_WIDTH = 160;\n\n/** The frame width in px, kept between 64 and 1200; a missing or non-numeric value is the 160px default. */\nexport function frameWidth(value: number | null | undefined): number {\n if (typeof value !== 'number' || !Number.isFinite(value)) return DEFAULT_FRAME_WIDTH;\n return Math.min(MAX_FRAME_WIDTH, Math.max(MIN_FRAME_WIDTH, Math.round(value)));\n}\n","import { ChangeDetectionStrategy, Component, ElementRef, inject, input, model, signal, computed } from '@angular/core';\nimport { UiLabelsService } from '@forgeroute/ui/core';\nimport { clampFocalPoint, frameAspectRatio, frameWidth } from './image-position';\n\nexport type ImageRepositionShape = 'circle' | 'rounded';\n\nconst KEY_STEP = 2;\nconst KEY_STEP_BIG = 10;\n\nconst clamp = clampFocalPoint;\n\n/**\n * Drag-to-center photo frame. The image fills the frame (`object-fit: cover`) and the user drags it, or uses the arrow\n * keys, to choose which part stays visible. The result is a focal point in percent (`x`, `y`, 0-100, 50/50 = centered)\n * to apply as CSS `object-position` wherever the image is shown (`ui-image-preview` / the data table image cell take it).\n *\n * <ui-image-reposition [src]=\"url\" [(x)]=\"posX\" [(y)]=\"posY\" label=\"Photo position\" />\n *\n * Only the axis that overflows the frame can move (a landscape photo moves sideways, a portrait one up and down).\n * Arrow keys nudge by 2% (Shift: 10%). The frame is a labelled group with a hint for assistive tech.\n *\n * The frame is a 160px square by default. Give it the SHAPE the image has where it is shown (`aspectRatio=\"16 / 9\"` for a wide\n * cover, `\"4 / 3\"` for a card photo) and a `width`, so what the user sees while dragging is exactly what visitors see. A circle\n * is always square. `imageObjectPosition({ x, y })` (same entry point) turns the saved point into the CSS the public side needs.\n */\n@Component({\n selector: 'ui-image-reposition',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div class=\"ir-frame\" [class.ir-circle]=\"shape() === 'circle'\" [class.ir-dragging]=\"dragging()\"\n [style.width.px]=\"frameWidthPx()\" [style.aspect-ratio]=\"frameRatio()\"\n role=\"group\" tabindex=\"0\" data-testid=\"image-reposition-frame\"\n [attr.aria-label]=\"label()\" [attr.aria-describedby]=\"hintId\"\n (pointerdown)=\"onPointerDown($event)\" (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"endDrag($event)\" (pointercancel)=\"endDrag($event)\" (keydown)=\"onKeydown($event)\">\n @if (src()) {\n <img class=\"ir-img\" [src]=\"src()\" [attr.alt]=\"alt()\" draggable=\"false\"\n [style.object-position]=\"x() + '% ' + y() + '%'\" (load)=\"onLoad($event)\" />\n }\n </div>\n <span class=\"ir-hint\" [id]=\"hintId\">{{ labels.t('imageReposition.dragThePhotoOrUse') }}</span>\n `,\n styles: [`\n :host { display: inline-flex; flex-direction: column; gap: 6px; max-width: 100%; }\n .ir-frame { max-width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0;\n background: #f1f5f9; cursor: grab; touch-action: none; user-select: none; box-sizing: border-box; flex-shrink: 0; }\n .ir-frame:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }\n .ir-circle { border-radius: 50%; }\n .ir-dragging { cursor: grabbing; }\n .ir-img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }\n .ir-hint { font-size: 0.75rem; color: #64748b; }\n `],\n})\nexport class ImageRepositionComponent {\n protected readonly labels = inject(UiLabelsService);\n private static nextId = 0;\n protected readonly hintId = `ui-image-reposition-hint-${ImageRepositionComponent.nextId++}`;\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n\n /** Image URL (or data URL). Without one the frame is empty and cannot be moved. */\n readonly src = input<string | null | undefined>(null);\n readonly alt = input('');\n readonly shape = input<ImageRepositionShape>('circle');\n /** Shape of the frame, `'16 / 9'` or `'4/3'` (two positive numbers); anything else, and every `circle`, is a square. Default `'1 / 1'`. */\n readonly aspectRatio = input<string>('1 / 1');\n /** Width of the frame in px (64-1200, never wider than its container); the height follows `aspectRatio`. Default 160. */\n readonly width = input<number>(160);\n /** Accessible name of the frame. */\n readonly labelInput = input<string | null>(null, { alias: 'label' });\n readonly label = computed(() => this.labelInput() ?? this.labels.t('imageReposition.label'));\n /** Focal point, percent from the left (0-100). Two-way: `[(x)]`. */\n readonly x = model(50);\n /** Focal point, percent from the top (0-100). Two-way: `[(y)]`. */\n readonly y = model(50);\n\n protected readonly frameRatio = computed(() => (this.shape() === 'circle' ? '1 / 1' : frameAspectRatio(this.aspectRatio())));\n protected readonly frameWidthPx = computed(() => frameWidth(this.width()));\n protected readonly dragging = signal(false);\n private natural: { w: number; h: number } | null = null;\n private start: { px: number; py: number; x: number; y: number } | null = null;\n\n protected onLoad(e: Event): void {\n const img = e.target as HTMLImageElement;\n this.natural = { w: img.naturalWidth, h: img.naturalHeight };\n }\n\n /** How many px the cover-scaled image overflows the frame on each axis (0 = that axis cannot move). */\n private overflow(frame: DOMRect): { x: number; y: number } {\n if (!this.natural || !this.natural.w || !this.natural.h) return { x: 0, y: 0 };\n const scale = Math.max(frame.width / this.natural.w, frame.height / this.natural.h);\n return {\n x: Math.max(0, this.natural.w * scale - frame.width),\n y: Math.max(0, this.natural.h * scale - frame.height),\n };\n }\n\n protected onPointerDown(e: PointerEvent): void {\n if (!this.src() || (e.pointerType === 'mouse' && e.button !== 0)) return;\n (e.currentTarget as HTMLElement).setPointerCapture?.(e.pointerId);\n this.start = { px: e.clientX, py: e.clientY, x: this.x(), y: this.y() };\n this.dragging.set(true);\n }\n\n protected onPointerMove(e: PointerEvent): void {\n if (!this.start) return;\n const frame = (e.currentTarget as HTMLElement).getBoundingClientRect();\n const o = this.overflow(frame);\n // Dragging the image right shows more of its left side, so the focal point moves the opposite way.\n if (o.x > 0) this.x.set(clamp(this.start.x - ((e.clientX - this.start.px) / o.x) * 100));\n if (o.y > 0) this.y.set(clamp(this.start.y - ((e.clientY - this.start.py) / o.y) * 100));\n }\n\n protected endDrag(e: PointerEvent): void {\n if (!this.start) return;\n (e.currentTarget as HTMLElement).releasePointerCapture?.(e.pointerId);\n this.start = null;\n this.dragging.set(false);\n }\n\n protected onKeydown(e: KeyboardEvent): void {\n if (!this.src()) return;\n const step = e.shiftKey ? KEY_STEP_BIG : KEY_STEP;\n const frame = this.host.querySelector('.ir-frame')!.getBoundingClientRect();\n const o = this.overflow(frame);\n // The arrow moves the image in that direction, i.e. the focal point the other way.\n let handled = true;\n if (e.key === 'ArrowLeft' && o.x > 0) this.x.set(clamp(this.x() + step));\n else if (e.key === 'ArrowRight' && o.x > 0) this.x.set(clamp(this.x() - step));\n else if (e.key === 'ArrowUp' && o.y > 0) this.y.set(clamp(this.y() + step));\n else if (e.key === 'ArrowDown' && o.y > 0) this.y.set(clamp(this.y() - step));\n else handled = e.key.startsWith('Arrow');\n if (handled) e.preventDefault();\n }\n}\n","import { ChangeDetectionStrategy, Component, computed, inject, input, model, output, signal, viewChild } from '@angular/core';\nimport { ButtonComponent } from '@forgeroute/ui/core';\nimport { FileInputComponent } from '@forgeroute/ui/file-input';\nimport { ImagePreviewComponent, ImagePreviewPlaceholder } from '@forgeroute/ui/image-preview';\nimport { ImageRepositionComponent, ImageRepositionShape } from '../image-reposition/image-reposition.component';\nimport { UiLabelsService } from '@forgeroute/ui/core';\n\n/** PNG, JPEG or WEBP, at most 10 MB: the rules of every image upload of the apps (their APIs check the file's real content again). */\nexport const IMAGE_FIELD_ACCEPT = 'image/png,image/jpeg,image/webp,.png,.jpg,.jpeg,.webp';\nexport const IMAGE_FIELD_MAX_BYTES = 10 * 1024 * 1024;\n\n/**\n * The photo field of an add / edit form: the current image in a drag-to-position frame, Upload / Change Photo, Remove Photo,\n * and the file checks (type, size, empty), so every form that has one image behaves the same.\n *\n * <ui-image-field label=\"Cover image\" [src]=\"savedUrl()\" [(x)]=\"posX\" [(y)]=\"posY\"\n * shape=\"rounded\" aspectRatio=\"16 / 9\" [width]=\"320\" [removing]=\"removing()\"\n * (fileChange)=\"pending.set($event)\" (remove)=\"removeFromServer()\" />\n *\n * The component owns only what the user sees. The HOST owns the saving:\n * - `(fileChange)` gives the picked file (nothing is uploaded); the field already previews it and starts it centered. Upload it\n * with the record, sending `x` / `y` along.\n * - `(remove)` fires when the user presses Remove Photo (shown only while a saved image exists). The host deletes it, shows\n * `[removing]` meanwhile, then calls `reset()`.\n * - After a successful save call `reset()` as well: the picked file is dropped and `src` shows the saved image.\n * Fresh files start centered (50/50); the old image's crop does not carry over. `x` / `y` are 0-100 focal-point percents, shown\n * publicly with `imageObjectPosition({ x, y })` on an `object-fit: cover` image.\n */\n@Component({\n selector: 'ui-image-field',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [ButtonComponent, FileInputComponent, ImagePreviewComponent, ImageRepositionComponent],\n template: `\n <div class=\"if-row\" [attr.data-testid]=\"testId() + '-row'\">\n @if (shownSrc()) {\n <ui-image-reposition [src]=\"shownSrc()\" [alt]=\"alt()\" [shape]=\"shape()\" [aspectRatio]=\"aspectRatio()\" [width]=\"width()\"\n [label]=\"positionLabelText()\" [(x)]=\"x\" [(y)]=\"y\" [attr.data-testid]=\"testId() + '-preview'\" />\n } @else {\n <ui-image-preview [src]=\"null\" [alt]=\"alt()\" [shape]=\"shape()\" size=\"lg\" [placeholder]=\"placeholder()\" [attr.data-testid]=\"testId() + '-preview'\" />\n }\n <div class=\"if-actions\" [attr.data-testid]=\"testId() + '-actions'\">\n <ui-button variant=\"secondary\" size=\"sm\" [disabled]=\"disabled() || removing()\" [attr.data-testid]=\"testId() + '-upload'\" (click)=\"picker.open()\">\n {{ src() || file() ? changeText() : uploadText() }}\n </ui-button>\n @if (src()) {\n <ui-button variant=\"danger\" size=\"sm\" [disabled]=\"disabled()\" [loading]=\"removing()\" [attr.data-testid]=\"testId() + '-remove'\" (click)=\"remove.emit()\">\n {{ removeText() }}\n </ui-button>\n }\n </div>\n </div>\n <!-- Hidden picker: only its refusal message (type / empty / size) shows, under the row. -->\n <ui-file-input #picker [showField]=\"false\" [accept]=\"accept()\" [maxSize]=\"maxSize()\" [rejectEmpty]=\"true\"\n [typeMessage]=\"typeMessage() || labels.t('imageField.typeMessage')\" [sizeMessage]=\"sizeMessage() || labels.t('imageField.sizeMessage')\"\n [emptyMessage]=\"emptyMessage() || labels.t('imageField.emptyMessage')\" [ariaLabel]=\"labelText()\" [disabled]=\"disabled()\"\n [attr.data-testid]=\"testId() + '-input'\" (filesSelected)=\"onFilesSelected($event)\" />\n `,\n styles: [`\n :host { display: block; }\n .if-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }\n .if-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }\n `],\n})\nexport class ImageFieldComponent {\n protected readonly labels = inject(UiLabelsService);\n protected readonly pickerRef = viewChild.required<FileInputComponent>('picker');\n\n /** The SAVED image (URL), or null / empty when the record has none. It is what Remove Photo removes. */\n readonly src = input<string | null | undefined>(null);\n readonly alt = input('');\n /** Accessible name of the picker and default for the section; defaults to \"Photo\". */\n readonly label = input<string | null>(null);\n /** Accessible name of the drag frame; defaults to \"Photo position\". */\n readonly positionLabel = input<string | null>(null);\n readonly shape = input<ImageRepositionShape>('circle');\n /** Shape of the frame, as the image is shown where visitors see it (`'16 / 9'`); a circle is always square. */\n readonly aspectRatio = input<string>('1 / 1');\n /** Frame width in px (64-1200). */\n readonly width = input<number>(160);\n /** The icon shown while there is no image. */\n readonly placeholder = input<ImagePreviewPlaceholder>('image');\n /** The host's Remove request is running: the button shows its spinner and the field cannot be changed. */\n readonly removing = input(false);\n readonly disabled = input(false);\n readonly accept = input(IMAGE_FIELD_ACCEPT);\n readonly maxSize = input(IMAGE_FIELD_MAX_BYTES);\n /** Button texts; the dictionary's \"Upload Photo\" / \"Change Photo\" / \"Remove Photo\" when not set. */\n readonly uploadLabel = input<string | null>(null);\n readonly changeLabel = input<string | null>(null);\n readonly removeLabel = input<string | null>(null);\n /** Refusal messages of the picker; the dictionary's when not set. */\n readonly typeMessage = input('');\n readonly sizeMessage = input('');\n readonly emptyMessage = input('');\n /** Prefix of the `data-testid`s: `<id>-row`, `-preview`, `-actions`, `-upload`, `-remove`, `-input`. */\n readonly testId = input('image-field');\n\n /** Focal point, percent from the left / top (0-100). Two-way: `[(x)]` `[(y)]`. */\n readonly x = model(50);\n readonly y = model(50);\n\n /** The picked file waiting to be saved with the record (null when none). */\n readonly file = signal<File | null>(null);\n private readonly preview = signal<string | null>(null);\n\n /** The picked file's preview when there is one, else the saved image. */\n readonly shownSrc = computed(() => this.preview() || this.src() || null);\n protected readonly labelText = computed(() => this.label() ?? this.labels.t('imageField.label'));\n protected readonly positionLabelText = computed(() => this.positionLabel() ?? this.labels.t('imageReposition.label'));\n protected readonly uploadText = computed(() => this.uploadLabel() ?? this.labels.t('imageField.upload'));\n protected readonly changeText = computed(() => this.changeLabel() ?? this.labels.t('imageField.change'));\n protected readonly removeText = computed(() => this.removeLabel() ?? this.labels.t('imageField.remove'));\n\n /** The user picked an image (already checked for type, size and emptiness); nothing is uploaded. */\n readonly fileChange = output<File>();\n /** Remove Photo was pressed; the host deletes the saved image, then calls `reset()`. */\n readonly remove = output<void>();\n\n protected onFilesSelected(files: File[]): void {\n const file = files[0];\n if (!file) return;\n this.file.set(file);\n // A newly picked image starts centered; the previous image's crop does not carry over.\n this.x.set(50);\n this.y.set(50);\n const reader = new FileReader();\n reader.onload = () => { if (this.file() === file) this.preview.set(reader.result as string); };\n reader.readAsDataURL(file);\n this.fileChange.emit(file);\n }\n\n /** Drops the picked file and its preview and centers the frame: call it after the record was saved, the image removed, or the form reopened. */\n reset(): void {\n this.file.set(null);\n this.preview.set(null);\n this.x.set(50);\n this.y.set(50);\n this.pickerRef().clear();\n }\n}\n","/**\n * Dependency-free QR Code encoder (ISO/IEC 18004), byte mode, versions 1–40.\n *\n * Algorithm follows the public reference implementation by Project Nayuki\n * (https://www.nayuki.io/page/qr-code-generator-library, MIT License).\n */\n\nexport type QrErrorCorrection = 'L' | 'M' | 'Q' | 'H';\n\nexport interface QrMatrix {\n /** Modules per side (version * 4 + 17), excluding any quiet zone. */\n readonly size: number;\n readonly version: number;\n readonly mask: number;\n /** modules[y][x] — true = dark. */\n readonly modules: boolean[][];\n}\n\nconst ECL_ORDINAL: Record<QrErrorCorrection, number> = { L: 0, M: 1, Q: 2, H: 3 };\n/** 2-bit error-correction indicator used in the format information. */\nconst ECL_FORMAT_BITS: Record<QrErrorCorrection, number> = { L: 1, M: 0, Q: 3, H: 2 };\n\n// Indexed [ecl ordinal][version]; index 0 is unused padding.\nconst ECC_CODEWORDS_PER_BLOCK: readonly (readonly number[])[] = [\n [-1, 7, 10, 15, 20, 26, 18, 20, 24, 30, 18, 20, 24, 26, 30, 22, 24, 28, 30, 28, 28, 28, 28, 30, 30, 26, 28, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30],\n [-1, 10, 16, 26, 18, 24, 16, 18, 22, 22, 26, 30, 22, 22, 24, 24, 28, 28, 26, 26, 26, 26, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28],\n [-1, 13, 22, 18, 26, 18, 24, 18, 22, 20, 24, 28, 26, 24, 20, 30, 24, 28, 28, 26, 30, 28, 30, 30, 30, 30, 28, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30],\n [-1, 17, 28, 22, 16, 22, 28, 26, 26, 24, 28, 24, 28, 22, 24, 24, 30, 28, 28, 26, 28, 30, 24, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30],\n];\nconst NUM_ERROR_CORRECTION_BLOCKS: readonly (readonly number[])[] = [\n [-1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 4, 4, 4, 4, 4, 6, 6, 6, 6, 7, 8, 8, 9, 9, 10, 12, 12, 12, 13, 14, 15, 16, 17, 18, 19, 19, 20, 21, 22, 24, 25],\n [-1, 1, 1, 1, 2, 2, 4, 4, 4, 5, 5, 5, 8, 9, 9, 10, 10, 11, 13, 14, 16, 17, 17, 18, 20, 21, 23, 25, 26, 28, 29, 31, 33, 35, 37, 38, 40, 43, 45, 47, 49],\n [-1, 1, 1, 2, 2, 4, 4, 6, 6, 8, 8, 8, 10, 12, 16, 12, 17, 16, 18, 21, 20, 23, 23, 25, 27, 29, 34, 34, 35, 38, 40, 43, 45, 48, 51, 53, 56, 59, 62, 65, 68],\n [-1, 1, 1, 2, 4, 4, 4, 5, 6, 8, 8, 11, 11, 16, 16, 18, 16, 19, 21, 25, 25, 25, 34, 30, 32, 35, 37, 40, 42, 45, 48, 51, 54, 57, 60, 63, 66, 70, 74, 77, 81],\n];\n\nconst PENALTY_N1 = 3;\nconst PENALTY_N2 = 3;\nconst PENALTY_N3 = 40;\nconst PENALTY_N4 = 10;\n\n/**\n * Encodes `text` (UTF-8, byte mode) into the smallest QR version that fits.\n * `mask` forces a mask pattern (0–7); by default the lowest-penalty mask is chosen.\n * Throws if the text exceeds version 40 capacity for the error-correction level.\n */\nexport function encodeQr(text: string, options: { ecl?: QrErrorCorrection; mask?: number } = {}): QrMatrix {\n const ecl = options.ecl ?? 'M';\n const forcedMask = options.mask;\n if (forcedMask !== undefined && (!Number.isInteger(forcedMask) || forcedMask < 0 || forcedMask > 7)) {\n throw new RangeError('Mask must be an integer from 0 to 7.');\n }\n const bytes = new TextEncoder().encode(text);\n\n // Smallest version whose data capacity fits mode (4) + count + 8 bits per byte.\n let version = 1;\n let dataBits = 0;\n for (; ; version++) {\n if (version > 40) throw new RangeError('Data too long for a QR code.');\n dataBits = 4 + (version <= 9 ? 8 : 16) + bytes.length * 8;\n if (dataBits <= numDataCodewords(version, ecl) * 8) break;\n }\n\n // Bit stream: byte-mode indicator, character count, data, terminator, byte padding.\n const bits: number[] = [];\n appendBits(bits, 0b0100, 4);\n appendBits(bits, bytes.length, version <= 9 ? 8 : 16);\n for (const b of bytes) appendBits(bits, b, 8);\n const capacityBits = numDataCodewords(version, ecl) * 8;\n appendBits(bits, 0, Math.min(4, capacityBits - bits.length));\n appendBits(bits, 0, (8 - (bits.length % 8)) % 8);\n for (let pad = 0xec; bits.length < capacityBits; pad ^= 0xec ^ 0x11) appendBits(bits, pad, 8);\n\n const dataCodewords: number[] = [];\n for (let i = 0; i < bits.length; i += 8) {\n let byte = 0;\n for (let j = 0; j < 8; j++) byte = (byte << 1) | bits[i + j];\n dataCodewords.push(byte);\n }\n\n const qr = new QrBuilder(version, ecl);\n qr.drawFunctionPatterns();\n qr.drawCodewords(addEccAndInterleave(dataCodewords, version, ecl));\n\n let mask = forcedMask ?? -1;\n if (mask === -1) {\n let minPenalty = Infinity;\n for (let m = 0; m < 8; m++) {\n qr.applyMask(m);\n qr.drawFormatBits(m);\n const penalty = qr.penaltyScore();\n if (penalty < minPenalty) { mask = m; minPenalty = penalty; }\n qr.applyMask(m); // XOR again to undo\n }\n }\n qr.applyMask(mask);\n qr.drawFormatBits(mask);\n return { size: qr.size, version, mask, modules: qr.modules };\n}\n\nfunction appendBits(out: number[], value: number, length: number) {\n for (let i = length - 1; i >= 0; i--) out.push((value >>> i) & 1);\n}\n\nfunction getBit(x: number, i: number): boolean {\n return ((x >>> i) & 1) !== 0;\n}\n\n/** Data + ECC modules available after function patterns, version and format info. */\nfunction numRawDataModules(version: number): number {\n let result = (16 * version + 128) * version + 64;\n if (version >= 2) {\n const numAlign = Math.floor(version / 7) + 2;\n result -= (25 * numAlign - 10) * numAlign - 55;\n if (version >= 7) result -= 36;\n }\n return result;\n}\n\nfunction numDataCodewords(version: number, ecl: QrErrorCorrection): number {\n const e = ECL_ORDINAL[ecl];\n return Math.floor(numRawDataModules(version) / 8) - ECC_CODEWORDS_PER_BLOCK[e][version] * NUM_ERROR_CORRECTION_BLOCKS[e][version];\n}\n\nfunction addEccAndInterleave(data: number[], version: number, ecl: QrErrorCorrection): number[] {\n const e = ECL_ORDINAL[ecl];\n const numBlocks = NUM_ERROR_CORRECTION_BLOCKS[e][version];\n const blockEccLen = ECC_CODEWORDS_PER_BLOCK[e][version];\n const rawCodewords = Math.floor(numRawDataModules(version) / 8);\n const numShortBlocks = numBlocks - (rawCodewords % numBlocks);\n const shortBlockLen = Math.floor(rawCodewords / numBlocks);\n\n const divisor = reedSolomonDivisor(blockEccLen);\n const blocks: number[][] = [];\n for (let i = 0, k = 0; i < numBlocks; i++) {\n const dat = data.slice(k, k + shortBlockLen - blockEccLen + (i < numShortBlocks ? 0 : 1));\n k += dat.length;\n const ecc = reedSolomonRemainder(dat, divisor);\n if (i < numShortBlocks) dat.push(0); // placeholder so all blocks share a length; skipped below\n blocks.push(dat.concat(ecc));\n }\n\n const result: number[] = [];\n for (let i = 0; i < blocks[0].length; i++) {\n blocks.forEach((block, j) => {\n if (i !== shortBlockLen - blockEccLen || j >= numShortBlocks) result.push(block[i]);\n });\n }\n return result;\n}\n\nfunction reedSolomonDivisor(degree: number): number[] {\n const result = new Array<number>(degree).fill(0);\n result[degree - 1] = 1;\n let root = 1;\n for (let i = 0; i < degree; i++) {\n for (let j = 0; j < result.length; j++) {\n result[j] = reedSolomonMultiply(result[j], root);\n if (j + 1 < result.length) result[j] ^= result[j + 1];\n }\n root = reedSolomonMultiply(root, 0x02);\n }\n return result;\n}\n\nfunction reedSolomonRemainder(data: readonly number[], divisor: readonly number[]): number[] {\n const result = divisor.map(() => 0);\n for (const b of data) {\n const factor = b ^ (result.shift() as number);\n result.push(0);\n divisor.forEach((coef, i) => (result[i] ^= reedSolomonMultiply(coef, factor)));\n }\n return result;\n}\n\n/** Multiplication in GF(2^8) modulo x^8 + x^4 + x^3 + x^2 + 1. */\nfunction reedSolomonMultiply(x: number, y: number): number {\n let z = 0;\n for (let i = 7; i >= 0; i--) {\n z = (z << 1) ^ ((z >>> 7) * 0x11d);\n z ^= ((y >>> i) & 1) * x;\n }\n return z;\n}\n\nclass QrBuilder {\n readonly size: number;\n readonly modules: boolean[][];\n private readonly isFunction: boolean[][];\n\n constructor(private readonly version: number, private readonly ecl: QrErrorCorrection) {\n this.size = version * 4 + 17;\n this.modules = Array.from({ length: this.size }, () => new Array<boolean>(this.size).fill(false));\n this.isFunction = Array.from({ length: this.size }, () => new Array<boolean>(this.size).fill(false));\n }\n\n drawFunctionPatterns() {\n for (let i = 0; i < this.size; i++) {\n this.setFunction(6, i, i % 2 === 0);\n this.setFunction(i, 6, i % 2 === 0);\n }\n this.drawFinderPattern(3, 3);\n this.drawFinderPattern(this.size - 4, 3);\n this.drawFinderPattern(3, this.size - 4);\n\n const align = this.alignmentPatternPositions();\n const n = align.length;\n for (let i = 0; i < n; i++) {\n for (let j = 0; j < n; j++) {\n if (!((i === 0 && j === 0) || (i === 0 && j === n - 1) || (i === n - 1 && j === 0))) {\n this.drawAlignmentPattern(align[i], align[j]);\n }\n }\n }\n this.drawFormatBits(0); // reserve the area; real bits are drawn after masking\n this.drawVersion();\n }\n\n drawFormatBits(mask: number) {\n const data = (ECL_FORMAT_BITS[this.ecl] << 3) | mask;\n let rem = data;\n for (let i = 0; i < 10; i++) rem = (rem << 1) ^ ((rem >>> 9) * 0x537);\n const bits = ((data << 10) | rem) ^ 0x5412;\n\n for (let i = 0; i <= 5; i++) this.setFunction(8, i, getBit(bits, i));\n this.setFunction(8, 7, getBit(bits, 6));\n this.setFunction(8, 8, getBit(bits, 7));\n this.setFunction(7, 8, getBit(bits, 8));\n for (let i = 9; i < 15; i++) this.setFunction(14 - i, 8, getBit(bits, i));\n\n for (let i = 0; i < 8; i++) this.setFunction(this.size - 1 - i, 8, getBit(bits, i));\n for (let i = 8; i < 15; i++) this.setFunction(8, this.size - 15 + i, getBit(bits, i));\n this.setFunction(8, this.size - 8, true); // always-dark module\n }\n\n drawCodewords(data: readonly number[]) {\n let i = 0;\n for (let right = this.size - 1; right >= 1; right -= 2) {\n if (right === 6) right = 5; // skip the vertical timing column\n for (let vert = 0; vert < this.size; vert++) {\n for (let j = 0; j < 2; j++) {\n const x = right - j;\n const upward = ((right + 1) & 2) === 0;\n const y = upward ? this.size - 1 - vert : vert;\n if (!this.isFunction[y][x] && i < data.length * 8) {\n this.modules[y][x] = getBit(data[i >>> 3], 7 - (i & 7));\n i++;\n }\n }\n }\n }\n }\n\n /** XORs the data modules with mask pattern `mask`; applying it twice restores the original. */\n applyMask(mask: number) {\n for (let y = 0; y < this.size; y++) {\n for (let x = 0; x < this.size; x++) {\n let invert: boolean;\n switch (mask) {\n case 0: invert = (x + y) % 2 === 0; break;\n case 1: invert = y % 2 === 0; break;\n case 2: invert = x % 3 === 0; break;\n case 3: invert = (x + y) % 3 === 0; break;\n case 4: invert = (Math.floor(x / 3) + Math.floor(y / 2)) % 2 === 0; break;\n case 5: invert = ((x * y) % 2) + ((x * y) % 3) === 0; break;\n case 6: invert = (((x * y) % 2) + ((x * y) % 3)) % 2 === 0; break;\n default: invert = (((x + y) % 2) + ((x * y) % 3)) % 2 === 0; break;\n }\n if (!this.isFunction[y][x] && invert) this.modules[y][x] = !this.modules[y][x];\n }\n }\n }\n\n penaltyScore(): number {\n let result = 0;\n const size = this.size;\n const m = this.modules;\n\n // Runs of 5+ same-colored modules and finder-like patterns, in rows then columns.\n for (const horizontal of [true, false]) {\n for (let a = 0; a < size; a++) {\n let runColor = false;\n let runLen = 0;\n const history = [0, 0, 0, 0, 0, 0, 0];\n for (let b = 0; b < size; b++) {\n const color = horizontal ? m[a][b] : m[b][a];\n if (color === runColor) {\n runLen++;\n if (runLen === 5) result += PENALTY_N1;\n else if (runLen > 5) result++;\n } else {\n this.finderPenaltyAddHistory(runLen, history);\n if (!runColor) result += this.finderPenaltyCountPatterns(history) * PENALTY_N3;\n runColor = color;\n runLen = 1;\n }\n }\n result += this.finderPenaltyTerminateAndCount(runColor, runLen, history) * PENALTY_N3;\n }\n }\n\n // 2x2 blocks of one color.\n for (let y = 0; y < size - 1; y++) {\n for (let x = 0; x < size - 1; x++) {\n const c = m[y][x];\n if (c === m[y][x + 1] && c === m[y + 1][x] && c === m[y + 1][x + 1]) result += PENALTY_N2;\n }\n }\n\n // Balance of dark and light modules.\n let dark = 0;\n for (const row of m) for (const c of row) if (c) dark++;\n const total = size * size;\n const k = Math.ceil(Math.abs(dark * 20 - total * 10) / total) - 1;\n result += k * PENALTY_N4;\n return result;\n }\n\n private finderPenaltyCountPatterns(h: readonly number[]): number {\n const n = h[1];\n const core = n > 0 && h[2] === n && h[3] === n * 3 && h[4] === n && h[5] === n;\n return (core && h[0] >= n * 4 && h[6] >= n ? 1 : 0) + (core && h[6] >= n * 4 && h[0] >= n ? 1 : 0);\n }\n\n private finderPenaltyTerminateAndCount(runColor: boolean, runLen: number, history: number[]): number {\n if (runColor) {\n this.finderPenaltyAddHistory(runLen, history);\n runLen = 0;\n }\n runLen += this.size; // light border after the last run\n this.finderPenaltyAddHistory(runLen, history);\n return this.finderPenaltyCountPatterns(history);\n }\n\n private finderPenaltyAddHistory(runLen: number, history: number[]) {\n if (history[0] === 0) runLen += this.size; // light border before the first run\n history.pop();\n history.unshift(runLen);\n }\n\n private alignmentPatternPositions(): number[] {\n if (this.version === 1) return [];\n const numAlign = Math.floor(this.version / 7) + 2;\n const step = Math.floor((this.version * 8 + numAlign * 3 + 5) / (numAlign * 4 - 4)) * 2;\n const result = [6];\n for (let pos = this.size - 7; result.length < numAlign; pos -= step) result.splice(1, 0, pos);\n return result;\n }\n\n private drawFinderPattern(x: number, y: number) {\n for (let dy = -4; dy <= 4; dy++) {\n for (let dx = -4; dx <= 4; dx++) {\n const dist = Math.max(Math.abs(dx), Math.abs(dy));\n const xx = x + dx;\n const yy = y + dy;\n if (xx >= 0 && xx < this.size && yy >= 0 && yy < this.size) this.setFunction(xx, yy, dist !== 2 && dist !== 4);\n }\n }\n }\n\n private drawAlignmentPattern(x: number, y: number) {\n for (let dy = -2; dy <= 2; dy++) {\n for (let dx = -2; dx <= 2; dx++) this.setFunction(x + dx, y + dy, Math.max(Math.abs(dx), Math.abs(dy)) !== 1);\n }\n }\n\n private drawVersion() {\n if (this.version < 7) return;\n let rem = this.version;\n for (let i = 0; i < 12; i++) rem = (rem << 1) ^ ((rem >>> 11) * 0x1f25);\n const bits = (this.version << 12) | rem;\n for (let i = 0; i < 18; i++) {\n const bit = getBit(bits, i);\n const a = this.size - 11 + (i % 3);\n const b = Math.floor(i / 3);\n this.setFunction(a, b, bit);\n this.setFunction(b, a, bit);\n }\n }\n\n private setFunction(x: number, y: number, dark: boolean) {\n this.modules[y][x] = dark;\n this.isFunction[y][x] = true;\n }\n}\n","import { Component, ChangeDetectionStrategy, input, computed, inject } from '@angular/core';\nimport { ButtonComponent } from '@forgeroute/ui/core';\nimport { encodeQr, QrMatrix } from './qr-encoder';\nimport { UiLabelsService } from '@forgeroute/ui/core';\n\n/** Light modules around the code, as required by the QR spec. */\nconst QUIET_ZONE = 4;\nconst DARK = '#1e293b';\nconst LIGHT = '#ffffff';\n\n/**\n * QR code for a URL (or any text), with a \"Download QR Code\" button (PNG). Projected content\n * renders next to the download button (e.g. an \"Open Kiosk Mode\" action).\n *\n * Self-contained: uses the built-in encoder in ./qr-encoder.ts — no third-party QR package.\n *\n * ```html\n * <ui-qr-code [url]=\"publicLink()\" filename=\"open-house-qr-code\">\n * <ui-button variant=\"secondary\" size=\"sm\" (click)=\"openKiosk()\">Open Kiosk Mode</ui-button>\n * </ui-qr-code>\n * ```\n */\n@Component({\n selector: 'ui-qr-code',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [ButtonComponent],\n template: `\n <div class=\"qr-box\">\n @if (qr().error) {\n <div class=\"qr-error\" role=\"alert\">\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#ef4444\" stroke-width=\"2\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><line x1=\"12\" y1=\"8\" x2=\"12\" y2=\"12\"/><line x1=\"12\" y1=\"16\" x2=\"12.01\" y2=\"16\"/></svg>\n <span>{{ labels.t('qrCode.qrCodeUnavailableCopyThe') }}</span>\n </div>\n } @else if (qr().dataUrl) {\n <img\n [src]=\"qr().dataUrl\"\n [width]=\"size()\"\n [height]=\"size()\"\n [alt]=\"alt()\"\n class=\"qr-img\"\n />\n @if (isIOS) {\n <p class=\"qr-ios-hint\">{{ labels.t('qrCode.longPressTheImageAbove') }}</p>\n }\n }\n <div class=\"qr-actions\">\n @if (!isIOS) {\n <ui-button variant=\"secondary\" size=\"sm\" [disabled]=\"!qr().dataUrl\" (click)=\"download()\">\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" aria-hidden=\"true\">\n <path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"/>\n <polyline points=\"7 10 12 15 17 10\"/>\n <line x1=\"12\" y1=\"15\" x2=\"12\" y2=\"3\"/>\n </svg>{{ labels.t('qrCode.downloadQrCode') }}</ui-button>\n }\n <ng-content />\n </div>\n </div>\n `,\n styles: [`\n .qr-box {\n display: flex; flex-direction: column; align-items: center; gap: 12px;\n padding: 20px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;\n }\n .qr-img { display: block; border-radius: 8px; max-width: 100%; height: auto; image-rendering: pixelated; }\n .qr-error {\n display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px;\n background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px;\n width: 100%; box-sizing: border-box;\n }\n .qr-error span { font-size: 0.8125rem; color: #dc2626; line-height: 1.5; }\n .qr-error svg { flex-shrink: 0; margin-top: 1px; }\n .qr-ios-hint { font-size: 0.75rem; color: #94a3b8; margin: 0; text-align: center; }\n .qr-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }\n `],\n})\nexport class QrCodeComponent {\n protected readonly labels = inject(UiLabelsService);\n /** URL (or text) encoded into the QR code. Nothing is rendered while empty. */\n readonly url = input('');\n /** Displayed width/height in px. The PNG is rendered at 2x for sharp printing. */\n readonly size = input(240);\n /** Download file name, without the .png extension. */\n readonly filename = input('qr-code');\n readonly altInput = input<string | null>(null, { alias: 'alt' });\n readonly alt = computed(() => this.altInput() ?? this.labels.t('qrCode.alt'));\n\n /** iOS Safari doesn't support programmatic download of data: or blob: URLs. */\n protected readonly isIOS = typeof navigator !== 'undefined' &&\n (/iPad|iPhone|iPod/.test(navigator.userAgent) || (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1));\n\n protected readonly qr = computed((): { dataUrl: string; error: boolean } => {\n const url = this.url();\n if (!url) return { dataUrl: '', error: false };\n try {\n return { dataUrl: renderPng(encodeQr(url), this.size() * 2), error: false };\n } catch {\n return { dataUrl: '', error: true };\n }\n });\n\n download() {\n const dataUrl = this.qr().dataUrl;\n if (!dataUrl) return;\n try {\n // Convert the data URL to a Blob for broader browser support (Safari desktop and data: hrefs).\n const [header, b64] = dataUrl.split(',');\n const mime = header.match(/:(.*?);/)?.[1] ?? 'image/png';\n const bytes = atob(b64);\n const arr = new Uint8Array(bytes.length);\n for (let i = 0; i < bytes.length; i++) arr[i] = bytes.charCodeAt(i);\n const blobUrl = URL.createObjectURL(new Blob([arr], { type: mime }));\n\n const a = document.createElement('a');\n a.href = blobUrl;\n a.download = `${this.filename()}.png`;\n document.body.appendChild(a);\n a.click();\n document.body.removeChild(a);\n // Small delay before revoking so the browser has time to start the download.\n setTimeout(() => URL.revokeObjectURL(blobUrl), 1000);\n } catch {\n window.open(dataUrl, '_blank', 'noopener');\n }\n }\n}\n\n/** Draws the matrix (plus quiet zone) onto a canvas with whole-pixel modules and returns a PNG data URL. */\nfunction renderPng(qr: QrMatrix, targetPx: number): string {\n const count = qr.size + QUIET_ZONE * 2;\n const scale = Math.max(1, Math.floor(targetPx / count));\n const canvas = document.createElement('canvas');\n canvas.width = canvas.height = count * scale;\n const ctx = canvas.getContext('2d');\n if (!ctx) throw new Error('Canvas 2D context unavailable.');\n ctx.fillStyle = LIGHT;\n ctx.fillRect(0, 0, canvas.width, canvas.height);\n ctx.fillStyle = DARK;\n for (let y = 0; y < qr.size; y++) {\n for (let x = 0; x < qr.size; x++) {\n if (qr.modules[y][x]) ctx.fillRect((x + QUIET_ZONE) * scale, (y + QUIET_ZONE) * scale, scale, scale);\n }\n }\n return canvas.toDataURL('image/png');\n}\n","import { ChangeDetectionStrategy, Component, ElementRef, HostListener, computed, effect, input, model, output, signal, viewChild, inject } from '@angular/core';\nimport { ButtonComponent } from '@forgeroute/ui/core';\nimport { UiLabelsService } from '@forgeroute/ui/core';\n\n/** (library source 2026-11-06, not yet published) One step of a `ui-tour`. */\nexport interface TourStep {\n /** CSS selector of the element to point at. Several selectors separated by commas: the first that exists is used. A step whose target is missing is shown centred, without a spotlight. */\n target: string;\n title: string;\n description: string;\n /** Preferred side of the target for the tooltip; it moves to the side with room when the preferred one does not fit. */\n position?: 'top' | 'bottom' | 'left' | 'right';\n}\n\ntype TourSide = 'top' | 'bottom' | 'left' | 'right';\n\n/**\n * A guided tour: a spotlight on one element at a time and a tooltip with title, text, \"Step n of N\", Skip / Previous / Next (Finish on the last step).\n * The HOST decides when it runs and remembers that it was seen (the library stores nothing):\n *\n * <ui-tour [steps]=\"steps\" [(open)]=\"tourOpen\" (finished)=\"markSeen()\" (skipped)=\"markSeen()\" />\n *\n * Keyboard: Arrow right / left = next / previous, Escape = skip. Clicking the dimmed page skips. Test ids: `tour-spotlight`, `tour-tooltip`, `tour-title`,\n * `tour-description`, `tour-progress`, `tour-skip`, `tour-prev`, `tour-next`.\n */\n@Component({\n selector: 'ui-tour',\n standalone: true,\n imports: [ButtonComponent],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n @if (open() && step(); as s) {\n <div class=\"spotlight\" data-testid=\"tour-spotlight\" aria-hidden=\"true\"\n [style.top.px]=\"spotlight().top\" [style.left.px]=\"spotlight().left\" [style.width.px]=\"spotlight().width\" [style.height.px]=\"spotlight().height\"\n (click)=\"skip()\"></div>\n <div #tooltip class=\"tooltip\" role=\"dialog\" aria-modal=\"true\" tabindex=\"-1\" data-testid=\"tour-tooltip\"\n [attr.aria-label]=\"s.title\" [attr.data-side]=\"side()\"\n [style.top]=\"place().top\" [style.left]=\"place().left\" [style.transform]=\"side() === 'top' ? 'translateY(-100%)' : 'none'\"\n (click)=\"$event.stopPropagation()\">\n <h4 class=\"title\" data-testid=\"tour-title\">{{ s.title }}</h4>\n <p class=\"description\" data-testid=\"tour-description\">{{ s.description }}</p>\n <div class=\"footer\">\n <span class=\"progress\" data-testid=\"tour-progress\">{{ progressText() }}</span>\n <span class=\"actions\">\n <ui-button variant=\"ghost\" size=\"sm\" data-testid=\"tour-skip\" (click)=\"skip()\">{{ skipLabel() }}</ui-button>\n <ui-button variant=\"secondary\" size=\"sm\" data-testid=\"tour-prev\" [disabled]=\"index() === 0\" (click)=\"previous()\">{{ previousLabel() }}</ui-button>\n <ui-button variant=\"primary\" size=\"sm\" data-testid=\"tour-next\" (click)=\"next()\">{{ isLast() ? finishLabel() : nextLabel() }}</ui-button>\n </span>\n </div>\n </div>\n }\n `,\n styles: [`\n .spotlight { position: fixed; z-index: 9999; border-radius: 6px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5); cursor: pointer; transition: top .3s ease, left .3s ease, width .3s ease, height .3s ease; }\n .tooltip { position: fixed; z-index: 10000; width: 320px; max-width: calc(100vw - 32px); box-sizing: border-box; padding: 16px; background: #fff; color: #0f172a; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.25); outline: none; }\n .title { margin: 0 0 6px; font-size: 1rem; }\n .description { margin: 0 0 12px; font-size: .875rem; line-height: 1.45; color: #334155; }\n .footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }\n .progress { font-size: .75rem; color: #475569; }\n .actions { display: flex; gap: 4px; }\n @media (prefers-reduced-motion: reduce) { .spotlight { transition: none; } }\n `],\n})\nexport class TourComponent {\n protected readonly labels = inject(UiLabelsService);\n readonly steps = input.required<readonly TourStep[]>();\n /** Whether the tour is showing (two-way). The tour closes itself on finish and skip. */\n readonly open = model(false);\n /** Zero-based current step (two-way). Reset to 0 each time the tour opens. */\n readonly index = model(0);\n readonly skipLabelInput = input<string | null>(null, { alias: 'skipLabel' });\n readonly skipLabel = computed(() => this.skipLabelInput() ?? this.labels.t('tour.skipLabel'));\n readonly previousLabelInput = input<string | null>(null, { alias: 'previousLabel' });\n readonly previousLabel = computed(() => this.previousLabelInput() ?? this.labels.t('tour.previousLabel'));\n readonly nextLabelInput = input<string | null>(null, { alias: 'nextLabel' });\n readonly nextLabel = computed(() => this.nextLabelInput() ?? this.labels.t('tour.nextLabel'));\n readonly finishLabelInput = input<string | null>(null, { alias: 'finishLabel' });\n readonly finishLabel = computed(() => this.finishLabelInput() ?? this.labels.t('tour.finishLabel'));\n /** `{n}` = the step number, `{total}` = how many steps. */\n readonly progressLabelInput = input<string | null>(null, { alias: 'progressLabel' });\n readonly progressLabel = computed(() => this.progressLabelInput() ?? this.labels.t('tour.progressLabel'));\n\n /** Emits after the last step's Finish. */\n readonly finished = output<void>();\n /** Emits when the user skips (button, Escape, or a click on the dimmed page). */\n readonly skipped = output<void>();\n\n private readonly tooltip = viewChild<ElementRef<HTMLElement>>('tooltip');\n protected readonly spotlight = signal({ top: -9999, left: -9999, width: 0, height: 0 });\n protected readonly place = signal<{ top: string; left: string }>({ top: '50%', left: 'calc(50% - 160px)' });\n protected readonly side = signal<TourSide>('bottom');\n\n protected readonly step = computed(() => this.steps()[this.index()] ?? null);\n protected readonly isLast = computed(() => this.index() >= this.steps().length - 1);\n protected readonly progressText = computed(() => this.progressLabel().replace('{n}', String(this.index() + 1)).replace('{total}', String(this.steps().length)));\n\n constructor() {\n effect(() => {\n const s = this.open() ? this.step() : null;\n if (!s) return;\n this.position(s);\n });\n effect(() => {\n if (this.open() && this.tooltip()) queueMicrotask(() => this.tooltip()?.nativeElement.focus());\n });\n }\n\n next(): void {\n if (!this.open()) return;\n if (this.isLast()) { this.close(); this.finished.emit(); } else this.index.update(i => i + 1);\n }\n\n previous(): void {\n if (this.open() && this.index() > 0) this.index.update(i => i - 1);\n }\n\n skip(): void {\n if (!this.open()) return;\n this.close();\n this.skipped.emit();\n }\n\n @HostListener('window:keydown', ['$event'])\n protected onKeydown(e: KeyboardEvent): void {\n if (!this.open()) return;\n if (e.key === 'Escape') { this.skip(); e.preventDefault(); }\n else if (e.key === 'ArrowRight') { this.next(); e.preventDefault(); }\n else if (e.key === 'ArrowLeft') { this.previous(); e.preventDefault(); }\n }\n\n @HostListener('window:resize')\n protected onResize(): void {\n const s = this.open() ? this.step() : null;\n if (s) this.position(s);\n }\n\n private close(): void {\n this.open.set(false);\n this.index.set(0);\n }\n\n private findTarget(selector: string): Element | null {\n for (const part of selector.split(',').map(p => p.trim())) {\n try { const el = document.querySelector(part); if (el) return el; } catch { /* invalid selector: try the next */ }\n }\n return null;\n }\n\n private position(step: TourStep): void {\n const el = this.findTarget(step.target);\n if (!el) {\n this.spotlight.set({ top: -9999, left: -9999, width: 0, height: 0 });\n this.place.set({ top: '50%', left: 'calc(50% - 160px)' });\n this.side.set('bottom');\n return;\n }\n el.scrollIntoView?.({ block: 'nearest' });\n const r = el.getBoundingClientRect();\n const pad = 8;\n this.spotlight.set({ top: r.top - pad, left: r.left - pad, width: r.width + pad * 2, height: r.height + pad * 2 });\n const side = this.chooseSide(r, step.position);\n this.side.set(side);\n this.place.set(this.placement(r, side));\n }\n\n private chooseSide(r: DOMRect, preferred?: TourSide): TourSide {\n const h = 180, w = 340, m = 16;\n const room: Record<TourSide, boolean> = {\n top: r.top > h + m, bottom: window.innerHeight - r.bottom > h + m, left: r.left > w + m, right: window.innerWidth - r.right > w + m,\n };\n if (preferred && room[preferred]) return preferred;\n return (['bottom', 'top', 'right', 'left'] as TourSide[]).find(s => room[s]) ?? 'bottom';\n }\n\n private placement(r: DOMRect, side: TourSide): { top: string; left: string } {\n const gap = 14, w = 320;\n const centred = Math.max(16, Math.min(r.left + r.width / 2 - w / 2, window.innerWidth - w - 16));\n switch (side) {\n case 'bottom': return { top: `${r.bottom + gap}px`, left: `${centred}px` };\n case 'top': return { top: `${r.top - gap}px`, left: `${centred}px` };\n case 'right': return { top: `${r.top + r.height / 2 - 90}px`, left: `${r.right + gap}px` };\n case 'left': return { top: `${r.top + r.height / 2 - 90}px`, left: `${r.left - w - gap}px` };\n }\n }\n}\n","import { Component, ChangeDetectionStrategy, computed, effect, input, output, signal, untracked } from '@angular/core';\nimport { imageObjectPosition } from '../image-reposition/image-position';\n\nexport type ImageFit = 'contain' | 'cover' | 'fill' | 'scale-down';\nexport type ImageRadius = 'none' | 'sm' | 'md' | 'lg' | 'full';\nexport type ImageAlign = 'start' | 'center' | 'end';\n\nconst RADIUS_PX: Record<ImageRadius, string> = { none: '0', sm: '4px', md: '8px', lg: '12px', full: '9999px' };\n\n/**\n * A content image of any size (a logo, a product photo, a banner) - the bigger sibling of `ui-image-preview`, which is a\n * small fixed-size thumbnail. The whole image is shown (`fit=\"contain\"`) unless you ask for `cover`.\n *\n * <ui-image src=\"/logo.png\" alt=\"Peaceful Pines Crematory\" maxHeight=\"48px\" /> <!-- natural size, capped -->\n * <ui-image [src]=\"p.imageUrl\" [alt]=\"p.name\" width=\"100%\" aspectRatio=\"4 / 3\" radius=\"md\" [bordered]=\"true\" />\n * <ui-image [src]=\"hero\" alt=\"\" fit=\"cover\" width=\"100%\" height=\"200px\" [priority]=\"true\" />\n *\n * - `alt`: required for meaningful images; '' (default) marks it decorative. The placeholder is `role=\"img\"` named by `alt`\n * (or hidden when decorative).\n * - Size: `width` / `height` (CSS lengths, e.g. \"200px\", \"100%\") fix the box and the image fills it per `fit`; without them\n * the image keeps its natural size, capped by `maxWidth` (default 100%) and `maxHeight`. `aspectRatio` (\"4 / 3\", \"1\")\n * reserves the space before the image loads so the page does not jump.\n * - `positionX` / `positionY` (percent, default 50 / 50 = centered): the focal point kept visible when `fit=\"cover\"` crops the image (CSS `object-position`);\n * the saved result of `ui-image-reposition` / `ui-image-field`. Missing or out-of-range values are centered / clamped.\n * - `radius` none | sm | md | lg | full, `bordered`, `align` (start | center | end, for an image narrower than its row).\n * - `placeholder` (default true): a neutral icon in the same box when there is no `src` or it fails to load. false renders nothing then.\n * - `priority`: above-the-fold image - loads eagerly with high fetch priority. Otherwise `loading=\"lazy\"` and async decoding.\n * - Outputs `loaded` and `failed`. A new `src` (or a changed `retryKey`) gets a fresh chance to load.\n * - Library source 2026-11-04, not yet published: `[interactive]=\"true\"` makes the image a button (e.g. a product photo that opens a preview):\n * the host gets `role=\"button\"`, `tabindex=\"0\"`, a focus ring, and click, Enter or Space emit `(activate)`. Its accessible name is the `alt`\n * text (also set as `aria-label`), so an interactive image NEEDS a non-empty `alt` (a decorative `alt=\"\"` image would be an unnamed button). Not\n * interactive (default) = no role, no tabindex, no key handling, no output: exactly as before.\n * Inside a clickable parent (e.g. a pressable `ui-list-item` row via the `list-item-image` slot) the click bubbles: `activate` fires AND the parent's\n * own click handling runs (the row is selected). Enter / Space fire `activate` only; the parent's key handlers that require their own element as the\n * target (`ui-list-item`) ignore them.\n * <ui-image [src]=\"p.photo\" [alt]=\"'Open photo of ' + p.name\" [interactive]=\"true\" (activate)=\"preview(p)\" />\n */\n@Component({\n selector: 'ui-image',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[style.text-align]': 'align()', '[class.im-block]': 'isBlock()',\n '[class.im-interactive]': 'interactive()',\n '[attr.role]': \"interactive() ? 'button' : null\",\n '[attr.tabindex]': 'interactive() ? 0 : null',\n '[attr.aria-label]': \"interactive() ? (alt() || null) : null\",\n '(click)': 'onActivate()',\n '(keydown.enter)': 'onKey($event)',\n '(keydown.space)': 'onKey($event)',\n },\n template: `\n @if (_url() && !_failed()) {\n <img class=\"im-img\" [src]=\"_url()\" [attr.alt]=\"alt()\" [attr.loading]=\"priority() ? 'eager' : 'lazy'\"\n [attr.fetchpriority]=\"priority() ? 'high' : null\" decoding=\"async\"\n [style.width]=\"imgWidth()\" [style.height]=\"imgHeight()\" [style.max-width]=\"maxWidth()\" [style.max-height]=\"maxHeight() || null\" [style.min-height]=\"minHeight() || null\"\n [style.aspect-ratio]=\"aspectRatio() || null\" [style.object-fit]=\"fit()\" [style.object-position]=\"objectPosition()\" [style.border-radius]=\"radiusCss()\"\n [class.im-bordered]=\"bordered()\" (load)=\"loaded.emit()\" (error)=\"_onError()\" />\n } @else if (placeholder()) {\n <span class=\"im-ph\" [class.im-bordered]=\"bordered()\" [attr.role]=\"alt() ? 'img' : null\" [attr.aria-label]=\"alt() || null\" [attr.aria-hidden]=\"alt() ? null : 'true'\"\n [style.width]=\"boxWidth()\" [style.height]=\"boxHeight()\" [style.max-width]=\"maxWidth()\" [style.max-height]=\"maxHeight() || null\" [style.min-height]=\"minHeight() || null\"\n [style.aspect-ratio]=\"aspectRatio() || null\" [style.border-radius]=\"radiusCss()\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\"/><circle cx=\"9\" cy=\"10\" r=\"1.8\"/><path d=\"M21 16l-5-5-8 9\"/></svg>\n </span>\n }\n `,\n styles: [`\n :host { display: inline-block; max-width: 100%; line-height: 0; }\n :host(.im-block) { display: block; }\n /* interactive (library source 2026-11-04): a pointer cursor and a visible keyboard focus ring (outside, so it is never clipped by the radius). */\n :host(.im-interactive) { cursor: pointer; }\n :host(.im-interactive:focus-visible) { outline: 2px solid var(--ui-focus, #3b82f6); outline-offset: 2px; }\n .im-img { display: inline-block; max-width: 100%; height: auto; vertical-align: top; }\n .im-bordered { border: 1px solid #e2e8f0; box-sizing: border-box; }\n .im-ph { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 48px; min-height: 48px; background: #f1f5f9; color: #94a3b8; vertical-align: top; }\n .im-ph svg { width: 32px; height: 32px; max-width: 55%; max-height: 55%; }\n `],\n})\nexport class ImageComponent {\n /** Image URL (or data URL). Blank shows the placeholder. */\n readonly src = input<string | null | undefined>(null);\n /** Alt text; '' (default) marks the image decorative. */\n readonly alt = input('');\n readonly fit = input<ImageFit>('contain');\n /** Focal point, percent from the left (0-100, 50 = centered): which part stays visible when the image is cropped by `fit=\"cover\"`. */\n readonly positionX = input<number | null | undefined>(50);\n /** Focal point, percent from the top (0-100, 50 = centered). */\n readonly positionY = input<number | null | undefined>(50);\n protected readonly objectPosition = computed(() => imageObjectPosition({ x: this.positionX(), y: this.positionY() }));\n /** CSS width of the box (e.g. \"200px\", \"100%\"). Empty = natural width. */\n readonly width = input('');\n /** CSS height of the box. Empty = natural height. */\n readonly height = input('');\n readonly maxWidth = input('100%');\n readonly maxHeight = input('');\n /** Minimum height of the image box (any CSS length). Empty = none. */\n readonly minHeight = input('');\n /** CSS aspect-ratio, e.g. \"4 / 3\". Reserves the space while the image loads. */\n readonly aspectRatio = input('');\n readonly radius = input<ImageRadius>('none');\n readonly bordered = input(false);\n readonly align = input<ImageAlign>('start');\n /** Show a neutral placeholder when there is no usable image. false = render nothing. */\n readonly placeholder = input(true);\n /** Above-the-fold image: eager loading with high fetch priority. */\n readonly priority = input(false);\n /** Bump to retry a failed image with the same `src`. */\n readonly retryKey = input<unknown>(null);\n\n /**\n * Library source 2026-11-04, not yet published. `true` = the image is a button: `role=\"button\"`, `tabindex=\"0\"`, `aria-label` from `alt`, and click /\n * Enter / Space emit `activate`. Needs a non-empty `alt` (it is the button's name). Default `false` = a plain image, nothing changes.\n */\n readonly interactive = input(false);\n\n readonly loaded = output<void>();\n readonly failed = output<void>();\n /** Fires (once per press) when an `interactive` image is clicked, or Enter / Space is pressed on it. Never fires when not interactive. */\n readonly activate = output<void>();\n\n protected readonly _failed = signal(false);\n protected readonly _url = computed(() => this.src()?.trim() || null);\n protected readonly radiusCss = computed(() => RADIUS_PX[this.radius()] ?? '0');\n protected readonly imgWidth = computed(() => this.width() || null);\n protected readonly imgHeight = computed(() => this.height() || null);\n /** The placeholder needs a real box when the caller gave none. */\n protected readonly boxWidth = computed(() => this.width() || null);\n protected readonly boxHeight = computed(() => this.height() || null);\n protected readonly isBlock = computed(() => this.width() === '100%');\n\n constructor() {\n effect(() => { this.src(); this.retryKey(); untracked(() => this._failed.set(false)); });\n }\n\n protected _onError(): void { this._failed.set(true); this.failed.emit(); }\n\n protected onActivate(): void {\n if (this.interactive()) this.activate.emit();\n }\n\n protected onKey(event: Event): void {\n if (!this.interactive()) return;\n event.preventDefault(); // Space would scroll the page; Enter on a non-native button must not also click\n this.activate.emit();\n }\n}\n","import { Component, ChangeDetectionStrategy, computed, input, model, inject } from '@angular/core';\nimport { ButtonComponent } from '@forgeroute/ui/core';\nimport { ImageComponent } from '../image/image.component';\nimport { LiveRegionComponent } from '@forgeroute/ui/live-region';\nimport { UiLabelsService } from '@forgeroute/ui/core';\n\n/** One picture of a `ui-image-gallery`. */\nexport interface GalleryImage {\n src: string;\n /** Alt text of this picture. Defaults to \"Image N of M\". */\n alt?: string;\n /** Visible caption shown under the picture while it is the shown one (library source 2026-11-06, not yet published). Empty / missing = no caption line. */\n caption?: string | null;\n /** Focal point of this picture in percent (50 = centered): the part that stays visible when `fit=\"cover\"` crops it. */\n positionX?: number | null;\n positionY?: number | null;\n}\n\n/**\n * Image gallery (a \"slideshow\"): one large picture with previous / next buttons, a counter and dots. Put it inside a\n * `ui-modal` for a lightbox, or inline on a page.\n *\n * <ui-image-gallery [images]=\"[{ src: a, alt: 'Front' }, { src: b, alt: 'Side' }]\" [(index)]=\"i\" ariaLabel=\"Photos of the urn\" />\n *\n * - `images`: the pictures. With a single picture there are no buttons, counter or dots.\n * - `index` (two-way, default 0): the shown picture; values outside the list are clamped.\n * - `loop` (default true): Next after the last goes to the first, Previous before the first to the last. false disables\n * the button at either end.\n * - `showDots` / `showCounter` (default true), `aspectRatio` (default \"4 / 3\"), `maxHeight` (default \"70vh\"), `fit` (default contain).\n * - Keyboard: with focus inside the gallery, ArrowLeft / ArrowRight (and Home / End) change the picture. The picture\n * change is announced (\"Image 2 of 5: <alt>\") through an always-present live region.\n * - Accessibility: a labelled group (`ariaLabel`, default \"Image gallery\") described as a carousel; the buttons are named\n * \"Previous image\" / \"Next image\"; each dot is a button \"Show image N of M\" with `aria-current` on the shown one.\n */\n@Component({\n selector: 'ui-image-gallery',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [ButtonComponent, ImageComponent, LiveRegionComponent],\n template: `\n @if (count() > 0) {\n <div class=\"ig\" role=\"group\" aria-roledescription=\"carousel\" [attr.aria-label]=\"ariaLabel()\" (keydown)=\"onKey($event)\">\n <div class=\"ig-stage\">\n @if (count() > 1) {\n <ui-button class=\"ig-nav ig-prev\" variant=\"secondary\" size=\"sm\" [ariaLabel]=\"labels.t('imageGallery.previousImage')\" [disabled]=\"!canPrev()\" [attr.data-autofocus]=\"autofocusPrev() ? '' : null\" (click)=\"prev()\" data-testid=\"gallery-prev\">\n <svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M15 18l-6-6 6-6\"/></svg>\n </ui-button>\n }\n <ui-image class=\"ig-img\" [src]=\"current().src\" [alt]=\"currentAlt()\" [fit]=\"fit()\" [positionX]=\"current().positionX\" [positionY]=\"current().positionY\" width=\"100%\" [maxHeight]=\"maxHeight()\" [aspectRatio]=\"aspectRatio()\" data-testid=\"gallery-image\" />\n @if (count() > 1) {\n <ui-button class=\"ig-nav ig-next\" variant=\"secondary\" size=\"sm\" [ariaLabel]=\"labels.t('imageGallery.nextImage')\" [disabled]=\"!canNext()\" [attr.data-autofocus]=\"autofocusNext() ? '' : null\" (click)=\"next()\" data-testid=\"gallery-next\">\n <svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M9 18l6-6-6-6\"/></svg>\n </ui-button>\n }\n </div>\n @if (currentCaption(); as cap) { <p class=\"ig-caption\" data-testid=\"gallery-caption\">{{ cap }}</p> }\n @if (count() > 1) {\n <div class=\"ig-meta\">\n @if (showCounter()) { <span class=\"ig-counter\" aria-hidden=\"true\" data-testid=\"gallery-counter\">{{ position() + 1 }} / {{ count() }}</span> }\n @if (showDots()) {\n <div class=\"ig-dots\">\n @for (img of images(); track $index) {\n <button type=\"button\" class=\"ig-dot\" [class.ig-dot-on]=\"$index === position()\" [attr.aria-label]=\"labels.t('imageGallery.showImage', { n: $index + 1, total: count() })\"\n [attr.aria-current]=\"$index === position() ? 'true' : null\" [attr.data-testid]=\"'gallery-dot-' + $index\" (click)=\"go($index)\"></button>\n }\n </div>\n }\n </div>\n }\n <ui-live-region [message]=\"announcement()\" />\n </div>\n }\n `,\n styles: [`\n :host { display: block; }\n .ig { display: flex; flex-direction: column; gap: 10px; }\n .ig-stage { position: relative; display: flex; align-items: center; justify-content: center; }\n .ig-img { flex: 1 1 auto; min-width: 0; }\n .ig-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; }\n .ig-prev { left: 8px; }\n .ig-next { right: 8px; }\n .ig-caption { margin: 0; text-align: center; font-size: 0.875rem; color: #334155; overflow-wrap: anywhere; }\n .ig-meta { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }\n .ig-counter { font-size: 0.8125rem; color: #64748b; }\n .ig-dots { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }\n /* 8px dot with a 44px touch target (padding + background-clip), as the rest of the library. */\n .ig-dot {\n box-sizing: content-box; width: 8px; height: 8px; padding: 18px; margin: -14px -14px; border: 0; border-radius: 50%;\n background: #cbd5e1; background-clip: content-box; cursor: pointer; -webkit-appearance: none; appearance: none;\n }\n .ig-dot-on { background: var(--ui-accent, #3b82f6); background-clip: content-box; }\n .ig-dot:focus-visible { outline: 2px solid var(--ui-focus, #3b82f6); outline-offset: -4px; }\n `],\n})\nexport class ImageGalleryComponent {\n protected readonly labels = inject(UiLabelsService);\n readonly images = input<GalleryImage[]>([]);\n /** Shown picture (0-based). Two-way. */\n readonly index = model(0);\n readonly loop = input(true);\n readonly showDots = input(true);\n readonly showCounter = input(true);\n readonly aspectRatio = input('4 / 3');\n readonly maxHeight = input('70vh');\n readonly fit = input<'contain' | 'cover'>('contain');\n readonly ariaLabelInput = input<string | null>(null, { alias: 'ariaLabel' });\n readonly ariaLabel = computed(() => this.ariaLabelInput() ?? this.labels.t('imageGallery.ariaLabel'));\n /**\n * true = when the gallery sits in a `ui-modal`, the dialog opens with focus on the gallery's \"Next image\" button (or \"Previous image\" when\n * Next is disabled at the last picture of a non-looping gallery), so the arrow keys work at once without a Tab. With a single picture there are\n * no buttons, so the dialog keeps its normal initial focus. Default false: unchanged.\n */\n readonly autofocus = input(false);\n\n protected readonly count = computed(() => this.images().length);\n /** `index` clamped into the list. */\n protected readonly position = computed(() => {\n const n = this.count();\n const i = Math.trunc(Number(this.index()));\n return n === 0 || !Number.isFinite(i) ? 0 : Math.min(n - 1, Math.max(0, i));\n });\n protected readonly current = computed(() => this.images()[this.position()] ?? { src: '' });\n protected readonly currentAlt = computed(() => this.current().alt ?? this.labels.t('imageGallery.imageN', { n: this.position() + 1, total: this.count() }));\n protected readonly currentCaption = computed(() => this.current().caption?.trim() || '');\n protected readonly autofocusNext = computed(() => this.autofocus() && this.canNext());\n protected readonly autofocusPrev = computed(() => this.autofocus() && !this.canNext() && this.canPrev());\n protected readonly canPrev = computed(() => this.count() > 1 && (this.loop() || this.position() > 0));\n protected readonly canNext = computed(() => this.count() > 1 && (this.loop() || this.position() < this.count() - 1));\n protected readonly announcement = computed(() => (this.count() > 1 ? (this.current().alt ? this.labels.t('imageGallery.imageNAlt', { n: this.position() + 1, total: this.count(), alt: this.current().alt! }) : this.labels.t('imageGallery.imageN', { n: this.position() + 1, total: this.count() })) : ''));\n\n prev(): void { if (this.canPrev()) this.index.set((this.position() - 1 + this.count()) % this.count()); }\n next(): void { if (this.canNext()) this.index.set((this.position() + 1) % this.count()); }\n go(i: number): void { if (i >= 0 && i < this.count()) this.index.set(i); }\n\n protected onKey(e: KeyboardEvent): void {\n if (this.count() < 2 || e.altKey || e.ctrlKey || e.metaKey) return;\n // Do not steal the arrow keys from a control that uses them (a text field, a select, a slider inside the gallery).\n const t = e.target as HTMLElement | null;\n if (t?.closest('input, textarea, select, [contenteditable=\"true\"], [role=\"slider\"]')) return;\n if (e.key === 'ArrowLeft') { this.prev(); e.preventDefault(); }\n else if (e.key === 'ArrowRight') { this.next(); e.preventDefault(); }\n else if (e.key === 'Home') { this.go(0); e.preventDefault(); }\n else if (e.key === 'End') { this.go(this.count() - 1); e.preventDefault(); }\n }\n}\n","import { ChangeDetectionStrategy, Component, ElementRef, Injector, afterNextRender, computed, effect, forwardRef, inject, input, output, signal, untracked, viewChild } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ButtonComponent } from '@forgeroute/ui/core';\nimport { UiLabelsService } from '@forgeroute/ui/core';\nimport { createFieldReveal } from '@forgeroute/ui/core';\n\nlet nextPadId = 0;\n\n/**\n * A pad to draw a signature (or initials) on: a ControlValueAccessor whose value is a PNG data URL (`null` = empty).\n *\n * <ui-signature-pad label=\"Your signature\" [(ngModel)]=\"signature\" />\n * <ui-signature-pad ariaLabel=\"Initials\" [outputWidth]=\"200\" [outputHeight]=\"60\" (signatureChange)=\"onSigned($event)\" />\n *\n * Drawing works with a mouse, a finger or a pen (pointer events; the pad blocks touch scrolling while you draw) and with the keyboard:\n * focus the pad, move the cursor with the arrow keys (Shift = bigger steps), hold Space to draw, Escape hides the cursor (it does not\n * leave the dialog the pad may sit in until the cursor is hidden). When a stroke ends the drawing is cropped to its content (4px margin),\n * scaled to fit `outputWidth` x `outputHeight` (left-aligned, vertically centered) and emitted, so every signature has the same visual\n * weight. Clear empties the pad. `disabled` (input or form control) blocks drawing.\n *\n * The pad is shown at the container's width and keeps the bitmap's aspect ratio (`width` : `height`), so ink is never stretched and the saved PNG\n * looks like what was drawn. Changing `width` / `height` after drawing repaints the current signature (scaled to fit) instead of losing it.\n * Screen readers get the keyboard instructions as a description of the pad and a polite \"Signature captured\" / \"Signature cleared\" announcement.\n *\n * Public methods: `clear()`, `isEmpty()`, `toDataUrl()` (the current normalized signature, or `null` when empty) and `resetTouched()` (hides a host `error` again after the host reset its form; same method on ui-rich-text-editor and ui-multi-select).\n */\n@Component({\n selector: 'ui-signature-pad',\n standalone: true,\n imports: [ButtonComponent],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SignaturePadComponent), multi: true }],\n template: `\n <div class=\"sp-field\" [class.sp-disabled]=\"disabled()\" [class.sp-error]=\"!!_activeError()\">\n @if (label()) {\n <span class=\"sp-label\" [id]=\"_labelId\">{{ label() }}</span>\n }\n <div class=\"sp-pad\">\n <canvas\n #canvas\n class=\"sp-canvas\"\n role=\"application\"\n [width]=\"width()\"\n [height]=\"height()\"\n [style.aspect-ratio]=\"width() + ' / ' + height()\"\n [attr.tabindex]=\"disabled() ? null : 0\"\n [attr.aria-label]=\"_accessibleName()\"\n [attr.aria-labelledby]=\"!ariaLabel() && label() ? _labelId : null\"\n [attr.aria-describedby]=\"_describedBy()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.aria-invalid]=\"_activeError() ? 'true' : null\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerEnd($event)\"\n (pointercancel)=\"onPointerEnd($event)\"\n (lostpointercapture)=\"onPointerEnd($event)\"\n (keydown)=\"onKeyDown($event)\"\n (keyup)=\"onKeyUp($event)\"\n (blur)=\"onBlur()\"></canvas>\n @if (_cursorVisible()) {\n <span class=\"sp-cursor\" [class.is-drawing]=\"_keyboardDrawing()\" [style.left.%]=\"_cursorX() / width() * 100\" [style.top.%]=\"_cursorY() / height() * 100\"></span>\n }\n </div>\n <span class=\"sp-sr\" [id]=\"_helpId\">{{ labels.t('signaturePad.keyboardHelp') }}</span>\n <span class=\"sp-sr\" role=\"status\" aria-live=\"polite\">{{ _announcement() }}</span>\n @if (_activeError()) {\n <p class=\"sp-desc sp-desc-error\" [id]=\"_descId\" role=\"alert\">{{ _activeError() }}</p>\n } @else if (hint()) {\n <p class=\"sp-desc\" [id]=\"_descId\">{{ hint() }}</p>\n }\n @if (showClear()) {\n <ui-button variant=\"secondary\" size=\"sm\" [disabled]=\"disabled() || _empty()\" (click)=\"clear()\">{{ clearLabel() }}</ui-button>\n }\n </div>\n `,\n styles: [`\n :host { display: block; }\n .sp-field { display: flex; flex-direction: column; gap: 6px; }\n .sp-label { font-size: 0.8125rem; font-weight: 600; color: #374151; line-height: 1; }\n .sp-pad { position: relative; border: 2px solid #d1d5db; border-radius: 8px; background: #f9fafb; }\n .sp-error .sp-pad { border-color: #ef4444; }\n .sp-canvas {\n display: block; width: 100%; height: auto;\n cursor: crosshair;\n -webkit-touch-callout: none; /* no iOS long-press callout / text selection while drawing */\n -webkit-user-select: none;\n user-select: none;\n touch-action: none; /* a finger draws instead of scrolling the page or dialog */\n -webkit-tap-highlight-color: transparent;\n border-radius: 6px;\n }\n .sp-canvas:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }\n .sp-disabled .sp-pad { opacity: 0.5; }\n .sp-disabled .sp-canvas { cursor: not-allowed; }\n .sp-cursor {\n position: absolute; width: 8px; height: 8px; border-radius: 9999px; pointer-events: none;\n background: #2563eb; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);\n transform: translate(-50%, -50%);\n }\n .sp-cursor.is-drawing { animation: sp-pulse 1s ease-in-out infinite; }\n @keyframes sp-pulse { 50% { opacity: 0.5; } }\n @media (prefers-reduced-motion: reduce) { .sp-cursor.is-drawing { animation: none; } }\n .sp-desc { margin: 0; font-size: 0.75rem; line-height: 1.4; color: #64748b; }\n .sp-desc-error { color: #dc2626; }\n .sp-sr {\n position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;\n overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;\n }\n `],\n})\nexport class SignaturePadComponent implements ControlValueAccessor {\n protected readonly labels = inject(UiLabelsService);\n readonly label = input('');\n /** Accessible name when there is no visible label. A default describing the keyboard controls is used when neither is set. */\n readonly ariaLabel = input('');\n readonly hint = input('');\n /** Host error message. Shown (with the red state and aria-invalid) after the user interacted with the pad (finished a stroke or left it) or while `showErrors` is true. */\n readonly error = input('');\n /** True once the user drew on the pad or tabbed away from it. */\n /** The host's \"tried to submit\" flag (e.g. after a failed Save click): `true` shows the host `error` at once, even before the user touched the field; switching it from true back to false forgets the interaction (closing the form leaves no red field). */\n readonly showErrors = input(false);\n private readonly _reveal = createFieldReveal(this.showErrors);\n protected readonly _touched = this._reveal.touched;\n protected readonly _activeError = computed(() => this._reveal.revealed() ? this.error() : '');\n /** Forgets that the user interacted (call it when the host resets its form): a host `error` is hidden again until the next stroke / blur. */\n resetTouched(): void { this._touched.set(false); }\n /** Bitmap size of the drawing surface in pixels. The pad is displayed at the container's width with this same aspect ratio, so strokes keep their proportions. */\n readonly width = input(600);\n readonly height = input(120);\n /** Size of the emitted PNG: the drawing is cropped to its content and scaled to fit this box. */\n readonly outputWidth = input(600);\n readonly outputHeight = input(60);\n readonly penColor = input('#000000');\n readonly penWidth = input(3);\n /** Show the built-in Clear button under the pad. */\n readonly showClear = input(true);\n readonly clearLabelInput = input<string | null>(null, { alias: 'clearLabel' });\n readonly clearLabel = computed(() => this.clearLabelInput() ?? this.labels.t('signaturePad.clearLabel'));\n readonly _disabledInput = input(false, { alias: 'disabled' });\n\n /** Emits the normalized PNG data URL when a stroke ends, and `null` when the pad is cleared. */\n readonly signatureChange = output<string | null>();\n\n private readonly _canvas = viewChild<ElementRef<HTMLCanvasElement>>('canvas');\n private readonly _cvaDisabled = signal(false);\n protected readonly disabled = computed(() => this._disabledInput() || this._cvaDisabled());\n protected readonly _empty = signal(true);\n protected readonly _cursorVisible = signal(false);\n protected readonly _cursorX = signal(0);\n protected readonly _cursorY = signal(0);\n protected readonly _keyboardDrawing = signal(false);\n protected readonly _announcement = signal('');\n private readonly _injector = inject(Injector);\n\n private readonly _id = ++nextPadId;\n protected readonly _labelId = `sp-label-${this._id}`;\n protected readonly _descId = `sp-desc-${this._id}`;\n protected readonly _helpId = `sp-help-${this._id}`;\n /** The `ariaLabel`; with neither it nor a visible `label`, a default name (the canvas always has one). The keyboard instructions are a separate description. */\n protected readonly _accessibleName = computed(() => this.ariaLabel() || (this.label() ? null : this.labels.t('signaturePad.name')));\n /** The error / hint (when shown) plus the always-present keyboard instructions, so they are announced whatever names the canvas. */\n protected readonly _describedBy = computed(() => ((this._activeError() || this.hint()) ? this._descId + ' ' : '') + this._helpId);\n\n private _ctx: CanvasRenderingContext2D | null = null;\n private _pointerId: number | null = null;\n private _dirty = false;\n /** A value was written before the canvas existed: the setup effect paints it. */\n private _pendingImage = false;\n private _value: string | null = null;\n /** A written / repainted image is still decoding: the bitmap does not hold the signature yet, `_value` does. */\n private _loading = false;\n /** `width`x`height` the bitmap was last set up for; a change wipes the canvas, so the signature is repainted from `_value`. */\n private _sizeKey: string | null = null;\n private _onChange: (value: string | null) => void = () => {};\n private _onTouched: () => void = () => {};\n\n constructor() {\n // The drawing context is set up when the canvas element exists, and again when the pen settings or the bitmap size change\n effect(() => {\n const canvas = this._canvas()?.nativeElement;\n const sizeKey = `${this.width()}x${this.height()}`;\n this.penColor(); this.penWidth();\n if (canvas) {\n untracked(() => {\n this._setUpContext(canvas);\n if (this._sizeKey !== null && this._sizeKey !== sizeKey) this._repaintAfterResize();\n this._sizeKey = sizeKey;\n if (this._pendingImage && this._value && this._ctx) { this._pendingImage = false; this._paint(this._value, canvas, this._ctx); }\n });\n }\n });\n }\n\n // ─── Public API ───────────────────────────────────────────────────────\n\n isEmpty(): boolean { return this._empty(); }\n\n /** The current signature as a normalized PNG data URL, or `null` when nothing is drawn. */\n toDataUrl(): string | null {\n if (this._empty()) return null;\n // While an image is still decoding the bitmap is blank: the written / last committed value is the signature\n return this._loading || this._pendingImage ? this._value : this._normalize();\n }\n\n /** Empties the pad and tells the form (value `null`). */\n clear(): void {\n this._clearBitmap();\n this._value = null;\n this._pendingImage = false;\n this._loading = false;\n const wasEmpty = this._empty();\n this._empty.set(true);\n this._dirty = false;\n this._keyboardDrawing.set(false);\n this._cursorVisible.set(false);\n if (!wasEmpty) this._announcement.set(this.labels.t('signaturePad.cleared'));\n this._onChange(null);\n this.signatureChange.emit(null);\n }\n\n // ─── ControlValueAccessor ─────────────────────────────────────────────\n\n writeValue(value: string | null): void {\n this._value = value || null;\n this._pendingImage = false;\n this._loading = false;\n this._clearBitmap();\n this._announcement.set(''); // a value written by the form is not announced (and the next stroke / clear is)\n this._dirty = false;\n if (!value) {\n this._empty.set(true);\n return;\n }\n this._empty.set(false);\n const canvas = this._canvas()?.nativeElement;\n // A form control writes its initial value before the context effect has run, so the context is created on demand here\n const ctx = canvas ? this._contextOf(canvas) : null;\n if (!canvas || !ctx) { this._pendingImage = true; return; } // painted by the setup effect as soon as the canvas exists\n this._paint(value, canvas, ctx);\n }\n\n /** Draws a written value scaled to fit, left-aligned and vertically centered (ignored when the value was replaced while it loaded). */\n private _paint(value: string, canvas: HTMLCanvasElement, ctx: CanvasRenderingContext2D): void {\n const image = new Image();\n this._loading = true;\n image.onerror = () => { if (this._value === value) this._loading = false; };\n image.onload = () => {\n if (this._value !== value) return; // replaced or cleared while it loaded\n this._loading = false;\n ctx.clearRect(0, 0, canvas.width, canvas.height); // not through the view query: the pad may be destroyed by now\n const scale = Math.min(canvas.width / image.width, canvas.height / image.height);\n const drawWidth = image.width * scale;\n const drawHeight = image.height * scale;\n ctx.drawImage(image, 0, (canvas.height - drawHeight) / 2, drawWidth, drawHeight);\n };\n image.src = value;\n }\n\n /**\n * Assigning the canvas `width` / `height` wipes the bitmap while `_value` and `_empty` still describe a signature: once the new size is\n * rendered, paint the current signature (the last committed / written PNG, scaled to fit) again so state and bitmap agree.\n */\n private _repaintAfterResize(): void {\n afterNextRender(() => {\n const canvas = this._canvas()?.nativeElement;\n const ctx = canvas ? this._contextOf(canvas) : null;\n if (!canvas || !ctx || this._empty() || !this._value) return;\n this._paint(this._value, canvas, ctx);\n }, { injector: this._injector });\n }\n\n registerOnChange(fn: (value: string | null) => void): void { this._onChange = fn; }\n registerOnTouched(fn: () => void): void { this._onTouched = fn; }\n setDisabledState(disabled: boolean): void { this._cvaDisabled.set(disabled); }\n\n // ─── Pointer drawing (mouse, touch, pen) ──────────────────────────────\n\n protected onPointerDown(event: PointerEvent): void {\n if (this.disabled() || (event.pointerType === 'mouse' && event.button !== 0)) return;\n if (!event.isPrimary) return; // a second finger never starts a stroke\n if (this._pointerId !== null) {\n if (event.pointerId !== this._pointerId) return; // another pointer is drawing: ignore this one\n this._pointerId = null; // same pointer pressed again without a release: end the old stroke\n this._commit();\n }\n const canvas = this._canvas()?.nativeElement;\n const ctx = canvas ? this._contextOf(canvas) : null;\n if (!canvas || !ctx) return;\n event.preventDefault();\n this._applyPen(ctx);\n this._pointerId = event.pointerId;\n canvas.setPointerCapture?.(event.pointerId);\n this._cursorVisible.set(false);\n const point = this._pointOf(event.clientX, event.clientY, canvas);\n ctx.beginPath();\n ctx.moveTo(point.x, point.y);\n ctx.lineTo(point.x + 0.01, point.y); // a tap leaves a dot\n ctx.stroke();\n this._dirty = true;\n }\n\n protected onPointerMove(event: PointerEvent): void {\n if (this._pointerId === null || event.pointerId !== this._pointerId) return;\n const canvas = this._canvas()?.nativeElement;\n const ctx = this._ctx;\n if (!canvas || !ctx) return;\n event.preventDefault();\n const point = this._pointOf(event.clientX, event.clientY, canvas);\n ctx.lineTo(point.x, point.y);\n ctx.stroke();\n }\n\n protected onPointerEnd(event: PointerEvent): void {\n if (this._pointerId === null || event.pointerId !== this._pointerId) return;\n this._pointerId = null;\n this._touched.set(true);\n this._commit();\n }\n\n // ─── Keyboard drawing ─────────────────────────────────────────────────\n\n protected onKeyDown(event: KeyboardEvent): void {\n if (this.disabled()) return;\n const canvas = this._canvas()?.nativeElement;\n const ctx = canvas ? this._contextOf(canvas) : null;\n if (!ctx) return;\n\n if (event.key === 'Escape') {\n if (this._cursorVisible()) {\n // The first Escape only hides the cursor; the next one is left to the surrounding dialog\n event.stopPropagation();\n this._stopKeyboardStroke();\n this._cursorVisible.set(false);\n }\n return;\n }\n\n const isArrow = ['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight'].includes(event.key);\n if (!isArrow && event.key !== ' ') return;\n event.preventDefault();\n\n if (!this._cursorVisible()) {\n this._cursorVisible.set(true);\n this._cursorX.set(this.width() / 2);\n this._cursorY.set(this.height() / 2);\n }\n\n if (isArrow) {\n const step = event.shiftKey ? 10 : 2;\n if (event.key === 'ArrowUp') this._cursorY.set(Math.max(0, this._cursorY() - step));\n if (event.key === 'ArrowDown') this._cursorY.set(Math.min(this.height(), this._cursorY() + step));\n if (event.key === 'ArrowLeft') this._cursorX.set(Math.max(0, this._cursorX() - step));\n if (event.key === 'ArrowRight') this._cursorX.set(Math.min(this.width(), this._cursorX() + step));\n if (this._keyboardDrawing()) {\n ctx.lineTo(this._cursorX(), this._cursorY());\n ctx.stroke();\n this._dirty = true;\n }\n return;\n }\n\n // Space: start a stroke at the cursor (it ends when the key is released)\n if (!this._keyboardDrawing()) {\n this._keyboardDrawing.set(true);\n this._applyPen(ctx);\n ctx.beginPath();\n ctx.moveTo(this._cursorX(), this._cursorY());\n ctx.lineTo(this._cursorX() + 0.01, this._cursorY());\n ctx.stroke();\n this._dirty = true;\n }\n }\n\n protected onKeyUp(event: KeyboardEvent): void {\n if (event.key !== ' ' || this.disabled()) return;\n event.preventDefault();\n this._stopKeyboardStroke();\n }\n\n protected onBlur(): void {\n this._stopKeyboardStroke();\n this._cursorVisible.set(false);\n this._touched.set(true);\n this._onTouched();\n }\n\n // ─── Internals ────────────────────────────────────────────────────────\n\n private _stopKeyboardStroke(): void {\n if (!this._keyboardDrawing()) return;\n this._keyboardDrawing.set(false);\n this._commit();\n }\n\n /** A stroke ended: normalize the drawing, publish it to the form and the output. */\n private _commit(): void {\n if (!this._dirty) return;\n this._dirty = false;\n const wasEmpty = this._empty();\n this._empty.set(false);\n this._loading = false;\n this._value = this._normalize();\n if (wasEmpty) this._announcement.set(this.labels.t('signaturePad.captured'));\n this._onChange(this._value);\n this.signatureChange.emit(this._value);\n }\n\n private _setUpContext(canvas: HTMLCanvasElement): void {\n this._ctx = canvas.getContext('2d');\n if (this._ctx) this._applyPen(this._ctx);\n }\n\n /** The drawing context, created on first use (a form can write its value before the setup effect has run). */\n private _contextOf(canvas: HTMLCanvasElement): CanvasRenderingContext2D | null {\n if (!this._ctx) this._setUpContext(canvas);\n return this._ctx;\n }\n\n /**\n * Pen settings go on the context at the start of every stroke as well as in the setup effect: assigning the canvas `width` / `height`\n * (the `[width]` / `[height]` bindings, which run after the effect on the first render and on every size change) resets the context state.\n */\n private _applyPen(ctx: CanvasRenderingContext2D): void {\n ctx.strokeStyle = this.penColor();\n ctx.lineWidth = this.penWidth();\n ctx.lineCap = 'round';\n ctx.lineJoin = 'round';\n }\n\n private _clearBitmap(): void {\n const canvas = this._canvas()?.nativeElement;\n this._ctx?.clearRect(0, 0, canvas?.width ?? this.width(), canvas?.height ?? this.height());\n }\n\n /** Display coordinates -> bitmap coordinates (the pad is scaled by CSS). */\n private _pointOf(clientX: number, clientY: number, canvas: HTMLCanvasElement): { x: number; y: number } {\n const rect = canvas.getBoundingClientRect();\n const scaleX = rect.width ? canvas.width / rect.width : 1;\n const scaleY = rect.height ? canvas.height / rect.height : 1;\n return { x: (clientX - rect.left) * scaleX, y: (clientY - rect.top) * scaleY };\n }\n\n /** Crop the drawing to its content (4px margin) and scale it into `outputWidth` x `outputHeight`, left-aligned and vertically centered. */\n private _normalize(): string | null {\n const source = this._canvas()?.nativeElement;\n const sourceCtx = this._ctx;\n if (!source || !sourceCtx) return null;\n const { data, width, height } = sourceCtx.getImageData(0, 0, source.width, source.height);\n let minX = width, minY = height, maxX = -1, maxY = -1;\n for (let y = 0; y < height; y++) {\n for (let x = 0; x < width; x++) {\n if (data[(y * width + x) * 4 + 3] > 0) {\n if (x < minX) minX = x;\n if (x > maxX) maxX = x;\n if (y < minY) minY = y;\n if (y > maxY) maxY = y;\n }\n }\n }\n if (maxX < 0) return null; // nothing drawn\n const padding = 4;\n minX = Math.max(0, minX - padding);\n minY = Math.max(0, minY - padding);\n maxX = Math.min(width - 1, maxX + padding);\n maxY = Math.min(height - 1, maxY + padding);\n const cropWidth = maxX - minX + 1;\n const cropHeight = maxY - minY + 1;\n const out = document.createElement('canvas');\n out.width = this.outputWidth();\n out.height = this.outputHeight();\n const scale = Math.min(out.width / cropWidth, out.height / cropHeight);\n const drawWidth = cropWidth * scale;\n const drawHeight = cropHeight * scale;\n out.getContext('2d')!.drawImage(source, minX, minY, cropWidth, cropHeight, 0, (out.height - drawHeight) / 2, drawWidth, drawHeight);\n return out.toDataURL('image/png');\n }\n}\n","import { ChangeDetectionStrategy, Component, computed, input, output, inject } from '@angular/core';\nimport { UiLabelsService } from '@forgeroute/ui/core';\n\n/**\n * A \"sign here\" spot placed over a rendered PDF page, at the coordinates the document gives (pixels from the page's top-left corner).\n * Put it inside a `position: relative` element that holds the page, one per field:\n *\n * <div style=\"position: relative; width: 612px; height: 792px\">\n * <canvas ...></canvas>\n * <ui-pdf-hotspot [x]=\"f.x\" [y]=\"f.y\" [width]=\"f.width\" [height]=\"f.height\"\n * [state]=\"ready ? 'ready' : 'blocked'\" label=\"Sign Here\" blockedLabel=\"Add signature above\"\n * ariaLabel=\"Click to sign here\" [image]=\"f.signatureImage\" (activate)=\"apply(f)\" />\n * </div>\n *\n * `state=\"ready\"` is a clickable button (`label`), `\"blocked\"` the same button disabled (`blockedLabel`, e.g. \"create your signature first\"),\n * and `\"signed\"` shows the applied `image` (a signature data URL) contained inside the box instead (signed without an image is a disabled button showing `label`). The box size comes from the document\n * so the text is scaled to it (height x 0.25, clamped to 7-11px); on touch devices the tap area is extended to at least 44px tall.\n *\n * Inside an ancestor scaled with CSS `transform: scale(s)` (e.g. a PDF page shrunk to fit a phone), pass that factor as `scale` so the tap area\n * stays at least 44 CSS px on screen (the area is made 44 / s px tall before the ancestor shrinks it). Default 1; values <= 0, NaN or\n * non-finite count as 1. Only the touch tap area changes, not the look, font size or accessibility.\n *\n * <div [style.transform]=\"'scale(' + s + ')'\" style=\"transform-origin: top left\">\n * <ui-pdf-hotspot ... [scale]=\"s\" /> <!-- s = 0.5 -> tap area at least 88px tall before scaling = 44px on screen -->\n * </div>\n */\n@Component({\n selector: 'ui-pdf-hotspot',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[style.left.px]': 'x()',\n '[style.top.px]': 'y()',\n '[style.width.px]': 'width()',\n '[style.height.px]': 'height()',\n '[attr.data-state]': 'state()',\n '[style.--ph-scale]': '_scaleVar()',\n },\n template: `\n @if (state() === 'signed' && image()) {\n <img class=\"ph-image\" [src]=\"image()\" [alt]=\"imageAlt()\" />\n } @else {\n <button\n type=\"button\"\n class=\"ph-button\"\n [class.ph-ready]=\"state() === 'ready'\"\n [class.ph-warning]=\"tone() === 'warning'\"\n [disabled]=\"state() !== 'ready'\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [style.font-size.px]=\"fontSize()\"\n (click)=\"activate.emit()\"><span class=\"ph-text\">{{ state() === 'blocked' ? blockedLabel() : label() }}</span></button>\n }\n `,\n styles: [`\n :host { position: absolute; display: block; box-sizing: border-box; }\n .ph-image { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left; }\n .ph-button {\n position: relative; box-sizing: border-box; width: 100%; height: 100%; white-space: nowrap;\n font: inherit; font-weight: 500; line-height: 1;\n border: 2px solid #d1d5db; background: #f3f4f6; color: #9ca3af; cursor: not-allowed;\n box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);\n transition: background-color 0.15s, border-color 0.15s;\n }\n /* The label clips here (not on the button) so the ::after tap area below is not clipped. */\n .ph-text { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.2; }\n .ph-button.ph-ready { border-color: #2563eb; background: #dbeafe; color: #1d4ed8; cursor: pointer; }\n .ph-button.ph-ready:hover { background: #bfdbfe; }\n .ph-button.ph-ready.ph-warning { border-color: #f59e0b; background: #fffbeb; color: #b45309; }\n .ph-button.ph-ready.ph-warning:hover { background: #fef3c7; }\n .ph-button:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }\n /* A field is only as tall as the document says (often ~12px on a phone): extend the tap area, not the look. */\n @media (pointer: coarse) {\n .ph-button::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 100%; min-height: calc(44px / var(--ph-scale, 1)); transform: translateY(-50%); }\n }\n `],\n})\nexport class PdfHotspotComponent {\n protected readonly labels = inject(UiLabelsService);\n /** Position and size in pixels, from the page's top-left corner. */\n readonly x = input(0);\n readonly y = input(0);\n readonly width = input(0);\n readonly height = input(0);\n /** `ready`: clickable; `blocked`: disabled (a prerequisite is missing); `signed`: shows `image`. */\n readonly state = input<'ready' | 'blocked' | 'signed'>('ready');\n /** `warning` gives the ready state an amber look (e.g. for initials), default is blue. */\n readonly tone = input<'primary' | 'warning'>('primary');\n /** Text of the ready button (e.g. \"Sign Here\"). */\n readonly labelInput = input<string | null>(null, { alias: 'label' });\n readonly label = computed(() => this.labelInput() ?? this.labels.t('pdfHotspot.label'));\n /** Text of the blocked button (e.g. \"Add signature above\"). */\n readonly blockedLabel = input('');\n /** Accessible name of the button (its text is used when empty). */\n readonly ariaLabel = input('');\n /** The applied signature (data URL), shown when `state` is `signed`. */\n readonly image = input<string | null>(null);\n readonly imageAltInput = input<string | null>(null, { alias: 'imageAlt' });\n readonly imageAlt = computed(() => this.imageAltInput() ?? this.labels.t('pdfHotspot.imageAlt'));\n\n /** The CSS scale factor an ancestor applies (`transform: scale(s)`); keeps the touch tap area at least 44px on screen. Invalid values count as 1. */\n readonly scale = input(1);\n\n /** The ready button was clicked. */\n readonly activate = output<void>();\n\n /** `--ph-scale` value, or null (no property at all) for scale 1 and invalid values. */\n protected readonly _scaleVar = computed((): string | null => {\n const s = this.scale();\n return typeof s === 'number' && Number.isFinite(s) && s > 0 && s !== 1 ? String(s) : null;\n });\n\n protected readonly fontSize = computed(() => Math.min(11, Math.max(7, this.height() * 0.25)));\n}\n","import { ChangeDetectionStrategy, Component, effect, input, model, computed, inject } from '@angular/core';\nimport { ButtonComponent } from '@forgeroute/ui/core';\nimport { GalleryImage, ImageGalleryComponent } from '../image-gallery/image-gallery.component';\nimport { ModalComponent } from '@forgeroute/ui/core';\nimport { UiLabelsService } from '@forgeroute/ui/core';\n\n/**\n * A lightbox: a `ui-modal` that shows a `ui-image-gallery` with a Close button in the footer.\n *\n * <ui-image-gallery-dialog [(open)]=\"galleryOpen\" [images]=\"images\" title=\"Photos of the urn\" galleryLabel=\"Urn photos\"\n * dialogTestId=\"gallery-dialog\" closeTestId=\"gallery-close\" />\n *\n * - `open` (two-way): shown while true. Escape, a click on the backdrop and the footer Close button set it to false (the header X is\n * hidden, the footer button replaces it). Focus returns to the element that opened the dialog (modal behaviour).\n * - `images` (`GalleryImage[]`), `index` (two-way): the shown picture; it resets to 0 every time the dialog opens.\n * - `title`, `dialogTestId` (on the dialog element), `closeLabel` (default \"Close\"), `closeTestId` (on the Close button), `maxWidth`\n * (default `56rem`), `galleryLabel` (accessible name of the gallery group, default \"Image gallery\").\n * - The gallery has `autofocus` on: the dialog opens with focus on \"Next image\" so the arrow keys work at once (touch screens focus the dialog itself).\n * - The gallery is only created while the dialog is open, so closed dialogs load no pictures.\n */\n@Component({\n selector: 'ui-image-gallery-dialog',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [ModalComponent, ImageGalleryComponent, ButtonComponent],\n template: `\n <ui-modal [open]=\"open()\" [title]=\"title()\" [maxWidth]=\"maxWidth()\" [dialogTestId]=\"dialogTestId()\" [hideClose]=\"true\" (close)=\"open.set(false)\">\n @if (open()) {\n <ui-image-gallery [images]=\"images()\" [(index)]=\"index\" [ariaLabel]=\"galleryLabel()\" [autofocus]=\"true\" />\n }\n <ui-button modal-footer-right variant=\"secondary\" size=\"sm\" [attr.data-testid]=\"closeTestId() || null\" (click)=\"open.set(false)\">{{ closeLabel() }}</ui-button>\n </ui-modal>\n `,\n})\nexport class ImageGalleryDialogComponent {\n protected readonly labels = inject(UiLabelsService);\n /** Two-way: whether the dialog is shown. */\n readonly open = model(false);\n readonly images = input<GalleryImage[]>([]);\n /** Two-way: the shown picture. Reset to 0 whenever the dialog opens. */\n readonly index = model(0);\n readonly title = input('');\n /** `data-testid` of the dialog element. */\n readonly dialogTestId = input('');\n /** Text of the footer Close button. */\n readonly closeLabelInput = input<string | null>(null, { alias: 'closeLabel' });\n readonly closeLabel = computed(() => this.closeLabelInput() ?? this.labels.t('imageGalleryDialog.closeLabel'));\n /** `data-testid` of the footer Close button (on the `ui-button` host); none when empty. */\n readonly closeTestId = input('');\n /** Max width of the dialog (any CSS length). */\n readonly maxWidth = input('56rem');\n /** Accessible name of the gallery group. */\n readonly galleryLabelInput = input<string | null>(null, { alias: 'galleryLabel' });\n readonly galleryLabel = computed(() => this.galleryLabelInput() ?? this.labels.t('imageGalleryDialog.galleryLabel'));\n\n constructor() {\n effect(() => { if (this.open()) this.index.set(0); });\n }\n}\n"],"mappings":";;;;;;;AAkCA,IAAa,uBAAb,MAAa,qBAAoB;CAa/B,cAAA;EAZmB,KAAA,SAAS,OAAO,eAAe;EAEzC,KAAA,MAAM,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,MAAA,CAAA,+BAAA,CAAA,CAAA;EAEf,KAAA,YAAY,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;EAErB,KAAA,UAAU,MAAoC,YAAW,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;EAEzD,KAAA,gBAAgB,OAAM;EAEZ,KAAA,SAAS,OAAO,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;EAIvC,aAAY;GAAG,KAAK,IAAG;GAAI,KAAK,OAAO,IAAI,KAAK;EAAG,CAAC;CACtD;CAEU,UAAO;EAEf,IAAI,CAAC,KAAK,IAAG,GAAI;EACjB,KAAK,OAAO,IAAI,IA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AA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;GAAA;GAAA,SAAA;IAAA,MAAA;IAAA,OAAA;GAAA;GAAA,UAAA;GAAA,UAT5B;;;;;;;;GAOT,UAAA;GAAA,cAAA;IAAA;KAAA,MAAA;KAAA,MARS;KAAc,UAAA;KAAA,QAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;KAAA;KAAA,SAAA,CAAA,OAAA;IAAA;IAAA;KAAA,MAAA;KAAA,MAAE;KAAqB,UAAA;KAAA,QAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;KAAA;KAAA,SAAA,CAAA,aAAA;IAAA;IAAA;KAAA,MAAA;KAAA,MAAE;KAAe,UAAA;KAAA,QAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;KAAA;IAAA;GAAA;GAAA,iBAAA,GAAA,wBAAA;EAAA,CAAA;CAAA;;AAUrD,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAA2B,YAAA,CAAA;EAdvC,MAAA;EAAU,MAAA,CAAA;GACT,UAAU;GACV,YAAY;GACZ,iBAAiB,wBAAwB;GACzC,SAAS;IAAC;IAAgB;IAAuB;GAAe;GAChE,UAAU;;;;;;;;EAQX,CAAA"}
|
|
@@ -4,8 +4,27 @@ import * as i1 from "@angular/forms";
|
|
|
4
4
|
import { FormsModule } from "@angular/forms";
|
|
5
5
|
import { HttpClient, HttpErrorResponse } from "@angular/common/http";
|
|
6
6
|
import { takeUntilDestroyed, toObservable } from "@angular/core/rxjs-interop";
|
|
7
|
-
import {
|
|
7
|
+
import { ButtonComponent, FORGEROUTE_CONFIG, SidePanelComponent, ToastService, UI_DEFAULT_LABELS, UiFieldValidity, UiLabelsService, createFieldReveal, getErrorMessage, requiredIssue, safeLocale, uiLocale, uiText } from "@forgeroute/ui/core";
|
|
8
|
+
import { ErrorComponent } from "@forgeroute/ui/error";
|
|
8
9
|
import { Subject, catchError, debounceTime, defer, distinctUntilChanged, map, of, switchMap, take, throwError } from "rxjs";
|
|
10
|
+
import { ComboboxComponent } from "@forgeroute/ui/combobox";
|
|
11
|
+
import { ToggleBadgeComponent } from "@forgeroute/ui/toggle-badge";
|
|
12
|
+
import { ContactPickerComponent } from "@forgeroute/ui/contact-picker";
|
|
13
|
+
import { AlertComponent } from "@forgeroute/ui/alert";
|
|
14
|
+
import { BadgeComponent } from "@forgeroute/ui/badge";
|
|
15
|
+
import { HintComponent } from "@forgeroute/ui/hint";
|
|
16
|
+
import { formatAttachmentSize } from "@forgeroute/ui/file-input";
|
|
17
|
+
import { CheckboxComponent } from "@forgeroute/ui/checkbox";
|
|
18
|
+
import { PillTabsComponent } from "@forgeroute/ui/pill-tabs";
|
|
19
|
+
import { TextInputComponent } from "@forgeroute/ui/text-input";
|
|
20
|
+
import { TextareaInputComponent } from "@forgeroute/ui/textarea-input";
|
|
21
|
+
import { DatetimeInputComponent } from "@forgeroute/ui/datetime-input";
|
|
22
|
+
import { FormSectionComponent } from "@forgeroute/ui/form-section";
|
|
23
|
+
import { ChipComponent } from "@forgeroute/ui/chip";
|
|
24
|
+
import { SelectComponent } from "@forgeroute/ui/select";
|
|
25
|
+
import { FormRowComponent } from "@forgeroute/ui/form-row";
|
|
26
|
+
import { RadioGroupComponent } from "@forgeroute/ui/radio";
|
|
27
|
+
import { RichTextEditorComponent } from "@forgeroute/ui/editor";
|
|
9
28
|
let nextVideoPickerId = 0;
|
|
10
29
|
var VideoPickerComponent = class VideoPickerComponent {
|
|
11
30
|
optionId(i) {
|