@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { EnvironmentProviders, InjectionToken } from "@angular/core";
|
|
3
3
|
import { PDFDocumentProxy } from "pdfjs-dist";
|
|
4
|
-
import { UiLabelsService } from "@forgeroute/ui";
|
|
4
|
+
import { UiLabelsService } from "@forgeroute/ui/core";
|
|
5
5
|
/** Where pdf.js finds its worker script. Provide it once in the app (`{ provide: PDF_VIEWER_WORKER_SRC, useValue: '/assets/pdf.worker.min.mjs' }`). */
|
|
6
6
|
export declare const PDF_VIEWER_WORKER_SRC: InjectionToken<string>;
|
|
7
7
|
/** Colour of an overlay badge. */
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { FormControl } from "@angular/forms";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import { RadioOption } from "@forgeroute/ui/radio";
|
|
4
|
+
import { UiLabelsService } from "@forgeroute/ui/core";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/** One phone number the host found for sale. */
|
|
7
|
+
export interface PhoneNumberOption {
|
|
8
|
+
/** E.164 number, e.g. '+15125550100'. */
|
|
9
|
+
phoneNumber: string;
|
|
10
|
+
/** What the user sees, e.g. '(512) 555-0100'. */
|
|
11
|
+
friendlyName: string;
|
|
12
|
+
/** City / state label shown as a badge, e.g. 'Austin, TX'. */
|
|
13
|
+
region: string | null;
|
|
14
|
+
}
|
|
15
|
+
/** What the host's `search` function receives: exactly one of the two keys. */
|
|
16
|
+
export interface PhoneNumberSearchCriteria {
|
|
17
|
+
postalCode?: string;
|
|
18
|
+
areaCode?: string;
|
|
19
|
+
}
|
|
20
|
+
/** What `selected` emits: the chosen number plus the criteria that found it. */
|
|
21
|
+
export type PhoneNumberSelection = PhoneNumberOption & PhoneNumberSearchCriteria;
|
|
22
|
+
export type PhoneNumberSearchMode = 'zip' | 'area-code';
|
|
23
|
+
export declare const PHONE_NUMBER_ZIP_LENGTH = 5;
|
|
24
|
+
export declare const PHONE_NUMBER_AREA_CODE_LENGTH = 3;
|
|
25
|
+
/** Keeps only digits and cuts to `max` ("78701-1234" -> "78701"). */
|
|
26
|
+
export declare function digitsOnly(value: string | null | undefined, max: number): string;
|
|
27
|
+
/**
|
|
28
|
+
* Side panel that walks the user through finding and choosing a phone number to buy. The HOST does the searching (the
|
|
29
|
+
* library owns no HTTP and knows nothing about the phone provider): it passes a `search` function that returns the
|
|
30
|
+
* numbers for a ZIP code or an area code.
|
|
31
|
+
*
|
|
32
|
+
* <ui-phone-number-picker
|
|
33
|
+
* [open]="showPicker()"
|
|
34
|
+
* defaultPostalCode="78701"
|
|
35
|
+
* costNotice="Each number costs about $1.00/month."
|
|
36
|
+
* [search]="searchNumbers"
|
|
37
|
+
* (selected)="buy($event)"
|
|
38
|
+
* (closed)="showPicker.set(false)" />
|
|
39
|
+
*
|
|
40
|
+
* searchNumbers = (c: PhoneNumberSearchCriteria) => this.api.get<PhoneNumberOption[]>('/phone-numbers/available', c);
|
|
41
|
+
*
|
|
42
|
+
* Inputs: `open`, `title` ('Get a Phone Number'), `subtitle`, `defaultPostalCode` (prefilled ZIP, may be empty),
|
|
43
|
+
* `defaultMode` ('zip' | 'area-code'), `allowAreaCode` (true: the user can switch to an area code search), `search`
|
|
44
|
+
* (required), `costNotice` (warning shown on steps 1 and 3), `confirmLabel` ('Get this number'), `maxResults` (5: caps what is shown).
|
|
45
|
+
* Outputs: `selected` (PhoneNumberSelection, only from the final confirm button) and `closed`.
|
|
46
|
+
*
|
|
47
|
+
* Flow (three steps, nothing is ever searched or bought without a click):
|
|
48
|
+
* 1. Confirm location - ZIP code (5 digits) or area code (3 digits), prefilled from `defaultPostalCode`. The primary button
|
|
49
|
+
* "Confirm ZIP code and search" is disabled until the value is complete; Enter does the same. Non-digits are ignored while
|
|
50
|
+
* typing, a pasted ZIP+4 keeps its first 5 digits.
|
|
51
|
+
* 2. Results - `search(criteria)` runs ONCE per confirm; a newer search (or closing) drops the older response. Skeleton while
|
|
52
|
+
* loading, an empty state, or an error with Retry. Picking a row only moves on to step 3.
|
|
53
|
+
* 3. Confirm number - "You chose ...". Only the final button emits `selected`, then `closed`.
|
|
54
|
+
* Every time `open` becomes true the panel starts again at step 1 with the defaults; closing discards everything.
|
|
55
|
+
* `defaultPostalCode` may arrive after the panel opened (the host loads it asynchronously): while the panel is on step 1 in ZIP
|
|
56
|
+
* mode and the user has NOT typed or pasted in the ZIP field (clearing it counts as an edit), a non-empty default fills the field;
|
|
57
|
+
* typed input is never overwritten, an empty default is ignored, and a default that arrives on step 2 or 3 is applied when the user
|
|
58
|
+
* returns to step 1 only if the field is still untouched.
|
|
59
|
+
* The final confirm emits `selected` at most once per opening (double clicks / repeated Enter are ignored and the button is disabled
|
|
60
|
+
* after the first click). The panel emits `closed` right after `selected`, so the host closes it; reopening re-enables the button.
|
|
61
|
+
*
|
|
62
|
+
* Accessibility: labelled fields with the library's inline errors, focus moves to the first control of each step (a text
|
|
63
|
+
* field is not focused on touch devices so no keyboard pops up), a visually hidden polite live region announces searching,
|
|
64
|
+
* result counts, errors and step changes, Escape closes the panel even from inside a field, 44px touch targets come from the
|
|
65
|
+
* shared components.
|
|
66
|
+
*/
|
|
67
|
+
export declare class PhoneNumberPickerComponent {
|
|
68
|
+
protected readonly labels: UiLabelsService;
|
|
69
|
+
readonly open: import("@angular/core").InputSignal<boolean>;
|
|
70
|
+
readonly titleInput: import("@angular/core").InputSignal<string | null>;
|
|
71
|
+
readonly title: import("@angular/core").Signal<string>;
|
|
72
|
+
readonly subtitle: import("@angular/core").InputSignal<string>;
|
|
73
|
+
readonly defaultPostalCode: import("@angular/core").InputSignal<string>;
|
|
74
|
+
readonly defaultMode: import("@angular/core").InputSignal<PhoneNumberSearchMode>;
|
|
75
|
+
readonly allowAreaCode: import("@angular/core").InputSignal<boolean>;
|
|
76
|
+
/** Host-supplied search. Called once per confirm; the library never fetches by itself. */
|
|
77
|
+
readonly search: import("@angular/core").InputSignal<(criteria: PhoneNumberSearchCriteria) => Observable<PhoneNumberOption[]>>;
|
|
78
|
+
readonly costNotice: import("@angular/core").InputSignal<string>;
|
|
79
|
+
readonly confirmLabelInput: import("@angular/core").InputSignal<string | null>;
|
|
80
|
+
readonly confirmLabel: import("@angular/core").Signal<string>;
|
|
81
|
+
readonly maxResults: import("@angular/core").InputSignal<number>;
|
|
82
|
+
readonly closed: import("@angular/core").OutputEmitterRef<void>;
|
|
83
|
+
readonly selected: import("@angular/core").OutputEmitterRef<PhoneNumberSelection>;
|
|
84
|
+
protected readonly modeOptions: import("@angular/core").Signal<RadioOption[]>;
|
|
85
|
+
protected readonly skeletonRows: number[];
|
|
86
|
+
protected readonly modeCtl: FormControl<string>;
|
|
87
|
+
protected readonly zipCtl: FormControl<string>;
|
|
88
|
+
protected readonly areaCtl: FormControl<string>;
|
|
89
|
+
protected readonly step: import("@angular/core").WritableSignal<3 | 1 | 2>;
|
|
90
|
+
protected readonly mode: import("@angular/core").WritableSignal<PhoneNumberSearchMode>;
|
|
91
|
+
private readonly _zip;
|
|
92
|
+
private readonly _area;
|
|
93
|
+
protected readonly touched: import("@angular/core").WritableSignal<boolean>;
|
|
94
|
+
/** True once the user typed / pasted in the ZIP field this opening: a late default never overwrites it. */
|
|
95
|
+
private readonly _zipEdited;
|
|
96
|
+
/** True once the final confirm emitted `selected` this opening: further confirms are ignored. */
|
|
97
|
+
protected readonly confirmed: import("@angular/core").WritableSignal<boolean>;
|
|
98
|
+
protected readonly loading: import("@angular/core").WritableSignal<boolean>;
|
|
99
|
+
protected readonly searchFailed: import("@angular/core").WritableSignal<boolean>;
|
|
100
|
+
private readonly _results;
|
|
101
|
+
private readonly _criteria;
|
|
102
|
+
protected readonly chosen: import("@angular/core").WritableSignal<PhoneNumberOption | null>;
|
|
103
|
+
private readonly _value;
|
|
104
|
+
private readonly _length;
|
|
105
|
+
protected readonly valid: import("@angular/core").Signal<boolean>;
|
|
106
|
+
private readonly _fieldName;
|
|
107
|
+
/** Own "wrong length" message (empty is left to the input's built-in "is required"); only once the field was touched. */
|
|
108
|
+
protected readonly fieldError: import("@angular/core").Signal<string>;
|
|
109
|
+
protected readonly visibleResults: import("@angular/core").Signal<PhoneNumberOption[]>;
|
|
110
|
+
protected readonly primaryLabel: import("@angular/core").Signal<string>;
|
|
111
|
+
protected readonly changeLabel: import("@angular/core").Signal<string>;
|
|
112
|
+
protected readonly emptyTitle: import("@angular/core").Signal<string>;
|
|
113
|
+
protected readonly criteriaText: import("@angular/core").Signal<string>;
|
|
114
|
+
protected readonly announcement: import("@angular/core").Signal<string>;
|
|
115
|
+
private readonly _destroyRef;
|
|
116
|
+
private readonly _injector;
|
|
117
|
+
private readonly _el;
|
|
118
|
+
private _searchSub;
|
|
119
|
+
constructor();
|
|
120
|
+
protected onPrimary(): void;
|
|
121
|
+
protected onEnter(event: Event): void;
|
|
122
|
+
/** A field that was swapped out by a mode switch blurs while it is removed: that late blur must not mark the new field touched. */
|
|
123
|
+
protected onFieldBlur(from: PhoneNumberSearchMode): void;
|
|
124
|
+
/** Typing a non-digit is blocked before it reaches the field. */
|
|
125
|
+
protected onBeforeInput(event: Event): void;
|
|
126
|
+
/** A pasted ZIP+4 / formatted text keeps its first 5 (or 3) digits and replaces the field's text. */
|
|
127
|
+
protected onPaste(event: Event): void;
|
|
128
|
+
protected submit(): void;
|
|
129
|
+
protected retry(): void;
|
|
130
|
+
protected choose(option: PhoneNumberOption): void;
|
|
131
|
+
protected changeLocation(): void;
|
|
132
|
+
protected backToResults(): void;
|
|
133
|
+
protected confirm(): void;
|
|
134
|
+
protected close(): void;
|
|
135
|
+
private _run;
|
|
136
|
+
private _abort;
|
|
137
|
+
private _reset;
|
|
138
|
+
/** A user edit: sanitise and write back into the field when something was stripped. */
|
|
139
|
+
private _typed;
|
|
140
|
+
private _write;
|
|
141
|
+
/** Moves focus to the first control of the step that was just shown. */
|
|
142
|
+
private _focusStep;
|
|
143
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PhoneNumberPickerComponent, never>;
|
|
144
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PhoneNumberPickerComponent, "ui-phone-number-picker", never, {
|
|
145
|
+
"open": {
|
|
146
|
+
"alias": "open";
|
|
147
|
+
"required": false;
|
|
148
|
+
"isSignal": true;
|
|
149
|
+
};
|
|
150
|
+
"titleInput": {
|
|
151
|
+
"alias": "title";
|
|
152
|
+
"required": false;
|
|
153
|
+
"isSignal": true;
|
|
154
|
+
};
|
|
155
|
+
"subtitle": {
|
|
156
|
+
"alias": "subtitle";
|
|
157
|
+
"required": false;
|
|
158
|
+
"isSignal": true;
|
|
159
|
+
};
|
|
160
|
+
"defaultPostalCode": {
|
|
161
|
+
"alias": "defaultPostalCode";
|
|
162
|
+
"required": false;
|
|
163
|
+
"isSignal": true;
|
|
164
|
+
};
|
|
165
|
+
"defaultMode": {
|
|
166
|
+
"alias": "defaultMode";
|
|
167
|
+
"required": false;
|
|
168
|
+
"isSignal": true;
|
|
169
|
+
};
|
|
170
|
+
"allowAreaCode": {
|
|
171
|
+
"alias": "allowAreaCode";
|
|
172
|
+
"required": false;
|
|
173
|
+
"isSignal": true;
|
|
174
|
+
};
|
|
175
|
+
"search": {
|
|
176
|
+
"alias": "search";
|
|
177
|
+
"required": true;
|
|
178
|
+
"isSignal": true;
|
|
179
|
+
};
|
|
180
|
+
"costNotice": {
|
|
181
|
+
"alias": "costNotice";
|
|
182
|
+
"required": false;
|
|
183
|
+
"isSignal": true;
|
|
184
|
+
};
|
|
185
|
+
"confirmLabelInput": {
|
|
186
|
+
"alias": "confirmLabel";
|
|
187
|
+
"required": false;
|
|
188
|
+
"isSignal": true;
|
|
189
|
+
};
|
|
190
|
+
"maxResults": {
|
|
191
|
+
"alias": "maxResults";
|
|
192
|
+
"required": false;
|
|
193
|
+
"isSignal": true;
|
|
194
|
+
};
|
|
195
|
+
}, {
|
|
196
|
+
"closed": "closed";
|
|
197
|
+
"selected": "selected";
|
|
198
|
+
}, never, never, true, never>;
|
|
199
|
+
}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export interface PillTab {
|
|
3
|
+
key: string;
|
|
4
|
+
label: string;
|
|
5
|
+
count?: number;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Optional help text. When set, an info icon is shown next to the label and the text appears in a tooltip when the
|
|
9
|
+
* tab is hovered or keyboard-focused. It is also the tab's accessible description (`aria-describedby`), not part of
|
|
10
|
+
* its name. The tooltip is not shown in the horizontally scrolling mobile layout (it would be clipped).
|
|
11
|
+
*/
|
|
12
|
+
info?: string;
|
|
13
|
+
/** (library source 2026-11-05) Heading shown under the tab list while this tab is active, when the tabs' `showDescription` input is on. */
|
|
14
|
+
title?: string;
|
|
15
|
+
/** (library source 2026-11-05) Explanatory paragraph shown under the heading while this tab is active (`showDescription`). */
|
|
16
|
+
description?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Pill-style tabs following the WAI-ARIA tabs pattern: each tab is a real <button role="tab">,
|
|
20
|
+
* only the selected tab is in the Tab order (roving tabindex), and Arrow Left/Right, Home and End
|
|
21
|
+
* move focus + selection between enabled tabs.
|
|
22
|
+
*/
|
|
23
|
+
export declare class PillTabsComponent {
|
|
24
|
+
private readonly host;
|
|
25
|
+
readonly tabs: import("@angular/core").InputSignal<PillTab[]>;
|
|
26
|
+
readonly activeKey: import("@angular/core").InputSignal<string>;
|
|
27
|
+
/** Accessible name for the tab list (e.g. 'Reporting period'). Omit to leave it unnamed. */
|
|
28
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string | null>;
|
|
29
|
+
readonly name: import("@angular/core").InputSignal<string>;
|
|
30
|
+
/** Keep every pill at its own width on one line (default false: pills may shrink and wrap their text). On a phone the row scrolls sideways, as it always does. */
|
|
31
|
+
readonly noWrap: import("@angular/core").InputSignal<boolean>;
|
|
32
|
+
/** 'vertical' stacks the tabs in a column (Up/Down arrows move between them, `aria-orientation="vertical"`). Default 'horizontal' = unchanged. */
|
|
33
|
+
readonly orientation: import("@angular/core").InputSignal<"horizontal" | "vertical">;
|
|
34
|
+
protected readonly vertical: () => boolean;
|
|
35
|
+
/**
|
|
36
|
+
* (library source 2026-11-04, not yet published) Associate the tabs with their panels: every tab gets
|
|
37
|
+
* `aria-controls="<name>-panel-<key>"`, the id a `uiTabPanel` directive gives its element (see `PillTabPanelDirective`).
|
|
38
|
+
* Default false = no `aria-controls` at all (unchanged markup). Turn it on only when every tab has a `uiTabPanel`
|
|
39
|
+
* element in the page, otherwise `aria-controls` would point at a missing id. The tab ids themselves are unchanged
|
|
40
|
+
* and always `<name>-<key>` (see `pillTabId`).
|
|
41
|
+
*
|
|
42
|
+
* (library source 2026-11-19) Not needed any more for a host that uses `uiTabPanel`: while this is off, a tab still gets `aria-controls` automatically
|
|
43
|
+
* as soon as a panel with the id `<name>-panel-<key>` exists in the same document / shadow root (checked after every render), so the attribute never
|
|
44
|
+
* points at a missing id. Turn it on only to force `aria-controls` on every tab (e.g. panels that are rendered later with `@if`).
|
|
45
|
+
*
|
|
46
|
+
* Id collision: a tab whose KEY is `panel-x` has the id `<name>-panel-x`, which is also the panel id for key `x`. Avoid keys that start with
|
|
47
|
+
* `panel-` when this is on; in development mode a `console.warn` names such a key.
|
|
48
|
+
*/
|
|
49
|
+
readonly controlsPanels: import("@angular/core").InputSignal<boolean>;
|
|
50
|
+
/**
|
|
51
|
+
* (library source 2026-11-05) Show the ACTIVE tab's `title` (heading) and `description` (paragraph) under the tab list. Default false = no extra DOM.
|
|
52
|
+
* A tab with only one of them renders only that one; a tab with neither renders nothing. The ids are `<name>--title` / `<name>--description`
|
|
53
|
+
* (`pillTabTitleId` / `pillTabDescriptionId`); `[uiTabPanel] [describedByHeader]="true"` points the panel's `aria-describedby` at the description.
|
|
54
|
+
*/
|
|
55
|
+
readonly showDescription: import("@angular/core").InputSignal<boolean>;
|
|
56
|
+
/** Heading level of the active tab's title when `showDescription` is on: 2 (default) or 3. */
|
|
57
|
+
readonly headingLevel: import("@angular/core").InputSignal<2 | 3>;
|
|
58
|
+
readonly tabChange: import("@angular/core").OutputEmitterRef<string>;
|
|
59
|
+
/** Panel ids (`<name>-panel-<key>`) found in the page after the last render; they get `aria-controls` even when `controlsPanels` is off. */
|
|
60
|
+
private readonly foundPanels;
|
|
61
|
+
protected readonly activeTab: import("@angular/core").Signal<PillTab | null>;
|
|
62
|
+
protected titleId(): string;
|
|
63
|
+
protected descriptionId(): string;
|
|
64
|
+
/** True while pills are hidden past the start / end edge of the scroll area (drives the fade hints). */
|
|
65
|
+
protected readonly canScrollStart: import("@angular/core").WritableSignal<boolean>;
|
|
66
|
+
protected readonly canScrollEnd: import("@angular/core").WritableSignal<boolean>;
|
|
67
|
+
constructor();
|
|
68
|
+
/** Id of the tab button for [key] (`<name>-<key>`, the exported `pillTabId`). */
|
|
69
|
+
protected tabId(key: string): string;
|
|
70
|
+
/** Id of the panel [key] controls (`<name>-panel-<key>`, the exported `pillTabPanelId`). */
|
|
71
|
+
protected panelId(key: string): string;
|
|
72
|
+
/** `aria-controls` value of a tab: its panel id when `controlsPanels` is on or that panel exists in the page, otherwise none. */
|
|
73
|
+
protected controlsFor(key: string): string | null;
|
|
74
|
+
protected updateOverflow(): void;
|
|
75
|
+
select(key: string): void;
|
|
76
|
+
/** Roving tabindex — the selected tab (or the first enabled one when none is selected) is tabbable. */
|
|
77
|
+
protected tabIndexFor(tab: PillTab): number;
|
|
78
|
+
protected onKeydown(e: KeyboardEvent): void;
|
|
79
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PillTabsComponent, never>;
|
|
80
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PillTabsComponent, "ui-pill-tabs", never, {
|
|
81
|
+
"tabs": {
|
|
82
|
+
"alias": "tabs";
|
|
83
|
+
"required": false;
|
|
84
|
+
"isSignal": true;
|
|
85
|
+
};
|
|
86
|
+
"activeKey": {
|
|
87
|
+
"alias": "activeKey";
|
|
88
|
+
"required": false;
|
|
89
|
+
"isSignal": true;
|
|
90
|
+
};
|
|
91
|
+
"ariaLabel": {
|
|
92
|
+
"alias": "ariaLabel";
|
|
93
|
+
"required": false;
|
|
94
|
+
"isSignal": true;
|
|
95
|
+
};
|
|
96
|
+
"name": {
|
|
97
|
+
"alias": "name";
|
|
98
|
+
"required": false;
|
|
99
|
+
"isSignal": true;
|
|
100
|
+
};
|
|
101
|
+
"noWrap": {
|
|
102
|
+
"alias": "noWrap";
|
|
103
|
+
"required": false;
|
|
104
|
+
"isSignal": true;
|
|
105
|
+
};
|
|
106
|
+
"orientation": {
|
|
107
|
+
"alias": "orientation";
|
|
108
|
+
"required": false;
|
|
109
|
+
"isSignal": true;
|
|
110
|
+
};
|
|
111
|
+
"controlsPanels": {
|
|
112
|
+
"alias": "controlsPanels";
|
|
113
|
+
"required": false;
|
|
114
|
+
"isSignal": true;
|
|
115
|
+
};
|
|
116
|
+
"showDescription": {
|
|
117
|
+
"alias": "showDescription";
|
|
118
|
+
"required": false;
|
|
119
|
+
"isSignal": true;
|
|
120
|
+
};
|
|
121
|
+
"headingLevel": {
|
|
122
|
+
"alias": "headingLevel";
|
|
123
|
+
"required": false;
|
|
124
|
+
"isSignal": true;
|
|
125
|
+
};
|
|
126
|
+
}, {
|
|
127
|
+
"tabChange": "tabChange";
|
|
128
|
+
}, never, never, true, never>;
|
|
129
|
+
}
|
|
130
|
+
/** Id of the tab button `ui-pill-tabs` renders for [key] when its `name` input is [name] (always `<name>-<key>`). */
|
|
131
|
+
export declare function pillTabId(name: string, key: string): string;
|
|
132
|
+
/** Id a `uiTabPanel` element gets, and the id every tab's `aria-controls` points at when `controlsPanels` is on: `<name>-panel-<key>`. */
|
|
133
|
+
export declare function pillTabPanelId(name: string, key: string): string;
|
|
134
|
+
/** Id of the heading `ui-pill-tabs` renders for the active tab when `showDescription` is on: `<name>--title`. */
|
|
135
|
+
export declare function pillTabTitleId(name: string): string;
|
|
136
|
+
/** Id of the description paragraph `ui-pill-tabs` renders for the active tab when `showDescription` is on: `<name>--description`. */
|
|
137
|
+
export declare function pillTabDescriptionId(name: string): string;
|
|
138
|
+
/**
|
|
139
|
+
* (library source 2026-11-04, not yet published) The panel that belongs to one `ui-pill-tabs` tab: a correct
|
|
140
|
+
* WAI-ARIA tablist / tabpanel association with the smallest possible markup.
|
|
141
|
+
*
|
|
142
|
+
* ```html
|
|
143
|
+
* <ui-pill-tabs name="billing" [tabs]="tabs" [activeKey]="tab()" [controlsPanels]="true" (tabChange)="tab.set($event)" />
|
|
144
|
+
* <section uiTabPanel="invoices" tabsName="billing" [activeKey]="tab()"> ... </section>
|
|
145
|
+
* <section uiTabPanel="payments" tabsName="billing" [activeKey]="tab()"> ... </section>
|
|
146
|
+
* ```
|
|
147
|
+
*
|
|
148
|
+
* The host element gets `role="tabpanel"`, `id="<tabsName>-panel-<key>"` and `aria-labelledby="<tabsName>-<key>"` (the tab button).
|
|
149
|
+
* - `uiTabPanel` the key of the tab this panel belongs to (required, the same `key` as in the tabs list).
|
|
150
|
+
* - `tabsName` the `name` input of the `ui-pill-tabs` (required; give the tabs a fixed `name` so the ids are predictable).
|
|
151
|
+
* - `activeKey` the tabs' active key. When given (not null), the panel gets the `hidden` attribute while another tab is active
|
|
152
|
+
* (the panels stay in the DOM, so their state survives a tab change). Leave it unset when the page renders only the
|
|
153
|
+
* active panel itself (`@if`), then no `hidden` attribute is ever set.
|
|
154
|
+
* - `describedByHeader` default false. true adds `aria-describedby="<tabsName>--description"` (the description `ui-pill-tabs` shows under the
|
|
155
|
+
* tab list with `showDescription`) while the panel is not hidden. Turn it on only when the active tab has a `description`.
|
|
156
|
+
* - `tabbable` default false. true adds `tabindex="0"` so a panel without any focusable content can be reached by keyboard
|
|
157
|
+
* (WAI-ARIA tabs pattern).
|
|
158
|
+
*
|
|
159
|
+
* Id collision: ids are plain strings, so a tab whose KEY is `panel-x` has the tab id `<name>-panel-x`, which is the same string as the panel id of the
|
|
160
|
+
* key `x`. Do not use keys that start with `panel-` together with `controlsPanels` (`ui-pill-tabs` logs a `console.warn` for such a key in development mode).
|
|
161
|
+
*
|
|
162
|
+
* Note: the `hidden` attribute loses against an author rule such as `display: flex` on the same element; put such layout on an
|
|
163
|
+
* inner element, or style `[hidden] { display: none }`.
|
|
164
|
+
*/
|
|
165
|
+
export declare class PillTabPanelDirective {
|
|
166
|
+
/** Key of the tab this panel belongs to. */
|
|
167
|
+
readonly key: import("@angular/core").InputSignal<string>;
|
|
168
|
+
/** `name` of the `ui-pill-tabs` this panel belongs to. */
|
|
169
|
+
readonly tabsName: import("@angular/core").InputSignal<string>;
|
|
170
|
+
/** Active key of the tabs; the panel is `hidden` while it is another key. null (default) = never hidden by this directive. */
|
|
171
|
+
readonly activeKey: import("@angular/core").InputSignal<string | null>;
|
|
172
|
+
/** Makes the panel itself a Tab stop (for panels with no focusable content). Default false. */
|
|
173
|
+
readonly tabbable: import("@angular/core").InputSignal<boolean>;
|
|
174
|
+
/** Adds `aria-describedby` pointing at the description `ui-pill-tabs` renders under the tab list (`showDescription`). Default false. */
|
|
175
|
+
readonly describedByHeader: import("@angular/core").InputSignal<boolean>;
|
|
176
|
+
protected describedId(): string | null;
|
|
177
|
+
protected panelId(): string;
|
|
178
|
+
protected tabId(): string;
|
|
179
|
+
protected isHidden(): boolean;
|
|
180
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PillTabPanelDirective, never>;
|
|
181
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PillTabPanelDirective, "[uiTabPanel]", never, {
|
|
182
|
+
"key": {
|
|
183
|
+
"alias": "uiTabPanel";
|
|
184
|
+
"required": true;
|
|
185
|
+
"isSignal": true;
|
|
186
|
+
};
|
|
187
|
+
"tabsName": {
|
|
188
|
+
"alias": "tabsName";
|
|
189
|
+
"required": true;
|
|
190
|
+
"isSignal": true;
|
|
191
|
+
};
|
|
192
|
+
"activeKey": {
|
|
193
|
+
"alias": "activeKey";
|
|
194
|
+
"required": false;
|
|
195
|
+
"isSignal": true;
|
|
196
|
+
};
|
|
197
|
+
"tabbable": {
|
|
198
|
+
"alias": "tabbable";
|
|
199
|
+
"required": false;
|
|
200
|
+
"isSignal": true;
|
|
201
|
+
};
|
|
202
|
+
"describedByHeader": {
|
|
203
|
+
"alias": "describedByHeader";
|
|
204
|
+
"required": false;
|
|
205
|
+
"isSignal": true;
|
|
206
|
+
};
|
|
207
|
+
}, {}, never, never, true, never>;
|
|
208
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/** Delays of the print helpers, in milliseconds (the page needs a moment to lay out before the browser prints it). */
|
|
3
|
+
export interface PrintTimings {
|
|
4
|
+
/** After the pop-up window is filled, before `print()` is called. Default 300. */
|
|
5
|
+
windowDelayMs?: number;
|
|
6
|
+
/** After the hidden frame is filled, before `print()` is called. Default 400. */
|
|
7
|
+
frameDelayMs?: number;
|
|
8
|
+
/** After printing from the hidden frame, before the frame is removed. Default 2000. */
|
|
9
|
+
frameCleanupMs?: number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Prints or saves a finished HTML document, the same way in every app.
|
|
13
|
+
*
|
|
14
|
+
* const win = print.openWindow(); // straight from the click handler (Safari only allows a pop-up inside the user's gesture)
|
|
15
|
+
* const html = await buildTheDocument(); // may take a while
|
|
16
|
+
* if (!print.print(html, win)) toast.error('The print window was blocked. Allow pop-ups for this site.');
|
|
17
|
+
*
|
|
18
|
+
* print.printInFrame(html); // no pop-up: a hidden frame prints; the print dialog offers "Save as PDF"
|
|
19
|
+
* print.downloadHtml('checklist.html', html); // saves the HTML file itself
|
|
20
|
+
*
|
|
21
|
+
* No server, no state. Safe to call without a DOM (nothing happens).
|
|
22
|
+
*/
|
|
23
|
+
export declare class PrintService {
|
|
24
|
+
/** Opens an empty window. Call it directly from the click handler, then hand it to [print] later. Returns null when the browser blocked it. */
|
|
25
|
+
openWindow(): Window | null;
|
|
26
|
+
/**
|
|
27
|
+
* Writes `html` into a window (a new one, or `existing` opened earlier with [openWindow]), focuses it and prints it after `windowDelayMs`.
|
|
28
|
+
* Returns false when the browser blocked the pop-up, so the caller can tell the user.
|
|
29
|
+
*/
|
|
30
|
+
print(html: string, existing?: Window | null, timings?: PrintTimings): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Prints through a hidden frame (no pop-up). The frame is 1px, on screen and transparent, because Safari does not print a frame that is off screen
|
|
33
|
+
* or `display:none`. It is removed `frameCleanupMs` after printing. Does nothing without a DOM or when the frame has no document.
|
|
34
|
+
*/
|
|
35
|
+
printInFrame(html: string, timings?: PrintTimings): void;
|
|
36
|
+
/** Saves `html` as a file named `fileName` (`.html` is added when missing). */
|
|
37
|
+
downloadHtml(fileName: string, html: string): void;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PrintService, never>;
|
|
39
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export type ProgressBarVariant = 'blue' | 'green' | 'amber' | 'orange' | 'red' | 'slate';
|
|
3
|
+
/**
|
|
4
|
+
* Horizontal progress bar with an optional trailing label (e.g. "3/5").
|
|
5
|
+
* Pass `value` and `max`; the fill width is clamped to 0–100%, rounded to whole percents, and a value above 0 is never drawn narrower
|
|
6
|
+
* than 2% (so 1 of 300 is a visible sliver, not an empty bar). A value of 0 draws no fill.
|
|
7
|
+
*
|
|
8
|
+
* The fill color is built in and follows completion, in four bands: red up to 25%, amber up to 50%, blue up to 75%,
|
|
9
|
+
* green above 75% (full = green). Nothing needs to be passed. `variant` is an optional override for a bar whose
|
|
10
|
+
* color means something else (for example an overdue status, or a category-share bar) — when it is set the color stays fixed
|
|
11
|
+
* at every value. For a share-of-largest bar pass `[value]="count" [max]="largestCount" variant="blue"`.
|
|
12
|
+
* The width is set inline exactly as before (`style="width: N%;"` and nothing else, so existing consumers and e2e keep working); the transition is off for
|
|
13
|
+
* `prefers-reduced-motion` and the bar stays visible in forced-colors mode. Invalid numbers (NaN, negative max) draw an empty bar.
|
|
14
|
+
*/
|
|
15
|
+
export declare class ProgressBarComponent {
|
|
16
|
+
/** Completed amount. */
|
|
17
|
+
readonly value: import("@angular/core").InputSignal<number>;
|
|
18
|
+
/** Total amount; 0 renders an empty bar. */
|
|
19
|
+
readonly max: import("@angular/core").InputSignal<number>;
|
|
20
|
+
/** Text shown to the right of the bar, e.g. "3/5". */
|
|
21
|
+
readonly label: import("@angular/core").InputSignal<string>;
|
|
22
|
+
/** Optional fixed color override. Leave it out and the color follows completion (red / amber / blue / green). */
|
|
23
|
+
readonly variant: import("@angular/core").InputSignal<ProgressBarVariant | null | undefined>;
|
|
24
|
+
/** Any CSS colour for the fill (e.g. the brand colour). Wins over `variant` and the completion bands; empty = the built-in colours. (Or set `--ui-progress-fill` / `--ui-accent` once in the app to recolour the blue band.) */
|
|
25
|
+
readonly color: import("@angular/core").InputSignal<string>;
|
|
26
|
+
/** Hover / focus tooltip (library `uiTooltip`); `\n` starts a new line. */
|
|
27
|
+
readonly tooltip: import("@angular/core").InputSignal<string>;
|
|
28
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
29
|
+
/** Id of an element that names the bar (wins over `ariaLabel` / `label`). */
|
|
30
|
+
readonly ariaLabelledby: import("@angular/core").InputSignal<string>;
|
|
31
|
+
/** Human text for `aria-valuetext`, e.g. "12 documents, 40% of the largest category". Empty = not set. */
|
|
32
|
+
readonly valueText: import("@angular/core").InputSignal<string>;
|
|
33
|
+
/** `max` made safe: NaN / negative / infinite become 0 (empty bar, no division by zero). */
|
|
34
|
+
protected readonly safeMax: import("@angular/core").Signal<number>;
|
|
35
|
+
protected readonly clampedValue: import("@angular/core").Signal<number>;
|
|
36
|
+
/** Fill width in %: the rounded share, but never less than MIN_VISIBLE_PERCENT while the value is above 0 (1 of 300 would round to 0% and look empty). */
|
|
37
|
+
protected readonly percent: import("@angular/core").Signal<number>;
|
|
38
|
+
/** The override when given, else the completion band: up to 25% red, up to 50% amber, up to 75% blue, above 75% green. */
|
|
39
|
+
protected readonly effectiveVariant: import("@angular/core").Signal<ProgressBarVariant>;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarComponent, "ui-progress-bar", never, {
|
|
42
|
+
"value": {
|
|
43
|
+
"alias": "value";
|
|
44
|
+
"required": false;
|
|
45
|
+
"isSignal": true;
|
|
46
|
+
};
|
|
47
|
+
"max": {
|
|
48
|
+
"alias": "max";
|
|
49
|
+
"required": false;
|
|
50
|
+
"isSignal": true;
|
|
51
|
+
};
|
|
52
|
+
"label": {
|
|
53
|
+
"alias": "label";
|
|
54
|
+
"required": false;
|
|
55
|
+
"isSignal": true;
|
|
56
|
+
};
|
|
57
|
+
"variant": {
|
|
58
|
+
"alias": "variant";
|
|
59
|
+
"required": false;
|
|
60
|
+
"isSignal": true;
|
|
61
|
+
};
|
|
62
|
+
"color": {
|
|
63
|
+
"alias": "color";
|
|
64
|
+
"required": false;
|
|
65
|
+
"isSignal": true;
|
|
66
|
+
};
|
|
67
|
+
"tooltip": {
|
|
68
|
+
"alias": "tooltip";
|
|
69
|
+
"required": false;
|
|
70
|
+
"isSignal": true;
|
|
71
|
+
};
|
|
72
|
+
"ariaLabel": {
|
|
73
|
+
"alias": "ariaLabel";
|
|
74
|
+
"required": false;
|
|
75
|
+
"isSignal": true;
|
|
76
|
+
};
|
|
77
|
+
"ariaLabelledby": {
|
|
78
|
+
"alias": "ariaLabelledby";
|
|
79
|
+
"required": false;
|
|
80
|
+
"isSignal": true;
|
|
81
|
+
};
|
|
82
|
+
"valueText": {
|
|
83
|
+
"alias": "valueText";
|
|
84
|
+
"required": false;
|
|
85
|
+
"isSignal": true;
|
|
86
|
+
};
|
|
87
|
+
}, {}, never, never, true, never>;
|
|
88
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export type ProgressRingVariant = 'blue' | 'green' | 'amber' | 'red' | 'slate' | 'sky';
|
|
3
|
+
/**
|
|
4
|
+
* Circular progress ring with the rounded percentage (or a custom `label`) in the middle.
|
|
5
|
+
* Pass `value` and `max` (default 100); the arc is clamped to 0–100% and starts at 12 o'clock. A value of 0 draws no arc; invalid numbers
|
|
6
|
+
* (NaN, a negative or infinite max) draw an empty ring.
|
|
7
|
+
*
|
|
8
|
+
* The arc color follows completion exactly like `ui-progress-bar` (red up to 25%, amber up to 50%, blue up to 75%, green above 75%);
|
|
9
|
+
* `variant` fixes it for a ring whose color means something else (e.g. one ring per metric). The ring is a `role="progressbar"`
|
|
10
|
+
* (name it with `ariaLabel` or `ariaLabelledby`; `valueText` adds a human reading such as "$200K of $300K"). The arc animates unless
|
|
11
|
+
* `prefers-reduced-motion` is set and stays visible in forced-colors mode.
|
|
12
|
+
*
|
|
13
|
+
* <ui-progress-ring [value]="67" ariaLabel="Gross income progress" variant="green" />
|
|
14
|
+
* <ui-progress-ring [value]="done" [max]="total" [size]="72" [strokeWidth]="6" [label]="done + '/' + total" ariaLabel="Checklist" />
|
|
15
|
+
*/
|
|
16
|
+
export declare class ProgressRingComponent {
|
|
17
|
+
/** Completed amount. */
|
|
18
|
+
readonly value: import("@angular/core").InputSignal<number>;
|
|
19
|
+
/** Total amount (default 100, so `value` is a percentage); 0 renders an empty ring. */
|
|
20
|
+
readonly max: import("@angular/core").InputSignal<number>;
|
|
21
|
+
/** Diameter in px. */
|
|
22
|
+
readonly size: import("@angular/core").InputSignal<number>;
|
|
23
|
+
/** Ring thickness in px. */
|
|
24
|
+
readonly strokeWidth: import("@angular/core").InputSignal<number>;
|
|
25
|
+
/** Optional fixed arc color. Leave it out and the color follows completion (red / amber / blue / green). */
|
|
26
|
+
readonly variant: import("@angular/core").InputSignal<ProgressRingVariant | null | undefined>;
|
|
27
|
+
/** Text in the middle instead of the rounded percentage, e.g. "3/5". */
|
|
28
|
+
readonly label: import("@angular/core").InputSignal<string>;
|
|
29
|
+
/** `false` draws the ring without any text in the middle. */
|
|
30
|
+
readonly showValue: import("@angular/core").InputSignal<boolean>;
|
|
31
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
32
|
+
/** Id of an element that names the ring (wins over `ariaLabel`). */
|
|
33
|
+
readonly ariaLabelledby: import("@angular/core").InputSignal<string>;
|
|
34
|
+
/** Human text for `aria-valuetext`, e.g. "$200K of $300K". Empty = not set. */
|
|
35
|
+
readonly valueText: import("@angular/core").InputSignal<string>;
|
|
36
|
+
/** `max` made safe: NaN / negative / infinite become 0 (empty ring, no division by zero). */
|
|
37
|
+
protected readonly safeMax: import("@angular/core").Signal<number>;
|
|
38
|
+
protected readonly clampedValue: import("@angular/core").Signal<number>;
|
|
39
|
+
/** Exact completion in % (0–100). */
|
|
40
|
+
private readonly exact;
|
|
41
|
+
/** Rounded completion in %, shown in the middle. */
|
|
42
|
+
protected readonly percent: import("@angular/core").Signal<number>;
|
|
43
|
+
protected readonly center: import("@angular/core").Signal<number>;
|
|
44
|
+
protected readonly radius: import("@angular/core").Signal<number>;
|
|
45
|
+
protected readonly circumference: import("@angular/core").Signal<number>;
|
|
46
|
+
protected readonly dashOffset: import("@angular/core").Signal<number>;
|
|
47
|
+
/** The override when given, else the completion band: up to 25% red, up to 50% amber, up to 75% blue, above 75% green. */
|
|
48
|
+
protected readonly effectiveVariant: import("@angular/core").Signal<ProgressRingVariant>;
|
|
49
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressRingComponent, never>;
|
|
50
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressRingComponent, "ui-progress-ring", never, {
|
|
51
|
+
"value": {
|
|
52
|
+
"alias": "value";
|
|
53
|
+
"required": false;
|
|
54
|
+
"isSignal": true;
|
|
55
|
+
};
|
|
56
|
+
"max": {
|
|
57
|
+
"alias": "max";
|
|
58
|
+
"required": false;
|
|
59
|
+
"isSignal": true;
|
|
60
|
+
};
|
|
61
|
+
"size": {
|
|
62
|
+
"alias": "size";
|
|
63
|
+
"required": false;
|
|
64
|
+
"isSignal": true;
|
|
65
|
+
};
|
|
66
|
+
"strokeWidth": {
|
|
67
|
+
"alias": "strokeWidth";
|
|
68
|
+
"required": false;
|
|
69
|
+
"isSignal": true;
|
|
70
|
+
};
|
|
71
|
+
"variant": {
|
|
72
|
+
"alias": "variant";
|
|
73
|
+
"required": false;
|
|
74
|
+
"isSignal": true;
|
|
75
|
+
};
|
|
76
|
+
"label": {
|
|
77
|
+
"alias": "label";
|
|
78
|
+
"required": false;
|
|
79
|
+
"isSignal": true;
|
|
80
|
+
};
|
|
81
|
+
"showValue": {
|
|
82
|
+
"alias": "showValue";
|
|
83
|
+
"required": false;
|
|
84
|
+
"isSignal": true;
|
|
85
|
+
};
|
|
86
|
+
"ariaLabel": {
|
|
87
|
+
"alias": "ariaLabel";
|
|
88
|
+
"required": false;
|
|
89
|
+
"isSignal": true;
|
|
90
|
+
};
|
|
91
|
+
"ariaLabelledby": {
|
|
92
|
+
"alias": "ariaLabelledby";
|
|
93
|
+
"required": false;
|
|
94
|
+
"isSignal": true;
|
|
95
|
+
};
|
|
96
|
+
"valueText": {
|
|
97
|
+
"alias": "valueText";
|
|
98
|
+
"required": false;
|
|
99
|
+
"isSignal": true;
|
|
100
|
+
};
|
|
101
|
+
}, {}, never, never, true, never>;
|
|
102
|
+
}
|