@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-text-input.mjs","names":[],"sources":["../../../projects/forgeroute-ui/text-input/src/lib/text-input/text-input.component.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, ElementRef, input, output, signal, computed, effect, forwardRef, isDevMode, viewChild, inject } from '@angular/core';\nimport { AbstractControl, ControlValueAccessor, NG_VALIDATORS, NG_VALUE_ACCESSOR, ValidationErrors, Validator } from '@angular/forms';\nimport { DEFAULT_PASSWORD_RULES, PasswordRequirementsComponent, PasswordRule } from '@forgeroute/ui/password-requirements';\nimport { iconPath } from '@forgeroute/ui/icon';\nimport { FieldIssue, UiFieldValidity, createFieldReveal, mergeDescribedBy, issueToErrors, maxLengthIssue, requiredIssue } from '@forgeroute/ui/core';\nimport { UiLabelsService, uiText } from '@forgeroute/ui/core';\n\n@Component({\n selector: 'ui-text-input',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [PasswordRequirementsComponent],\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => TextInputComponent),\n multi: true,\n }, {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => TextInputComponent),\n multi: true,\n }, {\n provide: UiFieldValidity,\n useExisting: forwardRef(() => TextInputComponent),\n }],\n template: `\n <div class=\"ti-field\" [class.ti-error]=\"_activeError()\" [class.ti-disabled]=\"disabled()\"\n [class.ti-prefixed]=\"!!prefix() || _revealable() || !!_leadingD()\" [style.--ti-input-row]=\"(prefix() || _revealable() || _leadingD()) ? (label() ? 2 : 1) : null\">\n @if (label()) {\n <div class=\"ti-label-row\">\n <label class=\"ti-label\" [for]=\"_inputId\">\n {{ label() }}\n @if (required()) { <span class=\"ti-required\" aria-hidden=\"true\">*</span> }\n </label>\n <ng-content select=\"[uiLabelEnd]\" />\n </div>\n }\n <input\n #field\n class=\"ti-input\"\n [style.padding-left]=\"_prefixPadding()\"\n [style.padding-right]=\"_revealable() ? '44px' : null\"\n [id]=\"_inputId\"\n [attr.data-testid]=\"inputTestId() || null\"\n [attr.name]=\"inputName() || null\"\n [type]=\"_inputType()\"\n [attr.inputmode]=\"inputmode() || (type() === 'tel' ? 'tel' : integer() ? 'numeric' : null)\"\n [placeholder]=\"placeholder()\"\n [value]=\"_value()\"\n [disabled]=\"disabled()\"\n [readOnly]=\"readonly()\"\n [attr.maxlength]=\"maxlength() ?? null\"\n [attr.step]=\"_stepAttr()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.required]=\"required() || null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-invalid]=\"_activeError() || ariaInvalid() ? 'true' : null\"\n [attr.aria-describedby]=\"_describedBy()\"\n (input)=\"onInput($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n />\n @if (_leadingD(); as d) {\n <!-- Optional leading icon (library source 2026-11-04): decorative, laid over the input's left padding by the same grid as the prefix. -->\n <svg class=\"ti-leading-icon\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path [attr.d]=\"d\" /></svg>\n }\n @if (prefix()) {\n <!-- Optional leading mark (\"$\"): a sibling after the input, laid over it by the grid of .ti-prefixed, so toggling it never recreates the input (focus and caret stay). -->\n <span class=\"ti-prefix\" aria-hidden=\"true\" [style.margin-left]=\"_leadingD() ? '36px' : null\">{{ prefix() }}</span>\n }\n @if (_revealable()) {\n <!-- Show / hide toggle laid over the end of the input by the grid of .ti-prefixed. The name stays \"Show password\"; aria-pressed carries the state. -->\n <button type=\"button\" class=\"ti-reveal\" data-testid=\"ti-reveal\" [attr.aria-label]=\"labels.t('textInput.showPassword')\"\n [attr.aria-pressed]=\"_shown()\" [attr.aria-controls]=\"_inputId\" [disabled]=\"disabled()\" (click)=\"_shown.set(!_shown())\">\n <svg viewBox=\"0 0 24 24\" width=\"18\" height=\"18\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\">\n <path [attr.d]=\"_shown() ? _eyeOffPath : _eyePath\" />\n </svg>\n </button>\n }\n @if (_showRequirements()) {\n <ui-password-requirements [attr.id]=\"_inputId + '-req'\" [value]=\"_value()\" [rules]=\"passwordRules() ?? _defaultRules\" />\n }\n @if (_activeError()) {\n <p class=\"ti-desc ti-desc-error\" [id]=\"_inputId + '-desc'\" role=\"alert\">{{ _activeError() }}</p>\n } @else if (hint()) {\n <p class=\"ti-desc\" [id]=\"_inputId + '-desc'\">{{ hint() }}</p>\n }\n </div>\n `,\n styles: [`\n :host { display: block; }\n\n .ti-field { display: flex; flex-direction: column; gap: 6px; }\n\n /* Label line: the label, plus an optional host element marked uiLabelEnd pushed to the far end (e.g. a \"Forgot password?\" link). */\n .ti-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }\n\n .ti-label {\n font-size: 0.8125rem; font-weight: 600; color: #374151; line-height: 1;\n }\n .ti-required { color: #dc2626; margin-left: 2px; }\n\n /* With a prefix the field becomes a one-column grid: the input and the mark share the input's row (--ti-input-row), the mark centred over the input's left padding. */\n .ti-prefixed { display: grid; grid-template-columns: minmax(0, 1fr); }\n .ti-prefixed .ti-input { grid-row: var(--ti-input-row); grid-column: 1; }\n .ti-prefix {\n grid-row: var(--ti-input-row); grid-column: 1; justify-self: start; align-self: center; margin-left: 12px;\n font-size: 0.875rem; line-height: 1; color: #64748b; pointer-events: none;\n }\n @media (pointer: coarse), (max-width: 480px) { .ti-prefix { font-size: 1rem; } }\n .ti-disabled .ti-prefix { opacity: 0.5; }\n /* Leading icon (leadingIcon): same grid cell as the prefix, 12px from the left, never takes clicks (the input gets them). */\n .ti-leading-icon {\n grid-row: var(--ti-input-row); grid-column: 1; justify-self: start; align-self: center; margin-left: 12px;\n color: #64748b; pointer-events: none;\n }\n .ti-disabled .ti-leading-icon { opacity: 0.5; }\n .ti-reveal {\n grid-row: var(--ti-input-row); grid-column: 1; justify-self: end; align-self: center; margin-right: 6px;\n position: relative; display: inline-flex; align-items: center; justify-content: center;\n width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: transparent;\n color: #64748b; cursor: pointer;\n &:hover:not(:disabled) { color: #1e293b; background: #f1f5f9; }\n &:focus-visible { outline: 2px solid #3b82f6; outline-offset: 0; }\n &:disabled { opacity: 0.5; cursor: not-allowed; }\n /* touch devices / phones: the button is the full 44px height of the input */\n @media (pointer: coarse), (max-width: 480px) { width: 44px; height: 44px; margin-right: 0; }\n }\n\n .ti-input {\n width: 100%; box-sizing: border-box;\n padding: 9px 12px; font-size: 0.875rem; font-family: inherit;\n color: #1e293b; background: #fff;\n border: 1px solid #7c8ba1; border-radius: 8px;\n outline: none; transition: border-color 0.15s, box-shadow 0.15s;\n &::placeholder { color: #64748b; opacity: 1; }\n &:focus {\n border-color: #3b82f6;\n box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);\n }\n &:read-only { background: #f8fafc; cursor: default; }\n }\n\n .ti-error .ti-input {\n border-color: #ef4444;\n &:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12); }\n }\n\n .ti-disabled .ti-input { opacity: 0.5; cursor: not-allowed; }\n\n .ti-desc { margin: 0; font-size: 0.75rem; line-height: 1.4; color: #64748b; }\n .ti-desc-error { color: #dc2626; }\n\n @media (pointer: coarse), (max-width: 480px) { .ti-input { font-size: 1rem; } }\n @media (pointer: coarse), (max-width: 480px) { .ti-input { min-height: 44px; } }\n `],\n})\n/**\n * Text field. Works with `[(ngModel)]` and reactive forms (ControlValueAccessor).\n *\n * Built-in validation (all derived from the inputs below, no host code):\n * - `required` -> \"<label> is required.\" (or \"This field is required.\") when empty.\n * - `maxlength` -> \"Too long (max N characters).\" when the trimmed value is longer (typing is still capped natively,\n * but a value pasted or set programmatically from a loaded record is flagged).\n * - `type=\"email\"` -> \"Please enter a valid email address.\"\n * - `type=\"tel\"` -> formats as a US phone number (like `phoneFormat`) and requires 10 digits (optional leading 1);\n * a value starting with \"+\" is treated as international (8-15 digits). \"Please enter a valid phone number.\"\n * `phoneFormat` on its own (any other type) only formats, it does not validate.\n * - `type=\"number\"` with `min` / `max` / `maxDecimals` -> \"Must be at least X\" / \"Must be at most X\" /\n * \"Use at most N decimal places\"; text that is not a number -> \"Please enter a valid number.\"\n * An EMPTY `type=\"number\"` field with `required` is invalid with \"<label> is required.\" (`invalid()`, `errorMessage()`, the control's `required` error)\n * in both value modes and shows the message only after the user left the field (`showErrors` reveals it at once on an untouched field); the model value for an empty field is untouched by it (string mode '',\n * `valueType=\"number\"` null, a never-edited model keeps what the host wrote). 0 counts as a value.\n * `step` (`type=\"number\"` only) sets how far the spinner arrows / Up / Down keys move the value (`[step]=\"0.01\"` for money);\n * unset = the browser's default of 1. It does not restrict typing.\n * Empty values are valid unless `required`. Disabled / readonly fields are never invalid.\n *\n * Numeric value (opt-in): by default the control value is always the typed STRING, even for `type=\"number\"`.\n * Pass `valueType=\"number\"` together with `type=\"number\"` and the control value (ngModel / FormControl / what is emitted)\n * is `number | null` instead: a valid number -> a JS number ('200' -> 200, '1.5' -> 1.5, '-3' -> -3, '007' -> 7,\n * '1e3' -> 1000), empty -> `null`, text that is not a number -> `null` while the field shows \"Please enter a valid number.\".\n * The number is the parsed value even when it breaks min / max / maxDecimals (the control is then invalid; the host\n * still sees what was typed). `required` is satisfied by 0. `writeValue` accepts a number (shown as its decimal string),\n * null / undefined / NaN (shown empty) or a numeric string. `valueType=\"number\"` with any other `type` logs one dev-mode\n * warning and behaves as `valueType=\"string\"`.\n * Example: `<ui-text-input type=\"number\" valueType=\"number\" label=\"Rate\" [min]=\"0\" [(ngModel)]=\"rate\" />` (`rate: number | null`).\n *\n * Label line extras: project any element with the `uiLabelEnd` attribute to show it at the far end of the label line, e.g.\n * `<ui-text-input label=\"Password\"><a uiLabelEnd href=\"/forgot-password\">Forgot password?</a></ui-text-input>`. Shown only for a field that has a `label`.\n *\n * Validity API (same on every ui input):\n * - The component is an Angular `Validator`, so `ngModel` / `FormControl` report `.invalid` / `.errors`\n * (keys: required, maxlength, email, phone, number, min, max, decimals).\n * - Signals `invalid` and `errorMessage` plus the `invalidChange` output; the token `UiFieldValidity` lets a host collect\n * them with `viewChildren(UiFieldValidity)`.\n * - Messages (built-in and a host `[error]`) are only displayed after the user left THIS field (blur); `[showErrors]=\"true\"` also reveals it on an untouched field.\n * Setting `showErrors` back to false also clears the touched state. A host-provided `[error]` always wins.\n */\nexport class TextInputComponent implements ControlValueAccessor, Validator, UiFieldValidity {\n protected readonly labels = inject(UiLabelsService);\n readonly label = input('');\n /** Accessible name for a field with no visible label (e.g. an inline cell or title input). */\n readonly ariaLabel = input('');\n /**\n * `data-testid` placed on the inner `<input>` (the host `<ui-text-input>` keeps its own attributes). Lets e2e tests `fill()` / `blur()` the\n * field directly instead of `getByTestId('x').locator('input')`. Pass a different id than the host's, e.g. host `data-testid=\"email\"`\n * and `inputTestId=\"email-input\"`. Omitted = no attribute.\n */\n readonly inputTestId = input('');\n /** Native `name` attribute placed on the inner `<input>` (e2e `[name=x]` selectors, browser autofill). None when empty. */\n readonly inputName = input('');\n readonly placeholder = input('');\n /**\n * An optional leading mark shown inside the field, left of the text (e.g. `prefix=\"$\"` for a dollar amount). Hidden unless set; it is\n * decoration only (not part of the value, not read by screen readers), so say the unit in the label too when it matters (\"Amount (USD)\").\n * Meant for a short mark of 1-3 characters.\n */\n readonly prefix = input('');\n /**\n * Library source 2026-11-04, not yet published. An optional icon at the left inside the field: a `<ui-icon>` key, e.g. `leadingIcon=\"search\"` for a search field.\n * Decorative (`aria-hidden`, no pointer events, not part of the value), so give the field a `label` or `ariaLabel`. The input's left padding grows to\n * make room (36px; with a `prefix` the mark moves right of the icon). An unknown key or empty (default) draws nothing and changes nothing.\n */\n readonly leadingIcon = input('');\n /**\n * `type=\"password\"` only: puts an eye button inside the field, at its right end, that shows / hides the typed text (the eye with a slash\n * means \"hidden again\"). Per field, starts hidden; the button is a toggle (`aria-pressed`) named \"Show password\". Ignored for other types.\n */\n readonly revealable = input(false);\n /**\n * `type=\"password\"` only: shows the password requirements checklist under the field (`ui-password-requirements`) once the user has typed\n * (it hides again when the host clears the field, e.g. after a successful change). Each rule turns green with a check when satisfied. Off by default; ignored for other types.\n */\n readonly passwordRequirements = input(false);\n /** Rules for `passwordRequirements`; default = the library's five rules (8+ characters, upper, lower, digit, special). */\n readonly passwordRules = input<readonly PasswordRule[] | undefined>(undefined);\n readonly type = input<'text' | 'email' | 'password' | 'tel' | 'url' | 'number'>('text');\n readonly maxlength = input<number | undefined>(undefined);\n readonly required = input(false);\n readonly autocomplete = input('off');\n /**\n * Which on-screen keyboard a phone shows (`numeric` = digits only, e.g. ZIP / area code; `decimal`, `tel`, `email`, `url`,\n * `search`, `text`, `none`). Empty (default) = the browser's default for the field, except `type=\"tel\"`, which keeps `tel`.\n * It only picks the keyboard; it does not restrict what can be typed or pasted.\n */\n readonly inputmode = input<'' | 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url'>('');\n readonly readonly = input(false);\n readonly hint = input('');\n /** Id(s) of an external element that also describes this control (e.g. one shared error text for a group of fields). Space separated; MERGED after the control's own hint / error id in `aria-describedby`, never replacing it. Empty = unchanged. */\n readonly ariaDescribedBy = input('');\n /** Marks the control `aria-invalid` although no message is shown in the field itself (the host shows its error elsewhere, e.g. one alert for a group of fields; point `ariaDescribedBy` at it). Default false = unchanged. */\n readonly ariaInvalid = input(false);\n readonly error = input('');\n /** When true, automatically formats the value as a US phone number as the user types. */\n readonly phoneFormat = input(false);\n /** `type=\"number\"` only: smallest allowed value. */\n readonly min = input<number | undefined>(undefined);\n /** `type=\"number\"` only: largest allowed value. */\n readonly max = input<number | undefined>(undefined);\n /** `type=\"number\"` only: most digits allowed after the decimal point. */\n readonly maxDecimals = input<number | undefined>(undefined);\n /**\n * `type=\"number\"` only: how much the browser's spinner arrows and the Up / Down keys change the value (e.g. `0.01` for money).\n * Leave it unset for the browser's default step of 1. A value that is not a number above 0 is ignored (also the default step).\n * It only picks the increment; it does not restrict what can be typed (use `maxDecimals` for that).\n */\n readonly step = input<number | undefined>(undefined);\n /**\n * What the control value is. `'string'` (default) = the typed text. `'number'` = `number | null`; requires `type=\"number\"`\n * (otherwise a dev-mode warning is logged once and string behaviour is used).\n */\n readonly valueType = input<'string' | 'number'>('string');\n /**\n * Optional text filter/mask applied to every typed or pasted value: `(raw) => cleaned`, e.g. `v => v.replace(/\\D/g, '').slice(0, 9)`.\n * The result is what the box shows and what the model gets (the caret moves to the end when the text was changed). Unset (default)\n * = the typed text is used as is. Not applied to values the host writes (`writeValue`), and for `type=\"tel\"` / `phoneFormat` the\n * phone formatting runs first and the formatter then sees its result.\n */\n readonly formatter = input<((raw: string) => string) | undefined>(undefined);\n /**\n * Whole numbers only (default off). Every typed or pasted value is cut at its first `.`, `e` or `E` (`2.7` -> `2`, `1e1` -> `1`, `12` stays),\n * the same filter as cremo's `wholeNumber`. It runs after the phone formatting and before a host `formatter`. It also picks the numeric\n * on-screen keyboard (`inputmode=\"numeric\"`), the native `step` 1 and `maxDecimals` 0 for `type=\"number\"` - each only while the host has not\n * set `inputmode` / `step` / `maxDecimals` itself. Values the host writes (`writeValue`) are shown as they are (a decimal there still fails\n * the 0-decimals rule).\n */\n readonly integer = input(false);\n /** The host's \"tried to submit\" flag (e.g. after a failed Save click). `true` reveals the message of an untouched field at once (the field also shows it after the user left THIS field); switching it from true back to false forgets that the field was left. */\n readonly showErrors = input(false);\n\n /** Emits the new value when the USER changes it (typing, paste, autofill) - the same value the form control receives. Not emitted for values the host writes. */\n readonly valueChange = output<string | number | null>();\n readonly focused = output<void>();\n readonly blurred = output<void>();\n /** Emits whenever the field becomes invalid / valid. */\n readonly invalidChange = output<boolean>();\n\n /**\n * The `[disabled]` input. Public on purpose: a `protected` input makes `[disabled]=\"x\"` in a host template fail strict template\n * type-checking (TS2445: Angular checks the field the alias points at). The field is disabled when this OR the form control\n * (`setDisabledState`, e.g. `FormControl.disable()`) says so.\n */\n readonly _disabledInput = input(false, { alias: 'disabled' });\n private readonly _cvaDisabled = signal(false);\n protected readonly disabled = computed(() => this._disabledInput() || this._cvaDisabled());\n\n protected readonly _value = signal('');\n private readonly _reveal = createFieldReveal(this.showErrors);\n /** Path of the leading icon, or null when `leadingIcon` is empty or not a known icon key. */\n protected readonly _leadingD = computed((): string | null => {\n const key = this.leadingIcon().trim();\n return key ? iconPath(key) ?? null : null;\n });\n /**\n * Left padding that makes room for the prefix (its width in `ch` plus the field's own 12px and a 6px gap) and/or the leading icon (a 16px icon\n * plus an 8px gap, so 36px from the edge); none without either.\n */\n protected readonly _prefixPadding = computed(() => {\n const icon = !!this._leadingD();\n if (this.prefix()) return icon ? `calc(36px + ${this.prefix().length}ch + 6px)` : `calc(12px + ${this.prefix().length}ch + 6px)`;\n return icon ? '36px' : null;\n });\n private readonly _fieldEl = viewChild<ElementRef<HTMLInputElement>>('field');\n /** True when the control value is a number: `valueType=\"number\"` on a `type=\"number\"` field. */\n private readonly _numeric = computed(() => this.valueType() === 'number' && this.type() === 'number');\n /** The native `step` attribute: only for `type=\"number\"` and only for a finite number above 0; otherwise none (the browser's step of 1). */\n protected readonly _stepAttr = computed(() => {\n const step = this.step();\n if (this.type() === 'number' && typeof step === 'number' && Number.isFinite(step) && step > 0) return String(step);\n return this.type() === 'number' && this.integer() ? '1' : null;\n });\n protected readonly _revealable = computed(() => this.revealable() && this.type() === 'password');\n protected readonly _shown = signal(false);\n protected readonly _inputType = computed(() => this._revealable() && this._shown() ? 'text' : this.type());\n protected readonly _eyePath = iconPath('view')!;\n protected readonly _eyeOffPath = iconPath('view-off')!;\n protected readonly _showRequirements = computed(() => this.passwordRequirements() && this.type() === 'password' && this._typed());\n /** `aria-describedby`: the error / hint text and, while the requirements checklist is shown, the checklist (so a screen reader reads the rules with the field). */\n protected readonly _describedBy = computed(() => {\n const ids = [(this._activeError() || this.hint()) ? this._inputId + '-desc' : '', this._showRequirements() ? this._inputId + '-req' : ''].filter(Boolean);\n return mergeDescribedBy(ids.join(' '), this.ariaDescribedBy());\n });\n /** True once the user typed in the field; a host-written empty value (a form reset) puts it back to false. */\n private readonly _typed = signal(false);\n protected readonly _defaultRules = DEFAULT_PASSWORD_RULES;\n private _warned = false;\n private readonly _formatting = computed(() => this.phoneFormat() || this.type() === 'tel');\n /** A host-written phone text that formatting cut short (13 digits -> 10): validity is judged on what the host wrote, so the message matches the control's `phone` error. Cleared by typing. */\n private readonly _hostText = signal<string | null>(null);\n private readonly _issue = computed(() => this._check(this._hostText() ?? this._value()));\n /** True while the value breaks a built-in rule or the host passed an `[error]`. */\n readonly invalid = computed(() => !!this.error() || !!this._issue());\n /** Message of the first broken built-in rule ('' when valid), shown or not. */\n readonly errorMessage = computed(() => this._issue()?.message ?? '');\n protected readonly _activeError = computed(() => this._reveal.revealed() ? (this.error() || this.errorMessage()) : '');\n protected readonly _inputId = `ti-${Math.random().toString(36).slice(2, 8)}`;\n\n private static readonly _EMAIL_RE = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n\n /**\n * Library source 2026-11-04, not yet published. Puts the keyboard focus on the inner `<input>` (e.g. after a panel opens or a search is cleared):\n * `fieldRef.focus()` via `viewChild(TextInputComponent)`. Same options as the DOM method (`{ preventScroll: true }`). Safe at any time: before the\n * view exists, or on a disabled field, it does nothing and never throws.\n */\n focus(options?: FocusOptions): void {\n this._fieldEl()?.nativeElement.focus(options);\n }\n\n /**\n * Library source 2026-11-05, not yet published. Caret access for hosts (e.g. an \"insert variable at the cursor\" chip row), so a host never\n * queries the inner element. Reach it with `viewChild(TextInputComponent)`. All three methods are safe at any time: before the view exists, on a\n * disabled / read-only field, or for a type that has no selection API (email, number) they do nothing / return null and never throw.\n *\n * `getSelection()` -> `{ start, end }` of the selected text (equal when only a caret) or `null` when it cannot be read.\n */\n getSelection(): { start: number; end: number } | null {\n const el = this._fieldEl()?.nativeElement;\n if (!el) return null;\n try {\n if (el.selectionStart === null || el.selectionEnd === null) return null;\n return { start: el.selectionStart, end: el.selectionEnd };\n } catch { return null; }\n }\n\n /** Selects `start`..`end` (a caret when `end` is left out); values are clamped to the text. Does nothing where the selection API is unavailable. */\n setSelection(start: number, end: number = start): void {\n const el = this._fieldEl()?.nativeElement;\n if (!el) return;\n const max = el.value.length;\n const from = Math.min(Math.max(0, start), max);\n const to = Math.min(Math.max(from, end), max);\n try { el.setSelectionRange(from, to); } catch { /* type without a selection */ }\n }\n\n /**\n * Inserts `text` at the caret, replacing any selected text, and puts the caret right after it. The change goes through the normal typing path\n * (formatting, `ngModel` / form control, `valueChange`), exactly as if the user had typed it, and `maxlength` caps it like typing does (the\n * part that does not fit is not inserted). With no caret known (a type without a selection API) the text is appended. Does nothing on a\n * disabled or read-only field or for an empty `text`.\n */\n insertAtCaret(text: string): void {\n const el = this._fieldEl()?.nativeElement;\n if (!el || el.disabled || el.readOnly || !text) return;\n const value = el.value;\n let from = value.length;\n let to = value.length;\n try {\n if (el.selectionStart !== null && el.selectionEnd !== null) { from = el.selectionStart; to = el.selectionEnd; }\n } catch { /* type without a selection: append */ }\n const max = this.maxlength();\n const room = max === undefined ? text.length : max - (value.length - (to - from));\n const insert = text.slice(0, Math.max(0, room));\n if (!insert) return;\n el.value = value.slice(0, from) + insert + value.slice(to);\n const caret = from + insert.length;\n try { el.setSelectionRange(caret, caret); } catch { /* type without a selection */ }\n el.dispatchEvent(new Event('input', { bubbles: true }));\n }\n\n private _onChange = (_: string | number | null) => {};\n private _onTouched = () => {};\n private _onValidatorChange = () => {};\n\n constructor() {\n effect(() => { this.invalidChange.emit(this.invalid()); });\n effect(() => {\n if (this.valueType() === 'number' && this.type() !== 'number' && !this._warned && isDevMode()) {\n this._warned = true;\n console.warn('ui-text-input: valueType=\"number\" needs type=\"number\"');\n }\n });\n }\n\n /** Re-run the form control's validation when a rule input (required, maxlength, min, options, ...) changes. */\n ngOnChanges() { this._onValidatorChange(); }\n\n writeValue(val: string | number | null | undefined) {\n const text = val == null || (typeof val === 'number' && Number.isNaN(val)) && this._numeric() ? '' : String(val);\n const shown = this._formatting() ? TextInputComponent._formatPhone(text) : text;\n this._value.set(shown);\n this._hostText.set(this._formatting() && shown !== text && this.type() === 'tel' ? text : null);\n if (text === '') this._typed.set(false);\n }\n validate(control: AbstractControl): ValidationErrors | null {\n const v = control.value;\n let text = v == null ? '' : String(v);\n if (this._numeric()) {\n // Numeric mode validates the TYPED text (the same source as the displayed message), so '1.250' with maxDecimals=2 is\n // invalid in the field AND on the control even though the control holds the number 1.25. The typed text is used only\n // while it still describes the control value (it parses to it, or both are \"not a number\"); otherwise (a value set\n // without a view update, or no text yet) the control value itself is validated.\n const typed = this._value();\n if (typed.trim() && TextInputComponent._parse(typed) === (typeof v === 'number' && Number.isFinite(v) ? v : null)) text = typed;\n }\n return issueToErrors(this._check(text));\n }\n registerOnValidatorChange(fn: () => void) { this._onValidatorChange = fn; }\n registerOnChange(fn: (v: string | number | null) => void) { this._onChange = fn; }\n registerOnTouched(fn: () => void) { this._onTouched = fn; }\n setDisabledState(d: boolean) { this._cvaDisabled.set(d); }\n\n protected onInput(event: Event) {\n this._typed.set(true);\n const input = event.target as HTMLInputElement;\n const raw = input.value;\n // where the caret was before the value is rewritten (type=\"email\" / \"number\" inputs throw on the selection API)\n let caretBefore: number | null = null;\n try { caretBefore = input.selectionStart; } catch { /* type without a selection */ }\n let val = this._formatting() ? TextInputComponent._formatPhone(raw) : raw;\n if (this.integer()) val = val.replace(/[.eE].*$/, '');\n const format = this.formatter();\n if (format) val = format(val);\n this._hostText.set(null);\n this._value.set(val);\n const emitted = this._numeric() ? TextInputComponent._parse(val) : val;\n this._onChange(emitted);\n this.valueChange.emit(emitted);\n // A host may rewrite the value while it handles the change (a mask that drops letters calls writeValue). When the model lands on the\n // text this field showed BEFORE the keystroke, the `[value]` binding sees no change and the browser would keep the typed character.\n // The box always shows the model: write it back only when the two differ, so a plain keystroke is never touched.\n const shown = this._value();\n if (input.value !== shown) {\n input.value = shown;\n // Writing the value moves the caret to the end in every browser except some mobile ones: set it explicitly where the type allows it\n // (number / email inputs throw on setSelectionRange). A phone number edited in the middle keeps the caret after the same digit\n // (the formatting inserts or removes \"(\", \")\", \" \" and \"-\"); every other rewrite puts it at the end.\n const caret = this._formatting() && !format && caretBefore !== null && caretBefore < raw.length\n ? TextInputComponent._caretAfterDigits(raw, caretBefore, shown) : shown.length;\n try { input.setSelectionRange(caret, caret); } catch { /* type without a selection */ }\n }\n }\n\n /**\n * Position in `formatted` for a caret that was at `caret` in `raw`: right after the same number of digits (the leading country-code 1 of an\n * 11-digit number is dropped by the formatting). When the character before the caret was a separator, the caret also moves over the separators\n * that follow that digit, so deleting the first digit of a group does not throw the caret back in front of \") \".\n */\n private static _caretAfterDigits(raw: string, caret: number, formatted: string): number {\n let n = (raw.slice(0, caret).match(/\\d/g) ?? []).length;\n const all = raw.replace(/\\D/g, '');\n if (!raw.startsWith('+') && all.length === 11 && all.startsWith('1')) n = Math.max(0, n - 1);\n let pos = 0;\n if (n > 0) {\n let seen = 0;\n pos = formatted.length;\n for (let i = 0; i < formatted.length; i++) {\n if (/\\d/.test(formatted[i]) && ++seen === n) { pos = i + 1; break; }\n }\n }\n if (caret > 0 && !/\\d/.test(raw[caret - 1])) while (pos < formatted.length && !/\\d/.test(formatted[pos])) pos++;\n return pos;\n }\n\n /** Typed text -> number, or null when blank / not a finite number. */\n private static _parse(text: string): number | null {\n const t = text.trim();\n if (!t) return null;\n const n = Number(t);\n return Number.isFinite(n) ? n : null;\n }\n\n protected onFocus() { this.focused.emit(); }\n protected onBlur() {\n this._onTouched();\n this.blurred.emit();\n this._reveal.touched.set(true);\n }\n\n /** First broken built-in rule for `value`, or null. */\n private _check(value: string): FieldIssue | null {\n if (this.disabled() || this.readonly()) return null;\n const text = value.trim();\n if (!text) return this.required() ? requiredIssue(this.label()) : null;\n const tooLong = maxLengthIssue(text, this.maxlength());\n if (tooLong) return tooLong;\n switch (this.type()) {\n case 'email':\n return TextInputComponent._EMAIL_RE.test(text) ? null : { key: 'email', message: uiText('validation.email') };\n case 'tel':\n return TextInputComponent._validPhone(text) ? null : { key: 'phone', message: uiText('validation.phone') };\n case 'number':\n return this._checkNumber(text);\n default:\n return null;\n }\n }\n\n private _checkNumber(text: string): FieldIssue | null {\n const n = Number(text);\n if (!Number.isFinite(n)) return { key: 'number', message: uiText('validation.number') };\n const min = this.min(), max = this.max(), decimals = this.maxDecimals() ?? (this.integer() ? 0 : undefined);\n if (min != null && n < min) return { key: 'min', message: uiText('validation.min', { min }), value: { min, actual: n } };\n if (max != null && n > max) return { key: 'max', message: uiText('validation.max', { max }), value: { max, actual: n } };\n if (decimals != null && !/e/i.test(text) && (text.split('.')[1]?.length ?? 0) > decimals) {\n return { key: 'decimals', message: uiText(decimals === 1 ? 'validation.decimals_one' : 'validation.decimals_other', { count: decimals }), value: { maxDecimals: decimals } };\n }\n return null;\n }\n\n private static _validPhone(text: string): boolean {\n const digits = text.replace(/\\D/g, '');\n if (text.startsWith('+')) return digits.length >= 8 && digits.length <= 15;\n return digits.length === 10 || (digits.length === 11 && digits.startsWith('1'));\n }\n\n static _formatPhone(raw: string): string {\n if (!raw) return '';\n if (raw.startsWith('+')) return raw; // leave international numbers alone\n const digits = raw.replace(/\\D/g, '');\n const d = digits.startsWith('1') && digits.length === 11 ? digits.slice(1) : digits.slice(0, 10);\n if (d.length <= 3) return d;\n if (d.length <= 6) return `(${d.slice(0, 3)}) ${d.slice(3)}`;\n return `(${d.slice(0, 3)}) ${d.slice(3, 6)}-${d.slice(6)}`;\n }\n}\n"],"mappings":";;;;;;AAqMA,IAAa,qBAAb,MAAa,mBAAkB;CA+JL;EAAA,KAAA,YAAY;CAA6B;CAOjE,MAAM,SAAsB;EAC1B,KAAK,SAAQ,CAAE,EAAE,cAAc,MAAM,OAAO;CAC9C;CASA,eAAY;EACV,MAAM,KAAK,KAAK,SAAQ,CAAE,EAAE;EAC5B,IAAI,CAAC,IAAI,OAAO;EAChB,IAAI;GACF,IAAI,GAAG,mBAAmB,QAAQ,GAAG,iBAAiB,MAAM,OAAO;GACnE,OAAO;IAAE,OAAO,GAAG;IAAgB,KAAK,GAAG;GAAY;EACzD,QAAQ;GAAE,OAAO;EAAM;CACzB;CAGA,aAAa,OAAe,MAAc,OAAK;EAC7C,MAAM,KAAK,KAAK,SAAQ,CAAE,EAAE;EAC5B,IAAI,CAAC,IAAI;EACT,MAAM,MAAM,GAAG,MAAM;EACrB,MAAM,OAAO,KAAK,IAAI,KAAK,IAAI,GAAG,KAAK,GAAG,GAAG;EAC7C,MAAM,KAAK,KAAK,IAAI,KAAK,IAAI,MAAM,GAAG,GAAG,GAAG;EAC5C,IAAI;GAAE,GAAG,kBAAkB,MAAM,EAAE;EAAG,QAAQ,CAAiC;CACjF;CAQA,cAAc,MAAY;EACxB,MAAM,KAAK,KAAK,SAAQ,CAAE,EAAE;EAC5B,IAAI,CAAC,MAAM,GAAG,YAAY,GAAG,YAAY,CAAC,MAAM;EAChD,MAAM,QAAQ,GAAG;EACjB,IAAI,OAAO,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@ -0,0 +1,356 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, HostListener, Injector, afterNextRender, computed, inject, input, output, signal } from "@angular/core";
|
|
3
|
+
import { UiLabelsService } from "@forgeroute/ui/core";
|
|
4
|
+
var TextTemplatePickerComponent = class TextTemplatePickerComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.labels = inject(UiLabelsService);
|
|
7
|
+
this.variables = input([], ...ngDevMode ? [{ debugName: "variables" }] : /* istanbul ignore next */ []);
|
|
8
|
+
this.labelInput = input(null, {
|
|
9
|
+
...ngDevMode ? { debugName: "labelInput" } : /* istanbul ignore next */ {},
|
|
10
|
+
alias: "label"
|
|
11
|
+
});
|
|
12
|
+
this.label = computed(() => this.labelInput() ?? this.labels.t("textTemplatePicker.label"), ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
13
|
+
this.searchPlaceholderInput = input(null, {
|
|
14
|
+
...ngDevMode ? { debugName: "searchPlaceholderInput" } : /* istanbul ignore next */ {},
|
|
15
|
+
alias: "searchPlaceholder"
|
|
16
|
+
});
|
|
17
|
+
this.searchPlaceholder = computed(() => this.searchPlaceholderInput() ?? this.labels.t("textTemplatePicker.searchPlaceholder"), ...ngDevMode ? [{ debugName: "searchPlaceholder" }] : /* istanbul ignore next */ []);
|
|
18
|
+
this.disabled = input(false, ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
|
|
19
|
+
this.picked = output();
|
|
20
|
+
this._id = `ttp-${Math.random().toString(36).slice(2, 8)}`;
|
|
21
|
+
this._open = signal(false, ...ngDevMode ? [{ debugName: "_open" }] : /* istanbul ignore next */ []);
|
|
22
|
+
this._query = signal("", ...ngDevMode ? [{ debugName: "_query" }] : /* istanbul ignore next */ []);
|
|
23
|
+
this._active = signal(0, ...ngDevMode ? [{ debugName: "_active" }] : /* istanbul ignore next */ []);
|
|
24
|
+
this._top = signal(null, ...ngDevMode ? [{ debugName: "_top" }] : /* istanbul ignore next */ []);
|
|
25
|
+
this._bottom = signal(null, ...ngDevMode ? [{ debugName: "_bottom" }] : /* istanbul ignore next */ []);
|
|
26
|
+
this._left = signal(0, ...ngDevMode ? [{ debugName: "_left" }] : /* istanbul ignore next */ []);
|
|
27
|
+
this._width = signal(320, ...ngDevMode ? [{ debugName: "_width" }] : /* istanbul ignore next */ []);
|
|
28
|
+
this._maxHeight = signal(360, ...ngDevMode ? [{ debugName: "_maxHeight" }] : /* istanbul ignore next */ []);
|
|
29
|
+
this.host = inject(ElementRef);
|
|
30
|
+
this.injector = inject(Injector);
|
|
31
|
+
this._matches = computed(() => {
|
|
32
|
+
const q = TextTemplatePickerComponent.fold(this._query().trim());
|
|
33
|
+
return q ? this.variables().filter((v) => TextTemplatePickerComponent.fold(v.label).includes(q)) : this.variables();
|
|
34
|
+
}, ...ngDevMode ? [{ debugName: "_matches" }] : /* istanbul ignore next */ []);
|
|
35
|
+
this._rows = computed(() => {
|
|
36
|
+
const rows = [];
|
|
37
|
+
let last;
|
|
38
|
+
this._matches().forEach((v, index) => {
|
|
39
|
+
if (v.group && v.group !== last) rows.push({
|
|
40
|
+
kind: "group",
|
|
41
|
+
key: "g:" + rows.length + ":" + v.group,
|
|
42
|
+
text: v.group
|
|
43
|
+
});
|
|
44
|
+
last = v.group;
|
|
45
|
+
rows.push({
|
|
46
|
+
kind: "option",
|
|
47
|
+
key: "o:" + v.value,
|
|
48
|
+
text: v.label,
|
|
49
|
+
variable: v,
|
|
50
|
+
index
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
return rows;
|
|
54
|
+
}, ...ngDevMode ? [{ debugName: "_rows" }] : /* istanbul ignore next */ []);
|
|
55
|
+
this._activeIndex = computed(() => Math.min(this._active(), Math.max(0, this._matches().length - 1)), ...ngDevMode ? [{ debugName: "_activeIndex" }] : /* istanbul ignore next */ []);
|
|
56
|
+
this._activeId = computed(() => this._matches().length ? `${this._id}-o${this._activeIndex()}` : null, ...ngDevMode ? [{ debugName: "_activeId" }] : /* istanbul ignore next */ []);
|
|
57
|
+
this._status = computed(() => {
|
|
58
|
+
const n = this._matches().length;
|
|
59
|
+
return n === 0 ? this.labels.t("textTemplatePicker.noVariables") : n === 1 ? this.labels.t("textTemplatePicker.oneVariable") : this.labels.t("textTemplatePicker.nVariables", { count: n });
|
|
60
|
+
}, ...ngDevMode ? [{ debugName: "_status" }] : /* istanbul ignore next */ []);
|
|
61
|
+
this.onAnyScroll = (event) => {
|
|
62
|
+
if (!(event.target instanceof Node && this.host.nativeElement.contains(event.target))) this.follow();
|
|
63
|
+
};
|
|
64
|
+
this.onViewport = () => this.follow();
|
|
65
|
+
inject(DestroyRef).onDestroy(() => this.unlisten());
|
|
66
|
+
}
|
|
67
|
+
static fold(s) {
|
|
68
|
+
return s.normalize("NFD").replace(/[̀-ͯ]/g, "").toLowerCase();
|
|
69
|
+
}
|
|
70
|
+
toggle() {
|
|
71
|
+
if (this.disabled()) return;
|
|
72
|
+
if (this._open()) this.close(false);
|
|
73
|
+
else this.openList();
|
|
74
|
+
}
|
|
75
|
+
openFromKey(event) {
|
|
76
|
+
event.preventDefault();
|
|
77
|
+
if (!this._open() && !this.disabled()) this.openList();
|
|
78
|
+
}
|
|
79
|
+
openList() {
|
|
80
|
+
this._query.set("");
|
|
81
|
+
this._active.set(0);
|
|
82
|
+
this.place();
|
|
83
|
+
this._open.set(true);
|
|
84
|
+
window.addEventListener("scroll", this.onAnyScroll, true);
|
|
85
|
+
window.visualViewport?.addEventListener("resize", this.onViewport);
|
|
86
|
+
window.visualViewport?.addEventListener("scroll", this.onViewport);
|
|
87
|
+
afterNextRender(() => this.host.nativeElement.querySelector(".ttp-search")?.focus(), { injector: this.injector });
|
|
88
|
+
}
|
|
89
|
+
place() {
|
|
90
|
+
const r = this.host.nativeElement.querySelector(".ttp-trigger").getBoundingClientRect();
|
|
91
|
+
const vw = window.innerWidth, vh = window.innerHeight, gap = 6, margin = 8;
|
|
92
|
+
const below = vh - r.bottom - gap - margin, above = r.top - gap - margin;
|
|
93
|
+
const up = below < 260 && above > below;
|
|
94
|
+
const room = Math.max(160, up ? above : below);
|
|
95
|
+
const width = Math.min(Math.max(r.width, 320), vw - 16);
|
|
96
|
+
this._width.set(width);
|
|
97
|
+
this._left.set(Math.min(Math.max(margin, r.left), vw - width - margin));
|
|
98
|
+
this._maxHeight.set(Math.min(360, room));
|
|
99
|
+
this._top.set(up ? null : r.bottom + gap);
|
|
100
|
+
this._bottom.set(up ? vh - r.top + gap : null);
|
|
101
|
+
}
|
|
102
|
+
onPanelMouseDown(event) {
|
|
103
|
+
if (!(event.target instanceof HTMLInputElement)) event.preventDefault();
|
|
104
|
+
}
|
|
105
|
+
onQuery(value) {
|
|
106
|
+
this._query.set(value);
|
|
107
|
+
this._active.set(0);
|
|
108
|
+
this.scrollActive();
|
|
109
|
+
}
|
|
110
|
+
onSearchKey(event) {
|
|
111
|
+
const n = this._matches().length;
|
|
112
|
+
if (event.key === "ArrowDown" || event.key === "ArrowUp") {
|
|
113
|
+
event.preventDefault();
|
|
114
|
+
if (n) this._active.set((this._activeIndex() + (event.key === "ArrowDown" ? 1 : -1) + n) % n);
|
|
115
|
+
this.scrollActive();
|
|
116
|
+
} else if (event.key === "Home" || event.key === "End") {
|
|
117
|
+
if (n) {
|
|
118
|
+
event.preventDefault();
|
|
119
|
+
this._active.set(event.key === "Home" ? 0 : n - 1);
|
|
120
|
+
this.scrollActive();
|
|
121
|
+
}
|
|
122
|
+
} else if (event.key === "Enter") {
|
|
123
|
+
event.preventDefault();
|
|
124
|
+
const v = this._matches()[this._activeIndex()];
|
|
125
|
+
if (v) this.pick(v);
|
|
126
|
+
} else if (event.key === "Tab") this.close(true);
|
|
127
|
+
}
|
|
128
|
+
pick(variable) {
|
|
129
|
+
this.picked.emit(variable.value);
|
|
130
|
+
this.close(true);
|
|
131
|
+
}
|
|
132
|
+
onEscape(event) {
|
|
133
|
+
event.preventDefault();
|
|
134
|
+
event.stopPropagation();
|
|
135
|
+
this.close(true);
|
|
136
|
+
}
|
|
137
|
+
close(refocus) {
|
|
138
|
+
this._open.set(false);
|
|
139
|
+
this._query.set("");
|
|
140
|
+
this.unlisten();
|
|
141
|
+
if (refocus) this.host.nativeElement.querySelector(".ttp-trigger")?.focus();
|
|
142
|
+
}
|
|
143
|
+
scrollActive() {
|
|
144
|
+
afterNextRender(() => this.host.nativeElement.querySelector(".ttp-active")?.scrollIntoView({ block: "nearest" }), { injector: this.injector });
|
|
145
|
+
}
|
|
146
|
+
onDocumentClick(event) {
|
|
147
|
+
if (this._open() && !this.host.nativeElement.contains(event.target)) this.close(false);
|
|
148
|
+
}
|
|
149
|
+
onResize() {
|
|
150
|
+
this.follow();
|
|
151
|
+
}
|
|
152
|
+
unlisten() {
|
|
153
|
+
window.removeEventListener("scroll", this.onAnyScroll, true);
|
|
154
|
+
window.visualViewport?.removeEventListener("resize", this.onViewport);
|
|
155
|
+
window.visualViewport?.removeEventListener("scroll", this.onViewport);
|
|
156
|
+
}
|
|
157
|
+
follow() {
|
|
158
|
+
if (!this._open()) return;
|
|
159
|
+
const r = this.host.nativeElement.querySelector(".ttp-trigger").getBoundingClientRect();
|
|
160
|
+
if (r.bottom < 0 || r.top > window.innerHeight || r.right < 0 || r.left > window.innerWidth) this.close(false);
|
|
161
|
+
else this.place();
|
|
162
|
+
}
|
|
163
|
+
static {
|
|
164
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
165
|
+
minVersion: "12.0.0",
|
|
166
|
+
version: "22.2.2",
|
|
167
|
+
ngImport: i0,
|
|
168
|
+
type: TextTemplatePickerComponent,
|
|
169
|
+
deps: [],
|
|
170
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
static {
|
|
174
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
175
|
+
minVersion: "17.0.0",
|
|
176
|
+
version: "22.2.2",
|
|
177
|
+
type: TextTemplatePickerComponent,
|
|
178
|
+
isStandalone: true,
|
|
179
|
+
selector: "ui-text-template-picker",
|
|
180
|
+
inputs: {
|
|
181
|
+
variables: {
|
|
182
|
+
classPropertyName: "variables",
|
|
183
|
+
publicName: "variables",
|
|
184
|
+
isSignal: true,
|
|
185
|
+
isRequired: false,
|
|
186
|
+
transformFunction: null
|
|
187
|
+
},
|
|
188
|
+
labelInput: {
|
|
189
|
+
classPropertyName: "labelInput",
|
|
190
|
+
publicName: "label",
|
|
191
|
+
isSignal: true,
|
|
192
|
+
isRequired: false,
|
|
193
|
+
transformFunction: null
|
|
194
|
+
},
|
|
195
|
+
searchPlaceholderInput: {
|
|
196
|
+
classPropertyName: "searchPlaceholderInput",
|
|
197
|
+
publicName: "searchPlaceholder",
|
|
198
|
+
isSignal: true,
|
|
199
|
+
isRequired: false,
|
|
200
|
+
transformFunction: null
|
|
201
|
+
},
|
|
202
|
+
disabled: {
|
|
203
|
+
classPropertyName: "disabled",
|
|
204
|
+
publicName: "disabled",
|
|
205
|
+
isSignal: true,
|
|
206
|
+
isRequired: false,
|
|
207
|
+
transformFunction: null
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
outputs: { picked: "picked" },
|
|
211
|
+
host: { listeners: {
|
|
212
|
+
"document:click": "onDocumentClick($event)",
|
|
213
|
+
"window:resize": "onResize()"
|
|
214
|
+
} },
|
|
215
|
+
ngImport: i0,
|
|
216
|
+
template: `
|
|
217
|
+
<button type="button" class="ttp-trigger" [class.ttp-open]="_open()" [disabled]="disabled()"
|
|
218
|
+
aria-haspopup="listbox" [attr.aria-expanded]="_open()" [attr.aria-controls]="_open() ? _id + '-list' : null"
|
|
219
|
+
(click)="toggle()" (keydown.arrowDown)="openFromKey($event)">
|
|
220
|
+
<span>{{ label() }}</span>
|
|
221
|
+
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
|
|
222
|
+
</button>
|
|
223
|
+
|
|
224
|
+
@if (_open()) {
|
|
225
|
+
<div class="ttp-panel" [style.top.px]="_top()" [style.bottom.px]="_bottom()" [style.left.px]="_left()" [style.width.px]="_width()"
|
|
226
|
+
[style.max-height.px]="_maxHeight()" (keydown.escape)="onEscape($event)" (mousedown)="onPanelMouseDown($event)">
|
|
227
|
+
<div class="ttp-search-wrap">
|
|
228
|
+
<input #search class="ttp-search" type="text" role="combobox" autocomplete="off" aria-autocomplete="list" aria-expanded="true"
|
|
229
|
+
[attr.aria-controls]="_id + '-list'" [attr.aria-activedescendant]="_activeId()" [attr.aria-label]="searchPlaceholder()"
|
|
230
|
+
[placeholder]="searchPlaceholder()" [value]="_query()"
|
|
231
|
+
(input)="onQuery($any($event.target).value)" (keydown)="onSearchKey($event)" />
|
|
232
|
+
</div>
|
|
233
|
+
<div class="ttp-list" role="listbox" [id]="_id + '-list'" [attr.aria-label]="label()">
|
|
234
|
+
@for (row of _rows(); track row.key) {
|
|
235
|
+
@if (row.kind === 'group') {
|
|
236
|
+
<div class="ttp-group" role="presentation" [id]="_id + '-g' + $index">{{ row.text }}</div>
|
|
237
|
+
} @else {
|
|
238
|
+
<div class="ttp-option" role="option" [id]="_id + '-o' + row.index" [class.ttp-active]="_activeIndex() === row.index"
|
|
239
|
+
[attr.aria-selected]="_activeIndex() === row.index" (mousedown)="$event.preventDefault()" (click)="pick(row.variable!)" (mouseenter)="_active.set(row.index!)">
|
|
240
|
+
{{ row.text }}
|
|
241
|
+
</div>
|
|
242
|
+
}
|
|
243
|
+
} @empty {
|
|
244
|
+
<div class="ttp-empty">{{ labels.t('textTemplatePicker.noVariablesMatch', { query: _query().trim() }) }}</div>
|
|
245
|
+
}
|
|
246
|
+
</div>
|
|
247
|
+
<div class="ttp-status" role="status" aria-live="polite">{{ _status() }}</div>
|
|
248
|
+
</div>
|
|
249
|
+
}
|
|
250
|
+
`,
|
|
251
|
+
isInline: true,
|
|
252
|
+
styles: [":host{display:inline-block}.ttp-trigger{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;min-height:36px;box-sizing:border-box;font:inherit;font-size:.875rem;font-weight:500;color:#1e293b;background:#fff;border:1px solid #7c8ba1;border-radius:8px;cursor:pointer;transition:border-color .15s,box-shadow .15s}.ttp-trigger:hover{background:#f8fafc}.ttp-trigger:focus-visible,.ttp-trigger.ttp-open{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61f}.ttp-trigger:disabled{opacity:.5;cursor:not-allowed}.ttp-trigger svg{flex-shrink:0;color:#64748b}.ttp-panel{position:fixed;z-index:10000;display:flex;flex-direction:column;box-sizing:border-box;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 4px 6px #0000000a,0 12px 28px #0000001a;max-width:calc(100vw - 16px)}.ttp-search-wrap{padding:8px;border-bottom:1px solid #e2e8f0;flex-shrink:0}.ttp-search{width:100%;box-sizing:border-box;padding:8px 10px;font:inherit;font-size:.875rem;color:#1e293b;border:1px solid #7c8ba1;border-radius:6px;outline:none}.ttp-search::placeholder{color:#64748b;opacity:1}.ttp-search:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61f}.ttp-list{overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1 1 auto}.ttp-group{position:sticky;top:0;padding:6px 14px;font-size:.6875rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#64748b;background:#f8fafc;border-bottom:1px solid #f1f5f9}.ttp-option{padding:10px 14px;font-size:.875rem;color:#1e293b;cursor:pointer;border-bottom:1px solid #f1f5f9}.ttp-option.ttp-active{background:#eff6ff;color:#2563eb}.ttp-empty{padding:16px;text-align:center;font-size:.8125rem;color:#64748b}.ttp-status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}@media(pointer:coarse),(max-width:768px){.ttp-trigger{min-height:44px}.ttp-option{padding:13px 14px}.ttp-search{font-size:1rem;min-height:44px}}\n"],
|
|
253
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
258
|
+
minVersion: "12.0.0",
|
|
259
|
+
version: "22.2.2",
|
|
260
|
+
ngImport: i0,
|
|
261
|
+
type: TextTemplatePickerComponent,
|
|
262
|
+
decorators: [{
|
|
263
|
+
type: Component,
|
|
264
|
+
args: [{
|
|
265
|
+
selector: "ui-text-template-picker",
|
|
266
|
+
standalone: true,
|
|
267
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
268
|
+
template: `
|
|
269
|
+
<button type="button" class="ttp-trigger" [class.ttp-open]="_open()" [disabled]="disabled()"
|
|
270
|
+
aria-haspopup="listbox" [attr.aria-expanded]="_open()" [attr.aria-controls]="_open() ? _id + '-list' : null"
|
|
271
|
+
(click)="toggle()" (keydown.arrowDown)="openFromKey($event)">
|
|
272
|
+
<span>{{ label() }}</span>
|
|
273
|
+
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
|
|
274
|
+
</button>
|
|
275
|
+
|
|
276
|
+
@if (_open()) {
|
|
277
|
+
<div class="ttp-panel" [style.top.px]="_top()" [style.bottom.px]="_bottom()" [style.left.px]="_left()" [style.width.px]="_width()"
|
|
278
|
+
[style.max-height.px]="_maxHeight()" (keydown.escape)="onEscape($event)" (mousedown)="onPanelMouseDown($event)">
|
|
279
|
+
<div class="ttp-search-wrap">
|
|
280
|
+
<input #search class="ttp-search" type="text" role="combobox" autocomplete="off" aria-autocomplete="list" aria-expanded="true"
|
|
281
|
+
[attr.aria-controls]="_id + '-list'" [attr.aria-activedescendant]="_activeId()" [attr.aria-label]="searchPlaceholder()"
|
|
282
|
+
[placeholder]="searchPlaceholder()" [value]="_query()"
|
|
283
|
+
(input)="onQuery($any($event.target).value)" (keydown)="onSearchKey($event)" />
|
|
284
|
+
</div>
|
|
285
|
+
<div class="ttp-list" role="listbox" [id]="_id + '-list'" [attr.aria-label]="label()">
|
|
286
|
+
@for (row of _rows(); track row.key) {
|
|
287
|
+
@if (row.kind === 'group') {
|
|
288
|
+
<div class="ttp-group" role="presentation" [id]="_id + '-g' + $index">{{ row.text }}</div>
|
|
289
|
+
} @else {
|
|
290
|
+
<div class="ttp-option" role="option" [id]="_id + '-o' + row.index" [class.ttp-active]="_activeIndex() === row.index"
|
|
291
|
+
[attr.aria-selected]="_activeIndex() === row.index" (mousedown)="$event.preventDefault()" (click)="pick(row.variable!)" (mouseenter)="_active.set(row.index!)">
|
|
292
|
+
{{ row.text }}
|
|
293
|
+
</div>
|
|
294
|
+
}
|
|
295
|
+
} @empty {
|
|
296
|
+
<div class="ttp-empty">{{ labels.t('textTemplatePicker.noVariablesMatch', { query: _query().trim() }) }}</div>
|
|
297
|
+
}
|
|
298
|
+
</div>
|
|
299
|
+
<div class="ttp-status" role="status" aria-live="polite">{{ _status() }}</div>
|
|
300
|
+
</div>
|
|
301
|
+
}
|
|
302
|
+
`,
|
|
303
|
+
styles: [":host{display:inline-block}.ttp-trigger{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;min-height:36px;box-sizing:border-box;font:inherit;font-size:.875rem;font-weight:500;color:#1e293b;background:#fff;border:1px solid #7c8ba1;border-radius:8px;cursor:pointer;transition:border-color .15s,box-shadow .15s}.ttp-trigger:hover{background:#f8fafc}.ttp-trigger:focus-visible,.ttp-trigger.ttp-open{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61f}.ttp-trigger:disabled{opacity:.5;cursor:not-allowed}.ttp-trigger svg{flex-shrink:0;color:#64748b}.ttp-panel{position:fixed;z-index:10000;display:flex;flex-direction:column;box-sizing:border-box;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 4px 6px #0000000a,0 12px 28px #0000001a;max-width:calc(100vw - 16px)}.ttp-search-wrap{padding:8px;border-bottom:1px solid #e2e8f0;flex-shrink:0}.ttp-search{width:100%;box-sizing:border-box;padding:8px 10px;font:inherit;font-size:.875rem;color:#1e293b;border:1px solid #7c8ba1;border-radius:6px;outline:none}.ttp-search::placeholder{color:#64748b;opacity:1}.ttp-search:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61f}.ttp-list{overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1 1 auto}.ttp-group{position:sticky;top:0;padding:6px 14px;font-size:.6875rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#64748b;background:#f8fafc;border-bottom:1px solid #f1f5f9}.ttp-option{padding:10px 14px;font-size:.875rem;color:#1e293b;cursor:pointer;border-bottom:1px solid #f1f5f9}.ttp-option.ttp-active{background:#eff6ff;color:#2563eb}.ttp-empty{padding:16px;text-align:center;font-size:.8125rem;color:#64748b}.ttp-status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}@media(pointer:coarse),(max-width:768px){.ttp-trigger{min-height:44px}.ttp-option{padding:13px 14px}.ttp-search{font-size:1rem;min-height:44px}}\n"]
|
|
304
|
+
}]
|
|
305
|
+
}],
|
|
306
|
+
ctorParameters: () => [],
|
|
307
|
+
propDecorators: {
|
|
308
|
+
variables: [{
|
|
309
|
+
type: i0.Input,
|
|
310
|
+
args: [{
|
|
311
|
+
isSignal: true,
|
|
312
|
+
alias: "variables",
|
|
313
|
+
required: false
|
|
314
|
+
}]
|
|
315
|
+
}],
|
|
316
|
+
labelInput: [{
|
|
317
|
+
type: i0.Input,
|
|
318
|
+
args: [{
|
|
319
|
+
isSignal: true,
|
|
320
|
+
alias: "label",
|
|
321
|
+
required: false
|
|
322
|
+
}]
|
|
323
|
+
}],
|
|
324
|
+
searchPlaceholderInput: [{
|
|
325
|
+
type: i0.Input,
|
|
326
|
+
args: [{
|
|
327
|
+
isSignal: true,
|
|
328
|
+
alias: "searchPlaceholder",
|
|
329
|
+
required: false
|
|
330
|
+
}]
|
|
331
|
+
}],
|
|
332
|
+
disabled: [{
|
|
333
|
+
type: i0.Input,
|
|
334
|
+
args: [{
|
|
335
|
+
isSignal: true,
|
|
336
|
+
alias: "disabled",
|
|
337
|
+
required: false
|
|
338
|
+
}]
|
|
339
|
+
}],
|
|
340
|
+
picked: [{
|
|
341
|
+
type: i0.Output,
|
|
342
|
+
args: ["picked"]
|
|
343
|
+
}],
|
|
344
|
+
onDocumentClick: [{
|
|
345
|
+
type: HostListener,
|
|
346
|
+
args: ["document:click", ["$event"]]
|
|
347
|
+
}],
|
|
348
|
+
onResize: [{
|
|
349
|
+
type: HostListener,
|
|
350
|
+
args: ["window:resize"]
|
|
351
|
+
}]
|
|
352
|
+
}
|
|
353
|
+
});
|
|
354
|
+
export { TextTemplatePickerComponent };
|
|
355
|
+
|
|
356
|
+
//# sourceMappingURL=forgeroute-ui-text-template-picker.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forgeroute-ui-text-template-picker.mjs","names":[],"sources":["../../../projects/forgeroute-ui/text-template-picker/src/lib/text-template-picker/text-template-picker.component.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy, Component, ElementRef, HostListener, afterNextRender, computed, inject, input, output, signal, Injector, DestroyRef,\n} from '@angular/core';\nimport { UiLabelsService } from '@forgeroute/ui/core';\n\n/** One insertable merge variable. `value` is what `(picked)` emits (e.g. `{{first_name}}`); `group` puts it under a header. */\nexport interface TextTemplateVariable {\n value: string;\n label: string;\n group?: string;\n}\n\ninterface Row { kind: 'group' | 'option'; key: string; text: string; variable?: TextTemplateVariable; index?: number }\n\n/**\n * \"Insert variable\" picker for message templates: a button that opens a searchable list of every merge variable.\n * Type to filter by name (case and accents ignored), or scroll the list; Enter / click picks one and `(picked)` emits its `value`.\n * The list is positioned against the viewport (never clipped by a scrolling side panel), opens above the button when there is\n * no room below, and scrolls inside the room it has.\n *\n * <ui-text-template-picker [variables]=\"variables\" (picked)=\"insert($event)\" />\n */\n@Component({\n selector: 'ui-text-template-picker',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <button type=\"button\" class=\"ttp-trigger\" [class.ttp-open]=\"_open()\" [disabled]=\"disabled()\"\n aria-haspopup=\"listbox\" [attr.aria-expanded]=\"_open()\" [attr.aria-controls]=\"_open() ? _id + '-list' : null\"\n (click)=\"toggle()\" (keydown.arrowDown)=\"openFromKey($event)\">\n <span>{{ label() }}</span>\n <svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" aria-hidden=\"true\"><polyline points=\"6 9 12 15 18 9\"/></svg>\n </button>\n\n @if (_open()) {\n <div class=\"ttp-panel\" [style.top.px]=\"_top()\" [style.bottom.px]=\"_bottom()\" [style.left.px]=\"_left()\" [style.width.px]=\"_width()\"\n [style.max-height.px]=\"_maxHeight()\" (keydown.escape)=\"onEscape($event)\" (mousedown)=\"onPanelMouseDown($event)\">\n <div class=\"ttp-search-wrap\">\n <input #search class=\"ttp-search\" type=\"text\" role=\"combobox\" autocomplete=\"off\" aria-autocomplete=\"list\" aria-expanded=\"true\"\n [attr.aria-controls]=\"_id + '-list'\" [attr.aria-activedescendant]=\"_activeId()\" [attr.aria-label]=\"searchPlaceholder()\"\n [placeholder]=\"searchPlaceholder()\" [value]=\"_query()\"\n (input)=\"onQuery($any($event.target).value)\" (keydown)=\"onSearchKey($event)\" />\n </div>\n <div class=\"ttp-list\" role=\"listbox\" [id]=\"_id + '-list'\" [attr.aria-label]=\"label()\">\n @for (row of _rows(); track row.key) {\n @if (row.kind === 'group') {\n <div class=\"ttp-group\" role=\"presentation\" [id]=\"_id + '-g' + $index\">{{ row.text }}</div>\n } @else {\n <div class=\"ttp-option\" role=\"option\" [id]=\"_id + '-o' + row.index\" [class.ttp-active]=\"_activeIndex() === row.index\"\n [attr.aria-selected]=\"_activeIndex() === row.index\" (mousedown)=\"$event.preventDefault()\" (click)=\"pick(row.variable!)\" (mouseenter)=\"_active.set(row.index!)\">\n {{ row.text }}\n </div>\n }\n } @empty {\n <div class=\"ttp-empty\">{{ labels.t('textTemplatePicker.noVariablesMatch', { query: _query().trim() }) }}</div>\n }\n </div>\n <div class=\"ttp-status\" role=\"status\" aria-live=\"polite\">{{ _status() }}</div>\n </div>\n }\n `,\n styles: [`\n :host { display: inline-block; }\n\n .ttp-trigger {\n display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; min-height: 36px; box-sizing: border-box;\n font: inherit; font-size: 0.875rem; font-weight: 500; color: #1e293b; background: #fff;\n border: 1px solid #7c8ba1; border-radius: 8px; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s;\n &:hover { background: #f8fafc; }\n &:focus-visible, &.ttp-open { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12); }\n &:disabled { opacity: 0.5; cursor: not-allowed; }\n svg { flex-shrink: 0; color: #64748b; }\n }\n\n .ttp-panel {\n position: fixed; z-index: 10000; display: flex; flex-direction: column; box-sizing: border-box;\n background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04), 0 12px 28px rgba(0, 0, 0, 0.10);\n max-width: calc(100vw - 16px);\n }\n .ttp-search-wrap { padding: 8px; border-bottom: 1px solid #e2e8f0; flex-shrink: 0; }\n .ttp-search {\n width: 100%; box-sizing: border-box; padding: 8px 10px; font: inherit; font-size: 0.875rem; color: #1e293b;\n border: 1px solid #7c8ba1; border-radius: 6px; outline: none;\n &::placeholder { color: #64748b; opacity: 1; }\n &:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12); }\n }\n .ttp-list { overflow-y: auto; overscroll-behavior: contain; min-height: 0; flex: 1 1 auto; }\n .ttp-group {\n position: sticky; top: 0; padding: 6px 14px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.05em;\n text-transform: uppercase; color: #64748b; background: #f8fafc; border-bottom: 1px solid #f1f5f9;\n }\n .ttp-option {\n padding: 10px 14px; font-size: 0.875rem; color: #1e293b; cursor: pointer; border-bottom: 1px solid #f1f5f9;\n &.ttp-active { background: #eff6ff; color: #2563eb; }\n }\n .ttp-empty { padding: 16px; text-align: center; font-size: 0.8125rem; color: #64748b; }\n .ttp-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }\n\n @media (pointer: coarse), (max-width: 768px) {\n .ttp-trigger { min-height: 44px; }\n .ttp-option { padding: 13px 14px; }\n .ttp-search { font-size: 1rem; min-height: 44px; }\n }\n `],\n})\nexport class TextTemplatePickerComponent {\n protected readonly labels = inject(UiLabelsService);\n readonly variables = input<TextTemplateVariable[]>([]);\n readonly labelInput = input<string | null>(null, { alias: 'label' });\n readonly label = computed(() => this.labelInput() ?? this.labels.t('textTemplatePicker.label'));\n readonly searchPlaceholderInput = input<string | null>(null, { alias: 'searchPlaceholder' });\n readonly searchPlaceholder = computed(() => this.searchPlaceholderInput() ?? this.labels.t('textTemplatePicker.searchPlaceholder'));\n readonly disabled = input(false);\n /** The chosen variable's `value`. The list closes and focus returns to the button. */\n readonly picked = output<string>();\n\n protected readonly _id = `ttp-${Math.random().toString(36).slice(2, 8)}`;\n protected readonly _open = signal(false);\n protected readonly _query = signal('');\n protected readonly _active = signal(0);\n protected readonly _top = signal<number | null>(null);\n protected readonly _bottom = signal<number | null>(null);\n protected readonly _left = signal(0);\n protected readonly _width = signal(320);\n protected readonly _maxHeight = signal(360);\n\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly injector = inject(Injector);\n\n constructor() {\n inject(DestroyRef).onDestroy(() => this.unlisten());\n }\n\n private static fold(s: string): string {\n return s.normalize('NFD').replace(/[̀-ͯ]/g, '').toLowerCase();\n }\n\n protected readonly _matches = computed(() => {\n const q = TextTemplatePickerComponent.fold(this._query().trim());\n return q ? this.variables().filter(v => TextTemplatePickerComponent.fold(v.label).includes(q)) : this.variables();\n });\n\n /** Display rows: group headers (when variables carry a `group`) followed by their options, each option numbered for keyboard navigation. */\n protected readonly _rows = computed((): Row[] => {\n const rows: Row[] = [];\n let last: string | undefined;\n this._matches().forEach((v, index) => {\n if (v.group && v.group !== last) rows.push({ kind: 'group', key: 'g:' + rows.length + ':' + v.group, text: v.group });\n last = v.group;\n rows.push({ kind: 'option', key: 'o:' + v.value, text: v.label, variable: v, index });\n });\n return rows;\n });\n\n /** The highlighted row, kept inside the current matches (the list can shrink while open). */\n protected readonly _activeIndex = computed(() => Math.min(this._active(), Math.max(0, this._matches().length - 1)));\n protected readonly _activeId = computed(() => (this._matches().length ? `${this._id}-o${this._activeIndex()}` : null));\n protected readonly _status = computed(() => {\n const n = this._matches().length;\n return n === 0 ? this.labels.t('textTemplatePicker.noVariables') : n === 1 ? this.labels.t('textTemplatePicker.oneVariable') : this.labels.t('textTemplatePicker.nVariables', { count: n });\n });\n\n protected toggle() {\n if (this.disabled()) return;\n if (this._open()) this.close(false); else this.openList();\n }\n\n protected openFromKey(event: Event) {\n event.preventDefault();\n if (!this._open() && !this.disabled()) this.openList();\n }\n\n private openList() {\n this._query.set('');\n this._active.set(0);\n this.place();\n this._open.set(true);\n // Scroll events do not bubble: listen in the capture phase so a scrolling side panel behind the list moves it along.\n window.addEventListener('scroll', this.onAnyScroll, true);\n window.visualViewport?.addEventListener('resize', this.onViewport);\n window.visualViewport?.addEventListener('scroll', this.onViewport);\n afterNextRender(() => this.host.nativeElement.querySelector<HTMLInputElement>('.ttp-search')?.focus(), { injector: this.injector });\n }\n\n /** Measures the trigger against the viewport: the list goes below it, or above when the room below is smaller, and never grows past the room it has. */\n private place() {\n const r = this.host.nativeElement.querySelector('.ttp-trigger')!.getBoundingClientRect();\n const vw = window.innerWidth, vh = window.innerHeight, gap = 6, margin = 8;\n const below = vh - r.bottom - gap - margin, above = r.top - gap - margin;\n const up = below < 260 && above > below;\n const room = Math.max(160, up ? above : below);\n const width = Math.min(Math.max(r.width, 320), vw - margin * 2);\n this._width.set(width);\n this._left.set(Math.min(Math.max(margin, r.left), vw - width - margin));\n this._maxHeight.set(Math.min(360, room));\n this._top.set(up ? null : r.bottom + gap);\n this._bottom.set(up ? vh - r.top + gap : null);\n }\n\n /** A click on the list's chrome (a group header, the empty text, the padding) must not take the focus from the search box: the keys and Escape depend on it. */\n protected onPanelMouseDown(event: MouseEvent) {\n if (!(event.target instanceof HTMLInputElement)) event.preventDefault();\n }\n\n protected onQuery(value: string) {\n this._query.set(value);\n this._active.set(0);\n this.scrollActive();\n }\n\n protected onSearchKey(event: KeyboardEvent) {\n const n = this._matches().length;\n if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {\n event.preventDefault();\n if (n) this._active.set((this._activeIndex() + (event.key === 'ArrowDown' ? 1 : -1) + n) % n);\n this.scrollActive();\n } else if (event.key === 'Home' || event.key === 'End') {\n if (n) { event.preventDefault(); this._active.set(event.key === 'Home' ? 0 : n - 1); this.scrollActive(); }\n } else if (event.key === 'Enter') {\n event.preventDefault();\n const v = this._matches()[this._activeIndex()];\n if (v) this.pick(v);\n } else if (event.key === 'Tab') {\n this.close(true); // focus goes back to the button first, so the Tab moves on to the next control in every browser\n }\n }\n\n protected pick(variable: TextTemplateVariable) {\n this.picked.emit(variable.value);\n this.close(true);\n }\n\n /** Escape closes only the list (and is not passed on), so a surrounding side panel / modal stays open. */\n protected onEscape(event: Event) {\n event.preventDefault();\n event.stopPropagation();\n this.close(true);\n }\n\n private close(refocus: boolean) {\n this._open.set(false);\n this._query.set('');\n this.unlisten();\n if (refocus) this.host.nativeElement.querySelector<HTMLElement>('.ttp-trigger')?.focus();\n }\n\n private scrollActive() {\n afterNextRender(() => this.host.nativeElement.querySelector('.ttp-active')?.scrollIntoView({ block: 'nearest' }), { injector: this.injector });\n }\n\n @HostListener('document:click', ['$event'])\n protected onDocumentClick(event: Event) {\n if (this._open() && !this.host.nativeElement.contains(event.target as Node)) this.close(false);\n }\n\n /** The list is fixed to the screen, so it is placed again when the page resizes or scrolls (also the soft keyboard of a phone moves the viewport, which must not close it); it closes only once its button has left the screen. */\n @HostListener('window:resize')\n protected onResize() { this.follow(); }\n\n private readonly onAnyScroll = (event: Event) => {\n if (!(event.target instanceof Node && this.host.nativeElement.contains(event.target))) this.follow();\n };\n\n private readonly onViewport = () => this.follow();\n\n private unlisten() {\n window.removeEventListener('scroll', this.onAnyScroll, true);\n window.visualViewport?.removeEventListener('resize', this.onViewport);\n window.visualViewport?.removeEventListener('scroll', this.onViewport);\n }\n\n private follow() {\n if (!this._open()) return;\n const r = this.host.nativeElement.querySelector('.ttp-trigger')!.getBoundingClientRect();\n if (r.bottom < 0 || r.top > window.innerHeight || r.right < 0 || r.left > window.innerWidth) this.close(false);\n else this.place();\n }\n}\n"],"mappings":";;;AA0GA,IAAa,8BAAb,MAAa,4BAA2B;CAwBtC,cAAA;EAvBmB,KAAA,SAAS,OAAO,eAAe;EACzC,KAAA,YAAoB,MAA8B,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;EACrD,KAAA,aAAa,MAAqB,MAAI;GAAA,GAAA,YAAA,EAAA,WAAA,aAAA,+BAAA,CAAA;GAAI,OAAO;EAAO,CAAA;EACxD,KAAA,QAAQ,eAAe,KAAK,WAAU,KAAM,KAAK,OAAO,EAAE,0BAA0B,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EACtF,KAAA,yBAAyB,MAAqB,MAAI;GAAA,GAAA,YAAA,EAAA,WAAA,yBAAA,+BAAA,CAAA;GAAI,OAAO;EAAmB,CAAA;EAChF,KAAA,oBAAoB,eAAe,KAAK,uBAAsB,KAAM,KAAK,OAAO,EAAE,sCAAsC,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,oBAAA,CAAA,+BAAA,CAAA,CAAA;EAC1H,KAAA,WAAoB,MAAM,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;EAEhC,KAAA,SAAoB,OAAM;EAEhB,KAAA,MAAM,OAAO,KAA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