@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,911 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, Directive, TemplateRef, computed, contentChildren, effect, forwardRef, inject, input, output, signal } from "@angular/core";
|
|
3
|
+
import { iconPath } from "@forgeroute/ui/icon";
|
|
4
|
+
import { opensInNewTab, safeLinkHref } from "@forgeroute/ui/utils";
|
|
5
|
+
import { UiFieldValidity, UiLabelsService, createFieldReveal, issueToErrors, requiredIssue } from "@forgeroute/ui/core";
|
|
6
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
7
|
+
import { NG_VALIDATORS, NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
8
|
+
var RadioComponent = class RadioComponent {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.labels = inject(UiLabelsService);
|
|
11
|
+
this.label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
12
|
+
this.description = input("", ...ngDevMode ? [{ debugName: "description" }] : /* istanbul ignore next */ []);
|
|
13
|
+
this.linkLabel = input("", ...ngDevMode ? [{ debugName: "linkLabel" }] : /* istanbul ignore next */ []);
|
|
14
|
+
this.linkUrl = input("", ...ngDevMode ? [{ debugName: "linkUrl" }] : /* istanbul ignore next */ []);
|
|
15
|
+
this.linkTestId = input("", ...ngDevMode ? [{ debugName: "linkTestId" }] : /* istanbul ignore next */ []);
|
|
16
|
+
this.icon = input("", ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
|
|
17
|
+
this.ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
18
|
+
this.testId = input("", ...ngDevMode ? [{ debugName: "testId" }] : /* istanbul ignore next */ []);
|
|
19
|
+
this.value = input("", ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
20
|
+
this.name = input("", ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
|
|
21
|
+
this.checked = input(false, ...ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []);
|
|
22
|
+
this.invalid = input(false, ...ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []);
|
|
23
|
+
this.describedBy = input("", ...ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []);
|
|
24
|
+
this.controls = input("", ...ngDevMode ? [{ debugName: "controls" }] : /* istanbul ignore next */ []);
|
|
25
|
+
this._disabledInput = input(false, {
|
|
26
|
+
...ngDevMode ? { debugName: "_disabledInput" } : /* istanbul ignore next */ {},
|
|
27
|
+
alias: "disabled"
|
|
28
|
+
});
|
|
29
|
+
this.disabled = this._disabledInput;
|
|
30
|
+
this._iconD = computed(() => {
|
|
31
|
+
const v = this.icon().trim();
|
|
32
|
+
if (!v) return null;
|
|
33
|
+
return iconPath(v) ?? (/^[Mm][\d\s.,\-MmLlHhVvCcSsQqTtAaZz]+$/.test(v) ? v : null);
|
|
34
|
+
}, ...ngDevMode ? [{ debugName: "_iconD" }] : /* istanbul ignore next */ []);
|
|
35
|
+
this._linkHref = computed(() => this.linkLabel().trim() ? safeLinkHref(this.linkUrl()) : null, ...ngDevMode ? [{ debugName: "_linkHref" }] : /* istanbul ignore next */ []);
|
|
36
|
+
this._linkNewTab = computed(() => opensInNewTab(this._linkHref()), ...ngDevMode ? [{ debugName: "_linkNewTab" }] : /* istanbul ignore next */ []);
|
|
37
|
+
this.labelId = input("", ...ngDevMode ? [{ debugName: "labelId" }] : /* istanbul ignore next */ []);
|
|
38
|
+
this._generatedLabelId = `rd-${Math.random().toString(36).slice(2, 8)}-label`;
|
|
39
|
+
this._labelId = computed(() => this.labelId() || this._generatedLabelId, ...ngDevMode ? [{ debugName: "_labelId" }] : /* istanbul ignore next */ []);
|
|
40
|
+
this._labelledBy = computed(() => this.label() && (this.description() || this._linkHref()) && !this.ariaLabel() ? this._labelId() : null, ...ngDevMode ? [{ debugName: "_labelledBy" }] : /* istanbul ignore next */ []);
|
|
41
|
+
this._descriptionId = `rd-${Math.random().toString(36).slice(2, 8)}-desc`;
|
|
42
|
+
this._describedByIds = computed(() => {
|
|
43
|
+
return [this.describedBy(), this.description() ? this._descriptionId : ""].filter(Boolean).join(" ") || null;
|
|
44
|
+
}, ...ngDevMode ? [{ debugName: "_describedByIds" }] : /* istanbul ignore next */ []);
|
|
45
|
+
this.selected = output();
|
|
46
|
+
}
|
|
47
|
+
onChange(event) {
|
|
48
|
+
if (event.target.checked) this.selected.emit(this.value());
|
|
49
|
+
}
|
|
50
|
+
static {
|
|
51
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
52
|
+
minVersion: "12.0.0",
|
|
53
|
+
version: "22.2.2",
|
|
54
|
+
ngImport: i0,
|
|
55
|
+
type: RadioComponent,
|
|
56
|
+
deps: [],
|
|
57
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
static {
|
|
61
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
62
|
+
minVersion: "17.0.0",
|
|
63
|
+
version: "22.2.2",
|
|
64
|
+
type: RadioComponent,
|
|
65
|
+
isStandalone: true,
|
|
66
|
+
selector: "ui-radio",
|
|
67
|
+
inputs: {
|
|
68
|
+
label: {
|
|
69
|
+
classPropertyName: "label",
|
|
70
|
+
publicName: "label",
|
|
71
|
+
isSignal: true,
|
|
72
|
+
isRequired: false,
|
|
73
|
+
transformFunction: null
|
|
74
|
+
},
|
|
75
|
+
description: {
|
|
76
|
+
classPropertyName: "description",
|
|
77
|
+
publicName: "description",
|
|
78
|
+
isSignal: true,
|
|
79
|
+
isRequired: false,
|
|
80
|
+
transformFunction: null
|
|
81
|
+
},
|
|
82
|
+
linkLabel: {
|
|
83
|
+
classPropertyName: "linkLabel",
|
|
84
|
+
publicName: "linkLabel",
|
|
85
|
+
isSignal: true,
|
|
86
|
+
isRequired: false,
|
|
87
|
+
transformFunction: null
|
|
88
|
+
},
|
|
89
|
+
linkUrl: {
|
|
90
|
+
classPropertyName: "linkUrl",
|
|
91
|
+
publicName: "linkUrl",
|
|
92
|
+
isSignal: true,
|
|
93
|
+
isRequired: false,
|
|
94
|
+
transformFunction: null
|
|
95
|
+
},
|
|
96
|
+
linkTestId: {
|
|
97
|
+
classPropertyName: "linkTestId",
|
|
98
|
+
publicName: "linkTestId",
|
|
99
|
+
isSignal: true,
|
|
100
|
+
isRequired: false,
|
|
101
|
+
transformFunction: null
|
|
102
|
+
},
|
|
103
|
+
icon: {
|
|
104
|
+
classPropertyName: "icon",
|
|
105
|
+
publicName: "icon",
|
|
106
|
+
isSignal: true,
|
|
107
|
+
isRequired: false,
|
|
108
|
+
transformFunction: null
|
|
109
|
+
},
|
|
110
|
+
ariaLabel: {
|
|
111
|
+
classPropertyName: "ariaLabel",
|
|
112
|
+
publicName: "ariaLabel",
|
|
113
|
+
isSignal: true,
|
|
114
|
+
isRequired: false,
|
|
115
|
+
transformFunction: null
|
|
116
|
+
},
|
|
117
|
+
testId: {
|
|
118
|
+
classPropertyName: "testId",
|
|
119
|
+
publicName: "testId",
|
|
120
|
+
isSignal: true,
|
|
121
|
+
isRequired: false,
|
|
122
|
+
transformFunction: null
|
|
123
|
+
},
|
|
124
|
+
value: {
|
|
125
|
+
classPropertyName: "value",
|
|
126
|
+
publicName: "value",
|
|
127
|
+
isSignal: true,
|
|
128
|
+
isRequired: false,
|
|
129
|
+
transformFunction: null
|
|
130
|
+
},
|
|
131
|
+
name: {
|
|
132
|
+
classPropertyName: "name",
|
|
133
|
+
publicName: "name",
|
|
134
|
+
isSignal: true,
|
|
135
|
+
isRequired: false,
|
|
136
|
+
transformFunction: null
|
|
137
|
+
},
|
|
138
|
+
checked: {
|
|
139
|
+
classPropertyName: "checked",
|
|
140
|
+
publicName: "checked",
|
|
141
|
+
isSignal: true,
|
|
142
|
+
isRequired: false,
|
|
143
|
+
transformFunction: null
|
|
144
|
+
},
|
|
145
|
+
invalid: {
|
|
146
|
+
classPropertyName: "invalid",
|
|
147
|
+
publicName: "invalid",
|
|
148
|
+
isSignal: true,
|
|
149
|
+
isRequired: false,
|
|
150
|
+
transformFunction: null
|
|
151
|
+
},
|
|
152
|
+
describedBy: {
|
|
153
|
+
classPropertyName: "describedBy",
|
|
154
|
+
publicName: "describedBy",
|
|
155
|
+
isSignal: true,
|
|
156
|
+
isRequired: false,
|
|
157
|
+
transformFunction: null
|
|
158
|
+
},
|
|
159
|
+
controls: {
|
|
160
|
+
classPropertyName: "controls",
|
|
161
|
+
publicName: "controls",
|
|
162
|
+
isSignal: true,
|
|
163
|
+
isRequired: false,
|
|
164
|
+
transformFunction: null
|
|
165
|
+
},
|
|
166
|
+
_disabledInput: {
|
|
167
|
+
classPropertyName: "_disabledInput",
|
|
168
|
+
publicName: "disabled",
|
|
169
|
+
isSignal: true,
|
|
170
|
+
isRequired: false,
|
|
171
|
+
transformFunction: null
|
|
172
|
+
},
|
|
173
|
+
labelId: {
|
|
174
|
+
classPropertyName: "labelId",
|
|
175
|
+
publicName: "labelId",
|
|
176
|
+
isSignal: true,
|
|
177
|
+
isRequired: false,
|
|
178
|
+
transformFunction: null
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
outputs: { selected: "selected" },
|
|
182
|
+
ngImport: i0,
|
|
183
|
+
template: `
|
|
184
|
+
<label class="rd-wrap" [class.rd-disabled]="disabled()">
|
|
185
|
+
<span class="rd-dot" [class.rd-checked]="checked()" [class.rd-invalid]="invalid()" [class.rd-disabled]="disabled()">
|
|
186
|
+
@if (checked()) { <span class="rd-core"></span> }
|
|
187
|
+
</span>
|
|
188
|
+
<input
|
|
189
|
+
type="radio"
|
|
190
|
+
class="rd-hidden"
|
|
191
|
+
[name]="name()"
|
|
192
|
+
[value]="value()"
|
|
193
|
+
[checked]="checked()"
|
|
194
|
+
[disabled]="disabled()"
|
|
195
|
+
[attr.data-testid]="testId() || null"
|
|
196
|
+
[attr.aria-label]="ariaLabel() || null"
|
|
197
|
+
[attr.aria-labelledby]="_labelledBy()"
|
|
198
|
+
[attr.aria-invalid]="invalid() ? 'true' : null"
|
|
199
|
+
[attr.aria-describedby]="_describedByIds()"
|
|
200
|
+
[attr.aria-controls]="controls() || null"
|
|
201
|
+
(change)="onChange($event)"
|
|
202
|
+
/>
|
|
203
|
+
@if (_iconD(); as d) {
|
|
204
|
+
<!-- Optional icon in front of the label (library source 2026-11-04): decorative, so the radio's accessible name is unchanged. -->
|
|
205
|
+
<svg class="rd-icon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path [attr.d]="d" /></svg>
|
|
206
|
+
}
|
|
207
|
+
<span class="rd-text">
|
|
208
|
+
@if (label()) { <span class="rd-label" [id]="_labelId()">{{ label() }}</span> }
|
|
209
|
+
@if (description()) { <span class="rd-description" [id]="_descriptionId">{{ description() }}</span> }
|
|
210
|
+
@if (_linkHref(); as href) {
|
|
211
|
+
<!-- Optional link after the description (library source 2026-11-05): a real anchor, so it is its own tab stop; clicking it follows the link and never selects the radio. -->
|
|
212
|
+
<a class="rd-link" [attr.href]="href" [attr.target]="_linkNewTab() ? '_blank' : null" [attr.rel]="_linkNewTab() ? 'noopener noreferrer' : null" [attr.data-testid]="linkTestId() || null">{{ linkLabel() }}@if (_linkNewTab()) { <span class="rd-sr">{{ labels.t('dataTable.opensInNewTab') }}</span> }</a>
|
|
213
|
+
}
|
|
214
|
+
<ng-content />
|
|
215
|
+
</span>
|
|
216
|
+
</label>
|
|
217
|
+
`,
|
|
218
|
+
isInline: true,
|
|
219
|
+
styles: [":host{display:block}.rd-wrap{position:relative;display:inline-flex;align-items:flex-start;gap:9px;vertical-align:top;cursor:pointer;-webkit-user-select:none;user-select:none}.rd-wrap.rd-disabled{cursor:not-allowed;opacity:.5}.rd-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.rd-wrap:has(.rd-hidden:focus-visible) .rd-dot{outline:2px solid #3b82f6;outline-offset:2px}@media(pointer:coarse),(max-width:480px){.rd-wrap{position:relative}.rd-hidden{width:44px;height:44px;margin:0;clip:auto;overflow:visible;left:-12px;top:0;opacity:0;cursor:pointer;z-index:1}.rd-wrap.rd-disabled .rd-hidden{cursor:not-allowed}.rd-wrap{box-sizing:border-box;min-height:44px;padding:12px 0}}.rd-dot{flex-shrink:0;width:20px;height:20px;box-sizing:border-box;border:2px solid #7c8ba1;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;transition:background .12s,border-color .12s}.rd-dot.rd-checked{background:#3b82f6;border-color:#3b82f6}.rd-dot.rd-invalid:not(.rd-checked){border-color:#ef4444}.rd-wrap:hover .rd-dot:not(.rd-checked):not(.rd-disabled){border-color:#3b82f6}.rd-core{width:8px;height:8px;border-radius:50%;background:#fff}@media(max-width:640px),(pointer:coarse){.rd-dot{position:relative}.rd-dot:after{content:\"\";position:absolute;inset:-12px}}.rd-icon{flex-shrink:0;margin-top:1px;color:#64748b}.rd-text{display:flex;flex-direction:column;gap:2px}.rd-label{font-size:.875rem;color:#334155;line-height:1.4}.rd-description{font-size:.75rem;color:#64748b;line-height:1.4}.rd-link{font-size:.75rem;line-height:1.4;color:#2563eb;text-decoration:underline;align-self:flex-start;cursor:pointer;display:inline-flex;align-items:center;min-height:24px;box-sizing:border-box;padding:0;margin:-3.6px 0}@media(pointer:coarse),(max-width:480px){.rd-link{min-height:44px;margin:-13.6px 0}}.rd-link:hover{color:#1d4ed8}.rd-link:focus-visible{outline:2px solid #3b82f6;outline-offset:2px;border-radius:2px}.rd-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}\n"],
|
|
220
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
225
|
+
minVersion: "12.0.0",
|
|
226
|
+
version: "22.2.2",
|
|
227
|
+
ngImport: i0,
|
|
228
|
+
type: RadioComponent,
|
|
229
|
+
decorators: [{
|
|
230
|
+
type: Component,
|
|
231
|
+
args: [{
|
|
232
|
+
selector: "ui-radio",
|
|
233
|
+
standalone: true,
|
|
234
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
235
|
+
template: `
|
|
236
|
+
<label class="rd-wrap" [class.rd-disabled]="disabled()">
|
|
237
|
+
<span class="rd-dot" [class.rd-checked]="checked()" [class.rd-invalid]="invalid()" [class.rd-disabled]="disabled()">
|
|
238
|
+
@if (checked()) { <span class="rd-core"></span> }
|
|
239
|
+
</span>
|
|
240
|
+
<input
|
|
241
|
+
type="radio"
|
|
242
|
+
class="rd-hidden"
|
|
243
|
+
[name]="name()"
|
|
244
|
+
[value]="value()"
|
|
245
|
+
[checked]="checked()"
|
|
246
|
+
[disabled]="disabled()"
|
|
247
|
+
[attr.data-testid]="testId() || null"
|
|
248
|
+
[attr.aria-label]="ariaLabel() || null"
|
|
249
|
+
[attr.aria-labelledby]="_labelledBy()"
|
|
250
|
+
[attr.aria-invalid]="invalid() ? 'true' : null"
|
|
251
|
+
[attr.aria-describedby]="_describedByIds()"
|
|
252
|
+
[attr.aria-controls]="controls() || null"
|
|
253
|
+
(change)="onChange($event)"
|
|
254
|
+
/>
|
|
255
|
+
@if (_iconD(); as d) {
|
|
256
|
+
<!-- Optional icon in front of the label (library source 2026-11-04): decorative, so the radio's accessible name is unchanged. -->
|
|
257
|
+
<svg class="rd-icon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path [attr.d]="d" /></svg>
|
|
258
|
+
}
|
|
259
|
+
<span class="rd-text">
|
|
260
|
+
@if (label()) { <span class="rd-label" [id]="_labelId()">{{ label() }}</span> }
|
|
261
|
+
@if (description()) { <span class="rd-description" [id]="_descriptionId">{{ description() }}</span> }
|
|
262
|
+
@if (_linkHref(); as href) {
|
|
263
|
+
<!-- Optional link after the description (library source 2026-11-05): a real anchor, so it is its own tab stop; clicking it follows the link and never selects the radio. -->
|
|
264
|
+
<a class="rd-link" [attr.href]="href" [attr.target]="_linkNewTab() ? '_blank' : null" [attr.rel]="_linkNewTab() ? 'noopener noreferrer' : null" [attr.data-testid]="linkTestId() || null">{{ linkLabel() }}@if (_linkNewTab()) { <span class="rd-sr">{{ labels.t('dataTable.opensInNewTab') }}</span> }</a>
|
|
265
|
+
}
|
|
266
|
+
<ng-content />
|
|
267
|
+
</span>
|
|
268
|
+
</label>
|
|
269
|
+
`,
|
|
270
|
+
styles: [":host{display:block}.rd-wrap{position:relative;display:inline-flex;align-items:flex-start;gap:9px;vertical-align:top;cursor:pointer;-webkit-user-select:none;user-select:none}.rd-wrap.rd-disabled{cursor:not-allowed;opacity:.5}.rd-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.rd-wrap:has(.rd-hidden:focus-visible) .rd-dot{outline:2px solid #3b82f6;outline-offset:2px}@media(pointer:coarse),(max-width:480px){.rd-wrap{position:relative}.rd-hidden{width:44px;height:44px;margin:0;clip:auto;overflow:visible;left:-12px;top:0;opacity:0;cursor:pointer;z-index:1}.rd-wrap.rd-disabled .rd-hidden{cursor:not-allowed}.rd-wrap{box-sizing:border-box;min-height:44px;padding:12px 0}}.rd-dot{flex-shrink:0;width:20px;height:20px;box-sizing:border-box;border:2px solid #7c8ba1;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;transition:background .12s,border-color .12s}.rd-dot.rd-checked{background:#3b82f6;border-color:#3b82f6}.rd-dot.rd-invalid:not(.rd-checked){border-color:#ef4444}.rd-wrap:hover .rd-dot:not(.rd-checked):not(.rd-disabled){border-color:#3b82f6}.rd-core{width:8px;height:8px;border-radius:50%;background:#fff}@media(max-width:640px),(pointer:coarse){.rd-dot{position:relative}.rd-dot:after{content:\"\";position:absolute;inset:-12px}}.rd-icon{flex-shrink:0;margin-top:1px;color:#64748b}.rd-text{display:flex;flex-direction:column;gap:2px}.rd-label{font-size:.875rem;color:#334155;line-height:1.4}.rd-description{font-size:.75rem;color:#64748b;line-height:1.4}.rd-link{font-size:.75rem;line-height:1.4;color:#2563eb;text-decoration:underline;align-self:flex-start;cursor:pointer;display:inline-flex;align-items:center;min-height:24px;box-sizing:border-box;padding:0;margin:-3.6px 0}@media(pointer:coarse),(max-width:480px){.rd-link{min-height:44px;margin:-13.6px 0}}.rd-link:hover{color:#1d4ed8}.rd-link:focus-visible{outline:2px solid #3b82f6;outline-offset:2px;border-radius:2px}.rd-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}\n"]
|
|
271
|
+
}]
|
|
272
|
+
}],
|
|
273
|
+
propDecorators: {
|
|
274
|
+
label: [{
|
|
275
|
+
type: i0.Input,
|
|
276
|
+
args: [{
|
|
277
|
+
isSignal: true,
|
|
278
|
+
alias: "label",
|
|
279
|
+
required: false
|
|
280
|
+
}]
|
|
281
|
+
}],
|
|
282
|
+
description: [{
|
|
283
|
+
type: i0.Input,
|
|
284
|
+
args: [{
|
|
285
|
+
isSignal: true,
|
|
286
|
+
alias: "description",
|
|
287
|
+
required: false
|
|
288
|
+
}]
|
|
289
|
+
}],
|
|
290
|
+
linkLabel: [{
|
|
291
|
+
type: i0.Input,
|
|
292
|
+
args: [{
|
|
293
|
+
isSignal: true,
|
|
294
|
+
alias: "linkLabel",
|
|
295
|
+
required: false
|
|
296
|
+
}]
|
|
297
|
+
}],
|
|
298
|
+
linkUrl: [{
|
|
299
|
+
type: i0.Input,
|
|
300
|
+
args: [{
|
|
301
|
+
isSignal: true,
|
|
302
|
+
alias: "linkUrl",
|
|
303
|
+
required: false
|
|
304
|
+
}]
|
|
305
|
+
}],
|
|
306
|
+
linkTestId: [{
|
|
307
|
+
type: i0.Input,
|
|
308
|
+
args: [{
|
|
309
|
+
isSignal: true,
|
|
310
|
+
alias: "linkTestId",
|
|
311
|
+
required: false
|
|
312
|
+
}]
|
|
313
|
+
}],
|
|
314
|
+
icon: [{
|
|
315
|
+
type: i0.Input,
|
|
316
|
+
args: [{
|
|
317
|
+
isSignal: true,
|
|
318
|
+
alias: "icon",
|
|
319
|
+
required: false
|
|
320
|
+
}]
|
|
321
|
+
}],
|
|
322
|
+
ariaLabel: [{
|
|
323
|
+
type: i0.Input,
|
|
324
|
+
args: [{
|
|
325
|
+
isSignal: true,
|
|
326
|
+
alias: "ariaLabel",
|
|
327
|
+
required: false
|
|
328
|
+
}]
|
|
329
|
+
}],
|
|
330
|
+
testId: [{
|
|
331
|
+
type: i0.Input,
|
|
332
|
+
args: [{
|
|
333
|
+
isSignal: true,
|
|
334
|
+
alias: "testId",
|
|
335
|
+
required: false
|
|
336
|
+
}]
|
|
337
|
+
}],
|
|
338
|
+
value: [{
|
|
339
|
+
type: i0.Input,
|
|
340
|
+
args: [{
|
|
341
|
+
isSignal: true,
|
|
342
|
+
alias: "value",
|
|
343
|
+
required: false
|
|
344
|
+
}]
|
|
345
|
+
}],
|
|
346
|
+
name: [{
|
|
347
|
+
type: i0.Input,
|
|
348
|
+
args: [{
|
|
349
|
+
isSignal: true,
|
|
350
|
+
alias: "name",
|
|
351
|
+
required: false
|
|
352
|
+
}]
|
|
353
|
+
}],
|
|
354
|
+
checked: [{
|
|
355
|
+
type: i0.Input,
|
|
356
|
+
args: [{
|
|
357
|
+
isSignal: true,
|
|
358
|
+
alias: "checked",
|
|
359
|
+
required: false
|
|
360
|
+
}]
|
|
361
|
+
}],
|
|
362
|
+
invalid: [{
|
|
363
|
+
type: i0.Input,
|
|
364
|
+
args: [{
|
|
365
|
+
isSignal: true,
|
|
366
|
+
alias: "invalid",
|
|
367
|
+
required: false
|
|
368
|
+
}]
|
|
369
|
+
}],
|
|
370
|
+
describedBy: [{
|
|
371
|
+
type: i0.Input,
|
|
372
|
+
args: [{
|
|
373
|
+
isSignal: true,
|
|
374
|
+
alias: "describedBy",
|
|
375
|
+
required: false
|
|
376
|
+
}]
|
|
377
|
+
}],
|
|
378
|
+
controls: [{
|
|
379
|
+
type: i0.Input,
|
|
380
|
+
args: [{
|
|
381
|
+
isSignal: true,
|
|
382
|
+
alias: "controls",
|
|
383
|
+
required: false
|
|
384
|
+
}]
|
|
385
|
+
}],
|
|
386
|
+
_disabledInput: [{
|
|
387
|
+
type: i0.Input,
|
|
388
|
+
args: [{
|
|
389
|
+
isSignal: true,
|
|
390
|
+
alias: "disabled",
|
|
391
|
+
required: false
|
|
392
|
+
}]
|
|
393
|
+
}],
|
|
394
|
+
labelId: [{
|
|
395
|
+
type: i0.Input,
|
|
396
|
+
args: [{
|
|
397
|
+
isSignal: true,
|
|
398
|
+
alias: "labelId",
|
|
399
|
+
required: false
|
|
400
|
+
}]
|
|
401
|
+
}],
|
|
402
|
+
selected: [{
|
|
403
|
+
type: i0.Output,
|
|
404
|
+
args: ["selected"]
|
|
405
|
+
}]
|
|
406
|
+
}
|
|
407
|
+
});
|
|
408
|
+
var RadioOptionContentDirective = class RadioOptionContentDirective {
|
|
409
|
+
constructor() {
|
|
410
|
+
this.value = input.required({
|
|
411
|
+
...ngDevMode ? { debugName: "value" } : /* istanbul ignore next */ {},
|
|
412
|
+
alias: "uiRadioOptionContent"
|
|
413
|
+
});
|
|
414
|
+
this.template = inject(TemplateRef);
|
|
415
|
+
}
|
|
416
|
+
static {
|
|
417
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
418
|
+
minVersion: "12.0.0",
|
|
419
|
+
version: "22.2.2",
|
|
420
|
+
ngImport: i0,
|
|
421
|
+
type: RadioOptionContentDirective,
|
|
422
|
+
deps: [],
|
|
423
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
static {
|
|
427
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
428
|
+
minVersion: "17.1.0",
|
|
429
|
+
version: "22.2.2",
|
|
430
|
+
type: RadioOptionContentDirective,
|
|
431
|
+
isStandalone: true,
|
|
432
|
+
selector: "ng-template[uiRadioOptionContent]",
|
|
433
|
+
inputs: { value: {
|
|
434
|
+
classPropertyName: "value",
|
|
435
|
+
publicName: "uiRadioOptionContent",
|
|
436
|
+
isSignal: true,
|
|
437
|
+
isRequired: true,
|
|
438
|
+
transformFunction: null
|
|
439
|
+
} },
|
|
440
|
+
ngImport: i0
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
};
|
|
444
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
445
|
+
minVersion: "12.0.0",
|
|
446
|
+
version: "22.2.2",
|
|
447
|
+
ngImport: i0,
|
|
448
|
+
type: RadioOptionContentDirective,
|
|
449
|
+
decorators: [{
|
|
450
|
+
type: Directive,
|
|
451
|
+
args: [{
|
|
452
|
+
selector: "ng-template[uiRadioOptionContent]",
|
|
453
|
+
standalone: true
|
|
454
|
+
}]
|
|
455
|
+
}],
|
|
456
|
+
propDecorators: { value: [{
|
|
457
|
+
type: i0.Input,
|
|
458
|
+
args: [{
|
|
459
|
+
isSignal: true,
|
|
460
|
+
alias: "uiRadioOptionContent",
|
|
461
|
+
required: true
|
|
462
|
+
}]
|
|
463
|
+
}] }
|
|
464
|
+
});
|
|
465
|
+
var RadioGroupComponent = class RadioGroupComponent {
|
|
466
|
+
get _name() {
|
|
467
|
+
return this.name() || this._generatedName;
|
|
468
|
+
}
|
|
469
|
+
_optionLabelId(index) {
|
|
470
|
+
return `${this._generatedName}-opt-${index}-label`;
|
|
471
|
+
}
|
|
472
|
+
constructor() {
|
|
473
|
+
this._labels = inject(UiLabelsService);
|
|
474
|
+
this.label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
475
|
+
this.options = input([], ...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
|
|
476
|
+
this.required = input(false, ...ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []);
|
|
477
|
+
this.hint = input("", ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
|
|
478
|
+
this.error = input("", ...ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []);
|
|
479
|
+
this.showErrors = input(false, ...ngDevMode ? [{ debugName: "showErrors" }] : /* istanbul ignore next */ []);
|
|
480
|
+
this.orientation = input("vertical", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
|
|
481
|
+
this.name = input("", ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
|
|
482
|
+
this._optionContent = contentChildren(RadioOptionContentDirective, ...ngDevMode ? [{ debugName: "_optionContent" }] : /* istanbul ignore next */ []);
|
|
483
|
+
this._nestedContent = computed(() => {
|
|
484
|
+
const byValue = /* @__PURE__ */ new Map();
|
|
485
|
+
for (const content of this._optionContent()) byValue.set(content.value(), content.template);
|
|
486
|
+
return byValue;
|
|
487
|
+
}, ...ngDevMode ? [{ debugName: "_nestedContent" }] : /* istanbul ignore next */ []);
|
|
488
|
+
this._disabledInput = input(false, {
|
|
489
|
+
...ngDevMode ? { debugName: "_disabledInput" } : /* istanbul ignore next */ {},
|
|
490
|
+
alias: "disabled"
|
|
491
|
+
});
|
|
492
|
+
this._cvaDisabled = signal(false, ...ngDevMode ? [{ debugName: "_cvaDisabled" }] : /* istanbul ignore next */ []);
|
|
493
|
+
this.disabled = computed(() => this._disabledInput() || this._cvaDisabled(), ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
|
|
494
|
+
this._generatedName = `rg-${Math.random().toString(36).slice(2, 8)}`;
|
|
495
|
+
this._descId = `${this._generatedName}-desc`;
|
|
496
|
+
this._nestedId = `${this._generatedName}-nested`;
|
|
497
|
+
this._value = signal("", ...ngDevMode ? [{ debugName: "_value" }] : /* istanbul ignore next */ []);
|
|
498
|
+
this._reveal = createFieldReveal(this.showErrors);
|
|
499
|
+
this._issue = computed(() => this._check(this._value()), ...ngDevMode ? [{ debugName: "_issue" }] : /* istanbul ignore next */ []);
|
|
500
|
+
this.invalid = computed(() => !!this.error() || !!this._issue(), ...ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []);
|
|
501
|
+
this.errorMessage = computed(() => this._issue()?.message ?? "", ...ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []);
|
|
502
|
+
this.invalidChange = output();
|
|
503
|
+
this._activeError = computed(() => this._reveal.revealed() ? this.error() || this.errorMessage() : "", ...ngDevMode ? [{ debugName: "_activeError" }] : /* istanbul ignore next */ []);
|
|
504
|
+
this._onValidatorChange = () => {};
|
|
505
|
+
this._onChange = (_) => {};
|
|
506
|
+
this._onTouched = () => {};
|
|
507
|
+
effect(() => {
|
|
508
|
+
this.invalidChange.emit(this.invalid());
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
ngOnChanges() {
|
|
512
|
+
this._onValidatorChange();
|
|
513
|
+
}
|
|
514
|
+
validate(control) {
|
|
515
|
+
const v = control.value;
|
|
516
|
+
return issueToErrors(this._check(v == null ? "" : String(v)));
|
|
517
|
+
}
|
|
518
|
+
registerOnValidatorChange(fn) {
|
|
519
|
+
this._onValidatorChange = fn;
|
|
520
|
+
}
|
|
521
|
+
writeValue(val) {
|
|
522
|
+
this._value.set(val ?? "");
|
|
523
|
+
}
|
|
524
|
+
registerOnChange(fn) {
|
|
525
|
+
this._onChange = fn;
|
|
526
|
+
}
|
|
527
|
+
registerOnTouched(fn) {
|
|
528
|
+
this._onTouched = fn;
|
|
529
|
+
}
|
|
530
|
+
setDisabledState(d) {
|
|
531
|
+
this._cvaDisabled.set(d);
|
|
532
|
+
}
|
|
533
|
+
onSelect(value) {
|
|
534
|
+
this._value.set(value);
|
|
535
|
+
this._onChange(value);
|
|
536
|
+
}
|
|
537
|
+
onFocusOut(event) {
|
|
538
|
+
const next = event.relatedTarget;
|
|
539
|
+
if (next && event.currentTarget.contains(next)) return;
|
|
540
|
+
this._onTouched();
|
|
541
|
+
this._reveal.touched.set(true);
|
|
542
|
+
}
|
|
543
|
+
_check(value) {
|
|
544
|
+
if (this.disabled()) return null;
|
|
545
|
+
if (!value) return this.required() ? requiredIssue(this.label()) : null;
|
|
546
|
+
const opts = this.options();
|
|
547
|
+
if (opts.length > 0 && !opts.some((o) => o.value === value)) return {
|
|
548
|
+
key: "option",
|
|
549
|
+
message: this._labels.t("common.selectValidOption")
|
|
550
|
+
};
|
|
551
|
+
return null;
|
|
552
|
+
}
|
|
553
|
+
static {
|
|
554
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
555
|
+
minVersion: "12.0.0",
|
|
556
|
+
version: "22.2.2",
|
|
557
|
+
ngImport: i0,
|
|
558
|
+
type: RadioGroupComponent,
|
|
559
|
+
deps: [],
|
|
560
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
561
|
+
});
|
|
562
|
+
}
|
|
563
|
+
static {
|
|
564
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
565
|
+
minVersion: "17.0.0",
|
|
566
|
+
version: "22.2.2",
|
|
567
|
+
type: RadioGroupComponent,
|
|
568
|
+
isStandalone: true,
|
|
569
|
+
selector: "ui-radio-group",
|
|
570
|
+
inputs: {
|
|
571
|
+
label: {
|
|
572
|
+
classPropertyName: "label",
|
|
573
|
+
publicName: "label",
|
|
574
|
+
isSignal: true,
|
|
575
|
+
isRequired: false,
|
|
576
|
+
transformFunction: null
|
|
577
|
+
},
|
|
578
|
+
options: {
|
|
579
|
+
classPropertyName: "options",
|
|
580
|
+
publicName: "options",
|
|
581
|
+
isSignal: true,
|
|
582
|
+
isRequired: false,
|
|
583
|
+
transformFunction: null
|
|
584
|
+
},
|
|
585
|
+
required: {
|
|
586
|
+
classPropertyName: "required",
|
|
587
|
+
publicName: "required",
|
|
588
|
+
isSignal: true,
|
|
589
|
+
isRequired: false,
|
|
590
|
+
transformFunction: null
|
|
591
|
+
},
|
|
592
|
+
hint: {
|
|
593
|
+
classPropertyName: "hint",
|
|
594
|
+
publicName: "hint",
|
|
595
|
+
isSignal: true,
|
|
596
|
+
isRequired: false,
|
|
597
|
+
transformFunction: null
|
|
598
|
+
},
|
|
599
|
+
error: {
|
|
600
|
+
classPropertyName: "error",
|
|
601
|
+
publicName: "error",
|
|
602
|
+
isSignal: true,
|
|
603
|
+
isRequired: false,
|
|
604
|
+
transformFunction: null
|
|
605
|
+
},
|
|
606
|
+
showErrors: {
|
|
607
|
+
classPropertyName: "showErrors",
|
|
608
|
+
publicName: "showErrors",
|
|
609
|
+
isSignal: true,
|
|
610
|
+
isRequired: false,
|
|
611
|
+
transformFunction: null
|
|
612
|
+
},
|
|
613
|
+
orientation: {
|
|
614
|
+
classPropertyName: "orientation",
|
|
615
|
+
publicName: "orientation",
|
|
616
|
+
isSignal: true,
|
|
617
|
+
isRequired: false,
|
|
618
|
+
transformFunction: null
|
|
619
|
+
},
|
|
620
|
+
name: {
|
|
621
|
+
classPropertyName: "name",
|
|
622
|
+
publicName: "name",
|
|
623
|
+
isSignal: true,
|
|
624
|
+
isRequired: false,
|
|
625
|
+
transformFunction: null
|
|
626
|
+
},
|
|
627
|
+
_disabledInput: {
|
|
628
|
+
classPropertyName: "_disabledInput",
|
|
629
|
+
publicName: "disabled",
|
|
630
|
+
isSignal: true,
|
|
631
|
+
isRequired: false,
|
|
632
|
+
transformFunction: null
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
outputs: { invalidChange: "invalidChange" },
|
|
636
|
+
providers: [
|
|
637
|
+
{
|
|
638
|
+
provide: NG_VALUE_ACCESSOR,
|
|
639
|
+
useExisting: forwardRef(() => RadioGroupComponent),
|
|
640
|
+
multi: true
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
provide: NG_VALIDATORS,
|
|
644
|
+
useExisting: forwardRef(() => RadioGroupComponent),
|
|
645
|
+
multi: true
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
provide: UiFieldValidity,
|
|
649
|
+
useExisting: forwardRef(() => RadioGroupComponent)
|
|
650
|
+
}
|
|
651
|
+
],
|
|
652
|
+
queries: [{
|
|
653
|
+
propertyName: "_optionContent",
|
|
654
|
+
predicate: RadioOptionContentDirective,
|
|
655
|
+
isSignal: true
|
|
656
|
+
}],
|
|
657
|
+
usesOnChanges: true,
|
|
658
|
+
ngImport: i0,
|
|
659
|
+
template: `
|
|
660
|
+
<fieldset
|
|
661
|
+
class="rg-field"
|
|
662
|
+
role="radiogroup"
|
|
663
|
+
[class.rg-error]="_activeError()"
|
|
664
|
+
[class.rg-disabled]="disabled()"
|
|
665
|
+
[disabled]="disabled()"
|
|
666
|
+
[attr.aria-required]="required() ? 'true' : null"
|
|
667
|
+
[attr.aria-invalid]="_activeError() ? 'true' : null"
|
|
668
|
+
[attr.aria-describedby]="(_activeError() || hint()) ? _descId : null"
|
|
669
|
+
(focusout)="onFocusOut($event)">
|
|
670
|
+
@if (label()) {
|
|
671
|
+
<legend class="rg-label">
|
|
672
|
+
{{ label() }}
|
|
673
|
+
@if (required()) { <span class="rg-required" aria-hidden="true">*</span> }
|
|
674
|
+
</legend>
|
|
675
|
+
}
|
|
676
|
+
<div class="rg-options" [class.rg-horizontal]="orientation() === 'horizontal'">
|
|
677
|
+
@for (opt of options(); track opt.value) {
|
|
678
|
+
<ui-radio
|
|
679
|
+
[name]="_name"
|
|
680
|
+
[value]="opt.value"
|
|
681
|
+
[label]="opt.label"
|
|
682
|
+
[description]="opt.description ?? ''"
|
|
683
|
+
[icon]="opt.icon ?? ''"
|
|
684
|
+
[linkLabel]="opt.descriptionLink?.label ?? ''"
|
|
685
|
+
[linkUrl]="opt.descriptionLink?.url ?? ''"
|
|
686
|
+
[linkTestId]="opt.descriptionLink?.testId ?? ''"
|
|
687
|
+
[checked]="_value() === opt.value"
|
|
688
|
+
[disabled]="disabled() || !!opt.disabled"
|
|
689
|
+
[invalid]="!!_activeError()"
|
|
690
|
+
[describedBy]="(_activeError() || hint()) ? _descId : ''"
|
|
691
|
+
[controls]="(_value() === opt.value && _nestedContent().has(opt.value)) ? _nestedId : ''"
|
|
692
|
+
[labelId]="_nestedContent().has(opt.value) ? _optionLabelId($index) : ''"
|
|
693
|
+
[testId]="opt.testId ?? ''"
|
|
694
|
+
(selected)="onSelect($event)" />
|
|
695
|
+
@if (_value() === opt.value && _nestedContent().get(opt.value); as nested) {
|
|
696
|
+
<div class="rg-nested" role="group" [id]="_nestedId" [attr.aria-labelledby]="opt.label ? _optionLabelId($index) : null"><ng-container [ngTemplateOutlet]="nested" /></div>
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
</div>
|
|
700
|
+
@if (_activeError()) {
|
|
701
|
+
<p class="rg-desc rg-desc-error" [id]="_descId" role="alert">{{ _activeError() }}</p>
|
|
702
|
+
} @else if (hint()) {
|
|
703
|
+
<p class="rg-desc" [id]="_descId">{{ hint() }}</p>
|
|
704
|
+
}
|
|
705
|
+
</fieldset>
|
|
706
|
+
`,
|
|
707
|
+
isInline: true,
|
|
708
|
+
styles: [":host{display:block}.rg-field{display:flex;flex-direction:column;gap:6px;border:0;margin:0;padding:0;min-width:0}.rg-label{padding:0;margin-bottom:6px;font-size:.8125rem;font-weight:600;color:#374151;line-height:1}.rg-required{color:#dc2626;margin-left:2px}.rg-options{display:flex;flex-direction:column;gap:10px}.rg-options.rg-horizontal{flex-direction:row;flex-wrap:wrap;gap:8px 20px}.rg-nested{padding-left:29px;min-width:0}.rg-options.rg-horizontal .rg-nested{flex:1 0 100%}.rg-disabled{cursor:not-allowed}.rg-desc{margin:0;font-size:.75rem;line-height:1.4;color:#64748b}.rg-desc-error{color:#dc2626}@media(pointer:coarse),(max-width:480px){.rg-options{gap:0}.rg-options.rg-horizontal{gap:0 20px}}\n"],
|
|
709
|
+
dependencies: [{
|
|
710
|
+
kind: "component",
|
|
711
|
+
type: RadioComponent,
|
|
712
|
+
selector: "ui-radio",
|
|
713
|
+
inputs: [
|
|
714
|
+
"label",
|
|
715
|
+
"description",
|
|
716
|
+
"linkLabel",
|
|
717
|
+
"linkUrl",
|
|
718
|
+
"linkTestId",
|
|
719
|
+
"icon",
|
|
720
|
+
"ariaLabel",
|
|
721
|
+
"testId",
|
|
722
|
+
"value",
|
|
723
|
+
"name",
|
|
724
|
+
"checked",
|
|
725
|
+
"invalid",
|
|
726
|
+
"describedBy",
|
|
727
|
+
"controls",
|
|
728
|
+
"disabled",
|
|
729
|
+
"labelId"
|
|
730
|
+
],
|
|
731
|
+
outputs: ["selected"]
|
|
732
|
+
}, {
|
|
733
|
+
kind: "directive",
|
|
734
|
+
type: NgTemplateOutlet,
|
|
735
|
+
selector: "[ngTemplateOutlet]",
|
|
736
|
+
inputs: [
|
|
737
|
+
"ngTemplateOutletContext",
|
|
738
|
+
"ngTemplateOutlet",
|
|
739
|
+
"ngTemplateOutletInjector"
|
|
740
|
+
]
|
|
741
|
+
}],
|
|
742
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
743
|
+
});
|
|
744
|
+
}
|
|
745
|
+
};
|
|
746
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
747
|
+
minVersion: "12.0.0",
|
|
748
|
+
version: "22.2.2",
|
|
749
|
+
ngImport: i0,
|
|
750
|
+
type: RadioGroupComponent,
|
|
751
|
+
decorators: [{
|
|
752
|
+
type: Component,
|
|
753
|
+
args: [{
|
|
754
|
+
selector: "ui-radio-group",
|
|
755
|
+
standalone: true,
|
|
756
|
+
imports: [RadioComponent, NgTemplateOutlet],
|
|
757
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
758
|
+
providers: [
|
|
759
|
+
{
|
|
760
|
+
provide: NG_VALUE_ACCESSOR,
|
|
761
|
+
useExisting: forwardRef(() => RadioGroupComponent),
|
|
762
|
+
multi: true
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
provide: NG_VALIDATORS,
|
|
766
|
+
useExisting: forwardRef(() => RadioGroupComponent),
|
|
767
|
+
multi: true
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
provide: UiFieldValidity,
|
|
771
|
+
useExisting: forwardRef(() => RadioGroupComponent)
|
|
772
|
+
}
|
|
773
|
+
],
|
|
774
|
+
template: `
|
|
775
|
+
<fieldset
|
|
776
|
+
class="rg-field"
|
|
777
|
+
role="radiogroup"
|
|
778
|
+
[class.rg-error]="_activeError()"
|
|
779
|
+
[class.rg-disabled]="disabled()"
|
|
780
|
+
[disabled]="disabled()"
|
|
781
|
+
[attr.aria-required]="required() ? 'true' : null"
|
|
782
|
+
[attr.aria-invalid]="_activeError() ? 'true' : null"
|
|
783
|
+
[attr.aria-describedby]="(_activeError() || hint()) ? _descId : null"
|
|
784
|
+
(focusout)="onFocusOut($event)">
|
|
785
|
+
@if (label()) {
|
|
786
|
+
<legend class="rg-label">
|
|
787
|
+
{{ label() }}
|
|
788
|
+
@if (required()) { <span class="rg-required" aria-hidden="true">*</span> }
|
|
789
|
+
</legend>
|
|
790
|
+
}
|
|
791
|
+
<div class="rg-options" [class.rg-horizontal]="orientation() === 'horizontal'">
|
|
792
|
+
@for (opt of options(); track opt.value) {
|
|
793
|
+
<ui-radio
|
|
794
|
+
[name]="_name"
|
|
795
|
+
[value]="opt.value"
|
|
796
|
+
[label]="opt.label"
|
|
797
|
+
[description]="opt.description ?? ''"
|
|
798
|
+
[icon]="opt.icon ?? ''"
|
|
799
|
+
[linkLabel]="opt.descriptionLink?.label ?? ''"
|
|
800
|
+
[linkUrl]="opt.descriptionLink?.url ?? ''"
|
|
801
|
+
[linkTestId]="opt.descriptionLink?.testId ?? ''"
|
|
802
|
+
[checked]="_value() === opt.value"
|
|
803
|
+
[disabled]="disabled() || !!opt.disabled"
|
|
804
|
+
[invalid]="!!_activeError()"
|
|
805
|
+
[describedBy]="(_activeError() || hint()) ? _descId : ''"
|
|
806
|
+
[controls]="(_value() === opt.value && _nestedContent().has(opt.value)) ? _nestedId : ''"
|
|
807
|
+
[labelId]="_nestedContent().has(opt.value) ? _optionLabelId($index) : ''"
|
|
808
|
+
[testId]="opt.testId ?? ''"
|
|
809
|
+
(selected)="onSelect($event)" />
|
|
810
|
+
@if (_value() === opt.value && _nestedContent().get(opt.value); as nested) {
|
|
811
|
+
<div class="rg-nested" role="group" [id]="_nestedId" [attr.aria-labelledby]="opt.label ? _optionLabelId($index) : null"><ng-container [ngTemplateOutlet]="nested" /></div>
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
</div>
|
|
815
|
+
@if (_activeError()) {
|
|
816
|
+
<p class="rg-desc rg-desc-error" [id]="_descId" role="alert">{{ _activeError() }}</p>
|
|
817
|
+
} @else if (hint()) {
|
|
818
|
+
<p class="rg-desc" [id]="_descId">{{ hint() }}</p>
|
|
819
|
+
}
|
|
820
|
+
</fieldset>
|
|
821
|
+
`,
|
|
822
|
+
styles: [":host{display:block}.rg-field{display:flex;flex-direction:column;gap:6px;border:0;margin:0;padding:0;min-width:0}.rg-label{padding:0;margin-bottom:6px;font-size:.8125rem;font-weight:600;color:#374151;line-height:1}.rg-required{color:#dc2626;margin-left:2px}.rg-options{display:flex;flex-direction:column;gap:10px}.rg-options.rg-horizontal{flex-direction:row;flex-wrap:wrap;gap:8px 20px}.rg-nested{padding-left:29px;min-width:0}.rg-options.rg-horizontal .rg-nested{flex:1 0 100%}.rg-disabled{cursor:not-allowed}.rg-desc{margin:0;font-size:.75rem;line-height:1.4;color:#64748b}.rg-desc-error{color:#dc2626}@media(pointer:coarse),(max-width:480px){.rg-options{gap:0}.rg-options.rg-horizontal{gap:0 20px}}\n"]
|
|
823
|
+
}]
|
|
824
|
+
}],
|
|
825
|
+
ctorParameters: () => [],
|
|
826
|
+
propDecorators: {
|
|
827
|
+
label: [{
|
|
828
|
+
type: i0.Input,
|
|
829
|
+
args: [{
|
|
830
|
+
isSignal: true,
|
|
831
|
+
alias: "label",
|
|
832
|
+
required: false
|
|
833
|
+
}]
|
|
834
|
+
}],
|
|
835
|
+
options: [{
|
|
836
|
+
type: i0.Input,
|
|
837
|
+
args: [{
|
|
838
|
+
isSignal: true,
|
|
839
|
+
alias: "options",
|
|
840
|
+
required: false
|
|
841
|
+
}]
|
|
842
|
+
}],
|
|
843
|
+
required: [{
|
|
844
|
+
type: i0.Input,
|
|
845
|
+
args: [{
|
|
846
|
+
isSignal: true,
|
|
847
|
+
alias: "required",
|
|
848
|
+
required: false
|
|
849
|
+
}]
|
|
850
|
+
}],
|
|
851
|
+
hint: [{
|
|
852
|
+
type: i0.Input,
|
|
853
|
+
args: [{
|
|
854
|
+
isSignal: true,
|
|
855
|
+
alias: "hint",
|
|
856
|
+
required: false
|
|
857
|
+
}]
|
|
858
|
+
}],
|
|
859
|
+
error: [{
|
|
860
|
+
type: i0.Input,
|
|
861
|
+
args: [{
|
|
862
|
+
isSignal: true,
|
|
863
|
+
alias: "error",
|
|
864
|
+
required: false
|
|
865
|
+
}]
|
|
866
|
+
}],
|
|
867
|
+
showErrors: [{
|
|
868
|
+
type: i0.Input,
|
|
869
|
+
args: [{
|
|
870
|
+
isSignal: true,
|
|
871
|
+
alias: "showErrors",
|
|
872
|
+
required: false
|
|
873
|
+
}]
|
|
874
|
+
}],
|
|
875
|
+
orientation: [{
|
|
876
|
+
type: i0.Input,
|
|
877
|
+
args: [{
|
|
878
|
+
isSignal: true,
|
|
879
|
+
alias: "orientation",
|
|
880
|
+
required: false
|
|
881
|
+
}]
|
|
882
|
+
}],
|
|
883
|
+
name: [{
|
|
884
|
+
type: i0.Input,
|
|
885
|
+
args: [{
|
|
886
|
+
isSignal: true,
|
|
887
|
+
alias: "name",
|
|
888
|
+
required: false
|
|
889
|
+
}]
|
|
890
|
+
}],
|
|
891
|
+
_optionContent: [{
|
|
892
|
+
type: i0.ContentChildren,
|
|
893
|
+
args: [i0.forwardRef(() => RadioOptionContentDirective), { isSignal: true }]
|
|
894
|
+
}],
|
|
895
|
+
_disabledInput: [{
|
|
896
|
+
type: i0.Input,
|
|
897
|
+
args: [{
|
|
898
|
+
isSignal: true,
|
|
899
|
+
alias: "disabled",
|
|
900
|
+
required: false
|
|
901
|
+
}]
|
|
902
|
+
}],
|
|
903
|
+
invalidChange: [{
|
|
904
|
+
type: i0.Output,
|
|
905
|
+
args: ["invalidChange"]
|
|
906
|
+
}]
|
|
907
|
+
}
|
|
908
|
+
});
|
|
909
|
+
export { RadioComponent, RadioGroupComponent, RadioOptionContentDirective };
|
|
910
|
+
|
|
911
|
+
//# sourceMappingURL=forgeroute-ui-radio.mjs.map
|