@forgeroute/ui 0.5.15 → 0.5.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/forgeroute-ui-action-bar.mjs +190 -0
- package/fesm2022/forgeroute-ui-action-bar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-address-input.mjs +1164 -0
- package/fesm2022/forgeroute-ui-address-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-alert.mjs +223 -0
- package/fesm2022/forgeroute-ui-alert.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-avatar.mjs +320 -0
- package/fesm2022/forgeroute-ui-avatar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-badge.mjs +158 -0
- package/fesm2022/forgeroute-ui-badge.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-bar-row.mjs +255 -0
- package/fesm2022/forgeroute-ui-bar-row.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-boards.mjs +2201 -0
- package/fesm2022/forgeroute-ui-boards.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-bulk-eligible.mjs +172 -0
- package/fesm2022/forgeroute-ui-bulk-eligible.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-business-hours.mjs +771 -0
- package/fesm2022/forgeroute-ui-business-hours.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-calendar.mjs +2006 -0
- package/fesm2022/forgeroute-ui-calendar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-card-list-item.mjs +556 -0
- package/fesm2022/forgeroute-ui-card-list-item.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-charts.mjs +1 -1
- package/fesm2022/forgeroute-ui-charts.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-checkbox.mjs +815 -0
- package/fesm2022/forgeroute-ui-checkbox.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-chip.mjs +379 -0
- package/fesm2022/forgeroute-ui-chip.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-color-input.mjs +492 -0
- package/fesm2022/forgeroute-ui-color-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-column-filter.mjs +645 -0
- package/fesm2022/forgeroute-ui-column-filter.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-columns.mjs +351 -0
- package/fesm2022/forgeroute-ui-columns.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-combobox.mjs +772 -0
- package/fesm2022/forgeroute-ui-combobox.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-confirm.mjs +48 -0
- package/fesm2022/forgeroute-ui-confirm.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-contact-picker.mjs +865 -0
- package/fesm2022/forgeroute-ui-contact-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-conversations.mjs +3627 -0
- package/fesm2022/forgeroute-ui-conversations.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-copy-field.mjs +378 -0
- package/fesm2022/forgeroute-ui-copy-field.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-data-table-core.mjs +6150 -0
- package/fesm2022/forgeroute-ui-data-table-core.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-date-input.mjs +384 -0
- package/fesm2022/forgeroute-ui-date-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-date-range-picker.mjs +453 -0
- package/fesm2022/forgeroute-ui-date-range-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-datetime-input.mjs +375 -0
- package/fesm2022/forgeroute-ui-datetime-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-detail-card.mjs +655 -0
- package/fesm2022/forgeroute-ui-detail-card.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-discount-selector.mjs +259 -0
- package/fesm2022/forgeroute-ui-discount-selector.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-divider.mjs +111 -0
- package/fesm2022/forgeroute-ui-divider.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-dropdown.mjs +550 -0
- package/fesm2022/forgeroute-ui-dropdown.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-editor.mjs +4545 -0
- package/fesm2022/forgeroute-ui-editor.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-empty-state.mjs +231 -0
- package/fesm2022/forgeroute-ui-empty-state.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-error-state.mjs +195 -0
- package/fesm2022/forgeroute-ui-error-state.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-error.mjs +93 -0
- package/fesm2022/forgeroute-ui-error.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-fade.mjs +117 -0
- package/fesm2022/forgeroute-ui-fade.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-file-input.mjs +999 -0
- package/fesm2022/forgeroute-ui-file-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-fixed-footer.mjs +115 -0
- package/fesm2022/forgeroute-ui-fixed-footer.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-form-row.mjs +126 -0
- package/fesm2022/forgeroute-ui-form-row.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-form-section.mjs +93 -0
- package/fesm2022/forgeroute-ui-form-section.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-form.mjs +139 -0
- package/fesm2022/forgeroute-ui-form.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-hint.mjs +47 -0
- package/fesm2022/forgeroute-ui-hint.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-icon-picker.mjs +424 -0
- package/fesm2022/forgeroute-ui-icon-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-icon.mjs +311 -0
- package/fesm2022/forgeroute-ui-icon.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-image-preview.mjs +237 -0
- package/fesm2022/forgeroute-ui-image-preview.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-keypad.mjs +278 -0
- package/fesm2022/forgeroute-ui-keypad.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-kpi-card.mjs +490 -0
- package/fesm2022/forgeroute-ui-kpi-card.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-language-switcher.mjs +134 -0
- package/fesm2022/forgeroute-ui-language-switcher.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-layout.mjs +18 -0
- package/fesm2022/forgeroute-ui-layout.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-list-item.mjs +620 -0
- package/fesm2022/forgeroute-ui-list-item.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-list.mjs +866 -0
- package/fesm2022/forgeroute-ui-list.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-live-region.mjs +118 -0
- package/fesm2022/forgeroute-ui-live-region.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-map.mjs +5 -1
- package/fesm2022/forgeroute-ui-map.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-maps.mjs +2 -1
- package/fesm2022/forgeroute-ui-maps.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-media.mjs +4615 -0
- package/fesm2022/forgeroute-ui-media.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-messaging.mjs +20 -1
- package/fesm2022/forgeroute-ui-messaging.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-more-menu.mjs +418 -0
- package/fesm2022/forgeroute-ui-more-menu.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-multi-select.mjs +532 -0
- package/fesm2022/forgeroute-ui-multi-select.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-notes.mjs +768 -0
- package/fesm2022/forgeroute-ui-notes.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-notification-bell.mjs +587 -0
- package/fesm2022/forgeroute-ui-notification-bell.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-offline-banner.mjs +156 -0
- package/fesm2022/forgeroute-ui-offline-banner.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-option-card.mjs +379 -0
- package/fesm2022/forgeroute-ui-option-card.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-page.mjs +317 -0
- package/fesm2022/forgeroute-ui-page.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-pagination.mjs +225 -0
- package/fesm2022/forgeroute-ui-pagination.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-panel-info-list.mjs +422 -0
- package/fesm2022/forgeroute-ui-panel-info-list.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-password-requirements.mjs +237 -0
- package/fesm2022/forgeroute-ui-password-requirements.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-payments.mjs +6243 -0
- package/fesm2022/forgeroute-ui-payments.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-pdf.mjs +9 -1
- package/fesm2022/forgeroute-ui-pdf.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-phone-number-picker.mjs +840 -0
- package/fesm2022/forgeroute-ui-phone-number-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-pill-tabs.mjs +546 -0
- package/fesm2022/forgeroute-ui-pill-tabs.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-print.mjs +76 -0
- package/fesm2022/forgeroute-ui-print.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-progress-bar.mjs +252 -0
- package/fesm2022/forgeroute-ui-progress-bar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-progress-ring.mjs +277 -0
- package/fesm2022/forgeroute-ui-progress-ring.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-quick-filter-tabs.mjs +301 -0
- package/fesm2022/forgeroute-ui-quick-filter-tabs.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-quickbooks.mjs +20 -3
- package/fesm2022/forgeroute-ui-quickbooks.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-radio-matrix.mjs +471 -0
- package/fesm2022/forgeroute-ui-radio-matrix.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-radio.mjs +911 -0
- package/fesm2022/forgeroute-ui-radio.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-read-only-mode.mjs +15 -0
- package/fesm2022/forgeroute-ui-read-only-mode.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-readonly-fieldset.mjs +146 -0
- package/fesm2022/forgeroute-ui-readonly-fieldset.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-reminder-alerts.mjs +249 -0
- package/fesm2022/forgeroute-ui-reminder-alerts.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-search-input.mjs +373 -0
- package/fesm2022/forgeroute-ui-search-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-section-header.mjs +296 -0
- package/fesm2022/forgeroute-ui-section-header.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-select.mjs +498 -0
- package/fesm2022/forgeroute-ui-select.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-setup.mjs +4649 -0
- package/fesm2022/forgeroute-ui-setup.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-share-menu.mjs +461 -0
- package/fesm2022/forgeroute-ui-share-menu.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-shell.mjs +981 -0
- package/fesm2022/forgeroute-ui-shell.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-show.mjs +129 -0
- package/fesm2022/forgeroute-ui-show.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-sidebar-layout.mjs +355 -0
- package/fesm2022/forgeroute-ui-sidebar-layout.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-skeleton.mjs +152 -0
- package/fesm2022/forgeroute-ui-skeleton.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-skip-link.mjs +129 -0
- package/fesm2022/forgeroute-ui-skip-link.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-snackbar.mjs +200 -0
- package/fesm2022/forgeroute-ui-snackbar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-square.mjs +17 -3
- package/fesm2022/forgeroute-ui-square.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-stack.mjs +233 -0
- package/fesm2022/forgeroute-ui-stack.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stacked-bar.mjs +200 -0
- package/fesm2022/forgeroute-ui-stacked-bar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stacking-plan.mjs +365 -0
- package/fesm2022/forgeroute-ui-stacking-plan.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-star-rating.mjs +498 -0
- package/fesm2022/forgeroute-ui-star-rating.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-star.mjs +184 -0
- package/fesm2022/forgeroute-ui-star.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stepper.mjs +615 -0
- package/fesm2022/forgeroute-ui-stepper.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stripe.mjs +16 -3
- package/fesm2022/forgeroute-ui-stripe.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-swatch-picker.mjs +416 -0
- package/fesm2022/forgeroute-ui-swatch-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-table-toolbar.mjs +770 -0
- package/fesm2022/forgeroute-ui-table-toolbar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-table-types.mjs +277 -0
- package/fesm2022/forgeroute-ui-table-types.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-text-input.mjs +1003 -0
- package/fesm2022/forgeroute-ui-text-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-text-template-picker.mjs +356 -0
- package/fesm2022/forgeroute-ui-text-template-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-text.mjs +195 -0
- package/fesm2022/forgeroute-ui-text.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-textarea-input.mjs +542 -0
- package/fesm2022/forgeroute-ui-textarea-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-time-input.mjs +401 -0
- package/fesm2022/forgeroute-ui-time-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-timeline.mjs +549 -0
- package/fesm2022/forgeroute-ui-timeline.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-toast.mjs +507 -0
- package/fesm2022/forgeroute-ui-toast.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-toggle-badge.mjs +177 -0
- package/fesm2022/forgeroute-ui-toggle-badge.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-toggle.mjs +275 -0
- package/fesm2022/forgeroute-ui-toggle.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-tooltip.mjs +155 -0
- package/fesm2022/forgeroute-ui-tooltip.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-utils.mjs +1071 -0
- package/fesm2022/forgeroute-ui-utils.mjs.map +1 -0
- package/fesm2022/forgeroute-ui.mjs +105 -70663
- package/package.json +417 -1
- package/types/forgeroute-ui-action-bar.d.ts +74 -0
- package/types/forgeroute-ui-address-input.d.ts +354 -0
- package/types/forgeroute-ui-alert.d.ts +89 -0
- package/types/forgeroute-ui-avatar.d.ts +85 -0
- package/types/forgeroute-ui-badge.d.ts +45 -0
- package/types/forgeroute-ui-bar-row.d.ts +90 -0
- package/types/forgeroute-ui-boards.d.ts +575 -0
- package/types/forgeroute-ui-bulk-eligible.d.ts +53 -0
- package/types/forgeroute-ui-business-hours.d.ts +191 -0
- package/types/forgeroute-ui-calendar.d.ts +544 -0
- package/types/forgeroute-ui-card-list-item.d.ts +186 -0
- package/types/forgeroute-ui-charts.d.ts +1 -1
- package/types/forgeroute-ui-checkbox.d.ts +270 -0
- package/types/forgeroute-ui-chip.d.ts +125 -0
- package/types/forgeroute-ui-color-input.d.ts +160 -0
- package/types/forgeroute-ui-column-filter.d.ts +130 -0
- package/types/forgeroute-ui-columns.d.ts +150 -0
- package/types/forgeroute-ui-combobox.d.ts +252 -0
- package/types/forgeroute-ui-confirm.d.ts +34 -0
- package/types/forgeroute-ui-contact-picker.d.ts +173 -0
- package/types/forgeroute-ui-conversations.d.ts +993 -0
- package/types/forgeroute-ui-copy-field.d.ts +122 -0
- package/types/forgeroute-ui-data-table-core.d.ts +1221 -0
- package/types/forgeroute-ui-date-input.d.ts +101 -0
- package/types/forgeroute-ui-date-range-picker.d.ts +109 -0
- package/types/forgeroute-ui-datetime-input.d.ts +97 -0
- package/types/forgeroute-ui-detail-card.d.ts +252 -0
- package/types/forgeroute-ui-discount-selector.d.ts +57 -0
- package/types/forgeroute-ui-divider.d.ts +40 -0
- package/types/forgeroute-ui-dropdown.d.ts +156 -0
- package/types/forgeroute-ui-editor.d.ts +873 -0
- package/types/forgeroute-ui-empty-state.d.ts +29 -0
- package/types/forgeroute-ui-error-state.d.ts +38 -0
- package/types/forgeroute-ui-error.d.ts +29 -0
- package/types/forgeroute-ui-fade.d.ts +39 -0
- package/types/forgeroute-ui-file-input.d.ts +337 -0
- package/types/forgeroute-ui-fixed-footer.d.ts +53 -0
- package/types/forgeroute-ui-form-row.d.ts +30 -0
- package/types/forgeroute-ui-form-section.d.ts +18 -0
- package/types/forgeroute-ui-form.d.ts +68 -0
- package/types/forgeroute-ui-hint.d.ts +10 -0
- package/types/forgeroute-ui-icon-picker.d.ts +122 -0
- package/types/forgeroute-ui-icon.d.ts +95 -0
- package/types/forgeroute-ui-image-preview.d.ts +88 -0
- package/types/forgeroute-ui-keypad.d.ts +73 -0
- package/types/forgeroute-ui-kpi-card.d.ts +161 -0
- package/types/forgeroute-ui-language-switcher.d.ts +41 -0
- package/types/forgeroute-ui-layout.d.ts +13 -0
- package/types/forgeroute-ui-list-item.d.ts +253 -0
- package/types/forgeroute-ui-list.d.ts +282 -0
- package/types/forgeroute-ui-live-region.d.ts +49 -0
- package/types/forgeroute-ui-map.d.ts +1 -1
- package/types/forgeroute-ui-maps.d.ts +1 -1
- package/types/forgeroute-ui-media.d.ts +1221 -0
- package/types/forgeroute-ui-messaging.d.ts +11 -6
- package/types/forgeroute-ui-more-menu.d.ts +91 -0
- package/types/forgeroute-ui-multi-select.d.ts +119 -0
- package/types/forgeroute-ui-notes.d.ts +172 -0
- package/types/forgeroute-ui-notification-bell.d.ts +135 -0
- package/types/forgeroute-ui-offline-banner.d.ts +44 -0
- package/types/forgeroute-ui-option-card.d.ts +106 -0
- package/types/forgeroute-ui-page.d.ts +115 -0
- package/types/forgeroute-ui-pagination.d.ts +55 -0
- package/types/forgeroute-ui-panel-info-list.d.ts +147 -0
- package/types/forgeroute-ui-password-requirements.d.ts +89 -0
- package/types/forgeroute-ui-payments.d.ts +1818 -0
- package/types/forgeroute-ui-pdf.d.ts +1 -1
- package/types/forgeroute-ui-phone-number-picker.d.ts +199 -0
- package/types/forgeroute-ui-pill-tabs.d.ts +208 -0
- package/types/forgeroute-ui-print.d.ts +40 -0
- package/types/forgeroute-ui-progress-bar.d.ts +88 -0
- package/types/forgeroute-ui-progress-ring.d.ts +102 -0
- package/types/forgeroute-ui-quick-filter-tabs.d.ts +51 -0
- package/types/forgeroute-ui-quickbooks.d.ts +6 -3
- package/types/forgeroute-ui-radio-matrix.d.ts +131 -0
- package/types/forgeroute-ui-radio.d.ts +311 -0
- package/types/forgeroute-ui-read-only-mode.d.ts +26 -0
- package/types/forgeroute-ui-readonly-fieldset.d.ts +62 -0
- package/types/forgeroute-ui-reminder-alerts.d.ts +71 -0
- package/types/forgeroute-ui-search-input.d.ts +93 -0
- package/types/forgeroute-ui-section-header.d.ts +149 -0
- package/types/forgeroute-ui-select.d.ts +183 -0
- package/types/forgeroute-ui-setup.d.ts +775 -0
- package/types/forgeroute-ui-share-menu.d.ts +99 -0
- package/types/forgeroute-ui-shell.d.ts +173 -0
- package/types/forgeroute-ui-show.d.ts +40 -0
- package/types/forgeroute-ui-sidebar-layout.d.ts +161 -0
- package/types/forgeroute-ui-skeleton.d.ts +51 -0
- package/types/forgeroute-ui-skip-link.d.ts +51 -0
- package/types/forgeroute-ui-snackbar.d.ts +50 -0
- package/types/forgeroute-ui-square.d.ts +5 -3
- package/types/forgeroute-ui-stack.d.ts +99 -0
- package/types/forgeroute-ui-stacked-bar.d.ts +84 -0
- package/types/forgeroute-ui-stacking-plan.d.ts +116 -0
- package/types/forgeroute-ui-star-rating.d.ts +151 -0
- package/types/forgeroute-ui-star.d.ts +46 -0
- package/types/forgeroute-ui-stepper.d.ts +273 -0
- package/types/forgeroute-ui-stripe.d.ts +4 -2
- package/types/forgeroute-ui-swatch-picker.d.ts +118 -0
- package/types/forgeroute-ui-table-toolbar.d.ts +116 -0
- package/types/forgeroute-ui-table-types.d.ts +624 -0
- package/types/forgeroute-ui-text-input.d.ts +359 -0
- package/types/forgeroute-ui-text-template-picker.d.ts +100 -0
- package/types/forgeroute-ui-text.d.ts +76 -0
- package/types/forgeroute-ui-textarea-input.d.ts +174 -0
- package/types/forgeroute-ui-time-input.d.ts +105 -0
- package/types/forgeroute-ui-timeline.d.ts +196 -0
- package/types/forgeroute-ui-toast.d.ts +131 -0
- package/types/forgeroute-ui-toggle-badge.d.ts +64 -0
- package/types/forgeroute-ui-toggle.d.ts +92 -0
- package/types/forgeroute-ui-tooltip.d.ts +36 -0
- package/types/forgeroute-ui-utils.d.ts +210 -0
- package/types/forgeroute-ui.d.ts +106 -19539
- package/fesm2022/forgeroute-ui.mjs.map +0 -1
|
@@ -0,0 +1,498 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, ElementRef, computed, effect, forwardRef, inject, input, linkedSignal, output, signal } from "@angular/core";
|
|
3
|
+
import { NG_VALIDATORS, NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
4
|
+
import { UiFieldValidity, UiLabelsService, createFieldReveal, issueToErrors, requiredIssue, uiText } from "@forgeroute/ui/core";
|
|
5
|
+
var StarRatingComponent = class StarRatingComponent {
|
|
6
|
+
get _name() {
|
|
7
|
+
return this.name() || this._generatedName;
|
|
8
|
+
}
|
|
9
|
+
constructor() {
|
|
10
|
+
this.labels = inject(UiLabelsService);
|
|
11
|
+
this.max = input(5, ...ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []);
|
|
12
|
+
this.value = input(0, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
13
|
+
this.label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
14
|
+
this.ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
15
|
+
this.hint = input("", ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
|
|
16
|
+
this.error = input("", ...ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []);
|
|
17
|
+
this.required = input(false, ...ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []);
|
|
18
|
+
this.showErrors = input(false, ...ngDevMode ? [{ debugName: "showErrors" }] : /* istanbul ignore next */ []);
|
|
19
|
+
this.size = input(24, ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
20
|
+
this.readonly = input(false, ...ngDevMode ? [{ debugName: "readonly" }] : /* istanbul ignore next */ []);
|
|
21
|
+
this.name = input("", ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
|
|
22
|
+
this._disabledInput = input(false, {
|
|
23
|
+
...ngDevMode ? { debugName: "_disabledInput" } : /* istanbul ignore next */ {},
|
|
24
|
+
alias: "disabled"
|
|
25
|
+
});
|
|
26
|
+
this._cvaDisabled = signal(false, ...ngDevMode ? [{ debugName: "_cvaDisabled" }] : /* istanbul ignore next */ []);
|
|
27
|
+
this.disabled = computed(() => this._disabledInput() || this._cvaDisabled(), ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
|
|
28
|
+
this.valueChange = output();
|
|
29
|
+
this.invalidChange = output();
|
|
30
|
+
this._value = linkedSignal(() => StarRatingComponent._norm(this.value()), ...ngDevMode ? [{ debugName: "_value" }] : /* istanbul ignore next */ []);
|
|
31
|
+
this._max = computed(() => {
|
|
32
|
+
const m = Math.floor(Number(this.max()));
|
|
33
|
+
return Number.isFinite(m) && m >= 1 ? m : 1;
|
|
34
|
+
}, ...ngDevMode ? [{ debugName: "_max" }] : /* istanbul ignore next */ []);
|
|
35
|
+
this._stars = computed(() => Array.from({ length: this._max() }, (_, i) => i + 1), ...ngDevMode ? [{ debugName: "_stars" }] : /* istanbul ignore next */ []);
|
|
36
|
+
this._shown = computed(() => Math.min(Math.max(Math.floor(this._value()), 0), this._max()), ...ngDevMode ? [{ debugName: "_shown" }] : /* istanbul ignore next */ []);
|
|
37
|
+
this._readonlyText = computed(() => {
|
|
38
|
+
const n = this._shown();
|
|
39
|
+
const text = n === 0 ? uiText("starRating.noRating") : uiText(n === 1 ? "starRating.starsOutOf_one" : "starRating.starsOutOf_other", {
|
|
40
|
+
count: n,
|
|
41
|
+
max: this._max()
|
|
42
|
+
});
|
|
43
|
+
return this.label() ? `${this.label()}: ${text}` : text;
|
|
44
|
+
}, ...ngDevMode ? [{ debugName: "_readonlyText" }] : /* istanbul ignore next */ []);
|
|
45
|
+
this._path = "M10 1.5l2.6 5.3 5.9.9-4.25 4.15 1 5.85L10 14.9l-5.25 2.8 1-5.85L1.5 7.7l5.9-.9L10 1.5z";
|
|
46
|
+
this._generatedName = `sr-${Math.random().toString(36).slice(2, 8)}`;
|
|
47
|
+
this._descId = `${this._generatedName}-desc`;
|
|
48
|
+
this._host = inject(ElementRef);
|
|
49
|
+
this._reveal = createFieldReveal(this.showErrors);
|
|
50
|
+
this._issue = computed(() => this._check(this._value()), ...ngDevMode ? [{ debugName: "_issue" }] : /* istanbul ignore next */ []);
|
|
51
|
+
this.invalid = computed(() => !!this.error() || !!this._issue(), ...ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []);
|
|
52
|
+
this.errorMessage = computed(() => this._issue()?.message ?? "", ...ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []);
|
|
53
|
+
this._activeError = computed(() => this._reveal.revealed() ? this.error() || this.errorMessage() : "", ...ngDevMode ? [{ debugName: "_activeError" }] : /* istanbul ignore next */ []);
|
|
54
|
+
this._onValidatorChange = () => {};
|
|
55
|
+
this._onChange = (_) => {};
|
|
56
|
+
this._onTouched = () => {};
|
|
57
|
+
effect(() => {
|
|
58
|
+
this.invalidChange.emit(this.invalid());
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
ngOnChanges() {
|
|
62
|
+
this._onValidatorChange();
|
|
63
|
+
}
|
|
64
|
+
validate(control) {
|
|
65
|
+
return issueToErrors(this._check(StarRatingComponent._norm(control.value)));
|
|
66
|
+
}
|
|
67
|
+
registerOnValidatorChange(fn) {
|
|
68
|
+
this._onValidatorChange = fn;
|
|
69
|
+
}
|
|
70
|
+
writeValue(val) {
|
|
71
|
+
this._value.set(StarRatingComponent._norm(val));
|
|
72
|
+
}
|
|
73
|
+
registerOnChange(fn) {
|
|
74
|
+
this._onChange = fn;
|
|
75
|
+
}
|
|
76
|
+
registerOnTouched(fn) {
|
|
77
|
+
this._onTouched = fn;
|
|
78
|
+
}
|
|
79
|
+
setDisabledState(d) {
|
|
80
|
+
this._cvaDisabled.set(d);
|
|
81
|
+
}
|
|
82
|
+
static _norm(v) {
|
|
83
|
+
if (v === null || v === void 0 || v === "") return 0;
|
|
84
|
+
const n = Number(v);
|
|
85
|
+
return Number.isFinite(n) ? n : 0;
|
|
86
|
+
}
|
|
87
|
+
onSelect(n) {
|
|
88
|
+
if (this.disabled()) return;
|
|
89
|
+
this._value.set(n);
|
|
90
|
+
this._onChange(n);
|
|
91
|
+
this.valueChange.emit(n);
|
|
92
|
+
}
|
|
93
|
+
onKeydown(event, n) {
|
|
94
|
+
if (this.disabled()) return;
|
|
95
|
+
let target = null;
|
|
96
|
+
if (event.key === "Enter") target = n;
|
|
97
|
+
else if (event.key === "Home") target = 1;
|
|
98
|
+
else if (event.key === "End") target = this._max();
|
|
99
|
+
if (target === null) return;
|
|
100
|
+
event.preventDefault();
|
|
101
|
+
this.onSelect(target);
|
|
102
|
+
this._host.nativeElement.querySelectorAll("input[type=\"radio\"]")[target - 1]?.focus();
|
|
103
|
+
}
|
|
104
|
+
onFocusOut(event) {
|
|
105
|
+
const next = event.relatedTarget;
|
|
106
|
+
if (next && event.currentTarget.contains(next)) return;
|
|
107
|
+
this._onTouched();
|
|
108
|
+
this._reveal.touched.set(true);
|
|
109
|
+
}
|
|
110
|
+
_check(value) {
|
|
111
|
+
if (this.disabled() || this.readonly()) return null;
|
|
112
|
+
if (value === 0) return this.required() ? requiredIssue(this.label()) : null;
|
|
113
|
+
if (!Number.isInteger(value) || value < 0 || value > this._max()) return {
|
|
114
|
+
key: "option",
|
|
115
|
+
message: uiText("common.selectValidOption")
|
|
116
|
+
};
|
|
117
|
+
return null;
|
|
118
|
+
}
|
|
119
|
+
static {
|
|
120
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
121
|
+
minVersion: "12.0.0",
|
|
122
|
+
version: "22.2.2",
|
|
123
|
+
ngImport: i0,
|
|
124
|
+
type: StarRatingComponent,
|
|
125
|
+
deps: [],
|
|
126
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
static {
|
|
130
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
131
|
+
minVersion: "17.0.0",
|
|
132
|
+
version: "22.2.2",
|
|
133
|
+
type: StarRatingComponent,
|
|
134
|
+
isStandalone: true,
|
|
135
|
+
selector: "ui-star-rating",
|
|
136
|
+
inputs: {
|
|
137
|
+
max: {
|
|
138
|
+
classPropertyName: "max",
|
|
139
|
+
publicName: "max",
|
|
140
|
+
isSignal: true,
|
|
141
|
+
isRequired: false,
|
|
142
|
+
transformFunction: null
|
|
143
|
+
},
|
|
144
|
+
value: {
|
|
145
|
+
classPropertyName: "value",
|
|
146
|
+
publicName: "value",
|
|
147
|
+
isSignal: true,
|
|
148
|
+
isRequired: false,
|
|
149
|
+
transformFunction: null
|
|
150
|
+
},
|
|
151
|
+
label: {
|
|
152
|
+
classPropertyName: "label",
|
|
153
|
+
publicName: "label",
|
|
154
|
+
isSignal: true,
|
|
155
|
+
isRequired: false,
|
|
156
|
+
transformFunction: null
|
|
157
|
+
},
|
|
158
|
+
ariaLabel: {
|
|
159
|
+
classPropertyName: "ariaLabel",
|
|
160
|
+
publicName: "ariaLabel",
|
|
161
|
+
isSignal: true,
|
|
162
|
+
isRequired: false,
|
|
163
|
+
transformFunction: null
|
|
164
|
+
},
|
|
165
|
+
hint: {
|
|
166
|
+
classPropertyName: "hint",
|
|
167
|
+
publicName: "hint",
|
|
168
|
+
isSignal: true,
|
|
169
|
+
isRequired: false,
|
|
170
|
+
transformFunction: null
|
|
171
|
+
},
|
|
172
|
+
error: {
|
|
173
|
+
classPropertyName: "error",
|
|
174
|
+
publicName: "error",
|
|
175
|
+
isSignal: true,
|
|
176
|
+
isRequired: false,
|
|
177
|
+
transformFunction: null
|
|
178
|
+
},
|
|
179
|
+
required: {
|
|
180
|
+
classPropertyName: "required",
|
|
181
|
+
publicName: "required",
|
|
182
|
+
isSignal: true,
|
|
183
|
+
isRequired: false,
|
|
184
|
+
transformFunction: null
|
|
185
|
+
},
|
|
186
|
+
showErrors: {
|
|
187
|
+
classPropertyName: "showErrors",
|
|
188
|
+
publicName: "showErrors",
|
|
189
|
+
isSignal: true,
|
|
190
|
+
isRequired: false,
|
|
191
|
+
transformFunction: null
|
|
192
|
+
},
|
|
193
|
+
size: {
|
|
194
|
+
classPropertyName: "size",
|
|
195
|
+
publicName: "size",
|
|
196
|
+
isSignal: true,
|
|
197
|
+
isRequired: false,
|
|
198
|
+
transformFunction: null
|
|
199
|
+
},
|
|
200
|
+
readonly: {
|
|
201
|
+
classPropertyName: "readonly",
|
|
202
|
+
publicName: "readonly",
|
|
203
|
+
isSignal: true,
|
|
204
|
+
isRequired: false,
|
|
205
|
+
transformFunction: null
|
|
206
|
+
},
|
|
207
|
+
name: {
|
|
208
|
+
classPropertyName: "name",
|
|
209
|
+
publicName: "name",
|
|
210
|
+
isSignal: true,
|
|
211
|
+
isRequired: false,
|
|
212
|
+
transformFunction: null
|
|
213
|
+
},
|
|
214
|
+
_disabledInput: {
|
|
215
|
+
classPropertyName: "_disabledInput",
|
|
216
|
+
publicName: "disabled",
|
|
217
|
+
isSignal: true,
|
|
218
|
+
isRequired: false,
|
|
219
|
+
transformFunction: null
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
outputs: {
|
|
223
|
+
valueChange: "valueChange",
|
|
224
|
+
invalidChange: "invalidChange"
|
|
225
|
+
},
|
|
226
|
+
providers: [
|
|
227
|
+
{
|
|
228
|
+
provide: NG_VALUE_ACCESSOR,
|
|
229
|
+
useExisting: forwardRef(() => StarRatingComponent),
|
|
230
|
+
multi: true
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
provide: NG_VALIDATORS,
|
|
234
|
+
useExisting: forwardRef(() => StarRatingComponent),
|
|
235
|
+
multi: true
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
provide: UiFieldValidity,
|
|
239
|
+
useExisting: forwardRef(() => StarRatingComponent)
|
|
240
|
+
}
|
|
241
|
+
],
|
|
242
|
+
usesOnChanges: true,
|
|
243
|
+
ngImport: i0,
|
|
244
|
+
template: `
|
|
245
|
+
@if (readonly()) {
|
|
246
|
+
<div class="sr-ro">
|
|
247
|
+
@if (label()) { <span class="sr-label sr-label-ro" aria-hidden="true">{{ label() }}</span> }
|
|
248
|
+
<span class="sr-stars" role="img" [attr.aria-label]="_readonlyText()">
|
|
249
|
+
@for (n of _stars(); track n) {
|
|
250
|
+
<svg class="sr-svg" [class.sr-on]="n <= _shown()" [attr.width]="size()" [attr.height]="size()" viewBox="0 0 20 20" aria-hidden="true" focusable="false"><path class="sr-shape" [attr.d]="_path" /></svg>
|
|
251
|
+
}
|
|
252
|
+
</span>
|
|
253
|
+
</div>
|
|
254
|
+
} @else {
|
|
255
|
+
<fieldset
|
|
256
|
+
class="sr-field"
|
|
257
|
+
role="radiogroup"
|
|
258
|
+
[class.sr-error]="_activeError()"
|
|
259
|
+
[class.sr-disabled]="disabled()"
|
|
260
|
+
[disabled]="disabled()"
|
|
261
|
+
[attr.aria-label]="label() ? null : (ariaLabel() || labels.t('starRating.rating'))"
|
|
262
|
+
[attr.aria-required]="required() ? 'true' : null"
|
|
263
|
+
[attr.aria-invalid]="_activeError() ? 'true' : null"
|
|
264
|
+
[attr.aria-describedby]="(_activeError() || hint()) ? _descId : null"
|
|
265
|
+
(focusout)="onFocusOut($event)">
|
|
266
|
+
@if (label()) {
|
|
267
|
+
<legend class="sr-label">
|
|
268
|
+
{{ label() }}
|
|
269
|
+
@if (required()) { <span class="sr-required" aria-hidden="true">*</span> }
|
|
270
|
+
</legend>
|
|
271
|
+
}
|
|
272
|
+
<div class="sr-stars">
|
|
273
|
+
@for (n of _stars(); track n) {
|
|
274
|
+
<label class="sr-star" [class.sr-disabled]="disabled()">
|
|
275
|
+
<input
|
|
276
|
+
type="radio"
|
|
277
|
+
class="sr-hidden"
|
|
278
|
+
[name]="_name"
|
|
279
|
+
[value]="n"
|
|
280
|
+
[checked]="_value() === n"
|
|
281
|
+
[disabled]="disabled()"
|
|
282
|
+
[attr.aria-label]="n === 1 ? labels.t('starRating.oneStar') : labels.t('starRating.nStars', { n })"
|
|
283
|
+
[attr.aria-invalid]="_activeError() ? 'true' : null"
|
|
284
|
+
(change)="onSelect(n)"
|
|
285
|
+
(keydown)="onKeydown($event, n)" />
|
|
286
|
+
<svg class="sr-svg" [class.sr-on]="n <= _shown()" [attr.width]="size()" [attr.height]="size()" viewBox="0 0 20 20" aria-hidden="true" focusable="false"><path class="sr-shape" [attr.d]="_path" /></svg>
|
|
287
|
+
</label>
|
|
288
|
+
}
|
|
289
|
+
</div>
|
|
290
|
+
@if (_activeError()) {
|
|
291
|
+
<p class="sr-desc sr-desc-error" [id]="_descId" role="alert">{{ _activeError() }}</p>
|
|
292
|
+
} @else if (hint()) {
|
|
293
|
+
<p class="sr-desc" [id]="_descId">{{ hint() }}</p>
|
|
294
|
+
}
|
|
295
|
+
</fieldset>
|
|
296
|
+
}
|
|
297
|
+
`,
|
|
298
|
+
isInline: true,
|
|
299
|
+
styles: [":host{display:block}.sr-field{display:flex;flex-direction:column;gap:6px;border:0;margin:0;padding:0;min-width:0}.sr-label{padding:0;margin-bottom:6px;font-size:.8125rem;font-weight:600;color:#374151;line-height:1}.sr-label-ro{display:block}.sr-required{color:#dc2626;margin-left:2px}.sr-ro{display:flex;flex-direction:column}.sr-stars{display:inline-flex;flex-wrap:nowrap;align-items:center;gap:2px}.sr-star{position:relative;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;border-radius:4px;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.sr-star.sr-disabled{cursor:not-allowed;opacity:.5}.sr-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.sr-hidden:focus-visible+.sr-svg{outline:2px solid #3b82f6;outline-offset:2px;border-radius:3px}.sr-svg{display:block}.sr-shape{fill:none;stroke:#7c8ba1;stroke-width:1.25;stroke-linejoin:round}.sr-on .sr-shape{fill:#f5b301;stroke:#a16207;stroke-width:.75}.sr-error .sr-svg:not(.sr-on) .sr-shape{stroke:#ef4444}.sr-field:not(.sr-disabled) .sr-star:hover .sr-shape{stroke:#a16207}@media(pointer:coarse),(max-width:480px){.sr-star{min-width:44px;min-height:44px}.sr-hidden{width:100%;height:100%;margin:0;clip:auto;overflow:visible;left:0;top:0;opacity:0;cursor:pointer;z-index:1}.sr-star.sr-disabled .sr-hidden{cursor:not-allowed}.sr-stars{gap:0}}.sr-desc{margin:0;font-size:.75rem;line-height:1.4;color:#64748b}.sr-desc-error{color:#dc2626}@media(forced-colors:active){.sr-shape{stroke:CanvasText}.sr-on .sr-shape{fill:Highlight;stroke:CanvasText}}@media(prefers-reduced-motion:no-preference){.sr-shape{transition:fill .1s,stroke .1s}}\n"],
|
|
300
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
};
|
|
304
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
305
|
+
minVersion: "12.0.0",
|
|
306
|
+
version: "22.2.2",
|
|
307
|
+
ngImport: i0,
|
|
308
|
+
type: StarRatingComponent,
|
|
309
|
+
decorators: [{
|
|
310
|
+
type: Component,
|
|
311
|
+
args: [{
|
|
312
|
+
selector: "ui-star-rating",
|
|
313
|
+
standalone: true,
|
|
314
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
315
|
+
providers: [
|
|
316
|
+
{
|
|
317
|
+
provide: NG_VALUE_ACCESSOR,
|
|
318
|
+
useExisting: forwardRef(() => StarRatingComponent),
|
|
319
|
+
multi: true
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
provide: NG_VALIDATORS,
|
|
323
|
+
useExisting: forwardRef(() => StarRatingComponent),
|
|
324
|
+
multi: true
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
provide: UiFieldValidity,
|
|
328
|
+
useExisting: forwardRef(() => StarRatingComponent)
|
|
329
|
+
}
|
|
330
|
+
],
|
|
331
|
+
template: `
|
|
332
|
+
@if (readonly()) {
|
|
333
|
+
<div class="sr-ro">
|
|
334
|
+
@if (label()) { <span class="sr-label sr-label-ro" aria-hidden="true">{{ label() }}</span> }
|
|
335
|
+
<span class="sr-stars" role="img" [attr.aria-label]="_readonlyText()">
|
|
336
|
+
@for (n of _stars(); track n) {
|
|
337
|
+
<svg class="sr-svg" [class.sr-on]="n <= _shown()" [attr.width]="size()" [attr.height]="size()" viewBox="0 0 20 20" aria-hidden="true" focusable="false"><path class="sr-shape" [attr.d]="_path" /></svg>
|
|
338
|
+
}
|
|
339
|
+
</span>
|
|
340
|
+
</div>
|
|
341
|
+
} @else {
|
|
342
|
+
<fieldset
|
|
343
|
+
class="sr-field"
|
|
344
|
+
role="radiogroup"
|
|
345
|
+
[class.sr-error]="_activeError()"
|
|
346
|
+
[class.sr-disabled]="disabled()"
|
|
347
|
+
[disabled]="disabled()"
|
|
348
|
+
[attr.aria-label]="label() ? null : (ariaLabel() || labels.t('starRating.rating'))"
|
|
349
|
+
[attr.aria-required]="required() ? 'true' : null"
|
|
350
|
+
[attr.aria-invalid]="_activeError() ? 'true' : null"
|
|
351
|
+
[attr.aria-describedby]="(_activeError() || hint()) ? _descId : null"
|
|
352
|
+
(focusout)="onFocusOut($event)">
|
|
353
|
+
@if (label()) {
|
|
354
|
+
<legend class="sr-label">
|
|
355
|
+
{{ label() }}
|
|
356
|
+
@if (required()) { <span class="sr-required" aria-hidden="true">*</span> }
|
|
357
|
+
</legend>
|
|
358
|
+
}
|
|
359
|
+
<div class="sr-stars">
|
|
360
|
+
@for (n of _stars(); track n) {
|
|
361
|
+
<label class="sr-star" [class.sr-disabled]="disabled()">
|
|
362
|
+
<input
|
|
363
|
+
type="radio"
|
|
364
|
+
class="sr-hidden"
|
|
365
|
+
[name]="_name"
|
|
366
|
+
[value]="n"
|
|
367
|
+
[checked]="_value() === n"
|
|
368
|
+
[disabled]="disabled()"
|
|
369
|
+
[attr.aria-label]="n === 1 ? labels.t('starRating.oneStar') : labels.t('starRating.nStars', { n })"
|
|
370
|
+
[attr.aria-invalid]="_activeError() ? 'true' : null"
|
|
371
|
+
(change)="onSelect(n)"
|
|
372
|
+
(keydown)="onKeydown($event, n)" />
|
|
373
|
+
<svg class="sr-svg" [class.sr-on]="n <= _shown()" [attr.width]="size()" [attr.height]="size()" viewBox="0 0 20 20" aria-hidden="true" focusable="false"><path class="sr-shape" [attr.d]="_path" /></svg>
|
|
374
|
+
</label>
|
|
375
|
+
}
|
|
376
|
+
</div>
|
|
377
|
+
@if (_activeError()) {
|
|
378
|
+
<p class="sr-desc sr-desc-error" [id]="_descId" role="alert">{{ _activeError() }}</p>
|
|
379
|
+
} @else if (hint()) {
|
|
380
|
+
<p class="sr-desc" [id]="_descId">{{ hint() }}</p>
|
|
381
|
+
}
|
|
382
|
+
</fieldset>
|
|
383
|
+
}
|
|
384
|
+
`,
|
|
385
|
+
styles: [":host{display:block}.sr-field{display:flex;flex-direction:column;gap:6px;border:0;margin:0;padding:0;min-width:0}.sr-label{padding:0;margin-bottom:6px;font-size:.8125rem;font-weight:600;color:#374151;line-height:1}.sr-label-ro{display:block}.sr-required{color:#dc2626;margin-left:2px}.sr-ro{display:flex;flex-direction:column}.sr-stars{display:inline-flex;flex-wrap:nowrap;align-items:center;gap:2px}.sr-star{position:relative;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;border-radius:4px;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.sr-star.sr-disabled{cursor:not-allowed;opacity:.5}.sr-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.sr-hidden:focus-visible+.sr-svg{outline:2px solid #3b82f6;outline-offset:2px;border-radius:3px}.sr-svg{display:block}.sr-shape{fill:none;stroke:#7c8ba1;stroke-width:1.25;stroke-linejoin:round}.sr-on .sr-shape{fill:#f5b301;stroke:#a16207;stroke-width:.75}.sr-error .sr-svg:not(.sr-on) .sr-shape{stroke:#ef4444}.sr-field:not(.sr-disabled) .sr-star:hover .sr-shape{stroke:#a16207}@media(pointer:coarse),(max-width:480px){.sr-star{min-width:44px;min-height:44px}.sr-hidden{width:100%;height:100%;margin:0;clip:auto;overflow:visible;left:0;top:0;opacity:0;cursor:pointer;z-index:1}.sr-star.sr-disabled .sr-hidden{cursor:not-allowed}.sr-stars{gap:0}}.sr-desc{margin:0;font-size:.75rem;line-height:1.4;color:#64748b}.sr-desc-error{color:#dc2626}@media(forced-colors:active){.sr-shape{stroke:CanvasText}.sr-on .sr-shape{fill:Highlight;stroke:CanvasText}}@media(prefers-reduced-motion:no-preference){.sr-shape{transition:fill .1s,stroke .1s}}\n"]
|
|
386
|
+
}]
|
|
387
|
+
}],
|
|
388
|
+
ctorParameters: () => [],
|
|
389
|
+
propDecorators: {
|
|
390
|
+
max: [{
|
|
391
|
+
type: i0.Input,
|
|
392
|
+
args: [{
|
|
393
|
+
isSignal: true,
|
|
394
|
+
alias: "max",
|
|
395
|
+
required: false
|
|
396
|
+
}]
|
|
397
|
+
}],
|
|
398
|
+
value: [{
|
|
399
|
+
type: i0.Input,
|
|
400
|
+
args: [{
|
|
401
|
+
isSignal: true,
|
|
402
|
+
alias: "value",
|
|
403
|
+
required: false
|
|
404
|
+
}]
|
|
405
|
+
}],
|
|
406
|
+
label: [{
|
|
407
|
+
type: i0.Input,
|
|
408
|
+
args: [{
|
|
409
|
+
isSignal: true,
|
|
410
|
+
alias: "label",
|
|
411
|
+
required: false
|
|
412
|
+
}]
|
|
413
|
+
}],
|
|
414
|
+
ariaLabel: [{
|
|
415
|
+
type: i0.Input,
|
|
416
|
+
args: [{
|
|
417
|
+
isSignal: true,
|
|
418
|
+
alias: "ariaLabel",
|
|
419
|
+
required: false
|
|
420
|
+
}]
|
|
421
|
+
}],
|
|
422
|
+
hint: [{
|
|
423
|
+
type: i0.Input,
|
|
424
|
+
args: [{
|
|
425
|
+
isSignal: true,
|
|
426
|
+
alias: "hint",
|
|
427
|
+
required: false
|
|
428
|
+
}]
|
|
429
|
+
}],
|
|
430
|
+
error: [{
|
|
431
|
+
type: i0.Input,
|
|
432
|
+
args: [{
|
|
433
|
+
isSignal: true,
|
|
434
|
+
alias: "error",
|
|
435
|
+
required: false
|
|
436
|
+
}]
|
|
437
|
+
}],
|
|
438
|
+
required: [{
|
|
439
|
+
type: i0.Input,
|
|
440
|
+
args: [{
|
|
441
|
+
isSignal: true,
|
|
442
|
+
alias: "required",
|
|
443
|
+
required: false
|
|
444
|
+
}]
|
|
445
|
+
}],
|
|
446
|
+
showErrors: [{
|
|
447
|
+
type: i0.Input,
|
|
448
|
+
args: [{
|
|
449
|
+
isSignal: true,
|
|
450
|
+
alias: "showErrors",
|
|
451
|
+
required: false
|
|
452
|
+
}]
|
|
453
|
+
}],
|
|
454
|
+
size: [{
|
|
455
|
+
type: i0.Input,
|
|
456
|
+
args: [{
|
|
457
|
+
isSignal: true,
|
|
458
|
+
alias: "size",
|
|
459
|
+
required: false
|
|
460
|
+
}]
|
|
461
|
+
}],
|
|
462
|
+
readonly: [{
|
|
463
|
+
type: i0.Input,
|
|
464
|
+
args: [{
|
|
465
|
+
isSignal: true,
|
|
466
|
+
alias: "readonly",
|
|
467
|
+
required: false
|
|
468
|
+
}]
|
|
469
|
+
}],
|
|
470
|
+
name: [{
|
|
471
|
+
type: i0.Input,
|
|
472
|
+
args: [{
|
|
473
|
+
isSignal: true,
|
|
474
|
+
alias: "name",
|
|
475
|
+
required: false
|
|
476
|
+
}]
|
|
477
|
+
}],
|
|
478
|
+
_disabledInput: [{
|
|
479
|
+
type: i0.Input,
|
|
480
|
+
args: [{
|
|
481
|
+
isSignal: true,
|
|
482
|
+
alias: "disabled",
|
|
483
|
+
required: false
|
|
484
|
+
}]
|
|
485
|
+
}],
|
|
486
|
+
valueChange: [{
|
|
487
|
+
type: i0.Output,
|
|
488
|
+
args: ["valueChange"]
|
|
489
|
+
}],
|
|
490
|
+
invalidChange: [{
|
|
491
|
+
type: i0.Output,
|
|
492
|
+
args: ["invalidChange"]
|
|
493
|
+
}]
|
|
494
|
+
}
|
|
495
|
+
});
|
|
496
|
+
export { StarRatingComponent };
|
|
497
|
+
|
|
498
|
+
//# sourceMappingURL=forgeroute-ui-star-rating.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forgeroute-ui-star-rating.mjs","names":[],"sources":["../../../projects/forgeroute-ui/star-rating/src/lib/star-rating/star-rating.component.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, ElementRef, inject, input, output, signal, computed, effect, forwardRef, linkedSignal } from '@angular/core';\nimport { AbstractControl, ControlValueAccessor, NG_VALIDATORS, NG_VALUE_ACCESSOR, ValidationErrors, Validator } from '@angular/forms';\nimport { FieldIssue, UiFieldValidity, createFieldReveal, issueToErrors, requiredIssue } from '@forgeroute/ui/core';\nimport { uiText } from '@forgeroute/ui/core';\nimport { UiLabelsService } from '@forgeroute/ui/core';\n\n/**\n * Library source 2026-11-05, not yet published.\n *\n * Accessible star rating, 1..`max` (default 5). A ControlValueAccessor with a number value (`0` = no rating).\n *\n * - Input mode (default): a `<fieldset role=\"radiogroup\">` (+ `<legend>` = `label`) of native radio inputs that share one `name`, so the browser\n * gives the roving tab stop and ArrowLeft / ArrowRight / ArrowUp / ArrowDown (move + select) for free; Space selects the focused star natively,\n * Enter selects it too and Home / End select the first / last star (handled here). Each radio is named \"1 star\", \"2 stars\", ...\n * - `readonly`: all `max` stars are drawn (filled up to the value, the rest outlined) as one `role=\"img\"` named \"4 stars out of 5\" (\"No rating\" for 0; with a `label`: \"Quality: 4 stars out of 5\"). No inputs.\n * - Validation follows `ui-radio-group` (`UiFieldValidity`, `Validator`, `invalidChange`): `required` -> \"<label> is required.\" when the value is 0;\n * a value that is not a whole number from 0 to `max` -> \"Select a valid option.\"; messages (built-in and a host `[error]`) show only after the group lost focus (`[showErrors]=\"true\"` also reveals it on an untouched group);\n * a host `[error]` wins. Disabled and readonly are never invalid.\n * - Stars are gold (same look as `ui-star`, with a darker amber outline so the shape reaches 3:1 against white); empty stars are outlined, so the value never relies on colour alone. 44px touch targets on touch / phones.\n *\n * <ui-star-rating label=\"Quality\" [required]=\"true\" [showErrors]=\"touched()\" [(ngModel)]=\"form.rating\" />\n * <ui-star-rating [readonly]=\"true\" [value]=\"4\" />\n */\n@Component({\n selector: 'ui-star-rating',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => StarRatingComponent),\n multi: true,\n }, {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => StarRatingComponent),\n multi: true,\n }, {\n provide: UiFieldValidity,\n useExisting: forwardRef(() => StarRatingComponent),\n }],\n template: `\n @if (readonly()) {\n <div class=\"sr-ro\">\n @if (label()) { <span class=\"sr-label sr-label-ro\" aria-hidden=\"true\">{{ label() }}</span> }\n <span class=\"sr-stars\" role=\"img\" [attr.aria-label]=\"_readonlyText()\">\n @for (n of _stars(); track n) {\n <svg class=\"sr-svg\" [class.sr-on]=\"n <= _shown()\" [attr.width]=\"size()\" [attr.height]=\"size()\" viewBox=\"0 0 20 20\" aria-hidden=\"true\" focusable=\"false\"><path class=\"sr-shape\" [attr.d]=\"_path\" /></svg>\n }\n </span>\n </div>\n } @else {\n <fieldset\n class=\"sr-field\"\n role=\"radiogroup\"\n [class.sr-error]=\"_activeError()\"\n [class.sr-disabled]=\"disabled()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"label() ? null : (ariaLabel() || labels.t('starRating.rating'))\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"_activeError() ? 'true' : null\"\n [attr.aria-describedby]=\"(_activeError() || hint()) ? _descId : null\"\n (focusout)=\"onFocusOut($event)\">\n @if (label()) {\n <legend class=\"sr-label\">\n {{ label() }}\n @if (required()) { <span class=\"sr-required\" aria-hidden=\"true\">*</span> }\n </legend>\n }\n <div class=\"sr-stars\">\n @for (n of _stars(); track n) {\n <label class=\"sr-star\" [class.sr-disabled]=\"disabled()\">\n <input\n type=\"radio\"\n class=\"sr-hidden\"\n [name]=\"_name\"\n [value]=\"n\"\n [checked]=\"_value() === n\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"n === 1 ? labels.t('starRating.oneStar') : labels.t('starRating.nStars', { n })\"\n [attr.aria-invalid]=\"_activeError() ? 'true' : null\"\n (change)=\"onSelect(n)\"\n (keydown)=\"onKeydown($event, n)\" />\n <svg class=\"sr-svg\" [class.sr-on]=\"n <= _shown()\" [attr.width]=\"size()\" [attr.height]=\"size()\" viewBox=\"0 0 20 20\" aria-hidden=\"true\" focusable=\"false\"><path class=\"sr-shape\" [attr.d]=\"_path\" /></svg>\n </label>\n }\n </div>\n @if (_activeError()) {\n <p class=\"sr-desc sr-desc-error\" [id]=\"_descId\" role=\"alert\">{{ _activeError() }}</p>\n } @else if (hint()) {\n <p class=\"sr-desc\" [id]=\"_descId\">{{ hint() }}</p>\n }\n </fieldset>\n }\n `,\n styles: [`\n :host { display: block; }\n\n .sr-field { display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }\n .sr-label { padding: 0; margin-bottom: 6px; font-size: 0.8125rem; font-weight: 600; color: #374151; line-height: 1; }\n .sr-label-ro { display: block; }\n .sr-required { color: #dc2626; margin-left: 2px; }\n .sr-ro { display: flex; flex-direction: column; }\n\n .sr-stars { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 2px; }\n .sr-star {\n position: relative; display: inline-flex; align-items: center; justify-content: center;\n cursor: pointer; border-radius: 4px; -webkit-user-select: none; user-select: none;\n -webkit-tap-highlight-color: transparent;\n }\n .sr-star.sr-disabled { cursor: not-allowed; opacity: 0.5; }\n\n .sr-hidden {\n position: absolute; width: 1px; height: 1px;\n margin: -1px; padding: 0; overflow: hidden;\n clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;\n }\n .sr-hidden:focus-visible + .sr-svg { outline: 2px solid #3b82f6; outline-offset: 2px; border-radius: 3px; }\n\n .sr-svg { display: block; }\n /* Non-text contrast (WCAG 1.4.11, >= 3:1 against the white page): empty outline #7c8ba1 = 3.46:1 (same as ui-radio); filled star outline #a16207 = 4.92:1\n around the #f5b301 gold fill (the fill itself is 1.85:1, so the outline is what carries the shape; filled vs empty also differs by fill, not colour alone). */\n .sr-shape { fill: none; stroke: #7c8ba1; stroke-width: 1.25; stroke-linejoin: round; }\n .sr-on .sr-shape { fill: #f5b301; stroke: #a16207; stroke-width: 0.75; }\n .sr-error .sr-svg:not(.sr-on) .sr-shape { stroke: #ef4444; }\n .sr-field:not(.sr-disabled) .sr-star:hover .sr-shape { stroke: #a16207; }\n\n /* Touch targets: the real input becomes a transparent 44px square centred on the star (desktop unchanged). */\n @media (pointer: coarse), (max-width: 480px) {\n .sr-star { min-width: 44px; min-height: 44px; }\n .sr-hidden {\n width: 100%; height: 100%; margin: 0; clip: auto; overflow: visible;\n left: 0; top: 0; opacity: 0; cursor: pointer; z-index: 1;\n }\n .sr-star.sr-disabled .sr-hidden { cursor: not-allowed; }\n .sr-stars { gap: 0; }\n }\n\n .sr-desc { margin: 0; font-size: 0.75rem; line-height: 1.4; color: #64748b; }\n .sr-desc-error { color: #dc2626; }\n\n @media (forced-colors: active) {\n .sr-shape { stroke: CanvasText; }\n .sr-on .sr-shape { fill: Highlight; stroke: CanvasText; }\n }\n @media (prefers-reduced-motion: no-preference) { .sr-shape { transition: fill 0.1s, stroke 0.1s; } }\n `],\n})\nexport class StarRatingComponent implements ControlValueAccessor, Validator, UiFieldValidity {\n protected readonly labels = inject(UiLabelsService);\n /** Largest rating (number of stars). Default 5; values below 1 or non-integers are clamped to a whole number of at least 1. */\n readonly max = input(5);\n /** Current rating for standalone / readonly use (`[value]=\"4\"`); `0` = none. With forms, the control value wins after it is written. */\n readonly value = input(0);\n readonly label = input('');\n /** Accessible name when there is no visible `label` (default \"Rating\"). */\n readonly ariaLabel = input('');\n readonly hint = input('');\n readonly error = input('');\n readonly required = input(false);\n /** The host's \"tried to submit\" flag (e.g. after a failed Save click). `true` reveals the message of an untouched field at once (the field also shows it after the user left THIS field); switching it from true back to false forgets that the field was left. */\n readonly showErrors = input(false);\n /** Star size in px (default 24). */\n readonly size = input(24);\n /** Display only: filled stars as one image named \"4 stars out of 5\"; no inputs, never invalid. */\n readonly readonly = input(false);\n /** Native `name` shared by the radios; a unique one is generated when omitted. */\n readonly name = input('');\n\n readonly _disabledInput = input(false, { alias: 'disabled' });\n private readonly _cvaDisabled = signal(false);\n protected readonly disabled = computed(() => this._disabledInput() || this._cvaDisabled());\n\n /** Emits the new rating when the USER picks a star (not for values the host writes). */\n readonly valueChange = output<number>();\n /** Emits whenever the field becomes invalid / valid. */\n readonly invalidChange = output<boolean>();\n\n protected readonly _value = linkedSignal(() => StarRatingComponent._norm(this.value()));\n protected readonly _max = computed(() => {\n const m = Math.floor(Number(this.max()));\n return Number.isFinite(m) && m >= 1 ? m : 1;\n });\n protected readonly _stars = computed(() => Array.from({ length: this._max() }, (_, i) => i + 1));\n /** Stars drawn filled: the value, kept inside 0..max (an invalid value never overflows the row). */\n protected readonly _shown = computed(() => Math.min(Math.max(Math.floor(this._value()), 0), this._max()));\n protected readonly _readonlyText = computed(() => {\n const n = this._shown();\n const text = n === 0 ? uiText('starRating.noRating') : uiText(n === 1 ? 'starRating.starsOutOf_one' : 'starRating.starsOutOf_other', { count: n, max: this._max() });\n return this.label() ? `${this.label()}: ${text}` : text;\n });\n protected readonly _path = 'M10 1.5l2.6 5.3 5.9.9-4.25 4.15 1 5.85L10 14.9l-5.25 2.8 1-5.85L1.5 7.7l5.9-.9L10 1.5z';\n\n private readonly _generatedName = `sr-${Math.random().toString(36).slice(2, 8)}`;\n protected get _name(): string { return this.name() || this._generatedName; }\n protected readonly _descId = `${this._generatedName}-desc`;\n private readonly _host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n private readonly _reveal = createFieldReveal(this.showErrors);\n private readonly _issue = computed(() => this._check(this._value()));\n /** True while the value breaks a built-in rule or the host passed an `[error]`. */\n readonly invalid = computed(() => !!this.error() || !!this._issue());\n /** Message of the first broken built-in rule ('' when valid), shown or not. */\n readonly errorMessage = computed(() => this._issue()?.message ?? '');\n protected readonly _activeError = computed(() => this._reveal.revealed() ? (this.error() || this.errorMessage()) : '');\n private _onValidatorChange = () => {};\n\n constructor() {\n effect(() => { this.invalidChange.emit(this.invalid()); });\n }\n\n /** Re-run the form control's validation when a rule input (required, max) changes. */\n ngOnChanges() { this._onValidatorChange(); }\n\n validate(control: AbstractControl): ValidationErrors | null {\n return issueToErrors(this._check(StarRatingComponent._norm(control.value)));\n }\n registerOnValidatorChange(fn: () => void) { this._onValidatorChange = fn; }\n\n private _onChange = (_: number) => {};\n private _onTouched = () => {};\n\n writeValue(val: number | null) { this._value.set(StarRatingComponent._norm(val)); }\n registerOnChange(fn: (v: number) => void) { this._onChange = fn; }\n registerOnTouched(fn: () => void) { this._onTouched = fn; }\n setDisabledState(d: boolean) { this._cvaDisabled.set(d); }\n\n private static _norm(v: unknown): number {\n if (v === null || v === undefined || v === '') return 0;\n const n = Number(v);\n return Number.isFinite(n) ? n : 0;\n }\n\n protected onSelect(n: number) {\n if (this.disabled()) return;\n this._value.set(n);\n this._onChange(n);\n this.valueChange.emit(n);\n }\n\n /** Enter selects the focused star (Space and the arrow keys are native radio behaviour); Home / End select the first / last star. */\n protected onKeydown(event: KeyboardEvent, n: number) {\n if (this.disabled()) return;\n let target: number | null = null;\n if (event.key === 'Enter') target = n;\n else if (event.key === 'Home') target = 1;\n else if (event.key === 'End') target = this._max();\n if (target === null) return;\n event.preventDefault();\n this.onSelect(target);\n const inputs = this._host.nativeElement.querySelectorAll<HTMLInputElement>('input[type=\"radio\"]');\n inputs[target - 1]?.focus();\n }\n\n /** Touched once focus leaves the whole group (moving between its stars does not count). */\n protected onFocusOut(event: FocusEvent) {\n const next = event.relatedTarget as Node | null;\n if (next && (event.currentTarget as HTMLElement).contains(next)) return;\n this._onTouched();\n this._reveal.touched.set(true);\n }\n\n private _check(value: number): FieldIssue | null {\n if (this.disabled() || this.readonly()) return null;\n if (value === 0) return this.required() ? requiredIssue(this.label()) : null;\n if (!Number.isInteger(value) || value < 0 || value > this._max()) return { key: 'option', message: uiText('common.selectValidOption') };\n return null;\n }\n}\n"],"mappings":";;;;AAkJA,IAAa,sBAAb,MAAa,oBAAmB;CA8C9B,IAAc,QAAK;EAAa,OAAO,KAAK,KAAI,KAAM,KAAK;CAAgB;CAa3E,cAAA;EA1DmB,KAAA,SAAS,OAAO,eAAe;EAEzC,KAAA,MAAM,MAAM,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,MAAA,CAAA,+BAAA,CAAA,CAAA;EAEd,KAAA,QAAQ,MAAM,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EAChB,KAAA,QAAQ,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EAEjB,KAAA,YAAY,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;EACrB,KAAA,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