@forgeroute/ui 0.5.16 → 0.5.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/forgeroute-ui-action-bar.mjs +190 -0
- package/fesm2022/forgeroute-ui-action-bar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-address-input.mjs +1164 -0
- package/fesm2022/forgeroute-ui-address-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-alert.mjs +223 -0
- package/fesm2022/forgeroute-ui-alert.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-avatar.mjs +320 -0
- package/fesm2022/forgeroute-ui-avatar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-badge.mjs +158 -0
- package/fesm2022/forgeroute-ui-badge.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-bar-row.mjs +255 -0
- package/fesm2022/forgeroute-ui-bar-row.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-boards.mjs +2201 -0
- package/fesm2022/forgeroute-ui-boards.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-bulk-eligible.mjs +172 -0
- package/fesm2022/forgeroute-ui-bulk-eligible.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-business-hours.mjs +771 -0
- package/fesm2022/forgeroute-ui-business-hours.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-calendar.mjs +2006 -0
- package/fesm2022/forgeroute-ui-calendar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-card-list-item.mjs +556 -0
- package/fesm2022/forgeroute-ui-card-list-item.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-charts.mjs +1 -1
- package/fesm2022/forgeroute-ui-charts.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-checkbox.mjs +815 -0
- package/fesm2022/forgeroute-ui-checkbox.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-chip.mjs +379 -0
- package/fesm2022/forgeroute-ui-chip.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-color-input.mjs +492 -0
- package/fesm2022/forgeroute-ui-color-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-column-filter.mjs +645 -0
- package/fesm2022/forgeroute-ui-column-filter.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-columns.mjs +351 -0
- package/fesm2022/forgeroute-ui-columns.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-combobox.mjs +772 -0
- package/fesm2022/forgeroute-ui-combobox.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-confirm.mjs +48 -0
- package/fesm2022/forgeroute-ui-confirm.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-contact-picker.mjs +865 -0
- package/fesm2022/forgeroute-ui-contact-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-conversations.mjs +3627 -0
- package/fesm2022/forgeroute-ui-conversations.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-copy-field.mjs +378 -0
- package/fesm2022/forgeroute-ui-copy-field.mjs.map +1 -0
- package/fesm2022/{forgeroute-ui-core-ui-labels.es-Dzj_XJJM.mjs → forgeroute-ui-core-ui-labels.es-Woi3az70.mjs} +186 -2
- package/fesm2022/{forgeroute-ui-core-ui-labels.es-Dzj_XJJM.mjs.map → forgeroute-ui-core-ui-labels.es-Woi3az70.mjs.map} +1 -1
- package/fesm2022/forgeroute-ui-core.mjs +186 -2
- package/fesm2022/forgeroute-ui-core.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-data-table-core.mjs +6150 -0
- package/fesm2022/forgeroute-ui-data-table-core.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-date-input.mjs +384 -0
- package/fesm2022/forgeroute-ui-date-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-date-range-picker.mjs +453 -0
- package/fesm2022/forgeroute-ui-date-range-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-datetime-input.mjs +375 -0
- package/fesm2022/forgeroute-ui-datetime-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-detail-card.mjs +655 -0
- package/fesm2022/forgeroute-ui-detail-card.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-discount-selector.mjs +259 -0
- package/fesm2022/forgeroute-ui-discount-selector.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-divider.mjs +111 -0
- package/fesm2022/forgeroute-ui-divider.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-dropdown.mjs +550 -0
- package/fesm2022/forgeroute-ui-dropdown.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-editor.mjs +4545 -0
- package/fesm2022/forgeroute-ui-editor.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-empty-state.mjs +231 -0
- package/fesm2022/forgeroute-ui-empty-state.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-error-state.mjs +195 -0
- package/fesm2022/forgeroute-ui-error-state.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-error.mjs +93 -0
- package/fesm2022/forgeroute-ui-error.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-fade.mjs +117 -0
- package/fesm2022/forgeroute-ui-fade.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-file-input.mjs +999 -0
- package/fesm2022/forgeroute-ui-file-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-fixed-footer.mjs +115 -0
- package/fesm2022/forgeroute-ui-fixed-footer.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-form-row.mjs +126 -0
- package/fesm2022/forgeroute-ui-form-row.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-form-section.mjs +93 -0
- package/fesm2022/forgeroute-ui-form-section.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-form.mjs +139 -0
- package/fesm2022/forgeroute-ui-form.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-hint.mjs +47 -0
- package/fesm2022/forgeroute-ui-hint.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-icon-picker.mjs +424 -0
- package/fesm2022/forgeroute-ui-icon-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-icon.mjs +311 -0
- package/fesm2022/forgeroute-ui-icon.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-image-preview.mjs +237 -0
- package/fesm2022/forgeroute-ui-image-preview.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-keypad.mjs +278 -0
- package/fesm2022/forgeroute-ui-keypad.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-kpi-card.mjs +490 -0
- package/fesm2022/forgeroute-ui-kpi-card.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-language-switcher.mjs +134 -0
- package/fesm2022/forgeroute-ui-language-switcher.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-layout.mjs +18 -0
- package/fesm2022/forgeroute-ui-layout.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-list-item.mjs +620 -0
- package/fesm2022/forgeroute-ui-list-item.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-list.mjs +866 -0
- package/fesm2022/forgeroute-ui-list.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-live-region.mjs +118 -0
- package/fesm2022/forgeroute-ui-live-region.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-map.mjs +5 -1
- package/fesm2022/forgeroute-ui-map.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-maps.mjs +2 -1
- package/fesm2022/forgeroute-ui-maps.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-media.mjs +4615 -0
- package/fesm2022/forgeroute-ui-media.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-messaging.mjs +20 -1
- package/fesm2022/forgeroute-ui-messaging.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-more-menu.mjs +418 -0
- package/fesm2022/forgeroute-ui-more-menu.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-multi-select.mjs +532 -0
- package/fesm2022/forgeroute-ui-multi-select.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-notes.mjs +768 -0
- package/fesm2022/forgeroute-ui-notes.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-notification-bell.mjs +587 -0
- package/fesm2022/forgeroute-ui-notification-bell.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-offline-banner.mjs +156 -0
- package/fesm2022/forgeroute-ui-offline-banner.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-option-card.mjs +379 -0
- package/fesm2022/forgeroute-ui-option-card.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-page.mjs +317 -0
- package/fesm2022/forgeroute-ui-page.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-pagination.mjs +225 -0
- package/fesm2022/forgeroute-ui-pagination.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-panel-info-list.mjs +422 -0
- package/fesm2022/forgeroute-ui-panel-info-list.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-password-requirements.mjs +237 -0
- package/fesm2022/forgeroute-ui-password-requirements.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-payments.mjs +6258 -0
- package/fesm2022/forgeroute-ui-payments.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-pdf.mjs +9 -1
- package/fesm2022/forgeroute-ui-pdf.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-phone-number-picker.mjs +840 -0
- package/fesm2022/forgeroute-ui-phone-number-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-pill-tabs.mjs +546 -0
- package/fesm2022/forgeroute-ui-pill-tabs.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-print.mjs +76 -0
- package/fesm2022/forgeroute-ui-print.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-progress-bar.mjs +252 -0
- package/fesm2022/forgeroute-ui-progress-bar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-progress-ring.mjs +277 -0
- package/fesm2022/forgeroute-ui-progress-ring.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-quick-filter-tabs.mjs +301 -0
- package/fesm2022/forgeroute-ui-quick-filter-tabs.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-quickbooks.mjs +18 -1
- package/fesm2022/forgeroute-ui-quickbooks.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-radio-matrix.mjs +471 -0
- package/fesm2022/forgeroute-ui-radio-matrix.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-radio.mjs +911 -0
- package/fesm2022/forgeroute-ui-radio.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-read-only-mode.mjs +15 -0
- package/fesm2022/forgeroute-ui-read-only-mode.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-readonly-fieldset.mjs +146 -0
- package/fesm2022/forgeroute-ui-readonly-fieldset.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-reminder-alerts.mjs +249 -0
- package/fesm2022/forgeroute-ui-reminder-alerts.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-search-input.mjs +373 -0
- package/fesm2022/forgeroute-ui-search-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-section-header.mjs +296 -0
- package/fesm2022/forgeroute-ui-section-header.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-select.mjs +498 -0
- package/fesm2022/forgeroute-ui-select.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-setup.mjs +4649 -0
- package/fesm2022/forgeroute-ui-setup.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-share-menu.mjs +461 -0
- package/fesm2022/forgeroute-ui-share-menu.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-shell.mjs +981 -0
- package/fesm2022/forgeroute-ui-shell.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-show.mjs +129 -0
- package/fesm2022/forgeroute-ui-show.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-sidebar-layout.mjs +355 -0
- package/fesm2022/forgeroute-ui-sidebar-layout.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-skeleton.mjs +152 -0
- package/fesm2022/forgeroute-ui-skeleton.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-skip-link.mjs +129 -0
- package/fesm2022/forgeroute-ui-skip-link.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-snackbar.mjs +200 -0
- package/fesm2022/forgeroute-ui-snackbar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-square.mjs +15 -1
- package/fesm2022/forgeroute-ui-square.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-stack.mjs +233 -0
- package/fesm2022/forgeroute-ui-stack.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stacked-bar.mjs +200 -0
- package/fesm2022/forgeroute-ui-stacked-bar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stacking-plan.mjs +365 -0
- package/fesm2022/forgeroute-ui-stacking-plan.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-star-rating.mjs +498 -0
- package/fesm2022/forgeroute-ui-star-rating.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-star.mjs +184 -0
- package/fesm2022/forgeroute-ui-star.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stepper.mjs +615 -0
- package/fesm2022/forgeroute-ui-stepper.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stripe.mjs +6254 -1188
- package/fesm2022/forgeroute-ui-stripe.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-swatch-picker.mjs +416 -0
- package/fesm2022/forgeroute-ui-swatch-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-table-toolbar.mjs +770 -0
- package/fesm2022/forgeroute-ui-table-toolbar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-table-types.mjs +277 -0
- package/fesm2022/forgeroute-ui-table-types.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-text-input.mjs +1003 -0
- package/fesm2022/forgeroute-ui-text-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-text-template-picker.mjs +356 -0
- package/fesm2022/forgeroute-ui-text-template-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-text.mjs +195 -0
- package/fesm2022/forgeroute-ui-text.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-textarea-input.mjs +542 -0
- package/fesm2022/forgeroute-ui-textarea-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-time-input.mjs +401 -0
- package/fesm2022/forgeroute-ui-time-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-timeline.mjs +549 -0
- package/fesm2022/forgeroute-ui-timeline.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-toast.mjs +507 -0
- package/fesm2022/forgeroute-ui-toast.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-toggle-badge.mjs +177 -0
- package/fesm2022/forgeroute-ui-toggle-badge.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-toggle.mjs +275 -0
- package/fesm2022/forgeroute-ui-toggle.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-tooltip.mjs +155 -0
- package/fesm2022/forgeroute-ui-tooltip.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-utils.mjs +1071 -0
- package/fesm2022/forgeroute-ui-utils.mjs.map +1 -0
- package/fesm2022/forgeroute-ui.mjs +105 -70663
- package/package.json +422 -2
- package/types/forgeroute-ui-action-bar.d.ts +74 -0
- package/types/forgeroute-ui-address-input.d.ts +354 -0
- package/types/forgeroute-ui-alert.d.ts +89 -0
- package/types/forgeroute-ui-avatar.d.ts +85 -0
- package/types/forgeroute-ui-badge.d.ts +45 -0
- package/types/forgeroute-ui-bar-row.d.ts +90 -0
- package/types/forgeroute-ui-boards.d.ts +575 -0
- package/types/forgeroute-ui-bulk-eligible.d.ts +53 -0
- package/types/forgeroute-ui-business-hours.d.ts +191 -0
- package/types/forgeroute-ui-calendar.d.ts +544 -0
- package/types/forgeroute-ui-card-list-item.d.ts +186 -0
- package/types/forgeroute-ui-charts.d.ts +1 -1
- package/types/forgeroute-ui-checkbox.d.ts +270 -0
- package/types/forgeroute-ui-chip.d.ts +125 -0
- package/types/forgeroute-ui-color-input.d.ts +160 -0
- package/types/forgeroute-ui-column-filter.d.ts +130 -0
- package/types/forgeroute-ui-columns.d.ts +150 -0
- package/types/forgeroute-ui-combobox.d.ts +252 -0
- package/types/forgeroute-ui-confirm.d.ts +34 -0
- package/types/forgeroute-ui-contact-picker.d.ts +173 -0
- package/types/forgeroute-ui-conversations.d.ts +993 -0
- package/types/forgeroute-ui-copy-field.d.ts +122 -0
- package/types/forgeroute-ui-core.d.ts +188 -4
- package/types/forgeroute-ui-data-table-core.d.ts +1221 -0
- package/types/forgeroute-ui-date-input.d.ts +101 -0
- package/types/forgeroute-ui-date-range-picker.d.ts +109 -0
- package/types/forgeroute-ui-datetime-input.d.ts +97 -0
- package/types/forgeroute-ui-detail-card.d.ts +252 -0
- package/types/forgeroute-ui-discount-selector.d.ts +57 -0
- package/types/forgeroute-ui-divider.d.ts +40 -0
- package/types/forgeroute-ui-dropdown.d.ts +156 -0
- package/types/forgeroute-ui-editor.d.ts +873 -0
- package/types/forgeroute-ui-empty-state.d.ts +29 -0
- package/types/forgeroute-ui-error-state.d.ts +38 -0
- package/types/forgeroute-ui-error.d.ts +29 -0
- package/types/forgeroute-ui-fade.d.ts +39 -0
- package/types/forgeroute-ui-file-input.d.ts +337 -0
- package/types/forgeroute-ui-fixed-footer.d.ts +53 -0
- package/types/forgeroute-ui-form-row.d.ts +30 -0
- package/types/forgeroute-ui-form-section.d.ts +18 -0
- package/types/forgeroute-ui-form.d.ts +68 -0
- package/types/forgeroute-ui-hint.d.ts +10 -0
- package/types/forgeroute-ui-icon-picker.d.ts +122 -0
- package/types/forgeroute-ui-icon.d.ts +95 -0
- package/types/forgeroute-ui-image-preview.d.ts +88 -0
- package/types/forgeroute-ui-keypad.d.ts +73 -0
- package/types/forgeroute-ui-kpi-card.d.ts +161 -0
- package/types/forgeroute-ui-language-switcher.d.ts +41 -0
- package/types/forgeroute-ui-layout.d.ts +13 -0
- package/types/forgeroute-ui-list-item.d.ts +253 -0
- package/types/forgeroute-ui-list.d.ts +282 -0
- package/types/forgeroute-ui-live-region.d.ts +49 -0
- package/types/forgeroute-ui-map.d.ts +1 -1
- package/types/forgeroute-ui-maps.d.ts +1 -1
- package/types/forgeroute-ui-media.d.ts +1221 -0
- package/types/forgeroute-ui-messaging.d.ts +11 -6
- package/types/forgeroute-ui-more-menu.d.ts +91 -0
- package/types/forgeroute-ui-multi-select.d.ts +119 -0
- package/types/forgeroute-ui-notes.d.ts +172 -0
- package/types/forgeroute-ui-notification-bell.d.ts +135 -0
- package/types/forgeroute-ui-offline-banner.d.ts +44 -0
- package/types/forgeroute-ui-option-card.d.ts +106 -0
- package/types/forgeroute-ui-page.d.ts +115 -0
- package/types/forgeroute-ui-pagination.d.ts +55 -0
- package/types/forgeroute-ui-panel-info-list.d.ts +147 -0
- package/types/forgeroute-ui-password-requirements.d.ts +89 -0
- package/types/forgeroute-ui-payments.d.ts +1826 -0
- package/types/forgeroute-ui-pdf.d.ts +1 -1
- package/types/forgeroute-ui-phone-number-picker.d.ts +199 -0
- package/types/forgeroute-ui-pill-tabs.d.ts +208 -0
- package/types/forgeroute-ui-print.d.ts +40 -0
- package/types/forgeroute-ui-progress-bar.d.ts +88 -0
- package/types/forgeroute-ui-progress-ring.d.ts +102 -0
- package/types/forgeroute-ui-quick-filter-tabs.d.ts +51 -0
- package/types/forgeroute-ui-quickbooks.d.ts +6 -3
- package/types/forgeroute-ui-radio-matrix.d.ts +131 -0
- package/types/forgeroute-ui-radio.d.ts +311 -0
- package/types/forgeroute-ui-read-only-mode.d.ts +26 -0
- package/types/forgeroute-ui-readonly-fieldset.d.ts +62 -0
- package/types/forgeroute-ui-reminder-alerts.d.ts +71 -0
- package/types/forgeroute-ui-search-input.d.ts +93 -0
- package/types/forgeroute-ui-section-header.d.ts +149 -0
- package/types/forgeroute-ui-select.d.ts +183 -0
- package/types/forgeroute-ui-setup.d.ts +775 -0
- package/types/forgeroute-ui-share-menu.d.ts +99 -0
- package/types/forgeroute-ui-shell.d.ts +173 -0
- package/types/forgeroute-ui-show.d.ts +40 -0
- package/types/forgeroute-ui-sidebar-layout.d.ts +161 -0
- package/types/forgeroute-ui-skeleton.d.ts +51 -0
- package/types/forgeroute-ui-skip-link.d.ts +51 -0
- package/types/forgeroute-ui-snackbar.d.ts +50 -0
- package/types/forgeroute-ui-square.d.ts +5 -3
- package/types/forgeroute-ui-stack.d.ts +99 -0
- package/types/forgeroute-ui-stacked-bar.d.ts +84 -0
- package/types/forgeroute-ui-stacking-plan.d.ts +116 -0
- package/types/forgeroute-ui-star-rating.d.ts +151 -0
- package/types/forgeroute-ui-star.d.ts +46 -0
- package/types/forgeroute-ui-stepper.d.ts +273 -0
- package/types/forgeroute-ui-stripe.d.ts +1458 -3
- package/types/forgeroute-ui-swatch-picker.d.ts +118 -0
- package/types/forgeroute-ui-table-toolbar.d.ts +116 -0
- package/types/forgeroute-ui-table-types.d.ts +624 -0
- package/types/forgeroute-ui-text-input.d.ts +359 -0
- package/types/forgeroute-ui-text-template-picker.d.ts +100 -0
- package/types/forgeroute-ui-text.d.ts +76 -0
- package/types/forgeroute-ui-textarea-input.d.ts +174 -0
- package/types/forgeroute-ui-time-input.d.ts +105 -0
- package/types/forgeroute-ui-timeline.d.ts +196 -0
- package/types/forgeroute-ui-toast.d.ts +131 -0
- package/types/forgeroute-ui-toggle-badge.d.ts +64 -0
- package/types/forgeroute-ui-toggle.d.ts +92 -0
- package/types/forgeroute-ui-tooltip.d.ts +36 -0
- package/types/forgeroute-ui-utils.d.ts +210 -0
- package/types/forgeroute-ui.d.ts +106 -19539
- package/fesm2022/forgeroute-ui.mjs.map +0 -1
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { BadgeVariant } from "@forgeroute/ui/table-types";
|
|
2
|
+
import { UiLabelsService } from "@forgeroute/ui/core";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/** Colour of the priority dot (`high` red, `medium` amber, `low` grey, `blue`, `green`); `none` = no dot. */
|
|
5
|
+
export type CardListIndicator = 'high' | 'medium' | 'low' | 'blue' | 'green' | 'none';
|
|
6
|
+
/** Icon of the round marker on the left. */
|
|
7
|
+
export type CardListIcon = 'call' | 'email' | 'sms' | 'task' | 'doc' | 'money' | 'deal' | 'survey' | 'property' | 'search' | 'heart' | 'calc' | 'repeat';
|
|
8
|
+
/**
|
|
9
|
+
* Record row for the cards of a detail page (tasks, documents, deals, expenses, matches, surveys...). The layout is fixed;
|
|
10
|
+
* pass inputs only:
|
|
11
|
+
*
|
|
12
|
+
* [dot | round icon] [title] [type badge] [status badge] [Edit] [View]
|
|
13
|
+
* [description] [inline link]
|
|
14
|
+
* [calendar icon + date]
|
|
15
|
+
*
|
|
16
|
+
* Each row is a bordered rounded box, 8px apart; put the rows straight in a `ui-detail-card` body (or in a `ui-list` template).
|
|
17
|
+
*
|
|
18
|
+
* <ui-card-list-item title="Call John" indicator="high" type="Meeting" status="Pending" statusVariant="gray"
|
|
19
|
+
* date="Due Aug 21, 2026" description="Follow up about the offer"
|
|
20
|
+
* [editButton]="true" (editClick)="edit(t)" [viewButton]="true" (viewClick)="view(t)" />
|
|
21
|
+
*
|
|
22
|
+
* Links: the library has no router, so a link is content you project and the app owns (`routerLink` etc.):
|
|
23
|
+
* - `<a card-list-action class="cli-chip cli-chip--view" routerLink="/x">View</a>` at the row end (blue chip, like the View button);
|
|
24
|
+
* - `<a card-list-inline class="cli-inline-link" routerLink="/x">View ...</a>` at the end of the description line.
|
|
25
|
+
* Other projected content (default slot) shows after the chips at the row end; `[card-stats]` and `[card-detail]` add a footer row
|
|
26
|
+
* under the row (use the `.cli-stat`, `.cli-stat-label`, `.cli-stat-value`, `.cli-stat-divider` classes inside `[card-stats]`).
|
|
27
|
+
*
|
|
28
|
+
* Delete and a generic action (additive; unused = the row looks exactly as before). Row-end order: Edit, View, action, delete, then projected content.
|
|
29
|
+
* - `[deletable]="true"` shows a red icon-only trash button (28px, 44px hit area on touch) -> `(delete)`; name it with `deleteLabel` (default "Delete"), `deleteTestId` sets its `data-testid`.
|
|
30
|
+
* The page owns the confirmation (the component never deletes anything itself).
|
|
31
|
+
* - `actionLabel="Download"` shows a grey chip button with that text -> `(action)`; `actionTestId`, `actionAriaLabel` as for the other buttons.
|
|
32
|
+
*
|
|
33
|
+
* Accessibility: the Edit / View buttons are real buttons; give them a longer name with `editAriaLabel` / `viewAriaLabel`
|
|
34
|
+
* ("Edit task Call John") when the visible word alone is ambiguous in a list. The priority dot (`high`/`medium`/`low`) has a tooltip and an
|
|
35
|
+
* accessible name (`High priority`, ...), is focusable so the tooltip works by keyboard; `blue`/`green` dots are decorative. The icon circle is decorative.
|
|
36
|
+
*/
|
|
37
|
+
export declare class CardListItemComponent {
|
|
38
|
+
protected readonly labels: UiLabelsService;
|
|
39
|
+
readonly title: import("@angular/core").InputSignal<string>;
|
|
40
|
+
readonly description: import("@angular/core").InputSignal<string | undefined>;
|
|
41
|
+
/** Date text with a small calendar icon, e.g. "Due Aug 21, 2026". Pre-formatted by the page. */
|
|
42
|
+
readonly date: import("@angular/core").InputSignal<string | undefined>;
|
|
43
|
+
/** Badge after the title; `typeVariant` colours it (default `gray`). */
|
|
44
|
+
readonly type: import("@angular/core").InputSignal<string | undefined>;
|
|
45
|
+
readonly typeVariant: import("@angular/core").InputSignal<BadgeVariant>;
|
|
46
|
+
/** Second badge; shown only together with `statusVariant`. */
|
|
47
|
+
readonly status: import("@angular/core").InputSignal<string | undefined>;
|
|
48
|
+
readonly statusVariant: import("@angular/core").InputSignal<BadgeVariant | undefined>;
|
|
49
|
+
/** Priority dot on the left (ignored when `icon` is set). */
|
|
50
|
+
readonly indicator: import("@angular/core").InputSignal<CardListIndicator>;
|
|
51
|
+
/** Round icon on the left (wins over `indicator`). */
|
|
52
|
+
readonly icon: import("@angular/core").InputSignal<CardListIcon | undefined>;
|
|
53
|
+
/** A type badge or a status badge (with its variant) shows: they sit in the card's upper right corner. */
|
|
54
|
+
protected readonly hasBadges: import("@angular/core").Signal<boolean>;
|
|
55
|
+
/** Built-in "Edit" chip button -> `editClick`. */
|
|
56
|
+
readonly editButton: import("@angular/core").InputSignal<boolean>;
|
|
57
|
+
/** Built-in "View" chip button -> `viewClick`. */
|
|
58
|
+
readonly viewButton: import("@angular/core").InputSignal<boolean>;
|
|
59
|
+
/** Accessible names for the buttons when the visible word is not enough ("Edit task Call John"). */
|
|
60
|
+
readonly editAriaLabel: import("@angular/core").InputSignal<string>;
|
|
61
|
+
readonly viewAriaLabel: import("@angular/core").InputSignal<string>;
|
|
62
|
+
/** Built-in icon-only trash button -> `delete`. The accessible name comes from `deleteLabel` ("Delete task Call John"). */
|
|
63
|
+
readonly deletable: import("@angular/core").InputSignal<boolean>;
|
|
64
|
+
readonly deleteLabelInput: import("@angular/core").InputSignal<string | null>;
|
|
65
|
+
readonly deleteLabel: import("@angular/core").Signal<string>;
|
|
66
|
+
/** `data-testid` of the delete button (none when empty). */
|
|
67
|
+
readonly deleteTestId: import("@angular/core").InputSignal<string>;
|
|
68
|
+
/** Built-in secondary chip button (text = `actionLabel`, e.g. "Download") -> `action`; shown only while `actionLabel` is not empty. */
|
|
69
|
+
readonly actionLabel: import("@angular/core").InputSignal<string>;
|
|
70
|
+
readonly actionTestId: import("@angular/core").InputSignal<string>;
|
|
71
|
+
readonly actionAriaLabel: import("@angular/core").InputSignal<string>;
|
|
72
|
+
/** A built-in Edit / View / action / delete button shows (the row then keeps a minimum height so a badge and a chip never overlap). */
|
|
73
|
+
protected readonly hasBuiltInChip: import("@angular/core").Signal<boolean>;
|
|
74
|
+
readonly editClick: import("@angular/core").OutputEmitterRef<void>;
|
|
75
|
+
readonly viewClick: import("@angular/core").OutputEmitterRef<void>;
|
|
76
|
+
readonly delete: import("@angular/core").OutputEmitterRef<void>;
|
|
77
|
+
readonly action: import("@angular/core").OutputEmitterRef<void>;
|
|
78
|
+
protected readonly calendarPath = "M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z M16 2v4 M8 2v4 M3 10h18";
|
|
79
|
+
protected readonly editPath = "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7 M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z";
|
|
80
|
+
protected readonly trashPath = "M3 6h18 M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2 M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6 M10 11v6 M14 11v6";
|
|
81
|
+
protected readonly iconPath: import("@angular/core").Signal<string | null>;
|
|
82
|
+
protected readonly indicatorLabel: import("@angular/core").Signal<string>;
|
|
83
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CardListItemComponent, never>;
|
|
84
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CardListItemComponent, "ui-card-list-item", never, {
|
|
85
|
+
"title": {
|
|
86
|
+
"alias": "title";
|
|
87
|
+
"required": false;
|
|
88
|
+
"isSignal": true;
|
|
89
|
+
};
|
|
90
|
+
"description": {
|
|
91
|
+
"alias": "description";
|
|
92
|
+
"required": false;
|
|
93
|
+
"isSignal": true;
|
|
94
|
+
};
|
|
95
|
+
"date": {
|
|
96
|
+
"alias": "date";
|
|
97
|
+
"required": false;
|
|
98
|
+
"isSignal": true;
|
|
99
|
+
};
|
|
100
|
+
"type": {
|
|
101
|
+
"alias": "type";
|
|
102
|
+
"required": false;
|
|
103
|
+
"isSignal": true;
|
|
104
|
+
};
|
|
105
|
+
"typeVariant": {
|
|
106
|
+
"alias": "typeVariant";
|
|
107
|
+
"required": false;
|
|
108
|
+
"isSignal": true;
|
|
109
|
+
};
|
|
110
|
+
"status": {
|
|
111
|
+
"alias": "status";
|
|
112
|
+
"required": false;
|
|
113
|
+
"isSignal": true;
|
|
114
|
+
};
|
|
115
|
+
"statusVariant": {
|
|
116
|
+
"alias": "statusVariant";
|
|
117
|
+
"required": false;
|
|
118
|
+
"isSignal": true;
|
|
119
|
+
};
|
|
120
|
+
"indicator": {
|
|
121
|
+
"alias": "indicator";
|
|
122
|
+
"required": false;
|
|
123
|
+
"isSignal": true;
|
|
124
|
+
};
|
|
125
|
+
"icon": {
|
|
126
|
+
"alias": "icon";
|
|
127
|
+
"required": false;
|
|
128
|
+
"isSignal": true;
|
|
129
|
+
};
|
|
130
|
+
"editButton": {
|
|
131
|
+
"alias": "editButton";
|
|
132
|
+
"required": false;
|
|
133
|
+
"isSignal": true;
|
|
134
|
+
};
|
|
135
|
+
"viewButton": {
|
|
136
|
+
"alias": "viewButton";
|
|
137
|
+
"required": false;
|
|
138
|
+
"isSignal": true;
|
|
139
|
+
};
|
|
140
|
+
"editAriaLabel": {
|
|
141
|
+
"alias": "editAriaLabel";
|
|
142
|
+
"required": false;
|
|
143
|
+
"isSignal": true;
|
|
144
|
+
};
|
|
145
|
+
"viewAriaLabel": {
|
|
146
|
+
"alias": "viewAriaLabel";
|
|
147
|
+
"required": false;
|
|
148
|
+
"isSignal": true;
|
|
149
|
+
};
|
|
150
|
+
"deletable": {
|
|
151
|
+
"alias": "deletable";
|
|
152
|
+
"required": false;
|
|
153
|
+
"isSignal": true;
|
|
154
|
+
};
|
|
155
|
+
"deleteLabelInput": {
|
|
156
|
+
"alias": "deleteLabel";
|
|
157
|
+
"required": false;
|
|
158
|
+
"isSignal": true;
|
|
159
|
+
};
|
|
160
|
+
"deleteTestId": {
|
|
161
|
+
"alias": "deleteTestId";
|
|
162
|
+
"required": false;
|
|
163
|
+
"isSignal": true;
|
|
164
|
+
};
|
|
165
|
+
"actionLabel": {
|
|
166
|
+
"alias": "actionLabel";
|
|
167
|
+
"required": false;
|
|
168
|
+
"isSignal": true;
|
|
169
|
+
};
|
|
170
|
+
"actionTestId": {
|
|
171
|
+
"alias": "actionTestId";
|
|
172
|
+
"required": false;
|
|
173
|
+
"isSignal": true;
|
|
174
|
+
};
|
|
175
|
+
"actionAriaLabel": {
|
|
176
|
+
"alias": "actionAriaLabel";
|
|
177
|
+
"required": false;
|
|
178
|
+
"isSignal": true;
|
|
179
|
+
};
|
|
180
|
+
}, {
|
|
181
|
+
"editClick": "editClick";
|
|
182
|
+
"viewClick": "viewClick";
|
|
183
|
+
"delete": "delete";
|
|
184
|
+
"action": "action";
|
|
185
|
+
}, never, ["[card-list-inline]", "[card-list-action]", "*", "[card-stats]", "[card-detail]"], true, never>;
|
|
186
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { UiLabelsService } from "@forgeroute/ui";
|
|
2
|
+
import { UiLabelsService } from "@forgeroute/ui/core";
|
|
3
3
|
/**
|
|
4
4
|
* A darker shade (each channel x 0.8) of a hex (`#rgb`, `#rgba`, `#rrggbb`, `#rrggbbaa`) or comma-separated `rgb()` / `rgba()` colour,
|
|
5
5
|
* returned as `rgb(r, g, b)` or `rgba(r, g, b, a)`. Returns `null` for anything else (named colours, `var(--x)`, `hsl()`, out-of-range
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from "@angular/forms";
|
|
2
|
+
import { UiFieldValidity, UiLabelsService } from "@forgeroute/ui/core";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/** One checkbox of a group (`options`). */
|
|
5
|
+
export interface CheckboxOption {
|
|
6
|
+
value: string;
|
|
7
|
+
label: string;
|
|
8
|
+
/** Helper text under the option. */
|
|
9
|
+
description?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** `data-testid` of this option's native checkbox (e.g. for end-to-end tests); none when omitted. */
|
|
12
|
+
testId?: string;
|
|
13
|
+
/** `data-testid` of this option's label text; none when omitted. */
|
|
14
|
+
labelTestId?: string;
|
|
15
|
+
}
|
|
16
|
+
/** A link a single `ui-checkbox` label can hold: the label text names it with `{key}`, `labelLinks` says what `{key}` shows and where it goes. */
|
|
17
|
+
export interface CheckboxLabelLink {
|
|
18
|
+
/** The link's text (plain text, never HTML). A link with no text is not drawn. */
|
|
19
|
+
label: string;
|
|
20
|
+
/** Where it goes: `http:`, `https:`, `mailto:`, `tel:` or an in-app path (`/terms`, `#top`). Anything else (`javascript:`, `data:`, `//host`, empty) draws the text without a link. */
|
|
21
|
+
url: string;
|
|
22
|
+
/** `data-testid` of the link; none when omitted. */
|
|
23
|
+
testId?: string;
|
|
24
|
+
}
|
|
25
|
+
/** One piece of a label that holds links: plain text, or a link when `href` is set. */
|
|
26
|
+
interface CheckboxLabelSegment {
|
|
27
|
+
text: string;
|
|
28
|
+
href?: string;
|
|
29
|
+
newTab?: boolean;
|
|
30
|
+
testId?: string;
|
|
31
|
+
}
|
|
32
|
+
export declare class CheckboxComponent implements ControlValueAccessor, Validator, UiFieldValidity {
|
|
33
|
+
protected readonly labels: UiLabelsService;
|
|
34
|
+
readonly label: import("@angular/core").InputSignal<string>;
|
|
35
|
+
/** Accessible name for the native checkbox when there is no visible `label` (e.g. a table row's selector). */
|
|
36
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
37
|
+
/** `data-testid` of the native checkbox (single mode), for end-to-end tests; none when empty. (Group options have their own `testId`.) */
|
|
38
|
+
readonly testId: import("@angular/core").InputSignal<string>;
|
|
39
|
+
/** `data-testid` of the label text (single mode), e.g. to find a product name that is also its checkbox label; none when empty. */
|
|
40
|
+
readonly labelTestId: import("@angular/core").InputSignal<string>;
|
|
41
|
+
/**
|
|
42
|
+
* 1-6 makes the label text a real heading for screen readers (`role="heading"` + `aria-level`) while it stays the checkbox's label and
|
|
43
|
+
* clicking it still toggles the box - e.g. a product name that is both the heading of its card and the label of its checkbox.
|
|
44
|
+
* Default null: plain label text, exactly as before. Single mode only.
|
|
45
|
+
*/
|
|
46
|
+
readonly headingLevel: import("@angular/core").InputSignal<1 | 2 | 3 | 4 | 5 | 6 | null>;
|
|
47
|
+
readonly indeterminate: import("@angular/core").InputSignal<boolean>;
|
|
48
|
+
readonly checked: import("@angular/core").ModelSignal<boolean>;
|
|
49
|
+
/**
|
|
50
|
+
* GROUP MODE (optional): with `options` the component renders a native `<fieldset>` with a `<legend>` and one checkbox per option,
|
|
51
|
+
* and its value (ngModel / forms) is the array of ticked option values (in option order). Without `options` it is the single
|
|
52
|
+
* boolean checkbox it always was. In group mode `label` / `checked` / `indeterminate` are not used; `required` means at least one
|
|
53
|
+
* option must be ticked ("<legend> is required.").
|
|
54
|
+
*/
|
|
55
|
+
readonly options: import("@angular/core").InputSignal<CheckboxOption[]>;
|
|
56
|
+
/** Group heading (the fieldset's legend). */
|
|
57
|
+
readonly legend: import("@angular/core").InputSignal<string>;
|
|
58
|
+
/**
|
|
59
|
+
* `ui-checkbox-group` is the same component under a group-friendly tag: `<ui-checkbox-group legend="Interests" [options]="opts" [(ngModel)]="picked" />`
|
|
60
|
+
* (value = array of ticked option values). On the `<ui-checkbox-group>` tag the legend falls back to `label` when `legend` is empty (`<ui-checkbox [options]>` ignores `label` as before).
|
|
61
|
+
*/
|
|
62
|
+
protected readonly _legend: import("@angular/core").Signal<string>;
|
|
63
|
+
/** Group mode: lay the options out in a column (default) or in a wrapping row. */
|
|
64
|
+
readonly orientation: import("@angular/core").InputSignal<"vertical" | "horizontal">;
|
|
65
|
+
/**
|
|
66
|
+
* Group mode: the ticked option values as a two-way model (`[(values)]`), an alternative to ngModel / forms. Unset (default) = the
|
|
67
|
+
* group is driven by ngModel / FormControl only. Values that are not an option are dropped and the order follows `options`.
|
|
68
|
+
*/
|
|
69
|
+
readonly values: import("@angular/core").ModelSignal<string[] | undefined>;
|
|
70
|
+
/**
|
|
71
|
+
* Single mode: links inside the label. The label text names where each link goes with `{key}` and this object says what it is, so a sentence can hold links
|
|
72
|
+
* without HTML and without the host assembling markup:
|
|
73
|
+
*
|
|
74
|
+
* <ui-checkbox label="I agree to the {terms} and the {privacy}" [labelLinks]="{ terms: { label: 'Terms of Service', url: '/terms' }, privacy: { label: 'Privacy Policy', url: '/privacy' } }" />
|
|
75
|
+
*
|
|
76
|
+
* Only `http:`, `https:`, `mailto:`, `tel:` addresses and in-app paths are linked (see `CheckboxLabelLink`); a link whose address is unsafe or empty still shows its text,
|
|
77
|
+
* just not as a link, and a link without text is left out. An absolute http(s) address opens in a new tab (`noopener noreferrer`, with "(opens in a new tab)" for
|
|
78
|
+
* screen readers). A `{key}` that is not in `labelLinks` stays as typed. Clicking a link follows it and does not toggle the box; clicking the rest of the label does.
|
|
79
|
+
* The checkbox's name is the whole sentence; the "required" message uses the sentence with the link texts in place of the `{key}`s. Without `labelLinks` (default) the
|
|
80
|
+
* label is plain text exactly as before.
|
|
81
|
+
*/
|
|
82
|
+
readonly labelLinks: import("@angular/core").InputSignal<Record<string, CheckboxLabelLink>>;
|
|
83
|
+
/** The label as text and links, or null when the label has no `{key}` that `labelLinks` knows (then it is drawn as plain text, as before). */
|
|
84
|
+
protected readonly _labelSegments: import("@angular/core").Signal<CheckboxLabelSegment[] | null>;
|
|
85
|
+
/** The label as plain text: the link texts in place of their `{key}`s (used for the "required" message). */
|
|
86
|
+
protected readonly _plainLabel: import("@angular/core").Signal<string>;
|
|
87
|
+
/** Single mode: small helper text under the label, linked to the native checkbox with `aria-describedby`. None when empty (default). */
|
|
88
|
+
readonly description: import("@angular/core").InputSignal<string>;
|
|
89
|
+
/** Set when the host projects a `[checkbox-trailing]` element (see `CheckboxTrailingDirective`). */
|
|
90
|
+
private readonly _trailingContent;
|
|
91
|
+
protected readonly _trailing: import("@angular/core").Signal<boolean>;
|
|
92
|
+
private readonly _host;
|
|
93
|
+
/** `aria-describedby` of the single checkbox: its description, then the error / hint; none when neither exists (as before). */
|
|
94
|
+
protected readonly _singleDescribedBy: import("@angular/core").Signal<string | null>;
|
|
95
|
+
/** Indent this checkbox (or the whole group) under its parent option, aligned with the parent's label. */
|
|
96
|
+
readonly indent: import("@angular/core").InputSignal<boolean>;
|
|
97
|
+
protected readonly groupMode: import("@angular/core").Signal<boolean>;
|
|
98
|
+
private readonly _selected;
|
|
99
|
+
protected isSelected(value: string): boolean;
|
|
100
|
+
/** The box must be ticked. */
|
|
101
|
+
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
102
|
+
/** Replaces the built-in "<label> is required." message. */
|
|
103
|
+
readonly requiredMessage: import("@angular/core").InputSignal<string>;
|
|
104
|
+
readonly hint: import("@angular/core").InputSignal<string>;
|
|
105
|
+
/** Host-provided error message (wins over the built-in one). */
|
|
106
|
+
readonly error: import("@angular/core").InputSignal<string>;
|
|
107
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click). `true` reveals the message of an untouched control at once (it also shows after the user left THIS control); switching it from true back to false forgets that the control was left. */
|
|
108
|
+
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
109
|
+
protected readonly _descId: string;
|
|
110
|
+
private readonly _reveal;
|
|
111
|
+
private readonly _issue;
|
|
112
|
+
/** True while a required box is unticked or the host passed an `[error]`. */
|
|
113
|
+
readonly invalid: import("@angular/core").Signal<boolean>;
|
|
114
|
+
/** Message of the broken built-in rule ('' when valid), shown or not. */
|
|
115
|
+
readonly errorMessage: import("@angular/core").Signal<string>;
|
|
116
|
+
/** Emits whenever the field becomes invalid / valid. */
|
|
117
|
+
readonly invalidChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
118
|
+
protected readonly _activeError: import("@angular/core").Signal<string>;
|
|
119
|
+
private _onValidatorChange;
|
|
120
|
+
constructor();
|
|
121
|
+
/**
|
|
122
|
+
* Puts the box back to a state chosen by the host after it refused a change (e.g. a confirm was declined). Writes the model, the
|
|
123
|
+
* native input(s) and the form control, which re-setting the same bound value cannot do (the one-way binding sees no change
|
|
124
|
+
* while the DOM and the internal state already moved). Single mode: `reset(false)` / `reset(true)`; group mode: `reset(['a'])`.
|
|
125
|
+
*/
|
|
126
|
+
reset(value?: boolean | string[]): void;
|
|
127
|
+
/** Sets every native checkbox of this component to the state the component holds (the DOM may have moved ahead of it). */
|
|
128
|
+
private _syncNative;
|
|
129
|
+
/** Re-run the form control's validation when a rule input (`required`, `requiredMessage`, `label`) changes. */
|
|
130
|
+
ngOnChanges(): void;
|
|
131
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
132
|
+
registerOnValidatorChange(fn: () => void): void;
|
|
133
|
+
private _check;
|
|
134
|
+
/** Public so a host template can bind `[disabled]` (a protected input fails strict template type-checking, TS2445). */
|
|
135
|
+
readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
|
|
136
|
+
private readonly _cvaDisabled;
|
|
137
|
+
protected readonly disabled: import("@angular/core").Signal<boolean>;
|
|
138
|
+
private onChange;
|
|
139
|
+
private onTouched;
|
|
140
|
+
writeValue(val: boolean | string[] | null): void;
|
|
141
|
+
registerOnChange(fn: (v: boolean | string[]) => void): void;
|
|
142
|
+
registerOnTouched(fn: () => void): void;
|
|
143
|
+
setDisabledState(d: boolean): void;
|
|
144
|
+
onToggle(event: Event): void;
|
|
145
|
+
/** The values keep the option order, and values that are not an option are dropped. */
|
|
146
|
+
private inOptionOrder;
|
|
147
|
+
/** Group mode: ticks / unticks one option; the form gets the full list of ticked values. */
|
|
148
|
+
onToggleOption(value: string, event: Event): void;
|
|
149
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
|
|
150
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "ui-checkbox, ui-checkbox-group", never, {
|
|
151
|
+
"label": {
|
|
152
|
+
"alias": "label";
|
|
153
|
+
"required": false;
|
|
154
|
+
"isSignal": true;
|
|
155
|
+
};
|
|
156
|
+
"ariaLabel": {
|
|
157
|
+
"alias": "ariaLabel";
|
|
158
|
+
"required": false;
|
|
159
|
+
"isSignal": true;
|
|
160
|
+
};
|
|
161
|
+
"testId": {
|
|
162
|
+
"alias": "testId";
|
|
163
|
+
"required": false;
|
|
164
|
+
"isSignal": true;
|
|
165
|
+
};
|
|
166
|
+
"labelTestId": {
|
|
167
|
+
"alias": "labelTestId";
|
|
168
|
+
"required": false;
|
|
169
|
+
"isSignal": true;
|
|
170
|
+
};
|
|
171
|
+
"headingLevel": {
|
|
172
|
+
"alias": "headingLevel";
|
|
173
|
+
"required": false;
|
|
174
|
+
"isSignal": true;
|
|
175
|
+
};
|
|
176
|
+
"indeterminate": {
|
|
177
|
+
"alias": "indeterminate";
|
|
178
|
+
"required": false;
|
|
179
|
+
"isSignal": true;
|
|
180
|
+
};
|
|
181
|
+
"checked": {
|
|
182
|
+
"alias": "checked";
|
|
183
|
+
"required": false;
|
|
184
|
+
"isSignal": true;
|
|
185
|
+
};
|
|
186
|
+
"options": {
|
|
187
|
+
"alias": "options";
|
|
188
|
+
"required": false;
|
|
189
|
+
"isSignal": true;
|
|
190
|
+
};
|
|
191
|
+
"legend": {
|
|
192
|
+
"alias": "legend";
|
|
193
|
+
"required": false;
|
|
194
|
+
"isSignal": true;
|
|
195
|
+
};
|
|
196
|
+
"orientation": {
|
|
197
|
+
"alias": "orientation";
|
|
198
|
+
"required": false;
|
|
199
|
+
"isSignal": true;
|
|
200
|
+
};
|
|
201
|
+
"values": {
|
|
202
|
+
"alias": "values";
|
|
203
|
+
"required": false;
|
|
204
|
+
"isSignal": true;
|
|
205
|
+
};
|
|
206
|
+
"labelLinks": {
|
|
207
|
+
"alias": "labelLinks";
|
|
208
|
+
"required": false;
|
|
209
|
+
"isSignal": true;
|
|
210
|
+
};
|
|
211
|
+
"description": {
|
|
212
|
+
"alias": "description";
|
|
213
|
+
"required": false;
|
|
214
|
+
"isSignal": true;
|
|
215
|
+
};
|
|
216
|
+
"indent": {
|
|
217
|
+
"alias": "indent";
|
|
218
|
+
"required": false;
|
|
219
|
+
"isSignal": true;
|
|
220
|
+
};
|
|
221
|
+
"required": {
|
|
222
|
+
"alias": "required";
|
|
223
|
+
"required": false;
|
|
224
|
+
"isSignal": true;
|
|
225
|
+
};
|
|
226
|
+
"requiredMessage": {
|
|
227
|
+
"alias": "requiredMessage";
|
|
228
|
+
"required": false;
|
|
229
|
+
"isSignal": true;
|
|
230
|
+
};
|
|
231
|
+
"hint": {
|
|
232
|
+
"alias": "hint";
|
|
233
|
+
"required": false;
|
|
234
|
+
"isSignal": true;
|
|
235
|
+
};
|
|
236
|
+
"error": {
|
|
237
|
+
"alias": "error";
|
|
238
|
+
"required": false;
|
|
239
|
+
"isSignal": true;
|
|
240
|
+
};
|
|
241
|
+
"showErrors": {
|
|
242
|
+
"alias": "showErrors";
|
|
243
|
+
"required": false;
|
|
244
|
+
"isSignal": true;
|
|
245
|
+
};
|
|
246
|
+
"_disabledInput": {
|
|
247
|
+
"alias": "disabled";
|
|
248
|
+
"required": false;
|
|
249
|
+
"isSignal": true;
|
|
250
|
+
};
|
|
251
|
+
}, {
|
|
252
|
+
"checked": "checkedChange";
|
|
253
|
+
"values": "valuesChange";
|
|
254
|
+
"invalidChange": "invalidChange";
|
|
255
|
+
}, ["_trailingContent"], ["*", "[checkbox-trailing]"], true, never>;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Marks content that a single `ui-checkbox` shows at the END of its row, outside the clickable label (a badge, a price, a link):
|
|
259
|
+
*
|
|
260
|
+
* <ui-checkbox label="Priority handling" description="Ships first" [(ngModel)]="priority">
|
|
261
|
+
* <span checkbox-trailing>$5.00</span>
|
|
262
|
+
* </ui-checkbox>
|
|
263
|
+
*
|
|
264
|
+
* Import this directive in the host component (it is how the checkbox knows a trailing slot is in use); without it the checkbox
|
|
265
|
+
* renders exactly as before. Clicking the trailing content does not toggle the box.
|
|
266
|
+
*/
|
|
267
|
+
export declare class CheckboxTrailingDirective {
|
|
268
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxTrailingDirective, never>;
|
|
269
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxTrailingDirective, "[checkbox-trailing]", never, {}, {}, never, never, true, never>;
|
|
270
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { ControlValueAccessor } from "@angular/forms";
|
|
2
|
+
import { UiLabelsService } from "@forgeroute/ui/core";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* ui-chip — a toggleable pill button, optionally dismissible.
|
|
6
|
+
*
|
|
7
|
+
* Standalone (not in a form):
|
|
8
|
+
* <ui-chip label="Condo" [active]="selected" size="sm" (select)="toggle()" />
|
|
9
|
+
*
|
|
10
|
+
* A non-dismissible chip is a toggle button: it exposes `aria-pressed="true|false"` from its active state so screen
|
|
11
|
+
* readers announce it as pressed / not pressed. A dismissible chip is a removable tag, not a toggle, so it carries no
|
|
12
|
+
* `aria-pressed` (the ✕ button is named "Remove <label>").
|
|
13
|
+
*
|
|
14
|
+
* A dismissible chip is a wrapper of two sibling native buttons (the label and the ✕), never a button inside a button (axe nested-interactive).
|
|
15
|
+
* Keyboard removal: Tab to the ✕ (named "Remove <label>") and press Enter or Space, or press Delete / Backspace on either button.
|
|
16
|
+
*
|
|
17
|
+
* Dismissible (shows an ✕ button — parent removes the chip on dismiss):
|
|
18
|
+
* <ui-chip label="Austin" size="sm" [dismissible]="true" (dismiss)="removeCity('Austin')" />
|
|
19
|
+
*
|
|
20
|
+
* Inside a template-driven form (boolean — true = active):
|
|
21
|
+
* <ui-chip label="Condo" size="sm" [(ngModel)]="form.condo" />
|
|
22
|
+
*
|
|
23
|
+
* Inside a reactive form:
|
|
24
|
+
* <ui-chip label="Condo" size="sm" [formControl]="condoCtrl" />
|
|
25
|
+
*/
|
|
26
|
+
export declare class ChipComponent implements ControlValueAccessor {
|
|
27
|
+
protected readonly labels: UiLabelsService;
|
|
28
|
+
readonly label: import("@angular/core").InputSignal<string>;
|
|
29
|
+
readonly size: import("@angular/core").InputSignal<"sm" | "lg">;
|
|
30
|
+
/**
|
|
31
|
+
* When true the chip shows an ✕ button. Clicking it emits (dismiss) and
|
|
32
|
+
* does NOT toggle the chip — the parent is responsible for removing it.
|
|
33
|
+
*/
|
|
34
|
+
readonly dismissible: import("@angular/core").InputSignal<boolean>;
|
|
35
|
+
/**
|
|
36
|
+
* Standalone active state — used when not bound to a form.
|
|
37
|
+
* When bound via ngModel/formControl the CVA value takes precedence.
|
|
38
|
+
*/
|
|
39
|
+
readonly active: import("@angular/core").InputSignal<boolean>;
|
|
40
|
+
/** Emitted on chip body click (toggle behaviour). */
|
|
41
|
+
readonly select: import("@angular/core").OutputEmitterRef<void>;
|
|
42
|
+
/** Emitted when the ✕ dismiss button is clicked. */
|
|
43
|
+
readonly dismiss: import("@angular/core").OutputEmitterRef<void>;
|
|
44
|
+
private readonly _cvActive;
|
|
45
|
+
protected readonly _disabled: import("@angular/core").WritableSignal<boolean>;
|
|
46
|
+
/**
|
|
47
|
+
* Single source of truth for the active visual state:
|
|
48
|
+
* - CVA value wins when the chip is form-bound (writeValue has been called)
|
|
49
|
+
* - Falls back to the [active] input for standalone usage
|
|
50
|
+
*/
|
|
51
|
+
protected readonly _resolvedActive: import("@angular/core").Signal<boolean>;
|
|
52
|
+
private _onChange;
|
|
53
|
+
protected _onTouched: () => void;
|
|
54
|
+
protected onClick(): void;
|
|
55
|
+
protected onDismiss(event: Event): void;
|
|
56
|
+
/** Delete / Backspace on either button of a dismissible chip removes it (the ✕ itself is a native button: Enter / Space click it). */
|
|
57
|
+
protected onDismissKey(event: Event): void;
|
|
58
|
+
writeValue(v: boolean): void;
|
|
59
|
+
registerOnChange(fn: (v: boolean) => void): void;
|
|
60
|
+
registerOnTouched(fn: () => void): void;
|
|
61
|
+
setDisabledState(disabled: boolean): void;
|
|
62
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChipComponent, never>;
|
|
63
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChipComponent, "ui-chip", never, {
|
|
64
|
+
"label": {
|
|
65
|
+
"alias": "label";
|
|
66
|
+
"required": true;
|
|
67
|
+
"isSignal": true;
|
|
68
|
+
};
|
|
69
|
+
"size": {
|
|
70
|
+
"alias": "size";
|
|
71
|
+
"required": false;
|
|
72
|
+
"isSignal": true;
|
|
73
|
+
};
|
|
74
|
+
"dismissible": {
|
|
75
|
+
"alias": "dismissible";
|
|
76
|
+
"required": false;
|
|
77
|
+
"isSignal": true;
|
|
78
|
+
};
|
|
79
|
+
"active": {
|
|
80
|
+
"alias": "active";
|
|
81
|
+
"required": false;
|
|
82
|
+
"isSignal": true;
|
|
83
|
+
};
|
|
84
|
+
}, {
|
|
85
|
+
"select": "select";
|
|
86
|
+
"dismiss": "dismiss";
|
|
87
|
+
}, never, never, true, never>;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* ui-chip-group — wraps ui-chip elements with configurable gap and spacing.
|
|
91
|
+
*
|
|
92
|
+
* <ui-chip-group gap="md" spaceAbove="sm" spaceBelow="none">
|
|
93
|
+
* <ui-chip label="Condo" size="sm" [active]="..." (select)="..." />
|
|
94
|
+
* <ui-chip label="Single Family" size="sm" [active]="..." (select)="..." />
|
|
95
|
+
* </ui-chip-group>
|
|
96
|
+
*/
|
|
97
|
+
export declare class ChipGroupComponent {
|
|
98
|
+
/** Space between each chip. */
|
|
99
|
+
readonly gap: import("@angular/core").InputSignal<"sm" | "lg" | "md">;
|
|
100
|
+
/** Space above the chip group. */
|
|
101
|
+
readonly spaceAbove: import("@angular/core").InputSignal<"sm" | "md" | "none">;
|
|
102
|
+
/** Space below the chip group. */
|
|
103
|
+
readonly spaceBelow: import("@angular/core").InputSignal<"sm" | "md" | "none">;
|
|
104
|
+
protected readonly _gap: import("@angular/core").Signal<"6px" | "8px" | "12px">;
|
|
105
|
+
protected readonly _spaceAbove: import("@angular/core").Signal<"0" | "6px" | "12px">;
|
|
106
|
+
protected readonly _spaceBelow: import("@angular/core").Signal<"0" | "6px" | "12px">;
|
|
107
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChipGroupComponent, never>;
|
|
108
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChipGroupComponent, "ui-chip-group", never, {
|
|
109
|
+
"gap": {
|
|
110
|
+
"alias": "gap";
|
|
111
|
+
"required": false;
|
|
112
|
+
"isSignal": true;
|
|
113
|
+
};
|
|
114
|
+
"spaceAbove": {
|
|
115
|
+
"alias": "spaceAbove";
|
|
116
|
+
"required": false;
|
|
117
|
+
"isSignal": true;
|
|
118
|
+
};
|
|
119
|
+
"spaceBelow": {
|
|
120
|
+
"alias": "spaceBelow";
|
|
121
|
+
"required": false;
|
|
122
|
+
"isSignal": true;
|
|
123
|
+
};
|
|
124
|
+
}, {}, never, ["*"], true, never>;
|
|
125
|
+
}
|