@forgeroute/ui 0.5.15 → 0.5.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/forgeroute-ui-action-bar.mjs +190 -0
- package/fesm2022/forgeroute-ui-action-bar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-address-input.mjs +1164 -0
- package/fesm2022/forgeroute-ui-address-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-alert.mjs +223 -0
- package/fesm2022/forgeroute-ui-alert.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-avatar.mjs +320 -0
- package/fesm2022/forgeroute-ui-avatar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-badge.mjs +158 -0
- package/fesm2022/forgeroute-ui-badge.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-bar-row.mjs +255 -0
- package/fesm2022/forgeroute-ui-bar-row.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-boards.mjs +2201 -0
- package/fesm2022/forgeroute-ui-boards.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-bulk-eligible.mjs +172 -0
- package/fesm2022/forgeroute-ui-bulk-eligible.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-business-hours.mjs +771 -0
- package/fesm2022/forgeroute-ui-business-hours.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-calendar.mjs +2006 -0
- package/fesm2022/forgeroute-ui-calendar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-card-list-item.mjs +556 -0
- package/fesm2022/forgeroute-ui-card-list-item.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-charts.mjs +1 -1
- package/fesm2022/forgeroute-ui-charts.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-checkbox.mjs +815 -0
- package/fesm2022/forgeroute-ui-checkbox.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-chip.mjs +379 -0
- package/fesm2022/forgeroute-ui-chip.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-color-input.mjs +492 -0
- package/fesm2022/forgeroute-ui-color-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-column-filter.mjs +645 -0
- package/fesm2022/forgeroute-ui-column-filter.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-columns.mjs +351 -0
- package/fesm2022/forgeroute-ui-columns.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-combobox.mjs +772 -0
- package/fesm2022/forgeroute-ui-combobox.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-confirm.mjs +48 -0
- package/fesm2022/forgeroute-ui-confirm.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-contact-picker.mjs +865 -0
- package/fesm2022/forgeroute-ui-contact-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-conversations.mjs +3627 -0
- package/fesm2022/forgeroute-ui-conversations.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-copy-field.mjs +378 -0
- package/fesm2022/forgeroute-ui-copy-field.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-data-table-core.mjs +6150 -0
- package/fesm2022/forgeroute-ui-data-table-core.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-date-input.mjs +384 -0
- package/fesm2022/forgeroute-ui-date-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-date-range-picker.mjs +453 -0
- package/fesm2022/forgeroute-ui-date-range-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-datetime-input.mjs +375 -0
- package/fesm2022/forgeroute-ui-datetime-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-detail-card.mjs +655 -0
- package/fesm2022/forgeroute-ui-detail-card.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-discount-selector.mjs +259 -0
- package/fesm2022/forgeroute-ui-discount-selector.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-divider.mjs +111 -0
- package/fesm2022/forgeroute-ui-divider.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-dropdown.mjs +550 -0
- package/fesm2022/forgeroute-ui-dropdown.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-editor.mjs +4545 -0
- package/fesm2022/forgeroute-ui-editor.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-empty-state.mjs +231 -0
- package/fesm2022/forgeroute-ui-empty-state.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-error-state.mjs +195 -0
- package/fesm2022/forgeroute-ui-error-state.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-error.mjs +93 -0
- package/fesm2022/forgeroute-ui-error.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-fade.mjs +117 -0
- package/fesm2022/forgeroute-ui-fade.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-file-input.mjs +999 -0
- package/fesm2022/forgeroute-ui-file-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-fixed-footer.mjs +115 -0
- package/fesm2022/forgeroute-ui-fixed-footer.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-form-row.mjs +126 -0
- package/fesm2022/forgeroute-ui-form-row.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-form-section.mjs +93 -0
- package/fesm2022/forgeroute-ui-form-section.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-form.mjs +139 -0
- package/fesm2022/forgeroute-ui-form.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-hint.mjs +47 -0
- package/fesm2022/forgeroute-ui-hint.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-icon-picker.mjs +424 -0
- package/fesm2022/forgeroute-ui-icon-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-icon.mjs +311 -0
- package/fesm2022/forgeroute-ui-icon.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-image-preview.mjs +237 -0
- package/fesm2022/forgeroute-ui-image-preview.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-keypad.mjs +278 -0
- package/fesm2022/forgeroute-ui-keypad.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-kpi-card.mjs +490 -0
- package/fesm2022/forgeroute-ui-kpi-card.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-language-switcher.mjs +134 -0
- package/fesm2022/forgeroute-ui-language-switcher.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-layout.mjs +18 -0
- package/fesm2022/forgeroute-ui-layout.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-list-item.mjs +620 -0
- package/fesm2022/forgeroute-ui-list-item.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-list.mjs +866 -0
- package/fesm2022/forgeroute-ui-list.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-live-region.mjs +118 -0
- package/fesm2022/forgeroute-ui-live-region.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-map.mjs +5 -1
- package/fesm2022/forgeroute-ui-map.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-maps.mjs +2 -1
- package/fesm2022/forgeroute-ui-maps.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-media.mjs +4615 -0
- package/fesm2022/forgeroute-ui-media.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-messaging.mjs +20 -1
- package/fesm2022/forgeroute-ui-messaging.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-more-menu.mjs +418 -0
- package/fesm2022/forgeroute-ui-more-menu.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-multi-select.mjs +532 -0
- package/fesm2022/forgeroute-ui-multi-select.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-notes.mjs +768 -0
- package/fesm2022/forgeroute-ui-notes.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-notification-bell.mjs +587 -0
- package/fesm2022/forgeroute-ui-notification-bell.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-offline-banner.mjs +156 -0
- package/fesm2022/forgeroute-ui-offline-banner.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-option-card.mjs +379 -0
- package/fesm2022/forgeroute-ui-option-card.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-page.mjs +317 -0
- package/fesm2022/forgeroute-ui-page.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-pagination.mjs +225 -0
- package/fesm2022/forgeroute-ui-pagination.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-panel-info-list.mjs +422 -0
- package/fesm2022/forgeroute-ui-panel-info-list.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-password-requirements.mjs +237 -0
- package/fesm2022/forgeroute-ui-password-requirements.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-payments.mjs +6243 -0
- package/fesm2022/forgeroute-ui-payments.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-pdf.mjs +9 -1
- package/fesm2022/forgeroute-ui-pdf.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-phone-number-picker.mjs +840 -0
- package/fesm2022/forgeroute-ui-phone-number-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-pill-tabs.mjs +546 -0
- package/fesm2022/forgeroute-ui-pill-tabs.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-print.mjs +76 -0
- package/fesm2022/forgeroute-ui-print.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-progress-bar.mjs +252 -0
- package/fesm2022/forgeroute-ui-progress-bar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-progress-ring.mjs +277 -0
- package/fesm2022/forgeroute-ui-progress-ring.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-quick-filter-tabs.mjs +301 -0
- package/fesm2022/forgeroute-ui-quick-filter-tabs.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-quickbooks.mjs +20 -3
- package/fesm2022/forgeroute-ui-quickbooks.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-radio-matrix.mjs +471 -0
- package/fesm2022/forgeroute-ui-radio-matrix.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-radio.mjs +911 -0
- package/fesm2022/forgeroute-ui-radio.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-read-only-mode.mjs +15 -0
- package/fesm2022/forgeroute-ui-read-only-mode.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-readonly-fieldset.mjs +146 -0
- package/fesm2022/forgeroute-ui-readonly-fieldset.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-reminder-alerts.mjs +249 -0
- package/fesm2022/forgeroute-ui-reminder-alerts.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-search-input.mjs +373 -0
- package/fesm2022/forgeroute-ui-search-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-section-header.mjs +296 -0
- package/fesm2022/forgeroute-ui-section-header.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-select.mjs +498 -0
- package/fesm2022/forgeroute-ui-select.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-setup.mjs +4649 -0
- package/fesm2022/forgeroute-ui-setup.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-share-menu.mjs +461 -0
- package/fesm2022/forgeroute-ui-share-menu.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-shell.mjs +981 -0
- package/fesm2022/forgeroute-ui-shell.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-show.mjs +129 -0
- package/fesm2022/forgeroute-ui-show.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-sidebar-layout.mjs +355 -0
- package/fesm2022/forgeroute-ui-sidebar-layout.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-skeleton.mjs +152 -0
- package/fesm2022/forgeroute-ui-skeleton.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-skip-link.mjs +129 -0
- package/fesm2022/forgeroute-ui-skip-link.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-snackbar.mjs +200 -0
- package/fesm2022/forgeroute-ui-snackbar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-square.mjs +17 -3
- package/fesm2022/forgeroute-ui-square.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-stack.mjs +233 -0
- package/fesm2022/forgeroute-ui-stack.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stacked-bar.mjs +200 -0
- package/fesm2022/forgeroute-ui-stacked-bar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stacking-plan.mjs +365 -0
- package/fesm2022/forgeroute-ui-stacking-plan.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-star-rating.mjs +498 -0
- package/fesm2022/forgeroute-ui-star-rating.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-star.mjs +184 -0
- package/fesm2022/forgeroute-ui-star.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stepper.mjs +615 -0
- package/fesm2022/forgeroute-ui-stepper.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stripe.mjs +16 -3
- package/fesm2022/forgeroute-ui-stripe.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-swatch-picker.mjs +416 -0
- package/fesm2022/forgeroute-ui-swatch-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-table-toolbar.mjs +770 -0
- package/fesm2022/forgeroute-ui-table-toolbar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-table-types.mjs +277 -0
- package/fesm2022/forgeroute-ui-table-types.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-text-input.mjs +1003 -0
- package/fesm2022/forgeroute-ui-text-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-text-template-picker.mjs +356 -0
- package/fesm2022/forgeroute-ui-text-template-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-text.mjs +195 -0
- package/fesm2022/forgeroute-ui-text.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-textarea-input.mjs +542 -0
- package/fesm2022/forgeroute-ui-textarea-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-time-input.mjs +401 -0
- package/fesm2022/forgeroute-ui-time-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-timeline.mjs +549 -0
- package/fesm2022/forgeroute-ui-timeline.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-toast.mjs +507 -0
- package/fesm2022/forgeroute-ui-toast.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-toggle-badge.mjs +177 -0
- package/fesm2022/forgeroute-ui-toggle-badge.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-toggle.mjs +275 -0
- package/fesm2022/forgeroute-ui-toggle.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-tooltip.mjs +155 -0
- package/fesm2022/forgeroute-ui-tooltip.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-utils.mjs +1071 -0
- package/fesm2022/forgeroute-ui-utils.mjs.map +1 -0
- package/fesm2022/forgeroute-ui.mjs +105 -70663
- package/package.json +417 -1
- package/types/forgeroute-ui-action-bar.d.ts +74 -0
- package/types/forgeroute-ui-address-input.d.ts +354 -0
- package/types/forgeroute-ui-alert.d.ts +89 -0
- package/types/forgeroute-ui-avatar.d.ts +85 -0
- package/types/forgeroute-ui-badge.d.ts +45 -0
- package/types/forgeroute-ui-bar-row.d.ts +90 -0
- package/types/forgeroute-ui-boards.d.ts +575 -0
- package/types/forgeroute-ui-bulk-eligible.d.ts +53 -0
- package/types/forgeroute-ui-business-hours.d.ts +191 -0
- package/types/forgeroute-ui-calendar.d.ts +544 -0
- package/types/forgeroute-ui-card-list-item.d.ts +186 -0
- package/types/forgeroute-ui-charts.d.ts +1 -1
- package/types/forgeroute-ui-checkbox.d.ts +270 -0
- package/types/forgeroute-ui-chip.d.ts +125 -0
- package/types/forgeroute-ui-color-input.d.ts +160 -0
- package/types/forgeroute-ui-column-filter.d.ts +130 -0
- package/types/forgeroute-ui-columns.d.ts +150 -0
- package/types/forgeroute-ui-combobox.d.ts +252 -0
- package/types/forgeroute-ui-confirm.d.ts +34 -0
- package/types/forgeroute-ui-contact-picker.d.ts +173 -0
- package/types/forgeroute-ui-conversations.d.ts +993 -0
- package/types/forgeroute-ui-copy-field.d.ts +122 -0
- package/types/forgeroute-ui-data-table-core.d.ts +1221 -0
- package/types/forgeroute-ui-date-input.d.ts +101 -0
- package/types/forgeroute-ui-date-range-picker.d.ts +109 -0
- package/types/forgeroute-ui-datetime-input.d.ts +97 -0
- package/types/forgeroute-ui-detail-card.d.ts +252 -0
- package/types/forgeroute-ui-discount-selector.d.ts +57 -0
- package/types/forgeroute-ui-divider.d.ts +40 -0
- package/types/forgeroute-ui-dropdown.d.ts +156 -0
- package/types/forgeroute-ui-editor.d.ts +873 -0
- package/types/forgeroute-ui-empty-state.d.ts +29 -0
- package/types/forgeroute-ui-error-state.d.ts +38 -0
- package/types/forgeroute-ui-error.d.ts +29 -0
- package/types/forgeroute-ui-fade.d.ts +39 -0
- package/types/forgeroute-ui-file-input.d.ts +337 -0
- package/types/forgeroute-ui-fixed-footer.d.ts +53 -0
- package/types/forgeroute-ui-form-row.d.ts +30 -0
- package/types/forgeroute-ui-form-section.d.ts +18 -0
- package/types/forgeroute-ui-form.d.ts +68 -0
- package/types/forgeroute-ui-hint.d.ts +10 -0
- package/types/forgeroute-ui-icon-picker.d.ts +122 -0
- package/types/forgeroute-ui-icon.d.ts +95 -0
- package/types/forgeroute-ui-image-preview.d.ts +88 -0
- package/types/forgeroute-ui-keypad.d.ts +73 -0
- package/types/forgeroute-ui-kpi-card.d.ts +161 -0
- package/types/forgeroute-ui-language-switcher.d.ts +41 -0
- package/types/forgeroute-ui-layout.d.ts +13 -0
- package/types/forgeroute-ui-list-item.d.ts +253 -0
- package/types/forgeroute-ui-list.d.ts +282 -0
- package/types/forgeroute-ui-live-region.d.ts +49 -0
- package/types/forgeroute-ui-map.d.ts +1 -1
- package/types/forgeroute-ui-maps.d.ts +1 -1
- package/types/forgeroute-ui-media.d.ts +1221 -0
- package/types/forgeroute-ui-messaging.d.ts +11 -6
- package/types/forgeroute-ui-more-menu.d.ts +91 -0
- package/types/forgeroute-ui-multi-select.d.ts +119 -0
- package/types/forgeroute-ui-notes.d.ts +172 -0
- package/types/forgeroute-ui-notification-bell.d.ts +135 -0
- package/types/forgeroute-ui-offline-banner.d.ts +44 -0
- package/types/forgeroute-ui-option-card.d.ts +106 -0
- package/types/forgeroute-ui-page.d.ts +115 -0
- package/types/forgeroute-ui-pagination.d.ts +55 -0
- package/types/forgeroute-ui-panel-info-list.d.ts +147 -0
- package/types/forgeroute-ui-password-requirements.d.ts +89 -0
- package/types/forgeroute-ui-payments.d.ts +1818 -0
- package/types/forgeroute-ui-pdf.d.ts +1 -1
- package/types/forgeroute-ui-phone-number-picker.d.ts +199 -0
- package/types/forgeroute-ui-pill-tabs.d.ts +208 -0
- package/types/forgeroute-ui-print.d.ts +40 -0
- package/types/forgeroute-ui-progress-bar.d.ts +88 -0
- package/types/forgeroute-ui-progress-ring.d.ts +102 -0
- package/types/forgeroute-ui-quick-filter-tabs.d.ts +51 -0
- package/types/forgeroute-ui-quickbooks.d.ts +6 -3
- package/types/forgeroute-ui-radio-matrix.d.ts +131 -0
- package/types/forgeroute-ui-radio.d.ts +311 -0
- package/types/forgeroute-ui-read-only-mode.d.ts +26 -0
- package/types/forgeroute-ui-readonly-fieldset.d.ts +62 -0
- package/types/forgeroute-ui-reminder-alerts.d.ts +71 -0
- package/types/forgeroute-ui-search-input.d.ts +93 -0
- package/types/forgeroute-ui-section-header.d.ts +149 -0
- package/types/forgeroute-ui-select.d.ts +183 -0
- package/types/forgeroute-ui-setup.d.ts +775 -0
- package/types/forgeroute-ui-share-menu.d.ts +99 -0
- package/types/forgeroute-ui-shell.d.ts +173 -0
- package/types/forgeroute-ui-show.d.ts +40 -0
- package/types/forgeroute-ui-sidebar-layout.d.ts +161 -0
- package/types/forgeroute-ui-skeleton.d.ts +51 -0
- package/types/forgeroute-ui-skip-link.d.ts +51 -0
- package/types/forgeroute-ui-snackbar.d.ts +50 -0
- package/types/forgeroute-ui-square.d.ts +5 -3
- package/types/forgeroute-ui-stack.d.ts +99 -0
- package/types/forgeroute-ui-stacked-bar.d.ts +84 -0
- package/types/forgeroute-ui-stacking-plan.d.ts +116 -0
- package/types/forgeroute-ui-star-rating.d.ts +151 -0
- package/types/forgeroute-ui-star.d.ts +46 -0
- package/types/forgeroute-ui-stepper.d.ts +273 -0
- package/types/forgeroute-ui-stripe.d.ts +4 -2
- package/types/forgeroute-ui-swatch-picker.d.ts +118 -0
- package/types/forgeroute-ui-table-toolbar.d.ts +116 -0
- package/types/forgeroute-ui-table-types.d.ts +624 -0
- package/types/forgeroute-ui-text-input.d.ts +359 -0
- package/types/forgeroute-ui-text-template-picker.d.ts +100 -0
- package/types/forgeroute-ui-text.d.ts +76 -0
- package/types/forgeroute-ui-textarea-input.d.ts +174 -0
- package/types/forgeroute-ui-time-input.d.ts +105 -0
- package/types/forgeroute-ui-timeline.d.ts +196 -0
- package/types/forgeroute-ui-toast.d.ts +131 -0
- package/types/forgeroute-ui-toggle-badge.d.ts +64 -0
- package/types/forgeroute-ui-toggle.d.ts +92 -0
- package/types/forgeroute-ui-tooltip.d.ts +36 -0
- package/types/forgeroute-ui-utils.d.ts +210 -0
- package/types/forgeroute-ui.d.ts +106 -19539
- package/fesm2022/forgeroute-ui.mjs.map +0 -1
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { AfterContentChecked } from "@angular/core";
|
|
3
|
+
import { BadgeVariant } from "@forgeroute/ui/table-types";
|
|
4
|
+
/**
|
|
5
|
+
* Fixed-layout list item with an optional leading radio/checkbox, a title + badge,
|
|
6
|
+
* and a secondary detail row rendered from a string array. All layout is handled
|
|
7
|
+
* internally — pass inputs only; the one optional projection is the row-end action slot
|
|
8
|
+
* (`list-item-action`, alias `li-action`, see below).
|
|
9
|
+
*
|
|
10
|
+
* Usage:
|
|
11
|
+
* <ui-list-item
|
|
12
|
+
* leading="radio"
|
|
13
|
+
* inputName="survivor-group1"
|
|
14
|
+
* [inputId]="'row-' + c.id"
|
|
15
|
+
* [checked]="selected"
|
|
16
|
+
* [highlighted]="selected"
|
|
17
|
+
* [title]="c.firstName + ' ' + c.lastName"
|
|
18
|
+
* badge="KEEP"
|
|
19
|
+
* badgeVariant="green"
|
|
20
|
+
* [details]="[c.email, c.phone, 'Added ' + (c.createdAt | date:'MMM d, y')]"
|
|
21
|
+
* (select)="onSelect(c.id)" />
|
|
22
|
+
*
|
|
23
|
+
* Read-only row with actions (2026-10-19): `[interactive]="false"` renders a plain row (no label, no leading
|
|
24
|
+
* input, no pointer cursor, no hover tint, nothing focusable) and `[alwaysShowBadge]="true"` shows the badge
|
|
25
|
+
* without needing `checked`. Elements carrying `list-item-action` (alias `li-action`) are projected at the
|
|
26
|
+
* row end, vertically centred, after the text; they sit outside the row's label so clicking them never emits
|
|
27
|
+
* `select`. Absent = no extra DOM. Example:
|
|
28
|
+
* <ui-list-item [interactive]="false" [bordered]="true" [title]="d.name" [details]="[d.fileName]"
|
|
29
|
+
* badge="Archived" badgeVariant="gray" [alwaysShowBadge]="true">
|
|
30
|
+
* <ui-button list-item-action variant="icon" ariaLabel="Remove" (click)="remove(d)">…</ui-button>
|
|
31
|
+
* </ui-list-item>
|
|
32
|
+
*
|
|
33
|
+
* Library source 2026-11-05, not yet published: row-end content slot. An element with the `list-item-end` attribute (a `<ui-star-rating>`, a badge, a price...) is
|
|
34
|
+
* projected at the END of the row, after the text and before the busy spinner and the `list-item-action` buttons, vertically centred, at its own size. Like the action
|
|
35
|
+
* slot it sits outside the row's label: clicks inside it never emit `select` (also on a plain pressable row), and Enter / Space inside it are not treated as a row
|
|
36
|
+
* press. Absent = no extra DOM, nothing changes. Accessibility note: a plain pressable row (`leading="none"`, interactive) is `role="button"`, whose children are presentational, so
|
|
37
|
+
* INTERACTIVE content in this slot (a `<ui-star-rating>`, a button) should go on a row with `[interactive]="false"` (no role, nothing pressable); a badge or other static text is fine on any row.
|
|
38
|
+
* <ui-list-item [title]="r.name" [details]="[r.date]"><ui-star-rating list-item-end [readonly]="true" [value]="r.rating" [size]="16" /></ui-list-item>
|
|
39
|
+
*
|
|
40
|
+
* Library source 2026-11-04, not yet published: `[disabled]` (aria-disabled, not focusable, never emits `select`, non-colour cue), `[busy]`
|
|
41
|
+
* (aria-busy, spinner, presses ignored) and a leading image slot, `<img list-item-image>` / `<ui-image list-item-image>`, rendered in front of
|
|
42
|
+
* the text and instead of the icon tile (clicks on it select a plain row; on a radio / checkbox row they do not, because the image sits outside
|
|
43
|
+
* the label). An interactive image (`<ui-image list-item-image [interactive]="true" (activate)=...>`) inside a plain pressable row: a click emits the
|
|
44
|
+
* image's `activate` AND selects the row (the click bubbles); Enter / Space on the image emit `activate` only (the row's key handler ignores keys
|
|
45
|
+
* whose target is not the row itself). Row-end actions stay in `list-item-action`.
|
|
46
|
+
* <ui-list-item [title]="p.name" [details]="[p.price]" [disabled]="p.soldOut" [busy]="adding() === p.id" (select)="add(p)">
|
|
47
|
+
* <ui-image list-item-image [src]="p.photo" [alt]="p.name" width="48px" height="48px" fit="cover" radius="md" />
|
|
48
|
+
* </ui-list-item>
|
|
49
|
+
*/
|
|
50
|
+
/** One secondary line under the title: plain text, or text with a small icon and a tone (`danger` red, `warning` amber). */
|
|
51
|
+
export type ListItemDetail = string | {
|
|
52
|
+
text?: string;
|
|
53
|
+
segments?: ListItemSegment[];
|
|
54
|
+
icon?: string;
|
|
55
|
+
tone?: 'default' | 'warning' | 'danger';
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* One piece of a rich detail line (library source 2026-11-04, not yet published): plain text, or text shown in bold and/or as inline code. Rich text
|
|
59
|
+
* is structured data, never HTML, so nothing is injected. `{ segments: ['Click ', { text: 'Connect', bold: true }, ' and copy ', { text: 'client_id', code: true }] }`
|
|
60
|
+
* renders `Click <strong>Connect</strong> and copy <code>client_id</code>`. A detail with `segments` ignores `text` for display (when `text` is empty
|
|
61
|
+
* the segments' plain text is used, e.g. for the visible-line check).
|
|
62
|
+
*/
|
|
63
|
+
export type ListItemSegment = string | {
|
|
64
|
+
text: string;
|
|
65
|
+
bold?: boolean;
|
|
66
|
+
code?: boolean;
|
|
67
|
+
};
|
|
68
|
+
/** Colour of the optional leading icon tile. */
|
|
69
|
+
export type ListItemIconColor = 'slate' | 'amber' | 'red' | 'blue' | 'green' | 'purple' | 'teal' | 'orange';
|
|
70
|
+
export declare class ListItemComponent implements AfterContentChecked {
|
|
71
|
+
private readonly host;
|
|
72
|
+
/** Show a radio button, checkbox, or nothing on the left. */
|
|
73
|
+
readonly leading: import("@angular/core").InputSignal<"radio" | "checkbox" | "none">;
|
|
74
|
+
/** `name` attribute for the radio/checkbox (groups radios together). */
|
|
75
|
+
readonly inputName: import("@angular/core").InputSignal<string>;
|
|
76
|
+
/** `id` attribute for the radio/checkbox (links the label). */
|
|
77
|
+
readonly inputId: import("@angular/core").InputSignal<string>;
|
|
78
|
+
/** Whether this item is currently selected/checked. */
|
|
79
|
+
readonly checked: import("@angular/core").InputSignal<boolean>;
|
|
80
|
+
/** Highlights the row (e.g. green tint for the selected "keep" row). */
|
|
81
|
+
readonly highlighted: import("@angular/core").InputSignal<boolean>;
|
|
82
|
+
/** Wraps the item in a bordered card (border + border-radius). */
|
|
83
|
+
readonly bordered: import("@angular/core").InputSignal<boolean>;
|
|
84
|
+
/**
|
|
85
|
+
* `true` (default) = today's behaviour: clickable label, optional radio/checkbox, hover tint, pointer cursor.
|
|
86
|
+
* `false` = plain row: no label, no leading input (`leading` is ignored), no hover tint, no pointer, `select` never
|
|
87
|
+
* fires. Title, details, badge, `bordered` and `highlighted` look the same. Only projected actions stay focusable.
|
|
88
|
+
*/
|
|
89
|
+
readonly interactive: import("@angular/core").InputSignal<boolean>;
|
|
90
|
+
/** Show the badge even when the row is not `checked` (for non-interactive rows with a status badge). Default false. */
|
|
91
|
+
readonly alwaysShowBadge: import("@angular/core").InputSignal<boolean>;
|
|
92
|
+
/**
|
|
93
|
+
* Break long unbroken title / detail text (file names, e-mails) inside the text column instead of letting it overflow; use it
|
|
94
|
+
* on a row with `list-item-action` projections so the actions stay on screen at 320px. Default `false` = today's rendering.
|
|
95
|
+
* Rows with `[interactive]="false"` always wrap (new in 2026-10-19, nothing to preserve).
|
|
96
|
+
*/
|
|
97
|
+
readonly wrapText: import("@angular/core").InputSignal<boolean>;
|
|
98
|
+
/**
|
|
99
|
+
* Library source 2026-11-04, not yet published. `true` = the row cannot be used right now: the native radio / checkbox is `disabled` (that carries
|
|
100
|
+
* the state for assistive tech), a plain pressable row (`role="button"`) gets `aria-disabled="true"` and loses its `tabindex` (not a tab stop). A row
|
|
101
|
+
* without a role (radio / checkbox row wrapper, non-interactive row) gets NO `aria-disabled` (it is not valid on a role-less div); it only
|
|
102
|
+
* gets the classes. Clicks, Enter and Space never emit `select`, and the row looks disabled without relying on colour alone (dimmed, muted
|
|
103
|
+
* surface, `not-allowed` cursor, a dashed outline on a bordered card). Projected row-end actions (`list-item-action`) are NOT disabled by this
|
|
104
|
+
* input; disable them yourself. Default `false` = unchanged.
|
|
105
|
+
*/
|
|
106
|
+
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
107
|
+
/**
|
|
108
|
+
* Library source 2026-11-04, not yet published. `true` = the row is working on a request: `aria-busy="true"`, a small spinner (decorative)
|
|
109
|
+
* at the row end, and presses (click, Enter, Space, radio / checkbox change) are ignored: `select` never emits and a radio / checkbox keeps
|
|
110
|
+
* its state (the click is cancelled, so a sibling radio of the same `name` stays checked too; arrow keys on a busy radio are blocked).
|
|
111
|
+
* The row stays focusable. Default `false` = unchanged.
|
|
112
|
+
*/
|
|
113
|
+
readonly busy: import("@angular/core").InputSignal<boolean>;
|
|
114
|
+
get _borderedClass(): boolean;
|
|
115
|
+
get _disabledClass(): boolean;
|
|
116
|
+
/** Primary label. */
|
|
117
|
+
readonly title: import("@angular/core").InputSignal<string>;
|
|
118
|
+
/** Badge shown next to the title — only visible when the item is checked, unless `alwaysShowBadge` is set. */
|
|
119
|
+
readonly badge: import("@angular/core").InputSignal<string | null>;
|
|
120
|
+
readonly badgeVariant: import("@angular/core").InputSignal<BadgeVariant>;
|
|
121
|
+
/**
|
|
122
|
+
* Secondary detail strings rendered inline below the title.
|
|
123
|
+
* Pass whatever is relevant — email, phone, date, role, address, etc.
|
|
124
|
+
* Falsy entries (null, undefined, '') are filtered out automatically.
|
|
125
|
+
*/
|
|
126
|
+
readonly details: import("@angular/core").InputSignal<(ListItemDetail | null | undefined)[]>;
|
|
127
|
+
/** Optional leading icon: an icon key of `<ui-icon>` (e.g. `bell`, `task`, `email`) drawn in a tinted tile before the text. Default none. */
|
|
128
|
+
readonly icon: import("@angular/core").InputSignal<string>;
|
|
129
|
+
/** Colour of the icon tile. */
|
|
130
|
+
readonly iconColor: import("@angular/core").InputSignal<ListItemIconColor>;
|
|
131
|
+
protected readonly iconD: () => string | null;
|
|
132
|
+
/** Emitted when the radio/checkbox changes. */
|
|
133
|
+
readonly select: import("@angular/core").OutputEmitterRef<void>;
|
|
134
|
+
/** A plain interactive row (no radio/checkbox) is itself clickable: click, Enter or Space emit `select`. */
|
|
135
|
+
protected readonly pressable: () => boolean;
|
|
136
|
+
/**
|
|
137
|
+
* True while the leading image slot (`<img list-item-image>` / any element with the `list-item-image` attribute) holds content.
|
|
138
|
+
* The slot is projected, so this is read from the DOM after every content check; the icon tile is not rendered while it is true.
|
|
139
|
+
*/
|
|
140
|
+
protected readonly hasImage: import("@angular/core").WritableSignal<boolean>;
|
|
141
|
+
ngAfterContentChecked(): void;
|
|
142
|
+
/**
|
|
143
|
+
* Radio / checkbox click while busy or disabled: cancelled, so the browser restores the checkedness of the clicked input AND of the other radios of
|
|
144
|
+
* the same `name` group (clicking or arrowing onto this radio would otherwise uncheck the sibling that the model still holds as checked).
|
|
145
|
+
*/
|
|
146
|
+
protected onInputClick(e: Event): void;
|
|
147
|
+
/** Arrow keys on a busy / disabled radio would move the selection to a sibling of the group: blocked. (Arriving at it from a sibling is stopped by `onInputClick`.) */
|
|
148
|
+
protected onInputKey(e: KeyboardEvent): void;
|
|
149
|
+
/** Radio / checkbox change: never while disabled (the input is disabled anyway); ignored while busy. Safety net after `onInputClick`: the input is put back to `checked`. */
|
|
150
|
+
protected onInputChange(e: Event): void;
|
|
151
|
+
protected onRowClick(e: Event): void;
|
|
152
|
+
protected onRowKey(e: Event): void;
|
|
153
|
+
protected readonly visibleDetails: () => {
|
|
154
|
+
text: string;
|
|
155
|
+
segs: {
|
|
156
|
+
text: string;
|
|
157
|
+
bold: boolean;
|
|
158
|
+
code: boolean;
|
|
159
|
+
}[] | null;
|
|
160
|
+
d: string | null;
|
|
161
|
+
tone: "default" | "warning" | "danger";
|
|
162
|
+
}[];
|
|
163
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListItemComponent, never>;
|
|
164
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListItemComponent, "ui-list-item", never, {
|
|
165
|
+
"leading": {
|
|
166
|
+
"alias": "leading";
|
|
167
|
+
"required": false;
|
|
168
|
+
"isSignal": true;
|
|
169
|
+
};
|
|
170
|
+
"inputName": {
|
|
171
|
+
"alias": "inputName";
|
|
172
|
+
"required": false;
|
|
173
|
+
"isSignal": true;
|
|
174
|
+
};
|
|
175
|
+
"inputId": {
|
|
176
|
+
"alias": "inputId";
|
|
177
|
+
"required": false;
|
|
178
|
+
"isSignal": true;
|
|
179
|
+
};
|
|
180
|
+
"checked": {
|
|
181
|
+
"alias": "checked";
|
|
182
|
+
"required": false;
|
|
183
|
+
"isSignal": true;
|
|
184
|
+
};
|
|
185
|
+
"highlighted": {
|
|
186
|
+
"alias": "highlighted";
|
|
187
|
+
"required": false;
|
|
188
|
+
"isSignal": true;
|
|
189
|
+
};
|
|
190
|
+
"bordered": {
|
|
191
|
+
"alias": "bordered";
|
|
192
|
+
"required": false;
|
|
193
|
+
"isSignal": true;
|
|
194
|
+
};
|
|
195
|
+
"interactive": {
|
|
196
|
+
"alias": "interactive";
|
|
197
|
+
"required": false;
|
|
198
|
+
"isSignal": true;
|
|
199
|
+
};
|
|
200
|
+
"alwaysShowBadge": {
|
|
201
|
+
"alias": "alwaysShowBadge";
|
|
202
|
+
"required": false;
|
|
203
|
+
"isSignal": true;
|
|
204
|
+
};
|
|
205
|
+
"wrapText": {
|
|
206
|
+
"alias": "wrapText";
|
|
207
|
+
"required": false;
|
|
208
|
+
"isSignal": true;
|
|
209
|
+
};
|
|
210
|
+
"disabled": {
|
|
211
|
+
"alias": "disabled";
|
|
212
|
+
"required": false;
|
|
213
|
+
"isSignal": true;
|
|
214
|
+
};
|
|
215
|
+
"busy": {
|
|
216
|
+
"alias": "busy";
|
|
217
|
+
"required": false;
|
|
218
|
+
"isSignal": true;
|
|
219
|
+
};
|
|
220
|
+
"title": {
|
|
221
|
+
"alias": "title";
|
|
222
|
+
"required": false;
|
|
223
|
+
"isSignal": true;
|
|
224
|
+
};
|
|
225
|
+
"badge": {
|
|
226
|
+
"alias": "badge";
|
|
227
|
+
"required": false;
|
|
228
|
+
"isSignal": true;
|
|
229
|
+
};
|
|
230
|
+
"badgeVariant": {
|
|
231
|
+
"alias": "badgeVariant";
|
|
232
|
+
"required": false;
|
|
233
|
+
"isSignal": true;
|
|
234
|
+
};
|
|
235
|
+
"details": {
|
|
236
|
+
"alias": "details";
|
|
237
|
+
"required": false;
|
|
238
|
+
"isSignal": true;
|
|
239
|
+
};
|
|
240
|
+
"icon": {
|
|
241
|
+
"alias": "icon";
|
|
242
|
+
"required": false;
|
|
243
|
+
"isSignal": true;
|
|
244
|
+
};
|
|
245
|
+
"iconColor": {
|
|
246
|
+
"alias": "iconColor";
|
|
247
|
+
"required": false;
|
|
248
|
+
"isSignal": true;
|
|
249
|
+
};
|
|
250
|
+
}, {
|
|
251
|
+
"select": "select";
|
|
252
|
+
}, never, ["[list-item-image]", "[list-item-end]", "[list-item-action], [li-action]"], true, never>;
|
|
253
|
+
}
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { TemplateRef } from "@angular/core";
|
|
3
|
+
import { UiLabelsService } from "@forgeroute/ui/core";
|
|
4
|
+
/** Payload of `(reorder)`. Apply it with `reorderItems(items, order)` or take the ready-made `items`. */
|
|
5
|
+
export interface ListReorderEvent<T = unknown> {
|
|
6
|
+
/** The row that was moved. */
|
|
7
|
+
item: T;
|
|
8
|
+
/** Index the moved row had before the move. */
|
|
9
|
+
from: number;
|
|
10
|
+
/** Index the moved row has after the move. */
|
|
11
|
+
to: number;
|
|
12
|
+
/** The new index order of the whole list: `order[newIndex] = oldIndex`. */
|
|
13
|
+
order: number[];
|
|
14
|
+
/** The new full order of the items (a new array; the input array is not changed). */
|
|
15
|
+
items: T[];
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Context handed to the row template:
|
|
19
|
+
* `<ng-template let-item let-i="index" let-n="count" let-first="first" let-last="last" let-dragging="dragging">`.
|
|
20
|
+
*/
|
|
21
|
+
export interface ListRowContext<T = unknown> {
|
|
22
|
+
$implicit: T;
|
|
23
|
+
index: number;
|
|
24
|
+
count: number;
|
|
25
|
+
first: boolean;
|
|
26
|
+
last: boolean;
|
|
27
|
+
/** True while this row is being dragged. */
|
|
28
|
+
dragging: boolean;
|
|
29
|
+
}
|
|
30
|
+
/** Returns a new array in the order given by a `ListReorderEvent.order` (the input array is not changed). */
|
|
31
|
+
export declare function reorderItems<T>(items: readonly T[], order: readonly number[]): T[];
|
|
32
|
+
interface Row {
|
|
33
|
+
item: unknown;
|
|
34
|
+
key: unknown;
|
|
35
|
+
index: number;
|
|
36
|
+
label: string;
|
|
37
|
+
earlierLabel: string;
|
|
38
|
+
laterLabel: string;
|
|
39
|
+
first: boolean;
|
|
40
|
+
last: boolean;
|
|
41
|
+
dragging: boolean;
|
|
42
|
+
ctx: ListRowContext;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Semantic list container. Renders a real `<ul>` (default) or `<ol>` (`[ordered]="true"`) whose children are real `<li>`
|
|
46
|
+
* elements, one per entry of `items`. The single `<ng-template>` child renders what is inside each `<li>`, normally a
|
|
47
|
+
* `<ui-list-item>`. Screen readers announce "list, N items" and "item i of N" natively. `layout="grid"` lays the same
|
|
48
|
+
* `<ul>` out as a wrapping CSS grid (columns of at least `gridMin` px).
|
|
49
|
+
*
|
|
50
|
+
* Optional reordering (`[reorderable]="true"`, off by default): Move buttons, Alt+ArrowUp / Alt+ArrowDown from any
|
|
51
|
+
* focused element in a row, drag and drop plus Shift+Arrow / Home / End on a focused row (default in the grid layout, see
|
|
52
|
+
* `dragDrop`), a polite live region, and `(reorder)` / `(itemsChange)` outputs.
|
|
53
|
+
* The host owns the data: the list never changes `items`. Either bind `[(items)]` (the list emits the new array) or
|
|
54
|
+
* apply the event yourself (`reorderItems`) and pass the new array.
|
|
55
|
+
*
|
|
56
|
+
* <ui-list ariaLabel="Documents" [items]="docs()" [reorderable]="true" (reorder)="docs.set($event.items)">
|
|
57
|
+
* <ng-template let-doc let-i="index">
|
|
58
|
+
* <ui-list-item [interactive]="false" [bordered]="true" [title]="doc.title" [details]="[doc.fileName]" />
|
|
59
|
+
* </ng-template>
|
|
60
|
+
* </ui-list>
|
|
61
|
+
*/
|
|
62
|
+
export declare class ListComponent<T = unknown> {
|
|
63
|
+
protected readonly labels: UiLabelsService;
|
|
64
|
+
private readonly host;
|
|
65
|
+
private readonly injector;
|
|
66
|
+
/**
|
|
67
|
+
* The entries to render, one `<li>` each. The host owns this array; the list never changes it. Two-way binding
|
|
68
|
+
* (`[(items)]`) works: the list emits `itemsChange` with the new array and the host stores it.
|
|
69
|
+
*/
|
|
70
|
+
readonly items: import("@angular/core").InputSignal<readonly T[]>;
|
|
71
|
+
/** `false` (default) renders a `<ul>`; `true` renders an `<ol>` with native numbering (no numbers in the grid layout). */
|
|
72
|
+
readonly ordered: import("@angular/core").InputSignal<boolean>;
|
|
73
|
+
/**
|
|
74
|
+
* 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
|
|
75
|
+
* "what will happen" list: `<ui-list [items]="lines" [bulleted]="true" ariaLabel="What will happen" />` (string items render as their text, no template needed).
|
|
76
|
+
* 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.
|
|
77
|
+
*/
|
|
78
|
+
readonly bulleted: import("@angular/core").InputSignal<boolean>;
|
|
79
|
+
/** 'list' = one column; 'grid' = wrapping columns of at least `gridMin` px (still a real `<ul>`). */
|
|
80
|
+
readonly layout: import("@angular/core").InputSignal<"list" | "grid">;
|
|
81
|
+
/** Minimum column width in px of the grid layout. */
|
|
82
|
+
readonly gridMin: import("@angular/core").InputSignal<number>;
|
|
83
|
+
/**
|
|
84
|
+
* 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
|
|
85
|
+
* `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.
|
|
86
|
+
*/
|
|
87
|
+
readonly gap: import("@angular/core").InputSignal<string | undefined>;
|
|
88
|
+
/** Turns reordering on. Default `false`: no controls, no live region, no drag, no keys. */
|
|
89
|
+
readonly reorderable: import("@angular/core").InputSignal<boolean>;
|
|
90
|
+
/** Disables all moves (buttons, keys, drag and drop); the rows stay visible. */
|
|
91
|
+
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
92
|
+
/**
|
|
93
|
+
* Move buttons on each row (needs `reorderable`). 'auto' (default) = shown in the list layout, hidden in the grid layout;
|
|
94
|
+
* `true` / `false` force them.
|
|
95
|
+
*/
|
|
96
|
+
readonly moveControls: import("@angular/core").InputSignal<boolean | "auto">;
|
|
97
|
+
/**
|
|
98
|
+
* Drag and drop plus focusable rows (Shift+Arrow / Home / End). 'auto' (default) = on in the grid layout, off in the list
|
|
99
|
+
* layout (where the Move buttons are the way); `true` / `false` force it. Needs `reorderable`.
|
|
100
|
+
*/
|
|
101
|
+
readonly dragDrop: import("@angular/core").InputSignal<boolean | "auto">;
|
|
102
|
+
/** Accessible name of the list (`aria-label`). */
|
|
103
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
104
|
+
/** Id of the element naming the list (`aria-labelledby`). */
|
|
105
|
+
readonly ariaLabelledby: import("@angular/core").InputSignal<string | undefined>;
|
|
106
|
+
/**
|
|
107
|
+
* Row label used in the button names, the row's accessible name and the live announcement. Default: the string itself,
|
|
108
|
+
* else the item's `title`, `label` or `name`, else "Item N".
|
|
109
|
+
*/
|
|
110
|
+
readonly itemLabelFn: import("@angular/core").InputSignal<(item: T, index: number) => string>;
|
|
111
|
+
/** Stable identity per row (default: the item object itself) so reordering moves DOM instead of recreating it. */
|
|
112
|
+
readonly trackBy: import("@angular/core").InputSignal<(item: T, index: number) => unknown>;
|
|
113
|
+
/**
|
|
114
|
+
* Start of the up / earlier button name; the row label is appended ("Move earlier Image 3"). Default: "Move <label> up"
|
|
115
|
+
* in the list layout, "Move earlier <label>" in the grid layout.
|
|
116
|
+
*/
|
|
117
|
+
readonly moveEarlierLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
118
|
+
/** Start of the down / later button name ("Move later Image 3"). Default: "Move <label> down" (list), "Move later <label>" (grid). */
|
|
119
|
+
readonly moveLaterLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
120
|
+
/** Screen-reader instruction for a focused draggable row (aria-describedby). */
|
|
121
|
+
readonly helpTextInput: import("@angular/core").InputSignal<string | null>;
|
|
122
|
+
readonly helpText: import("@angular/core").Signal<string>;
|
|
123
|
+
/** Announcement after a move; receives the row label, the new position (1-based) and the list size. */
|
|
124
|
+
readonly moveAnnouncementInput: import("@angular/core").InputSignal<((label: string, position: number, total: number) => string) | null>;
|
|
125
|
+
readonly moveAnnouncement: import("@angular/core").Signal<(label: string, position: number, total: number) => string>;
|
|
126
|
+
/** Fires with the new array when the user moves a row (`[(items)]`). The list does not change `items` itself. */
|
|
127
|
+
/** 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. */
|
|
128
|
+
readonly navigable: import("@angular/core").InputSignal<boolean>;
|
|
129
|
+
/** 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. */
|
|
130
|
+
readonly arrow: import("@angular/core").InputSignal<boolean>;
|
|
131
|
+
/** The row of `[navigable]` that was clicked (or Enter was pressed on). */
|
|
132
|
+
readonly itemClick: import("@angular/core").OutputEmitterRef<T>;
|
|
133
|
+
readonly itemsChange: import("@angular/core").OutputEmitterRef<T[]>;
|
|
134
|
+
/** Fires when the user moves a row. The host applies it (or uses `[(items)]`) and passes the new `items`. */
|
|
135
|
+
readonly reorder: import("@angular/core").OutputEmitterRef<ListReorderEvent<T>>;
|
|
136
|
+
protected readonly rowTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
|
|
137
|
+
protected readonly helpId: string;
|
|
138
|
+
protected readonly announcement: import("@angular/core").WritableSignal<string>;
|
|
139
|
+
protected readonly movedKey: import("@angular/core").WritableSignal<unknown>;
|
|
140
|
+
protected readonly dragIndex: import("@angular/core").WritableSignal<number | null>;
|
|
141
|
+
protected readonly overIndex: import("@angular/core").WritableSignal<number | null>;
|
|
142
|
+
private pendingFocus;
|
|
143
|
+
private announceSeq;
|
|
144
|
+
/** Stable disambiguation tokens for repeated keys (duplicates in a primitive list), reused across recomputes. */
|
|
145
|
+
private dupTokens;
|
|
146
|
+
protected readonly isGrid: import("@angular/core").Signal<boolean>;
|
|
147
|
+
private readonly canReorder;
|
|
148
|
+
protected readonly showControls: import("@angular/core").Signal<boolean>;
|
|
149
|
+
/** Rows are draggable, focusable and move with Shift+arrows. */
|
|
150
|
+
protected readonly direct: import("@angular/core").Signal<boolean>;
|
|
151
|
+
/** The `--ul-gap` custom property: the token / length, or the default of the layout when unset or invalid. */
|
|
152
|
+
protected readonly gapCss: import("@angular/core").Signal<string>;
|
|
153
|
+
protected readonly rows: import("@angular/core").Signal<Row[]>;
|
|
154
|
+
/** Index of the `<li>` (direct child of this list) that contains `el`, or -1. */
|
|
155
|
+
private rowIndexOf;
|
|
156
|
+
/**
|
|
157
|
+
* Moves the row at `from` to position `to` (clamped) and emits `itemsChange` + `reorder`. No-op (returns false) when
|
|
158
|
+
* reordering is off or disabled, `from` is out of range, or nothing would change. Does not touch focus.
|
|
159
|
+
*/
|
|
160
|
+
move(from: number, to: number): boolean;
|
|
161
|
+
/** `[navigable]`: a click / Enter on the row itself emits the item; clicks on a control inside the row (button, link, field) are theirs. */
|
|
162
|
+
private emitItemClick;
|
|
163
|
+
protected onKeydown(e: KeyboardEvent): void;
|
|
164
|
+
protected onClick(e: Event): void;
|
|
165
|
+
protected onFocusOut(e: FocusEvent): void;
|
|
166
|
+
protected onDragStart(e: DragEvent): void;
|
|
167
|
+
protected onDragOver(e: DragEvent): void;
|
|
168
|
+
protected onDrop(e: DragEvent): void;
|
|
169
|
+
protected onDragEnd(): void;
|
|
170
|
+
/** Emits the move, announces it and (for key / button moves) restores focus once the host has re-rendered. */
|
|
171
|
+
private apply;
|
|
172
|
+
/** 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. */
|
|
173
|
+
private announce;
|
|
174
|
+
private restoreFocus;
|
|
175
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListComponent<any>, never>;
|
|
176
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListComponent<any>, "ui-list", never, {
|
|
177
|
+
"items": {
|
|
178
|
+
"alias": "items";
|
|
179
|
+
"required": false;
|
|
180
|
+
"isSignal": true;
|
|
181
|
+
};
|
|
182
|
+
"ordered": {
|
|
183
|
+
"alias": "ordered";
|
|
184
|
+
"required": false;
|
|
185
|
+
"isSignal": true;
|
|
186
|
+
};
|
|
187
|
+
"bulleted": {
|
|
188
|
+
"alias": "bulleted";
|
|
189
|
+
"required": false;
|
|
190
|
+
"isSignal": true;
|
|
191
|
+
};
|
|
192
|
+
"layout": {
|
|
193
|
+
"alias": "layout";
|
|
194
|
+
"required": false;
|
|
195
|
+
"isSignal": true;
|
|
196
|
+
};
|
|
197
|
+
"gridMin": {
|
|
198
|
+
"alias": "gridMin";
|
|
199
|
+
"required": false;
|
|
200
|
+
"isSignal": true;
|
|
201
|
+
};
|
|
202
|
+
"gap": {
|
|
203
|
+
"alias": "gap";
|
|
204
|
+
"required": false;
|
|
205
|
+
"isSignal": true;
|
|
206
|
+
};
|
|
207
|
+
"reorderable": {
|
|
208
|
+
"alias": "reorderable";
|
|
209
|
+
"required": false;
|
|
210
|
+
"isSignal": true;
|
|
211
|
+
};
|
|
212
|
+
"disabled": {
|
|
213
|
+
"alias": "disabled";
|
|
214
|
+
"required": false;
|
|
215
|
+
"isSignal": true;
|
|
216
|
+
};
|
|
217
|
+
"moveControls": {
|
|
218
|
+
"alias": "moveControls";
|
|
219
|
+
"required": false;
|
|
220
|
+
"isSignal": true;
|
|
221
|
+
};
|
|
222
|
+
"dragDrop": {
|
|
223
|
+
"alias": "dragDrop";
|
|
224
|
+
"required": false;
|
|
225
|
+
"isSignal": true;
|
|
226
|
+
};
|
|
227
|
+
"ariaLabel": {
|
|
228
|
+
"alias": "ariaLabel";
|
|
229
|
+
"required": false;
|
|
230
|
+
"isSignal": true;
|
|
231
|
+
};
|
|
232
|
+
"ariaLabelledby": {
|
|
233
|
+
"alias": "ariaLabelledby";
|
|
234
|
+
"required": false;
|
|
235
|
+
"isSignal": true;
|
|
236
|
+
};
|
|
237
|
+
"itemLabelFn": {
|
|
238
|
+
"alias": "itemLabelFn";
|
|
239
|
+
"required": false;
|
|
240
|
+
"isSignal": true;
|
|
241
|
+
};
|
|
242
|
+
"trackBy": {
|
|
243
|
+
"alias": "trackBy";
|
|
244
|
+
"required": false;
|
|
245
|
+
"isSignal": true;
|
|
246
|
+
};
|
|
247
|
+
"moveEarlierLabel": {
|
|
248
|
+
"alias": "moveEarlierLabel";
|
|
249
|
+
"required": false;
|
|
250
|
+
"isSignal": true;
|
|
251
|
+
};
|
|
252
|
+
"moveLaterLabel": {
|
|
253
|
+
"alias": "moveLaterLabel";
|
|
254
|
+
"required": false;
|
|
255
|
+
"isSignal": true;
|
|
256
|
+
};
|
|
257
|
+
"helpTextInput": {
|
|
258
|
+
"alias": "helpText";
|
|
259
|
+
"required": false;
|
|
260
|
+
"isSignal": true;
|
|
261
|
+
};
|
|
262
|
+
"moveAnnouncementInput": {
|
|
263
|
+
"alias": "moveAnnouncement";
|
|
264
|
+
"required": false;
|
|
265
|
+
"isSignal": true;
|
|
266
|
+
};
|
|
267
|
+
"navigable": {
|
|
268
|
+
"alias": "navigable";
|
|
269
|
+
"required": false;
|
|
270
|
+
"isSignal": true;
|
|
271
|
+
};
|
|
272
|
+
"arrow": {
|
|
273
|
+
"alias": "arrow";
|
|
274
|
+
"required": false;
|
|
275
|
+
"isSignal": true;
|
|
276
|
+
};
|
|
277
|
+
}, {
|
|
278
|
+
"itemClick": "itemClick";
|
|
279
|
+
"itemsChange": "itemsChange";
|
|
280
|
+
"reorder": "reorder";
|
|
281
|
+
}, ["rowTemplate"], ["[list-empty]"], true, never>;
|
|
282
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export type LiveRegionPoliteness = 'polite' | 'assertive';
|
|
3
|
+
/**
|
|
4
|
+
* A screen-reader announcement area. The element is always in the DOM and only its text changes, which is what makes
|
|
5
|
+
* assistive tech (VoiceOver / Safari included) announce reliably - a live region that is inserted together with its text
|
|
6
|
+
* often is not announced.
|
|
7
|
+
*
|
|
8
|
+
* <ui-live-region [message]="announcement()" /> <!-- "Step 3 of 5: Deceased" -->
|
|
9
|
+
* <ui-live-region [message]="error()" politeness="assertive" /> <!-- role="alert" -->
|
|
10
|
+
* <ui-live-region [message]="status()" [visible]="true" /> <!-- also shown on screen -->
|
|
11
|
+
*
|
|
12
|
+
* By default it is visually hidden (still read aloud). `politeness` "polite" (default, `role="status"`) waits for the
|
|
13
|
+
* user to be idle; "assertive" (`role="alert"`) interrupts. `atomic` (default true) reads the whole message again when it
|
|
14
|
+
* changes. Set the message to '' to clear it. Announcing the same text twice in a row needs a different message in
|
|
15
|
+
* between (for example clear it first); screen readers ignore an unchanged region.
|
|
16
|
+
*/
|
|
17
|
+
export declare class LiveRegionComponent {
|
|
18
|
+
/** The text to announce. */
|
|
19
|
+
readonly message: import("@angular/core").InputSignal<string>;
|
|
20
|
+
readonly politeness: import("@angular/core").InputSignal<LiveRegionPoliteness>;
|
|
21
|
+
/** Read the whole message (not just the changed part) when it changes. */
|
|
22
|
+
readonly atomic: import("@angular/core").InputSignal<boolean>;
|
|
23
|
+
/** Show the text on screen too. Default false: visually hidden, still announced. */
|
|
24
|
+
readonly visible: import("@angular/core").InputSignal<boolean>;
|
|
25
|
+
protected readonly role: import("@angular/core").Signal<"alert" | "status">;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LiveRegionComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LiveRegionComponent, "ui-live-region", never, {
|
|
28
|
+
"message": {
|
|
29
|
+
"alias": "message";
|
|
30
|
+
"required": false;
|
|
31
|
+
"isSignal": true;
|
|
32
|
+
};
|
|
33
|
+
"politeness": {
|
|
34
|
+
"alias": "politeness";
|
|
35
|
+
"required": false;
|
|
36
|
+
"isSignal": true;
|
|
37
|
+
};
|
|
38
|
+
"atomic": {
|
|
39
|
+
"alias": "atomic";
|
|
40
|
+
"required": false;
|
|
41
|
+
"isSignal": true;
|
|
42
|
+
};
|
|
43
|
+
"visible": {
|
|
44
|
+
"alias": "visible";
|
|
45
|
+
"required": false;
|
|
46
|
+
"isSignal": true;
|
|
47
|
+
};
|
|
48
|
+
}, {}, never, never, true, never>;
|
|
49
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { InjectionToken, TemplateRef } from "@angular/core";
|
|
3
|
-
import { UiLabelsService } from "@forgeroute/ui";
|
|
3
|
+
import { UiLabelsService } from "@forgeroute/ui/core";
|
|
4
4
|
/**
|
|
5
5
|
* Pure geography helpers of the map entry point. No Angular, no Leaflet, no DOM: the same maths is mirrored in SQL on the backend
|
|
6
6
|
* (so the list a user gets for a drawn area equals the markers the map shows for it), which is why every definition is spelled out.
|