@forgeroute/ui 0.5.16 → 0.5.18
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-core-ui-labels.es-Dzj_XJJM.mjs → forgeroute-ui-core-ui-labels.es-Woi3az70.mjs} +186 -2
- package/fesm2022/{forgeroute-ui-core-ui-labels.es-Dzj_XJJM.mjs.map → forgeroute-ui-core-ui-labels.es-Woi3az70.mjs.map} +1 -1
- package/fesm2022/forgeroute-ui-core.mjs +186 -2
- package/fesm2022/forgeroute-ui-core.mjs.map +1 -1
- 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 +6258 -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 +6254 -1188
- 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 +422 -2
- 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-core.d.ts +188 -4
- package/types/forgeroute-ui-data-table-core.d.ts +1221 -0
- package/types/forgeroute-ui-date-input.d.ts +101 -0
- package/types/forgeroute-ui-date-range-picker.d.ts +109 -0
- package/types/forgeroute-ui-datetime-input.d.ts +97 -0
- package/types/forgeroute-ui-detail-card.d.ts +252 -0
- package/types/forgeroute-ui-discount-selector.d.ts +57 -0
- package/types/forgeroute-ui-divider.d.ts +40 -0
- package/types/forgeroute-ui-dropdown.d.ts +156 -0
- package/types/forgeroute-ui-editor.d.ts +873 -0
- package/types/forgeroute-ui-empty-state.d.ts +29 -0
- package/types/forgeroute-ui-error-state.d.ts +38 -0
- package/types/forgeroute-ui-error.d.ts +29 -0
- package/types/forgeroute-ui-fade.d.ts +39 -0
- package/types/forgeroute-ui-file-input.d.ts +337 -0
- package/types/forgeroute-ui-fixed-footer.d.ts +53 -0
- package/types/forgeroute-ui-form-row.d.ts +30 -0
- package/types/forgeroute-ui-form-section.d.ts +18 -0
- package/types/forgeroute-ui-form.d.ts +68 -0
- package/types/forgeroute-ui-hint.d.ts +10 -0
- package/types/forgeroute-ui-icon-picker.d.ts +122 -0
- package/types/forgeroute-ui-icon.d.ts +95 -0
- package/types/forgeroute-ui-image-preview.d.ts +88 -0
- package/types/forgeroute-ui-keypad.d.ts +73 -0
- package/types/forgeroute-ui-kpi-card.d.ts +161 -0
- package/types/forgeroute-ui-language-switcher.d.ts +41 -0
- package/types/forgeroute-ui-layout.d.ts +13 -0
- package/types/forgeroute-ui-list-item.d.ts +253 -0
- package/types/forgeroute-ui-list.d.ts +282 -0
- package/types/forgeroute-ui-live-region.d.ts +49 -0
- package/types/forgeroute-ui-map.d.ts +1 -1
- package/types/forgeroute-ui-maps.d.ts +1 -1
- package/types/forgeroute-ui-media.d.ts +1221 -0
- package/types/forgeroute-ui-messaging.d.ts +11 -6
- package/types/forgeroute-ui-more-menu.d.ts +91 -0
- package/types/forgeroute-ui-multi-select.d.ts +119 -0
- package/types/forgeroute-ui-notes.d.ts +172 -0
- package/types/forgeroute-ui-notification-bell.d.ts +135 -0
- package/types/forgeroute-ui-offline-banner.d.ts +44 -0
- package/types/forgeroute-ui-option-card.d.ts +106 -0
- package/types/forgeroute-ui-page.d.ts +115 -0
- package/types/forgeroute-ui-pagination.d.ts +55 -0
- package/types/forgeroute-ui-panel-info-list.d.ts +147 -0
- package/types/forgeroute-ui-password-requirements.d.ts +89 -0
- package/types/forgeroute-ui-payments.d.ts +1826 -0
- package/types/forgeroute-ui-pdf.d.ts +1 -1
- package/types/forgeroute-ui-phone-number-picker.d.ts +199 -0
- package/types/forgeroute-ui-pill-tabs.d.ts +208 -0
- package/types/forgeroute-ui-print.d.ts +40 -0
- package/types/forgeroute-ui-progress-bar.d.ts +88 -0
- package/types/forgeroute-ui-progress-ring.d.ts +102 -0
- package/types/forgeroute-ui-quick-filter-tabs.d.ts +51 -0
- package/types/forgeroute-ui-quickbooks.d.ts +6 -3
- package/types/forgeroute-ui-radio-matrix.d.ts +131 -0
- package/types/forgeroute-ui-radio.d.ts +311 -0
- package/types/forgeroute-ui-read-only-mode.d.ts +26 -0
- package/types/forgeroute-ui-readonly-fieldset.d.ts +62 -0
- package/types/forgeroute-ui-reminder-alerts.d.ts +71 -0
- package/types/forgeroute-ui-search-input.d.ts +93 -0
- package/types/forgeroute-ui-section-header.d.ts +149 -0
- package/types/forgeroute-ui-select.d.ts +183 -0
- package/types/forgeroute-ui-setup.d.ts +775 -0
- package/types/forgeroute-ui-share-menu.d.ts +99 -0
- package/types/forgeroute-ui-shell.d.ts +173 -0
- package/types/forgeroute-ui-show.d.ts +40 -0
- package/types/forgeroute-ui-sidebar-layout.d.ts +161 -0
- package/types/forgeroute-ui-skeleton.d.ts +51 -0
- package/types/forgeroute-ui-skip-link.d.ts +51 -0
- package/types/forgeroute-ui-snackbar.d.ts +50 -0
- package/types/forgeroute-ui-square.d.ts +5 -3
- package/types/forgeroute-ui-stack.d.ts +99 -0
- package/types/forgeroute-ui-stacked-bar.d.ts +84 -0
- package/types/forgeroute-ui-stacking-plan.d.ts +116 -0
- package/types/forgeroute-ui-star-rating.d.ts +151 -0
- package/types/forgeroute-ui-star.d.ts +46 -0
- package/types/forgeroute-ui-stepper.d.ts +273 -0
- package/types/forgeroute-ui-stripe.d.ts +1458 -3
- 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-list.mjs","names":[],"sources":["../../../projects/forgeroute-ui/list/src/lib/list/list.component.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, ElementRef, Injector, TemplateRef, afterNextRender, computed, contentChild, inject, input, output, signal, ViewEncapsulation } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { ButtonComponent } from '@forgeroute/ui/core';\nimport { LayoutGap, resolveLayoutGap } from '@forgeroute/ui/layout';\nimport { UiLabelsService, uiText } from '@forgeroute/ui/core';\n\n/** Payload of `(reorder)`. Apply it with `reorderItems(items, order)` or take the ready-made `items`. */\nexport interface ListReorderEvent<T = unknown> {\n /** The row that was moved. */\n item: T;\n /** Index the moved row had before the move. */\n from: number;\n /** Index the moved row has after the move. */\n to: number;\n /** The new index order of the whole list: `order[newIndex] = oldIndex`. */\n order: number[];\n /** The new full order of the items (a new array; the input array is not changed). */\n items: T[];\n}\n\n/**\n * Context handed to the row template:\n * `<ng-template let-item let-i=\"index\" let-n=\"count\" let-first=\"first\" let-last=\"last\" let-dragging=\"dragging\">`.\n */\nexport interface ListRowContext<T = unknown> {\n $implicit: T;\n index: number;\n count: number;\n first: boolean;\n last: boolean;\n /** True while this row is being dragged. */\n dragging: boolean;\n}\n\n/** Returns a new array in the order given by a `ListReorderEvent.order` (the input array is not changed). */\nexport function reorderItems<T>(items: readonly T[], order: readonly number[]): T[] {\n return order.map(i => items[i]);\n}\n\ninterface Row {\n item: unknown;\n key: unknown;\n index: number;\n label: string;\n earlierLabel: string;\n laterLabel: string;\n first: boolean;\n last: boolean;\n dragging: boolean;\n ctx: ListRowContext;\n}\n\nfunction defaultLabel(item: unknown, index: number): string {\n if (typeof item === 'string' && item) return item;\n if (item && typeof item === 'object') {\n const o = item as Record<string, unknown>;\n for (const k of ['title', 'label', 'name']) {\n const v = o[k];\n if (typeof v === 'string' && v) return v;\n }\n }\n if (typeof item === 'number') return String(item);\n return uiText('list.itemN', { n: index + 1 });\n}\n\n/** Spacing between rows when `gap` is not set (or not a valid token / CSS length): flush in a list, 12px in a grid. */\nconst DEFAULT_GAP_LIST = '0px';\nconst DEFAULT_GAP_GRID = '12px';\n\nlet nextId = 0;\n\n/**\n * Semantic list container. Renders a real `<ul>` (default) or `<ol>` (`[ordered]=\"true\"`) whose children are real `<li>`\n * elements, one per entry of `items`. The single `<ng-template>` child renders what is inside each `<li>`, normally a\n * `<ui-list-item>`. Screen readers announce \"list, N items\" and \"item i of N\" natively. `layout=\"grid\"` lays the same\n * `<ul>` out as a wrapping CSS grid (columns of at least `gridMin` px).\n *\n * Optional reordering (`[reorderable]=\"true\"`, off by default): Move buttons, Alt+ArrowUp / Alt+ArrowDown from any\n * focused element in a row, drag and drop plus Shift+Arrow / Home / End on a focused row (default in the grid layout, see\n * `dragDrop`), a polite live region, and `(reorder)` / `(itemsChange)` outputs.\n * The host owns the data: the list never changes `items`. Either bind `[(items)]` (the list emits the new array) or\n * apply the event yourself (`reorderItems`) and pass the new array.\n *\n * <ui-list ariaLabel=\"Documents\" [items]=\"docs()\" [reorderable]=\"true\" (reorder)=\"docs.set($event.items)\">\n * <ng-template let-doc let-i=\"index\">\n * <ui-list-item [interactive]=\"false\" [bordered]=\"true\" [title]=\"doc.title\" [details]=\"[doc.fileName]\" />\n * </ng-template>\n * </ui-list>\n */\n@Component({\n selector: 'ui-list',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [NgTemplateOutlet, ButtonComponent],\n template: `\n <ng-template #rowsTpl>\n @for (row of rows(); track row.key) {\n <li class=\"ul-item\" role=\"listitem\"\n [class.ul-item--moved]=\"row.key === movedKey()\"\n [class.ul-item--draggable]=\"direct()\"\n [class.ul-item--dragging]=\"row.dragging\"\n [class.ul-item--over]=\"dragIndex() !== null && dragIndex() !== row.index && overIndex() === row.index\"\n [class.ul-item--nav]=\"navigable()\"\n [attr.data-index]=\"row.index\"\n [attr.draggable]=\"direct() ? 'true' : null\"\n [attr.tabindex]=\"direct() || navigable() ? 0 : null\"\n [attr.aria-roledescription]=\"direct() ? labels.t('list.sortableItem') : null\"\n [attr.aria-label]=\"direct() ? row.label : null\"\n [attr.aria-describedby]=\"direct() ? helpId : null\">\n <div class=\"ul-row\">\n <div class=\"ul-content\">\n @if (rowTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"row.ctx\" />\n } @else {\n {{ row.label }}\n }\n </div>\n @if (navigable() && arrow()) {\n <svg class=\"ul-chevron\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M9 18l6-6-6-6\"/></svg>\n }\n @if (showControls()) {\n <div class=\"ul-controls\">\n <ui-button variant=\"icon\" data-move=\"up\" [ariaLabel]=\"row.earlierLabel\" [disabled]=\"disabled() || row.first\">\n <svg 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 d=\"M18 15l-6-6-6 6\"/></svg>\n </ui-button>\n <ui-button variant=\"icon\" data-move=\"down\" [ariaLabel]=\"row.laterLabel\" [disabled]=\"disabled() || row.last\">\n <svg 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 d=\"M6 9l6 6 6-6\"/></svg>\n </ui-button>\n </div>\n }\n </div>\n </li>\n }\n </ng-template>\n\n @if (rows().length) {\n @if (ordered()) {\n <ol class=\"ul-list ul-list--ordered\" role=\"list\" [class.ul-list--grid]=\"isGrid()\"\n [style.--ul-gap]=\"gapCss()\" [style.--ul-min.px]=\"isGrid() ? gridMin() : null\"\n [attr.aria-label]=\"ariaLabel() || null\" [attr.aria-labelledby]=\"ariaLabelledby() || null\"\n (keydown)=\"onKeydown($event)\" (click)=\"onClick($event)\" (focusout)=\"onFocusOut($event)\"\n (dragstart)=\"onDragStart($event)\" (dragover)=\"onDragOver($event)\" (drop)=\"onDrop($event)\" (dragend)=\"onDragEnd()\">\n <ng-container [ngTemplateOutlet]=\"rowsTpl\" />\n </ol>\n } @else {\n <ul class=\"ul-list ul-list--unordered\" role=\"list\" [class.ul-list--grid]=\"isGrid()\" [class.ul-list--bulleted]=\"bulleted() && !isGrid()\"\n [style.--ul-gap]=\"gapCss()\" [style.--ul-min.px]=\"isGrid() ? gridMin() : null\"\n [attr.aria-label]=\"ariaLabel() || null\" [attr.aria-labelledby]=\"ariaLabelledby() || null\"\n (keydown)=\"onKeydown($event)\" (click)=\"onClick($event)\" (focusout)=\"onFocusOut($event)\"\n (dragstart)=\"onDragStart($event)\" (dragover)=\"onDragOver($event)\" (drop)=\"onDrop($event)\" (dragend)=\"onDragEnd()\">\n <ng-container [ngTemplateOutlet]=\"rowsTpl\" />\n </ul>\n }\n } @else {\n <ng-content select=\"[list-empty]\" />\n }\n\n @if (direct() && rows().length) {\n <span class=\"ul-sr\" [id]=\"helpId\">{{ helpText() }}</span>\n }\n @if (reorderable()) {\n <div class=\"ul-sr\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\">{{ announcement() }}</div>\n }\n `,\n styles: [`\n ui-list { display: block; min-width: 0; }\n\n .ul-list { margin: 0; padding: 0; min-width: 0; }\n .ul-list--unordered { list-style: none; }\n /* bulleted (library source 2026-11-04): visible disc markers in the start padding, like the numbering of the ordered list. A real <ul> with list-style set also\n keeps its list semantics in Safari / VoiceOver (which drops them for list-style: none). */\n .ul-list--unordered.ul-list--bulleted {\n list-style: disc;\n -webkit-padding-start: 1.25rem;\n padding-inline-start: 1.25rem;\n }\n .ul-list--bulleted > .ul-item::marker { color: var(--text-secondary, #64748b); }\n /* Native numbering (no extra counter): the marker sits in the list's start padding. */\n .ul-list--ordered {\n list-style: decimal;\n -webkit-padding-start: 1.75rem;\n padding-inline-start: 1.75rem;\n }\n .ul-list--ordered > .ul-item::marker { color: var(--text-secondary, #64748b); font-size: 0.875rem; }\n\n /* The <li> stays display:list-item (a flex <li> loses its marker); the flex row is inside it. */\n .ul-item { min-width: 0; transition: background-color 0.4s ease; }\n .ul-item.ul-item--moved { background-color: var(--surface-hover, #f1f5f9); }\n /* List layout: the space between rows (gap, set as --ul-gap on the list) is a top margin, so the <li> keeps normal list flow. */\n .ul-list:not(.ul-list--grid) > .ul-item + .ul-item { margin-top: var(--ul-gap, 0px); }\n /* Plain (not bordered) list items keep the hairline between rows: ui-list-item drops its own bottom line on the last child of its host, and inside a list every item is the only child of its <li>, so the line is restored here for every row but the last. */\n .ul-list:not(.ul-list--grid) > .ul-item:not(:last-child) > .ul-row > .ul-content > ui-list-item:not(.li-bordered) .li-row { border-bottom: 1px solid var(--border, #e2e8f0); }\n\n .ul-row { display: flex; align-items: center; gap: 8px; min-width: 0; }\n .ul-content {\n flex: 1 1 auto;\n min-width: 0;\n word-break: break-word; /* Safari < 15.4 has no overflow-wrap: anywhere */\n overflow-wrap: anywhere;\n }\n .ul-controls { display: flex; flex: 0 0 auto; align-items: center; gap: 2px; }\n /* navigable: the row opens something; the arrow at its end says so (shown only when the host passes [navigable]) */\n .ul-item--nav { cursor: pointer; border-radius: 10px; transition: background-color 0.12s ease; }\n .ul-item--nav:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }\n /* The list's own row element carries the hover tint and the end padding, so the arrow sits inside the tinted area and never moves sideways (no horizontal scrollbar). */\n .ul-item--nav:hover { background: var(--surface-hover, #f8fafc); }\n /* A row holding a bordered card (ui-list-item [bordered]) shows its hover on the card itself, so the tint behind the white card is dropped. */\n .ul-item--nav:hover:has(> .ul-row > .ul-content > ui-list-item.li-bordered) { background: transparent; }\n .ul-item--nav > .ul-row { padding-inline-end: 8px; }\n .ul-item--nav:hover .ul-chevron { color: #0f172a; transform: translateX(2px); }\n .ul-chevron { flex: 0 0 auto; color: #94a3b8; transition: color 0.15s ease, transform 0.15s ease; }\n @media (prefers-reduced-motion: reduce) { .ul-chevron { transition: none; transform: none !important; } }\n /* A row holding a bordered card: the arrow sits INSIDE the card at its end (not beside it), vertically centred, and the card keeps room for it. */\n .ul-item--nav:has(> .ul-row > .ul-content > ui-list-item.li-bordered) > .ul-row { position: relative; padding-inline-end: 0; }\n .ul-item--nav:has(> .ul-row > .ul-content > ui-list-item.li-bordered) > .ul-row > .ul-chevron { position: absolute; inset-inline-end: 12px; top: 50%; margin-top: -10px; pointer-events: none; }\n .ul-item--nav > .ul-row > .ul-content > ui-list-item.li-bordered .li-row { padding-inline-end: 40px; }\n\n /* Grid layout: the same <ul> as a wrapping CSS grid; the controls sit under the content, centred. */\n .ul-list.ul-list--grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(min(var(--ul-min, 130px), 100%), 1fr));\n gap: var(--ul-gap, 12px);\n list-style: none;\n -webkit-padding-start: 0;\n padding-inline-start: 0;\n }\n .ul-list--grid > .ul-item > .ul-row { flex-direction: column; align-items: stretch; gap: 6px; }\n .ul-list--grid > .ul-item > .ul-row > .ul-controls { align-self: center; }\n\n /* Icon buttons get an invisible 8px-larger hit area on touch; widen the gap so neighbours never overlap. */\n @media (pointer: coarse), (max-width: 480px) {\n .ul-controls { gap: 16px; }\n }\n\n /* Direct manipulation (drag and drop, Shift+arrows on a focused row). */\n .ul-item--draggable { -webkit-user-select: none; user-select: none; -webkit-user-drag: element; }\n @media (hover: hover) and (pointer: fine) {\n .ul-item--draggable { cursor: grab; }\n .ul-item--draggable:active { cursor: grabbing; }\n }\n .ul-item--draggable:focus { outline: 2px solid #3b82f6; outline-offset: 2px; border-radius: 6px; }\n .ul-item--draggable:focus:not(:focus-visible) { outline: none; }\n /* A picture inside must not start its own drag (Firefox / Safari would drag the image file instead of the row). */\n ui-list .ul-item--draggable img, ui-list .ul-item--draggable ui-image-preview { pointer-events: none; -webkit-user-drag: none; }\n .ul-item--dragging { opacity: 0.5; }\n .ul-item--over { outline: 2px dashed #3b82f6; outline-offset: 2px; border-radius: 6px; }\n\n @media (prefers-reduced-motion: reduce) {\n .ul-item { transition: none; }\n }\n\n /* Forced-colors drops background colours: give the moved row a non-colour cue (a system-colour outline). */\n @media (forced-colors: active) {\n .ul-item.ul-item--moved { outline: 2px solid Highlight; outline-offset: -2px; }\n }\n @media (forced-colors: active) {\n .ul-item.ul-item--dragging { outline: 2px dotted Highlight; outline-offset: 2px; }\n .ul-item.ul-item--over { outline: 2px dashed Highlight; outline-offset: 2px; }\n .ul-item--draggable:focus { outline: 2px solid Highlight; outline-offset: 2px; }\n }\n\n /* Visually hidden live region / help text (still read by screen readers). */\n .ul-sr {\n position: absolute;\n width: 1px; height: 1px;\n margin: -1px; padding: 0;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n }\n `],\n})\nexport class ListComponent<T = unknown> {\n protected readonly labels = inject(UiLabelsService);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly injector = inject(Injector);\n\n /**\n * The entries to render, one `<li>` each. The host owns this array; the list never changes it. Two-way binding\n * (`[(items)]`) works: the list emits `itemsChange` with the new array and the host stores it.\n */\n readonly items = input<readonly T[]>([]);\n /** `false` (default) renders a `<ul>`; `true` renders an `<ol>` with native numbering (no numbers in the grid layout). */\n readonly ordered = input(false);\n /**\n * Library source 2026-11-04, not yet published. `true` = the `<ul>` shows a visible bullet (disc) before every row, for plain text lines such as a\n * \"what will happen\" list: `<ui-list [items]=\"lines\" [bulleted]=\"true\" ariaLabel=\"What will happen\" />` (string items render as their text, no template needed).\n * Still a real `<ul>` with `<li>` rows. Ignored with `[ordered]=\"true\"` (which already has numbers) and in the grid layout. Default `false` = no markers, as before.\n */\n readonly bulleted = input(false);\n /** 'list' = one column; 'grid' = wrapping columns of at least `gridMin` px (still a real `<ul>`). */\n readonly layout = input<'list' | 'grid'>('list');\n /** Minimum column width in px of the grid layout. */\n readonly gridMin = input(130);\n /**\n * Space between rows (list) or between rows and columns (grid): none | xs | sm | md | lg | xl (0/4/8/16/24/32px, the scale of\n * `ui-stack` / `ui-columns`) or any CSS length (`gap=\"20px\"`). Not set, or not a token / length: 0 in a list, 12px in a grid.\n */\n readonly gap = input<LayoutGap | string | undefined>(undefined);\n /** Turns reordering on. Default `false`: no controls, no live region, no drag, no keys. */\n readonly reorderable = input(false);\n /** Disables all moves (buttons, keys, drag and drop); the rows stay visible. */\n readonly disabled = input(false);\n /**\n * Move buttons on each row (needs `reorderable`). 'auto' (default) = shown in the list layout, hidden in the grid layout;\n * `true` / `false` force them.\n */\n readonly moveControls = input<'auto' | boolean>('auto');\n /**\n * Drag and drop plus focusable rows (Shift+Arrow / Home / End). 'auto' (default) = on in the grid layout, off in the list\n * layout (where the Move buttons are the way); `true` / `false` force it. Needs `reorderable`.\n */\n readonly dragDrop = input<'auto' | boolean>('auto');\n /** Accessible name of the list (`aria-label`). */\n readonly ariaLabel = input<string | undefined>(undefined);\n /** Id of the element naming the list (`aria-labelledby`). */\n readonly ariaLabelledby = input<string | undefined>(undefined);\n /**\n * Row label used in the button names, the row's accessible name and the live announcement. Default: the string itself,\n * else the item's `title`, `label` or `name`, else \"Item N\".\n */\n readonly itemLabelFn = input<(item: T, index: number) => string>(defaultLabel as (item: T, index: number) => string);\n /** Stable identity per row (default: the item object itself) so reordering moves DOM instead of recreating it. */\n readonly trackBy = input<(item: T, index: number) => unknown>((item: T) => item);\n /**\n * Start of the up / earlier button name; the row label is appended (\"Move earlier Image 3\"). Default: \"Move <label> up\"\n * in the list layout, \"Move earlier <label>\" in the grid layout.\n */\n readonly moveEarlierLabel = input<string | undefined>(undefined);\n /** Start of the down / later button name (\"Move later Image 3\"). Default: \"Move <label> down\" (list), \"Move later <label>\" (grid). */\n readonly moveLaterLabel = input<string | undefined>(undefined);\n /** Screen-reader instruction for a focused draggable row (aria-describedby). */\n readonly helpTextInput = input<string | null>(null, { alias: 'helpText' });\n readonly helpText = computed(() => this.helpTextInput() ?? this.labels.t('list.helpText'));\n /** Announcement after a move; receives the row label, the new position (1-based) and the list size. */\n readonly moveAnnouncementInput = input<((label: string, position: number, total: number) => string) | null>(null, { alias: 'moveAnnouncement' });\n readonly moveAnnouncement = computed((): ((label: string, position: number, total: number) => string) =>\n this.moveAnnouncementInput() ?? ((label, position, total) => this.labels.t('list.moved', { label, position, total })));\n\n /** Fires with the new array when the user moves a row (`[(items)]`). The list does not change `items` itself. */\n /** Makes the row open something: a click or Enter on the row (not on a button or link inside it) emits `itemClick`; the arrow only shows with `[arrow]=\"true\"`. Default false: rows are not clickable. */\n readonly navigable = input(false);\n /** The arrow at the end of each row, drawn only with `[navigable]`. Default false (hidden): not every clickable list wants one. `[navigable]` alone keeps the click / Enter / focus behaviour; add `[arrow]=\"true\"` to show it. */\n readonly arrow = input(false);\n /** The row of `[navigable]` that was clicked (or Enter was pressed on). */\n readonly itemClick = output<T>();\n readonly itemsChange = output<T[]>();\n /** Fires when the user moves a row. The host applies it (or uses `[(items)]`) and passes the new `items`. */\n readonly reorder = output<ListReorderEvent<T>>();\n\n protected readonly rowTemplate = contentChild(TemplateRef);\n\n protected readonly helpId = `ul-help-${nextId++}`;\n protected readonly announcement = signal('');\n protected readonly movedKey = signal<unknown>(undefined);\n protected readonly dragIndex = signal<number | null>(null);\n protected readonly overIndex = signal<number | null>(null);\n private pendingFocus: { key: unknown; item: unknown; to: number; dir: -1 | 1; target: 'row' | 'button' } | null = null;\n private announceSeq = 0;\n /** Stable disambiguation tokens for repeated keys (duplicates in a primitive list), reused across recomputes. */\n private dupTokens = new Map<unknown, object[]>();\n\n protected readonly isGrid = computed(() => this.layout() === 'grid');\n private readonly canReorder = computed(() => this.reorderable() && !this.disabled());\n protected readonly showControls = computed(() => {\n if (!this.reorderable()) return false;\n const m = this.moveControls();\n return m === true || (m === 'auto' && !this.isGrid());\n });\n /** Rows are draggable, focusable and move with Shift+arrows. */\n protected readonly direct = computed(() => {\n if (!this.canReorder()) return false;\n const d = this.dragDrop();\n return d === true || (d === 'auto' && this.isGrid());\n });\n\n /** The `--ul-gap` custom property: the token / length, or the default of the layout when unset or invalid. */\n protected readonly gapCss = computed((): string => {\n const fallback = this.isGrid() ? DEFAULT_GAP_GRID : DEFAULT_GAP_LIST;\n const g = this.gap();\n if (g == null || String(g).trim() === '') return fallback;\n // resolveLayoutGap returns the fallback token for anything that is not a token / CSS length: two different fallbacks differ only then.\n const a = resolveLayoutGap(g, 'none');\n return a === resolveLayoutGap(g, 'xl') ? a : fallback;\n });\n\n protected readonly rows = computed((): Row[] => {\n const items = this.items();\n const n = items.length;\n const keyFn = this.trackBy();\n const labelFn = this.itemLabelFn();\n const grid = this.isGrid();\n const earlier = this.moveEarlierLabel();\n const later = this.moveLaterLabel();\n const dragging = this.dragIndex();\n const out: Row[] = new Array(n);\n // @for needs unique keys: a repeated key (e.g. the same string twice) gets a per-occurrence token instead.\n const seen = new Map<unknown, number>();\n const nextTokens = new Map<unknown, object[]>();\n for (let i = 0; i < n; i++) {\n const item = items[i];\n const label = labelFn(item, i);\n let key = keyFn(item, i);\n const occurrence = seen.get(key) ?? 0;\n seen.set(key, occurrence + 1);\n if (occurrence > 0) {\n const tokens = nextTokens.get(key) ?? [];\n nextTokens.set(key, tokens);\n key = tokens[occurrence - 1] = this.dupTokens.get(key)?.[occurrence - 1] ?? {};\n }\n out[i] = {\n item, key, index: i, label,\n earlierLabel: earlier !== undefined ? `${earlier} ${label}` : grid ? this.labels.t('list.moveEarlier', { label }) : this.labels.t('list.moveUp', { label }),\n laterLabel: later !== undefined ? `${later} ${label}` : grid ? this.labels.t('list.moveLater', { label }) : this.labels.t('list.moveDown', { label }),\n first: i === 0, last: i === n - 1,\n dragging: dragging === i,\n ctx: { $implicit: item, index: i, count: n, first: i === 0, last: i === n - 1, dragging: dragging === i },\n };\n }\n this.dupTokens = nextTokens;\n return out;\n });\n\n /** Index of the `<li>` (direct child of this list) that contains `el`, or -1. */\n private rowIndexOf(el: Element | null, list: Element | null): number {\n const li = el?.closest('.ul-item') ?? null;\n if (!li || li.parentElement !== list) return -1;\n return Number(li.getAttribute('data-index'));\n }\n\n /**\n * Moves the row at `from` to position `to` (clamped) and emits `itemsChange` + `reorder`. No-op (returns false) when\n * reordering is off or disabled, `from` is out of range, or nothing would change. Does not touch focus.\n */\n move(from: number, to: number): boolean { return this.apply(from, to, null); }\n\n // ── Keyboard ───────────────────────────────────────────────────\n /** `[navigable]`: a click / Enter on the row itself emits the item; clicks on a control inside the row (button, link, field) are theirs. */\n private emitItemClick(e: Event): void {\n const target = e.target as Element | null;\n if (!target || target.closest('button, a, input, select, textarea, [data-move]')) return;\n const idx = this.rowIndexOf(target, e.currentTarget as Element);\n const row = this.rows()[idx];\n if (row) this.itemClick.emit(row.item as T);\n }\n\n protected onKeydown(e: KeyboardEvent): void {\n if (this.navigable() && e.key === 'Enter' && (e.target as Element | null)?.classList.contains('ul-item')) { this.emitItemClick(e); return; }\n if (!this.canReorder() || e.ctrlKey || e.metaKey) return;\n const list = e.currentTarget as Element;\n const target = e.target as Element | null;\n if (e.altKey && !e.shiftKey) {\n // Alt+ArrowUp / Alt+ArrowDown from anywhere in the row (text fields keep their own keys)\n if (e.key !== 'ArrowUp' && e.key !== 'ArrowDown') return;\n if (target?.closest('input, textarea, select, [contenteditable=\"\"], [contenteditable=\"true\"]')) return;\n const idx = this.rowIndexOf(target, list);\n if (idx < 0) return;\n const onRow = this.direct() && target?.classList.contains('ul-item') === true;\n if (this.apply(idx, idx + (e.key === 'ArrowUp' ? -1 : 1), onRow ? 'row' : 'button')) e.preventDefault();\n return;\n }\n if (e.shiftKey && !e.altKey && this.direct()) {\n // Shift+arrows / Home / End on the focused row itself (keys from a control or field inside the row are theirs)\n if (!target?.classList.contains('ul-item')) return;\n const idx = this.rowIndexOf(target, list);\n if (idx < 0) return;\n let to: number;\n switch (e.key) {\n case 'ArrowUp': case 'ArrowLeft': to = idx - 1; break;\n case 'ArrowDown': case 'ArrowRight': to = idx + 1; break;\n case 'Home': to = 0; break;\n case 'End': to = this.rows().length - 1; break;\n default: return;\n }\n e.preventDefault();\n this.apply(idx, to, 'row');\n }\n }\n\n protected onClick(e: Event): void {\n if (this.navigable()) this.emitItemClick(e);\n if (!this.canReorder()) return;\n const target = e.target as Element | null;\n const btn = target?.closest('[data-move]') ?? null;\n if (!btn) return;\n if (btn.querySelector('button')?.disabled) return;\n const idx = this.rowIndexOf(btn, e.currentTarget as Element);\n if (idx < 0) return;\n const dir = btn.getAttribute('data-move') === 'up' ? -1 : 1;\n this.apply(idx, idx + dir, 'button');\n }\n\n protected onFocusOut(e: FocusEvent): void {\n // A move re-parents the focused row, which can blur it for a moment; focus is restored right after the render.\n if (this.pendingFocus) return;\n const next = e.relatedTarget as Node | null;\n if (!next || !(e.currentTarget as Element).contains(next)) this.movedKey.set(undefined);\n }\n\n // ── Drag and drop (native HTML5; touch screens use the Move buttons) ──\n protected onDragStart(e: DragEvent): void {\n if (!this.direct()) return;\n const idx = this.rowIndexOf(e.target as Element | null, e.currentTarget as Element);\n if (idx < 0) return;\n this.dragIndex.set(idx);\n if (e.dataTransfer) {\n e.dataTransfer.effectAllowed = 'move';\n e.dataTransfer.setData('text/plain', String(idx)); // Firefox does not start a drag without drag data\n }\n }\n\n protected onDragOver(e: DragEvent): void {\n if (!this.direct() || this.dragIndex() === null) return;\n const idx = this.rowIndexOf(e.target as Element | null, e.currentTarget as Element);\n if (idx < 0) return;\n e.preventDefault();\n if (e.dataTransfer) e.dataTransfer.dropEffect = 'move';\n this.overIndex.set(idx);\n }\n\n protected onDrop(e: DragEvent): void {\n const from = this.dragIndex();\n if (!this.direct() || from === null) return;\n const idx = this.rowIndexOf(e.target as Element | null, e.currentTarget as Element);\n if (idx < 0) return;\n e.preventDefault();\n this.onDragEnd();\n this.apply(from, idx, null);\n }\n\n protected onDragEnd(): void {\n this.dragIndex.set(null);\n this.overIndex.set(null);\n }\n\n // ── Moving ─────────────────────────────────────────────────────\n /** Emits the move, announces it and (for key / button moves) restores focus once the host has re-rendered. */\n private apply(from: number, to: number, focus: 'row' | 'button' | null): boolean {\n const rows = this.rows();\n const n = rows.length;\n if (!this.canReorder() || !Number.isInteger(from) || from < 0 || from >= n) return false;\n const target = Math.max(0, Math.min(n - 1, Number.isFinite(to) ? to : from));\n if (target === from) return false;\n const order = rows.map(r => r.index);\n const [moved] = order.splice(from, 1);\n order.splice(target, 0, moved);\n const row = rows[from];\n const items = reorderItems(this.items(), order);\n this.announce(this.moveAnnouncement()(this.itemLabelFn()(row.item as T, target), target + 1, n));\n if (focus) {\n this.movedKey.set(row.key);\n this.pendingFocus = { key: row.key, item: row.item, to: target, dir: target < from ? -1 : 1, target: focus };\n afterNextRender(() => this.restoreFocus(), { injector: this.injector });\n }\n this.itemsChange.emit(items);\n this.reorder.emit({ item: row.item as T, from, to: target, order, items });\n return true;\n }\n\n /** Identical text is not re-read by screen readers, so a repeat of the current message is cleared first and written after the next render. */\n private announce(msg: string): void {\n const seq = ++this.announceSeq;\n if (this.announcement() !== msg) { this.announcement.set(msg); return; }\n this.announcement.set('');\n afterNextRender(() => { if (seq === this.announceSeq) this.announcement.set(msg); }, { injector: this.injector });\n }\n\n private restoreFocus(): void {\n const p = this.pendingFocus;\n this.pendingFocus = null;\n if (!p) return;\n const rows = this.rows();\n // The moved row is normally at `to`; fall back to its key (or an identical twin at `to` for duplicate entries).\n const idx = rows[p.to] && (Object.is(rows[p.to].key, p.key) || Object.is(rows[p.to].item, p.item)) ? p.to : rows.findIndex(r => Object.is(r.key, p.key));\n if (idx < 0) return;\n const li = this.host.nativeElement.querySelector<HTMLElement>(`:scope > .ul-list > .ul-item[data-index=\"${idx}\"]`);\n if (!li) return;\n if (p.target === 'row') { li.focus(); return; }\n const pick = (d: string) => li.querySelector<HTMLElement>(`:scope > .ul-row > .ul-controls > [data-move=\"${d}\"] button:not(:disabled)`);\n const preferred = p.dir === -1 ? 'up' : 'down';\n const btn = pick(preferred) ?? pick(preferred === 'up' ? 'down' : 'up');\n if (btn) btn.focus();\n else if (this.direct()) li.focus(); // no buttons (grid): keep focus on the row itself\n }\n}\n"],"mappings":";;;;;AAmCA,SAAgB,aAAgB,OAAqB,OAAwB;CAC3E,OAAO,MAAM,KAAI,MAAK,MAAM,EAAE;AAChC;AAeA,SAAS,aAAa,MAAe,OAAa;CAChD,IAAI,OAAO,SAAS,YAAY,MAAM,OAAO;CAC7C,IAAI,QAAQ,OAAO,SAAS,UAAU;EACpC,MAAM,IAAI;EACV,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AA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,WAAA;EAAA,CAAA;EAAA,aAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,aAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAA;EAAA,CAAA;EAAA,aAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAAA,WAAW,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, computed, input } from "@angular/core";
|
|
3
|
+
var LiveRegionComponent = class LiveRegionComponent {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.message = input("", ...ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []);
|
|
6
|
+
this.politeness = input("polite", ...ngDevMode ? [{ debugName: "politeness" }] : /* istanbul ignore next */ []);
|
|
7
|
+
this.atomic = input(true, ...ngDevMode ? [{ debugName: "atomic" }] : /* istanbul ignore next */ []);
|
|
8
|
+
this.visible = input(false, ...ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []);
|
|
9
|
+
this.role = computed(() => this.politeness() === "assertive" ? "alert" : "status", ...ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []);
|
|
10
|
+
}
|
|
11
|
+
static {
|
|
12
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
13
|
+
minVersion: "12.0.0",
|
|
14
|
+
version: "22.2.2",
|
|
15
|
+
ngImport: i0,
|
|
16
|
+
type: LiveRegionComponent,
|
|
17
|
+
deps: [],
|
|
18
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
static {
|
|
22
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
23
|
+
minVersion: "17.1.0",
|
|
24
|
+
version: "22.2.2",
|
|
25
|
+
type: LiveRegionComponent,
|
|
26
|
+
isStandalone: true,
|
|
27
|
+
selector: "ui-live-region",
|
|
28
|
+
inputs: {
|
|
29
|
+
message: {
|
|
30
|
+
classPropertyName: "message",
|
|
31
|
+
publicName: "message",
|
|
32
|
+
isSignal: true,
|
|
33
|
+
isRequired: false,
|
|
34
|
+
transformFunction: null
|
|
35
|
+
},
|
|
36
|
+
politeness: {
|
|
37
|
+
classPropertyName: "politeness",
|
|
38
|
+
publicName: "politeness",
|
|
39
|
+
isSignal: true,
|
|
40
|
+
isRequired: false,
|
|
41
|
+
transformFunction: null
|
|
42
|
+
},
|
|
43
|
+
atomic: {
|
|
44
|
+
classPropertyName: "atomic",
|
|
45
|
+
publicName: "atomic",
|
|
46
|
+
isSignal: true,
|
|
47
|
+
isRequired: false,
|
|
48
|
+
transformFunction: null
|
|
49
|
+
},
|
|
50
|
+
visible: {
|
|
51
|
+
classPropertyName: "visible",
|
|
52
|
+
publicName: "visible",
|
|
53
|
+
isSignal: true,
|
|
54
|
+
isRequired: false,
|
|
55
|
+
transformFunction: null
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
ngImport: i0,
|
|
59
|
+
template: `<div class="lr" [class.lr-hidden]="!visible()" [attr.role]="role()" [attr.aria-live]="politeness()" [attr.aria-atomic]="atomic() ? 'true' : 'false'">{{ message() }}</div>`,
|
|
60
|
+
isInline: true,
|
|
61
|
+
styles: [":host{display:block}.lr-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);white-space:nowrap}\n"],
|
|
62
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
67
|
+
minVersion: "12.0.0",
|
|
68
|
+
version: "22.2.2",
|
|
69
|
+
ngImport: i0,
|
|
70
|
+
type: LiveRegionComponent,
|
|
71
|
+
decorators: [{
|
|
72
|
+
type: Component,
|
|
73
|
+
args: [{
|
|
74
|
+
selector: "ui-live-region",
|
|
75
|
+
standalone: true,
|
|
76
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
77
|
+
template: `<div class="lr" [class.lr-hidden]="!visible()" [attr.role]="role()" [attr.aria-live]="politeness()" [attr.aria-atomic]="atomic() ? 'true' : 'false'">{{ message() }}</div>`,
|
|
78
|
+
styles: [":host{display:block}.lr-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);white-space:nowrap}\n"]
|
|
79
|
+
}]
|
|
80
|
+
}],
|
|
81
|
+
propDecorators: {
|
|
82
|
+
message: [{
|
|
83
|
+
type: i0.Input,
|
|
84
|
+
args: [{
|
|
85
|
+
isSignal: true,
|
|
86
|
+
alias: "message",
|
|
87
|
+
required: false
|
|
88
|
+
}]
|
|
89
|
+
}],
|
|
90
|
+
politeness: [{
|
|
91
|
+
type: i0.Input,
|
|
92
|
+
args: [{
|
|
93
|
+
isSignal: true,
|
|
94
|
+
alias: "politeness",
|
|
95
|
+
required: false
|
|
96
|
+
}]
|
|
97
|
+
}],
|
|
98
|
+
atomic: [{
|
|
99
|
+
type: i0.Input,
|
|
100
|
+
args: [{
|
|
101
|
+
isSignal: true,
|
|
102
|
+
alias: "atomic",
|
|
103
|
+
required: false
|
|
104
|
+
}]
|
|
105
|
+
}],
|
|
106
|
+
visible: [{
|
|
107
|
+
type: i0.Input,
|
|
108
|
+
args: [{
|
|
109
|
+
isSignal: true,
|
|
110
|
+
alias: "visible",
|
|
111
|
+
required: false
|
|
112
|
+
}]
|
|
113
|
+
}]
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
export { LiveRegionComponent };
|
|
117
|
+
|
|
118
|
+
//# sourceMappingURL=forgeroute-ui-live-region.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forgeroute-ui-live-region.mjs","names":[],"sources":["../../../projects/forgeroute-ui/live-region/src/lib/live-region/live-region.component.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, computed, input } from '@angular/core';\n\nexport type LiveRegionPoliteness = 'polite' | 'assertive';\n\n/**\n * A screen-reader announcement area. The element is always in the DOM and only its text changes, which is what makes\n * assistive tech (VoiceOver / Safari included) announce reliably - a live region that is inserted together with its text\n * often is not announced.\n *\n * <ui-live-region [message]=\"announcement()\" /> <!-- \"Step 3 of 5: Deceased\" -->\n * <ui-live-region [message]=\"error()\" politeness=\"assertive\" /> <!-- role=\"alert\" -->\n * <ui-live-region [message]=\"status()\" [visible]=\"true\" /> <!-- also shown on screen -->\n *\n * By default it is visually hidden (still read aloud). `politeness` \"polite\" (default, `role=\"status\"`) waits for the\n * user to be idle; \"assertive\" (`role=\"alert\"`) interrupts. `atomic` (default true) reads the whole message again when it\n * changes. Set the message to '' to clear it. Announcing the same text twice in a row needs a different message in\n * between (for example clear it first); screen readers ignore an unchanged region.\n */\n@Component({\n selector: 'ui-live-region',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<div class=\"lr\" [class.lr-hidden]=\"!visible()\" [attr.role]=\"role()\" [attr.aria-live]=\"politeness()\" [attr.aria-atomic]=\"atomic() ? 'true' : 'false'\">{{ message() }}</div>`,\n styles: [`\n :host { display: block; }\n .lr-hidden {\n position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden;\n clip: rect(0 0 0 0); -webkit-clip-path: inset(50%); clip-path: inset(50%); white-space: nowrap;\n }\n `],\n})\nexport class LiveRegionComponent {\n /** The text to announce. */\n readonly message = input('');\n readonly politeness = input<LiveRegionPoliteness>('polite');\n /** Read the whole message (not just the changed part) when it changes. */\n readonly atomic = input(true);\n /** Show the text on screen too. Default false: visually hidden, still announced. */\n readonly visible = input(false);\n\n protected readonly role = computed(() => (this.politeness() === 'assertive' ? 'alert' : 'status'));\n}\n"],"mappings":";;AA+BA,IAAa,sBAAb,MAAa,oBAAmB;CAbhC,cAAA;EAeW,KAAA,UAAU,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;EACnB,KAAA,aAAa,MAA4B,UAAS,GAAA,YAAA,CAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;EAElD,KAAA,SAAS,MAAM,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;EAEpB,KAAA,UAAU,MAAM,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;EAEZ,KAAA,OAAO,eAAgB,KAAK,WAAU,MAAO,cAAc,UAAU,UAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CACnG;CAVY;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAmB,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAnB;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAmB,cAAA;GAAA,UAAA;GAAA,QAAA;IAAA,SAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,YAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,QAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,SAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;GAAA;GAAA,UAAA;GAAA,UATpB;GAA4K,UAAA;GAAA,QAAA,CAAA,iNAAA;GAAA,iBAAA,GAAA,wBAAA;EAAA,CAAA;CAAA;;AAS3K,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAmB,YAAA,CAAA;EAb/B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAgB,YACd;GAAI,iBACC,wBAAwB;GAAM,UACrC;GAA4K,QAAA,CAAA,iNAAA;EAAA,CAAA"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { ChangeDetectionStrategy, Component, DestroyRef, Directive, InjectionToken, NgZone, PLATFORM_ID, TemplateRef, ViewEncapsulation, computed, contentChild, effect, inject, input, model, output, signal, untracked, viewChild } from "@angular/core";
|
|
3
3
|
import { NgTemplateOutlet, isPlatformBrowser } from "@angular/common";
|
|
4
|
-
import { ButtonComponent,
|
|
4
|
+
import { ButtonComponent, UiLabelsService } from "@forgeroute/ui/core";
|
|
5
5
|
import * as i1 from "@angular/forms";
|
|
6
6
|
import { FormsModule } from "@angular/forms";
|
|
7
|
+
import { FormRowComponent } from "@forgeroute/ui/form-row";
|
|
8
|
+
import { FormSectionComponent } from "@forgeroute/ui/form-section";
|
|
9
|
+
import { SelectComponent } from "@forgeroute/ui/select";
|
|
10
|
+
import { TextInputComponent } from "@forgeroute/ui/text-input";
|
|
7
11
|
const EARTH_RADIUS_METERS = 6371008.8;
|
|
8
12
|
const toRad = (deg) => deg * Math.PI / 180;
|
|
9
13
|
const toDeg = (rad) => rad * 180 / Math.PI;
|