@forgeroute/ui 0.5.16 → 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 +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 +14 -1
- 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 +6 -1
- 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 +4 -1
- 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 +3 -1
- 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 +3 -1
- 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,999 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, DestroyRef, computed, effect, forwardRef, inject, input, output, signal, viewChild } from "@angular/core";
|
|
3
|
+
import { NG_VALIDATORS, NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
4
|
+
import { ImagePreviewComponent } from "@forgeroute/ui/image-preview";
|
|
5
|
+
import { SkeletonComponent } from "@forgeroute/ui/skeleton";
|
|
6
|
+
import { ToastService, UiFieldValidity, UiLabelsService, createFieldReveal, issueToErrors, mergeDescribedBy, requiredIssue, uiFormatNumber, uiLocale, uiText } from "@forgeroute/ui/core";
|
|
7
|
+
function formatFileSize(bytes) {
|
|
8
|
+
if (bytes < 1024) return `${bytes} B`;
|
|
9
|
+
if (bytes < 1048576) return `${Math.round(bytes / 1024)} KB`;
|
|
10
|
+
const mb = bytes / 1048576;
|
|
11
|
+
const one = (n) => uiFormatNumber(Number(n.toFixed(1)), uiLocale(), { maximumFractionDigits: 1 });
|
|
12
|
+
return mb < 1024 ? `${one(mb)} MB` : `${one(mb / 1024)} GB`;
|
|
13
|
+
}
|
|
14
|
+
function formatAttachmentSize(bytes) {
|
|
15
|
+
if (bytes < 1048576) return `${Math.round(bytes / 1024)} KB`;
|
|
16
|
+
const mb = Number((bytes / 1048576).toFixed(1));
|
|
17
|
+
return `${uiFormatNumber(mb, uiLocale(), {
|
|
18
|
+
minimumFractionDigits: 1,
|
|
19
|
+
maximumFractionDigits: 1
|
|
20
|
+
})} MB`;
|
|
21
|
+
}
|
|
22
|
+
function fileMatchesAccept(file, accept) {
|
|
23
|
+
const tokens = accept.split(",").map((t) => t.trim().toLowerCase()).filter(Boolean);
|
|
24
|
+
if (tokens.length === 0) return true;
|
|
25
|
+
const name = file.name.toLowerCase();
|
|
26
|
+
const type = (file.type || "").toLowerCase();
|
|
27
|
+
return tokens.some((t) => {
|
|
28
|
+
if (t.startsWith(".")) return name.endsWith(t);
|
|
29
|
+
if (t.endsWith("/*")) return !!type && type.startsWith(t.slice(0, -1));
|
|
30
|
+
return !!type && type === t;
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function acceptLabel(accept) {
|
|
34
|
+
const names = accept.split(",").map((t) => t.trim()).filter(Boolean).map((t) => {
|
|
35
|
+
if (t.startsWith(".")) return t.slice(1).toUpperCase();
|
|
36
|
+
if (t.endsWith("/*")) {
|
|
37
|
+
const kind = t.slice(0, -2);
|
|
38
|
+
return kind === "image" ? uiText("fileInput.word.image") : kind === "video" ? uiText("fileInput.word.video") : kind === "audio" ? uiText("fileInput.word.audio") : kind;
|
|
39
|
+
}
|
|
40
|
+
return (t.split("/")[1] ?? t).toUpperCase();
|
|
41
|
+
});
|
|
42
|
+
const unique = [...new Set(names)];
|
|
43
|
+
if (unique.length <= 1) return unique[0] ?? "";
|
|
44
|
+
const last = unique[unique.length - 1];
|
|
45
|
+
const iSound = /^(?:i|hi(?!e))/i.test(last.normalize("NFD").replace(/[\u0300-\u036f]/g, ""));
|
|
46
|
+
return uiText(iSound ? "common.listAndBeforeI" : "common.listAnd", {
|
|
47
|
+
list: unique.slice(0, -1).join(", "),
|
|
48
|
+
last
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
var FileInputComponent = class FileInputComponent {
|
|
52
|
+
constructor() {
|
|
53
|
+
this.labels = inject(UiLabelsService);
|
|
54
|
+
this.label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
55
|
+
this.ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
56
|
+
this.placeholderInput = input(null, {
|
|
57
|
+
...ngDevMode ? { debugName: "placeholderInput" } : /* istanbul ignore next */ {},
|
|
58
|
+
alias: "placeholder"
|
|
59
|
+
});
|
|
60
|
+
this.placeholder = computed(() => this.placeholderInput() ?? this.labels.t("fileInput.placeholder"), ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
61
|
+
this.buttonLabelInput = input(null, {
|
|
62
|
+
...ngDevMode ? { debugName: "buttonLabelInput" } : /* istanbul ignore next */ {},
|
|
63
|
+
alias: "buttonLabel"
|
|
64
|
+
});
|
|
65
|
+
this.buttonLabel = computed(() => this.buttonLabelInput() ?? this.labels.t("fileInput.buttonLabel"), ...ngDevMode ? [{ debugName: "buttonLabel" }] : /* istanbul ignore next */ []);
|
|
66
|
+
this.accept = input("", ...ngDevMode ? [{ debugName: "accept" }] : /* istanbul ignore next */ []);
|
|
67
|
+
this.multiple = input(false, ...ngDevMode ? [{ debugName: "multiple" }] : /* istanbul ignore next */ []);
|
|
68
|
+
this.required = input(false, ...ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []);
|
|
69
|
+
this.hint = input("", ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
|
|
70
|
+
this.error = input("", ...ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []);
|
|
71
|
+
this.showField = input(true, ...ngDevMode ? [{ debugName: "showField" }] : /* istanbul ignore next */ []);
|
|
72
|
+
this.showErrors = input(false, ...ngDevMode ? [{ debugName: "showErrors" }] : /* istanbul ignore next */ []);
|
|
73
|
+
this.toastOnReject = input(false, ...ngDevMode ? [{ debugName: "toastOnReject" }] : /* istanbul ignore next */ []);
|
|
74
|
+
this.listRejections = input(false, ...ngDevMode ? [{ debugName: "listRejections" }] : /* istanbul ignore next */ []);
|
|
75
|
+
this.ariaDescribedBy = input("", ...ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
|
|
76
|
+
this.clearable = input(false, ...ngDevMode ? [{ debugName: "clearable" }] : /* istanbul ignore next */ []);
|
|
77
|
+
this.removeLabelInput = input(null, {
|
|
78
|
+
...ngDevMode ? { debugName: "removeLabelInput" } : /* istanbul ignore next */ {},
|
|
79
|
+
alias: "removeLabel"
|
|
80
|
+
});
|
|
81
|
+
this.removeLabel = computed(() => this.removeLabelInput() ?? this.labels.t("fileInput.removeLabel"), ...ngDevMode ? [{ debugName: "removeLabel" }] : /* istanbul ignore next */ []);
|
|
82
|
+
this.maxSize = input(null, ...ngDevMode ? [{ debugName: "maxSize" }] : /* istanbul ignore next */ []);
|
|
83
|
+
this.enforceAccept = input(true, ...ngDevMode ? [{ debugName: "enforceAccept" }] : /* istanbul ignore next */ []);
|
|
84
|
+
this.typeMessage = input("", ...ngDevMode ? [{ debugName: "typeMessage" }] : /* istanbul ignore next */ []);
|
|
85
|
+
this.sizeMessage = input("", ...ngDevMode ? [{ debugName: "sizeMessage" }] : /* istanbul ignore next */ []);
|
|
86
|
+
this.rejectEmpty = input(false, ...ngDevMode ? [{ debugName: "rejectEmpty" }] : /* istanbul ignore next */ []);
|
|
87
|
+
this.emptyMessage = input("", ...ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []);
|
|
88
|
+
this.minSize = input(null, ...ngDevMode ? [{ debugName: "minSize" }] : /* istanbul ignore next */ []);
|
|
89
|
+
this.minSizeMessage = input("", ...ngDevMode ? [{ debugName: "minSizeMessage" }] : /* istanbul ignore next */ []);
|
|
90
|
+
this.dropzone = input(false, ...ngDevMode ? [{ debugName: "dropzone" }] : /* istanbul ignore next */ []);
|
|
91
|
+
this.showDetails = input(false, ...ngDevMode ? [{ debugName: "showDetails" }] : /* istanbul ignore next */ []);
|
|
92
|
+
this.preview = input(false, ...ngDevMode ? [{ debugName: "preview" }] : /* istanbul ignore next */ []);
|
|
93
|
+
this.loading = input(false, ...ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []);
|
|
94
|
+
this.loadingText = input("", ...ngDevMode ? [{ debugName: "loadingText" }] : /* istanbul ignore next */ []);
|
|
95
|
+
this.filesSelected = output();
|
|
96
|
+
this.fileRejected = output();
|
|
97
|
+
this.filesRejected = output();
|
|
98
|
+
this.fileRemoved = output();
|
|
99
|
+
this.invalidChange = output();
|
|
100
|
+
this._disabledInput = input(false, {
|
|
101
|
+
...ngDevMode ? { debugName: "_disabledInput" } : /* istanbul ignore next */ {},
|
|
102
|
+
alias: "disabled"
|
|
103
|
+
});
|
|
104
|
+
this._cvaDisabled = signal(false, ...ngDevMode ? [{ debugName: "_cvaDisabled" }] : /* istanbul ignore next */ []);
|
|
105
|
+
this.disabled = computed(() => this._disabledInput() || this._cvaDisabled(), ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
|
|
106
|
+
this._files = signal([], ...ngDevMode ? [{ debugName: "_files" }] : /* istanbul ignore next */ []);
|
|
107
|
+
this._inputId = `fi-${Math.random().toString(36).slice(2, 8)}`;
|
|
108
|
+
this.fileEl = viewChild("fileEl", ...ngDevMode ? [{ debugName: "fileEl" }] : /* istanbul ignore next */ []);
|
|
109
|
+
this._dragging = signal(false, ...ngDevMode ? [{ debugName: "_dragging" }] : /* istanbul ignore next */ []);
|
|
110
|
+
this._toast = inject(ToastService);
|
|
111
|
+
this._rejection = signal("", ...ngDevMode ? [{ debugName: "_rejection" }] : /* istanbul ignore next */ []);
|
|
112
|
+
this._describedBy = computed(() => mergeDescribedBy(this._shownError() ? this._inputId + "-desc" : "", this.ariaDescribedBy()), ...ngDevMode ? [{ debugName: "_describedBy" }] : /* istanbul ignore next */ []);
|
|
113
|
+
this._rejected = signal([], ...ngDevMode ? [{ debugName: "_rejected" }] : /* istanbul ignore next */ []);
|
|
114
|
+
this.rejections = this._rejected.asReadonly();
|
|
115
|
+
this.rejectionLines = computed(() => this._rejected().map((r) => this.labels.t("fileInput.notAdded", {
|
|
116
|
+
name: r.file.name,
|
|
117
|
+
message: r.message
|
|
118
|
+
})), ...ngDevMode ? [{ debugName: "rejectionLines" }] : /* istanbul ignore next */ []);
|
|
119
|
+
this._showRejectList = computed(() => this.listRejections() && this._rejected().length > 0 && !(this.showField() && this.error()), ...ngDevMode ? [{ debugName: "_showRejectList" }] : /* istanbul ignore next */ []);
|
|
120
|
+
this._reveal = createFieldReveal(this.showErrors);
|
|
121
|
+
this._issue = computed(() => this.disabled() || !this.required() || this._files().length > 0 ? null : requiredIssue(this.label() || this.labels.t("common.file")), ...ngDevMode ? [{ debugName: "_issue" }] : /* istanbul ignore next */ []);
|
|
122
|
+
this.invalid = computed(() => !!this.error() || !!this._rejection() || !!this._issue(), ...ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []);
|
|
123
|
+
this.errorMessage = computed(() => (this.listRejections() && this._rejected().length > 0 ? this.rejectionLines().join(" ") : this._rejection()) || this._issue()?.message || "", ...ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []);
|
|
124
|
+
this._shownError = computed(() => (this.listRejections() && this._rejected().length > 0 && this.showField() ? this.error() : "") || this._rejection() || (this._reveal.revealed() ? (this.showField() ? this.error() : "") || (this._issue()?.message ?? "") : ""), ...ngDevMode ? [{ debugName: "_shownError" }] : /* istanbul ignore next */ []);
|
|
125
|
+
this.summary = computed(() => {
|
|
126
|
+
const f = this._files();
|
|
127
|
+
if (f.length === 0) return "";
|
|
128
|
+
const size = this.showDetails() ? ` · ${formatFileSize(f.reduce((n, x) => n + x.size, 0))}` : "";
|
|
129
|
+
return (f.length === 1 ? f[0].name : this.labels.t("fileInput.filesSelected", { count: f.length })) + size;
|
|
130
|
+
}, ...ngDevMode ? [{ debugName: "summary" }] : /* istanbul ignore next */ []);
|
|
131
|
+
this._previewUrl = signal(null, ...ngDevMode ? [{ debugName: "_previewUrl" }] : /* istanbul ignore next */ []);
|
|
132
|
+
this._urlToRevoke = null;
|
|
133
|
+
this._onValidatorChange = () => {};
|
|
134
|
+
this._onChange = (_) => {};
|
|
135
|
+
this._onTouched = () => {};
|
|
136
|
+
effect(() => {
|
|
137
|
+
this.invalidChange.emit(this.invalid());
|
|
138
|
+
});
|
|
139
|
+
effect(() => {
|
|
140
|
+
const files = this._files();
|
|
141
|
+
const want = this.preview() && files.length === 1 && (files[0].type || "").startsWith("image/") ? files[0] : null;
|
|
142
|
+
this.revokePreview();
|
|
143
|
+
if (want) {
|
|
144
|
+
this._urlToRevoke = URL.createObjectURL(want);
|
|
145
|
+
this._previewUrl.set(this._urlToRevoke);
|
|
146
|
+
} else this._previewUrl.set(null);
|
|
147
|
+
});
|
|
148
|
+
inject(DestroyRef).onDestroy(() => this.revokePreview());
|
|
149
|
+
}
|
|
150
|
+
revokePreview() {
|
|
151
|
+
if (this._urlToRevoke) {
|
|
152
|
+
URL.revokeObjectURL(this._urlToRevoke);
|
|
153
|
+
this._urlToRevoke = null;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
ngOnChanges() {
|
|
157
|
+
this._onValidatorChange();
|
|
158
|
+
}
|
|
159
|
+
validate(_control) {
|
|
160
|
+
return issueToErrors(this._issue());
|
|
161
|
+
}
|
|
162
|
+
registerOnValidatorChange(fn) {
|
|
163
|
+
this._onValidatorChange = fn;
|
|
164
|
+
}
|
|
165
|
+
open() {
|
|
166
|
+
if (!this.disabled() && !this.loading()) this.fileEl()?.nativeElement.click();
|
|
167
|
+
}
|
|
168
|
+
clear() {
|
|
169
|
+
const el = this.fileEl()?.nativeElement;
|
|
170
|
+
if (el) el.value = "";
|
|
171
|
+
this._files.set([]);
|
|
172
|
+
this.setRejections([]);
|
|
173
|
+
this._onChange(this.multiple() ? [] : null);
|
|
174
|
+
}
|
|
175
|
+
remove() {
|
|
176
|
+
this.clear();
|
|
177
|
+
this._touch();
|
|
178
|
+
this.fileRemoved.emit();
|
|
179
|
+
}
|
|
180
|
+
writeValue(val) {
|
|
181
|
+
const files = Array.isArray(val) ? val : val ? [val] : [];
|
|
182
|
+
this._files.set(files);
|
|
183
|
+
if (files.length > 0) this.setRejections([]);
|
|
184
|
+
const el = this.fileEl()?.nativeElement;
|
|
185
|
+
if (files.length === 0 && el) el.value = "";
|
|
186
|
+
}
|
|
187
|
+
registerOnChange(fn) {
|
|
188
|
+
this._onChange = fn;
|
|
189
|
+
}
|
|
190
|
+
registerOnTouched(fn) {
|
|
191
|
+
this._onTouched = fn;
|
|
192
|
+
}
|
|
193
|
+
setDisabledState(d) {
|
|
194
|
+
this._cvaDisabled.set(d);
|
|
195
|
+
}
|
|
196
|
+
_touch() {
|
|
197
|
+
this._onTouched();
|
|
198
|
+
this._reveal.touched.set(true);
|
|
199
|
+
}
|
|
200
|
+
onChange(event) {
|
|
201
|
+
const el = event.target;
|
|
202
|
+
this.accept$(Array.from(el.files ?? []), el);
|
|
203
|
+
if (!this.showField()) el.value = "";
|
|
204
|
+
}
|
|
205
|
+
onDragOver(event) {
|
|
206
|
+
if (!this.dropzone() || this.disabled() || this.loading()) return;
|
|
207
|
+
event.preventDefault();
|
|
208
|
+
if (event.dataTransfer) event.dataTransfer.dropEffect = "copy";
|
|
209
|
+
this._dragging.set(true);
|
|
210
|
+
}
|
|
211
|
+
onDragLeave(event) {
|
|
212
|
+
if (!this.dropzone()) return;
|
|
213
|
+
const next = event.relatedTarget;
|
|
214
|
+
if (next && event.currentTarget.contains(next)) return;
|
|
215
|
+
this._dragging.set(false);
|
|
216
|
+
}
|
|
217
|
+
onDrop(event) {
|
|
218
|
+
if (!this.dropzone()) return;
|
|
219
|
+
event.preventDefault();
|
|
220
|
+
this._dragging.set(false);
|
|
221
|
+
if (this.disabled() || this.loading()) return;
|
|
222
|
+
const dropped = Array.from(event.dataTransfer?.files ?? []);
|
|
223
|
+
if (dropped.length === 0) return;
|
|
224
|
+
this.accept$(this.multiple() ? dropped : dropped.slice(0, 1), this.fileEl()?.nativeElement ?? null);
|
|
225
|
+
}
|
|
226
|
+
setRejections(list) {
|
|
227
|
+
this._rejected.set(list);
|
|
228
|
+
this._rejection.set(list[0]?.message ?? "");
|
|
229
|
+
}
|
|
230
|
+
rejectionFor(file) {
|
|
231
|
+
const accept = this.accept();
|
|
232
|
+
if (this.enforceAccept() && accept && !fileMatchesAccept(file, accept)) return {
|
|
233
|
+
file,
|
|
234
|
+
reason: "type",
|
|
235
|
+
message: this.typeMessage() || this.labels.t("fileInput.onlyTypesAllowed", { types: acceptLabel(accept) })
|
|
236
|
+
};
|
|
237
|
+
if (file.size === 0 && this.rejectEmpty()) return {
|
|
238
|
+
file,
|
|
239
|
+
reason: "empty",
|
|
240
|
+
message: this.emptyMessage() || this.labels.t("fileInput.empty")
|
|
241
|
+
};
|
|
242
|
+
const max = this.maxSize();
|
|
243
|
+
if (max != null && file.size > max) return {
|
|
244
|
+
file,
|
|
245
|
+
reason: "size",
|
|
246
|
+
message: this.sizeMessage() || this.labels.t("fileInput.tooBig", { size: formatFileSize(max) })
|
|
247
|
+
};
|
|
248
|
+
const min = this.minSize();
|
|
249
|
+
if (min != null && file.size < min) return {
|
|
250
|
+
file,
|
|
251
|
+
reason: "small",
|
|
252
|
+
message: this.minSizeMessage() || this.labels.t("fileInput.tooSmall", { size: formatFileSize(min) })
|
|
253
|
+
};
|
|
254
|
+
return null;
|
|
255
|
+
}
|
|
256
|
+
accept$(files, native) {
|
|
257
|
+
if (files.length === 0) {
|
|
258
|
+
this._files.set([]);
|
|
259
|
+
this.setRejections([]);
|
|
260
|
+
this._onChange(this.multiple() ? [] : null);
|
|
261
|
+
this._onTouched();
|
|
262
|
+
return;
|
|
263
|
+
}
|
|
264
|
+
const ok = [];
|
|
265
|
+
const rejected = [];
|
|
266
|
+
for (const f of files) {
|
|
267
|
+
const r = this.rejectionFor(f);
|
|
268
|
+
if (r) rejected.push(r);
|
|
269
|
+
else ok.push(f);
|
|
270
|
+
}
|
|
271
|
+
this.setRejections(rejected);
|
|
272
|
+
rejected.forEach((r) => this.fileRejected.emit(r));
|
|
273
|
+
if (rejected.length > 0) this.filesRejected.emit(rejected);
|
|
274
|
+
if (this.toastOnReject() && rejected.length > 0) this._toast.error(rejected.map((r) => this.labels.t("fileInput.notAdded", {
|
|
275
|
+
name: r.file.name,
|
|
276
|
+
message: r.message
|
|
277
|
+
})).join(" "));
|
|
278
|
+
if (ok.length === 0) {
|
|
279
|
+
if (native) native.value = "";
|
|
280
|
+
this._files.set([]);
|
|
281
|
+
this._onChange(this.multiple() ? [] : null);
|
|
282
|
+
this._touch();
|
|
283
|
+
return;
|
|
284
|
+
}
|
|
285
|
+
this._files.set(ok);
|
|
286
|
+
this._onChange(this.multiple() ? ok : ok[0]);
|
|
287
|
+
this._touch();
|
|
288
|
+
this.filesSelected.emit(ok);
|
|
289
|
+
}
|
|
290
|
+
static {
|
|
291
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
292
|
+
minVersion: "12.0.0",
|
|
293
|
+
version: "22.2.2",
|
|
294
|
+
ngImport: i0,
|
|
295
|
+
type: FileInputComponent,
|
|
296
|
+
deps: [],
|
|
297
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
static {
|
|
301
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
302
|
+
minVersion: "17.0.0",
|
|
303
|
+
version: "22.2.2",
|
|
304
|
+
type: FileInputComponent,
|
|
305
|
+
isStandalone: true,
|
|
306
|
+
selector: "ui-file-input",
|
|
307
|
+
inputs: {
|
|
308
|
+
label: {
|
|
309
|
+
classPropertyName: "label",
|
|
310
|
+
publicName: "label",
|
|
311
|
+
isSignal: true,
|
|
312
|
+
isRequired: false,
|
|
313
|
+
transformFunction: null
|
|
314
|
+
},
|
|
315
|
+
ariaLabel: {
|
|
316
|
+
classPropertyName: "ariaLabel",
|
|
317
|
+
publicName: "ariaLabel",
|
|
318
|
+
isSignal: true,
|
|
319
|
+
isRequired: false,
|
|
320
|
+
transformFunction: null
|
|
321
|
+
},
|
|
322
|
+
placeholderInput: {
|
|
323
|
+
classPropertyName: "placeholderInput",
|
|
324
|
+
publicName: "placeholder",
|
|
325
|
+
isSignal: true,
|
|
326
|
+
isRequired: false,
|
|
327
|
+
transformFunction: null
|
|
328
|
+
},
|
|
329
|
+
buttonLabelInput: {
|
|
330
|
+
classPropertyName: "buttonLabelInput",
|
|
331
|
+
publicName: "buttonLabel",
|
|
332
|
+
isSignal: true,
|
|
333
|
+
isRequired: false,
|
|
334
|
+
transformFunction: null
|
|
335
|
+
},
|
|
336
|
+
accept: {
|
|
337
|
+
classPropertyName: "accept",
|
|
338
|
+
publicName: "accept",
|
|
339
|
+
isSignal: true,
|
|
340
|
+
isRequired: false,
|
|
341
|
+
transformFunction: null
|
|
342
|
+
},
|
|
343
|
+
multiple: {
|
|
344
|
+
classPropertyName: "multiple",
|
|
345
|
+
publicName: "multiple",
|
|
346
|
+
isSignal: true,
|
|
347
|
+
isRequired: false,
|
|
348
|
+
transformFunction: null
|
|
349
|
+
},
|
|
350
|
+
required: {
|
|
351
|
+
classPropertyName: "required",
|
|
352
|
+
publicName: "required",
|
|
353
|
+
isSignal: true,
|
|
354
|
+
isRequired: false,
|
|
355
|
+
transformFunction: null
|
|
356
|
+
},
|
|
357
|
+
hint: {
|
|
358
|
+
classPropertyName: "hint",
|
|
359
|
+
publicName: "hint",
|
|
360
|
+
isSignal: true,
|
|
361
|
+
isRequired: false,
|
|
362
|
+
transformFunction: null
|
|
363
|
+
},
|
|
364
|
+
error: {
|
|
365
|
+
classPropertyName: "error",
|
|
366
|
+
publicName: "error",
|
|
367
|
+
isSignal: true,
|
|
368
|
+
isRequired: false,
|
|
369
|
+
transformFunction: null
|
|
370
|
+
},
|
|
371
|
+
showField: {
|
|
372
|
+
classPropertyName: "showField",
|
|
373
|
+
publicName: "showField",
|
|
374
|
+
isSignal: true,
|
|
375
|
+
isRequired: false,
|
|
376
|
+
transformFunction: null
|
|
377
|
+
},
|
|
378
|
+
showErrors: {
|
|
379
|
+
classPropertyName: "showErrors",
|
|
380
|
+
publicName: "showErrors",
|
|
381
|
+
isSignal: true,
|
|
382
|
+
isRequired: false,
|
|
383
|
+
transformFunction: null
|
|
384
|
+
},
|
|
385
|
+
toastOnReject: {
|
|
386
|
+
classPropertyName: "toastOnReject",
|
|
387
|
+
publicName: "toastOnReject",
|
|
388
|
+
isSignal: true,
|
|
389
|
+
isRequired: false,
|
|
390
|
+
transformFunction: null
|
|
391
|
+
},
|
|
392
|
+
listRejections: {
|
|
393
|
+
classPropertyName: "listRejections",
|
|
394
|
+
publicName: "listRejections",
|
|
395
|
+
isSignal: true,
|
|
396
|
+
isRequired: false,
|
|
397
|
+
transformFunction: null
|
|
398
|
+
},
|
|
399
|
+
ariaDescribedBy: {
|
|
400
|
+
classPropertyName: "ariaDescribedBy",
|
|
401
|
+
publicName: "ariaDescribedBy",
|
|
402
|
+
isSignal: true,
|
|
403
|
+
isRequired: false,
|
|
404
|
+
transformFunction: null
|
|
405
|
+
},
|
|
406
|
+
clearable: {
|
|
407
|
+
classPropertyName: "clearable",
|
|
408
|
+
publicName: "clearable",
|
|
409
|
+
isSignal: true,
|
|
410
|
+
isRequired: false,
|
|
411
|
+
transformFunction: null
|
|
412
|
+
},
|
|
413
|
+
removeLabelInput: {
|
|
414
|
+
classPropertyName: "removeLabelInput",
|
|
415
|
+
publicName: "removeLabel",
|
|
416
|
+
isSignal: true,
|
|
417
|
+
isRequired: false,
|
|
418
|
+
transformFunction: null
|
|
419
|
+
},
|
|
420
|
+
maxSize: {
|
|
421
|
+
classPropertyName: "maxSize",
|
|
422
|
+
publicName: "maxSize",
|
|
423
|
+
isSignal: true,
|
|
424
|
+
isRequired: false,
|
|
425
|
+
transformFunction: null
|
|
426
|
+
},
|
|
427
|
+
enforceAccept: {
|
|
428
|
+
classPropertyName: "enforceAccept",
|
|
429
|
+
publicName: "enforceAccept",
|
|
430
|
+
isSignal: true,
|
|
431
|
+
isRequired: false,
|
|
432
|
+
transformFunction: null
|
|
433
|
+
},
|
|
434
|
+
typeMessage: {
|
|
435
|
+
classPropertyName: "typeMessage",
|
|
436
|
+
publicName: "typeMessage",
|
|
437
|
+
isSignal: true,
|
|
438
|
+
isRequired: false,
|
|
439
|
+
transformFunction: null
|
|
440
|
+
},
|
|
441
|
+
sizeMessage: {
|
|
442
|
+
classPropertyName: "sizeMessage",
|
|
443
|
+
publicName: "sizeMessage",
|
|
444
|
+
isSignal: true,
|
|
445
|
+
isRequired: false,
|
|
446
|
+
transformFunction: null
|
|
447
|
+
},
|
|
448
|
+
rejectEmpty: {
|
|
449
|
+
classPropertyName: "rejectEmpty",
|
|
450
|
+
publicName: "rejectEmpty",
|
|
451
|
+
isSignal: true,
|
|
452
|
+
isRequired: false,
|
|
453
|
+
transformFunction: null
|
|
454
|
+
},
|
|
455
|
+
emptyMessage: {
|
|
456
|
+
classPropertyName: "emptyMessage",
|
|
457
|
+
publicName: "emptyMessage",
|
|
458
|
+
isSignal: true,
|
|
459
|
+
isRequired: false,
|
|
460
|
+
transformFunction: null
|
|
461
|
+
},
|
|
462
|
+
minSize: {
|
|
463
|
+
classPropertyName: "minSize",
|
|
464
|
+
publicName: "minSize",
|
|
465
|
+
isSignal: true,
|
|
466
|
+
isRequired: false,
|
|
467
|
+
transformFunction: null
|
|
468
|
+
},
|
|
469
|
+
minSizeMessage: {
|
|
470
|
+
classPropertyName: "minSizeMessage",
|
|
471
|
+
publicName: "minSizeMessage",
|
|
472
|
+
isSignal: true,
|
|
473
|
+
isRequired: false,
|
|
474
|
+
transformFunction: null
|
|
475
|
+
},
|
|
476
|
+
dropzone: {
|
|
477
|
+
classPropertyName: "dropzone",
|
|
478
|
+
publicName: "dropzone",
|
|
479
|
+
isSignal: true,
|
|
480
|
+
isRequired: false,
|
|
481
|
+
transformFunction: null
|
|
482
|
+
},
|
|
483
|
+
showDetails: {
|
|
484
|
+
classPropertyName: "showDetails",
|
|
485
|
+
publicName: "showDetails",
|
|
486
|
+
isSignal: true,
|
|
487
|
+
isRequired: false,
|
|
488
|
+
transformFunction: null
|
|
489
|
+
},
|
|
490
|
+
preview: {
|
|
491
|
+
classPropertyName: "preview",
|
|
492
|
+
publicName: "preview",
|
|
493
|
+
isSignal: true,
|
|
494
|
+
isRequired: false,
|
|
495
|
+
transformFunction: null
|
|
496
|
+
},
|
|
497
|
+
loading: {
|
|
498
|
+
classPropertyName: "loading",
|
|
499
|
+
publicName: "loading",
|
|
500
|
+
isSignal: true,
|
|
501
|
+
isRequired: false,
|
|
502
|
+
transformFunction: null
|
|
503
|
+
},
|
|
504
|
+
loadingText: {
|
|
505
|
+
classPropertyName: "loadingText",
|
|
506
|
+
publicName: "loadingText",
|
|
507
|
+
isSignal: true,
|
|
508
|
+
isRequired: false,
|
|
509
|
+
transformFunction: null
|
|
510
|
+
},
|
|
511
|
+
_disabledInput: {
|
|
512
|
+
classPropertyName: "_disabledInput",
|
|
513
|
+
publicName: "disabled",
|
|
514
|
+
isSignal: true,
|
|
515
|
+
isRequired: false,
|
|
516
|
+
transformFunction: null
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
outputs: {
|
|
520
|
+
filesSelected: "filesSelected",
|
|
521
|
+
fileRejected: "fileRejected",
|
|
522
|
+
filesRejected: "filesRejected",
|
|
523
|
+
fileRemoved: "fileRemoved",
|
|
524
|
+
invalidChange: "invalidChange"
|
|
525
|
+
},
|
|
526
|
+
providers: [
|
|
527
|
+
{
|
|
528
|
+
provide: NG_VALUE_ACCESSOR,
|
|
529
|
+
useExisting: forwardRef(() => FileInputComponent),
|
|
530
|
+
multi: true
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
provide: NG_VALIDATORS,
|
|
534
|
+
useExisting: forwardRef(() => FileInputComponent),
|
|
535
|
+
multi: true
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
provide: UiFieldValidity,
|
|
539
|
+
useExisting: forwardRef(() => FileInputComponent)
|
|
540
|
+
}
|
|
541
|
+
],
|
|
542
|
+
viewQueries: [{
|
|
543
|
+
propertyName: "fileEl",
|
|
544
|
+
first: true,
|
|
545
|
+
predicate: ["fileEl"],
|
|
546
|
+
descendants: true,
|
|
547
|
+
isSignal: true
|
|
548
|
+
}],
|
|
549
|
+
usesOnChanges: true,
|
|
550
|
+
ngImport: i0,
|
|
551
|
+
template: `
|
|
552
|
+
<div class="fi-field" [class.fi-error]="!!_shownError()" [class.fi-disabled]="disabled()" [class.fi-hidden]="!showField()" [class.fi-drag]="_dragging()">
|
|
553
|
+
@if (showField() && label()) {
|
|
554
|
+
<label class="fi-label" [for]="_inputId">
|
|
555
|
+
{{ label() }}
|
|
556
|
+
@if (required()) { <span class="fi-required" aria-hidden="true">*</span> }
|
|
557
|
+
@if (hint()) { <span class="fi-hint-inline">({{ hint() }})</span> }
|
|
558
|
+
</label>
|
|
559
|
+
}
|
|
560
|
+
<input
|
|
561
|
+
#fileEl
|
|
562
|
+
type="file"
|
|
563
|
+
class="fi-native"
|
|
564
|
+
[id]="_inputId"
|
|
565
|
+
[attr.accept]="accept() || null"
|
|
566
|
+
[multiple]="multiple()"
|
|
567
|
+
[disabled]="disabled()"
|
|
568
|
+
[attr.required]="required() || null"
|
|
569
|
+
[attr.aria-label]="ariaLabel() || null"
|
|
570
|
+
[attr.aria-invalid]="_shownError() ? 'true' : null"
|
|
571
|
+
[attr.aria-describedby]="_describedBy()"
|
|
572
|
+
[attr.tabindex]="showField() ? -1 : null"
|
|
573
|
+
(change)="onChange($event)"
|
|
574
|
+
(blur)="_onTouched()" />
|
|
575
|
+
@if (showField()) {
|
|
576
|
+
<div class="fi-row">
|
|
577
|
+
<button type="button" class="fi-control" [disabled]="disabled() || loading()" [attr.aria-busy]="loading() ? 'true' : null"
|
|
578
|
+
[attr.aria-describedby]="_describedBy()"
|
|
579
|
+
(click)="open()" (blur)="_touch()"
|
|
580
|
+
(dragenter)="onDragOver($event)" (dragover)="onDragOver($event)" (dragleave)="onDragLeave($event)" (drop)="onDrop($event)">
|
|
581
|
+
@if (_previewUrl(); as src) {
|
|
582
|
+
<ui-image-preview [src]="src" alt="" shape="rounded" size="sm" placeholder="image" />
|
|
583
|
+
}
|
|
584
|
+
@if (loading()) {
|
|
585
|
+
<span class="fi-name fi-loading"><ui-skeleton [height]="14" width="60%" [radius]="4" /></span>
|
|
586
|
+
<span class="fi-sr" role="status">{{ loadingText() || labels.t('fileInput.processing') }}</span>
|
|
587
|
+
} @else {
|
|
588
|
+
<span class="fi-name" [class.fi-placeholder]="!summary()">{{ summary() || placeholder() }}</span>
|
|
589
|
+
}
|
|
590
|
+
<span class="fi-browse">{{ buttonLabel() }}</span>
|
|
591
|
+
</button>
|
|
592
|
+
@if (clearable() && _files().length > 0 && !loading() && !disabled()) {
|
|
593
|
+
<button type="button" class="fi-remove" [attr.aria-label]="removeLabel() + (summary() ? ' ' + summary() : '')" (click)="remove()">{{ removeLabel() }}</button>
|
|
594
|
+
}
|
|
595
|
+
</div>
|
|
596
|
+
}
|
|
597
|
+
@if (_shownError()) {
|
|
598
|
+
@if (_showRejectList()) {
|
|
599
|
+
<ul class="fi-desc fi-desc-error fi-reject-list" [id]="_inputId + '-desc'" role="alert">
|
|
600
|
+
@for (line of rejectionLines(); track $index) { <li>{{ line }}</li> }
|
|
601
|
+
</ul>
|
|
602
|
+
} @else {
|
|
603
|
+
<p class="fi-desc fi-desc-error" [id]="_inputId + '-desc'" role="alert">{{ _shownError() }}</p>
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
</div>
|
|
607
|
+
`,
|
|
608
|
+
isInline: true,
|
|
609
|
+
styles: [":host{display:block}:host(:has(.fi-hidden)){display:contents}.fi-field{display:flex;flex-direction:column;gap:6px}.fi-hidden{display:contents}.fi-label{font-size:.8125rem;font-weight:600;color:#374151;line-height:1}.fi-required{color:#dc2626;margin-left:2px}.fi-hint-inline{font-size:.75rem;color:#94a3b8;font-weight:400;margin-left:4px}.fi-native{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.fi-row{display:flex;align-items:stretch;gap:8px}.fi-control{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1 1 auto;min-width:0;box-sizing:border-box;text-align:left;padding:9px 12px;font-size:.875rem;font-family:inherit;color:#1e293b;background:#fff;border:1px solid #7c8ba1;border-radius:8px;outline:none;cursor:pointer;transition:border-color .15s,box-shadow .15s}.fi-control:focus-visible{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61f}.fi-control:has(ui-image-preview){padding-top:6px;padding-bottom:6px}.fi-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fi-loading{overflow:visible}.fi-placeholder{color:#64748b}.fi-browse{flex-shrink:0;font-size:.75rem;font-weight:600;color:#374151;padding:3px 10px;border:1px solid #e2e8f0;border-radius:6px;background:#f8fafc}.fi-remove{flex-shrink:0;align-self:center;font-family:inherit;font-size:.75rem;font-weight:600;color:#b91c1c;padding:6px 10px;border:1px solid #fecaca;border-radius:6px;background:#fff;cursor:pointer;-webkit-appearance:none;appearance:none}.fi-remove:hover{background:#fef2f2}.fi-remove:focus-visible{outline:2px solid #ef4444;outline-offset:2px}.fi-sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.fi-error .fi-control{border-color:#ef4444}.fi-error .fi-control:focus-visible{box-shadow:0 0 0 3px #ef44441f}.fi-drag .fi-control{border-color:#3b82f6;border-style:dashed;background:#eff6ff}.fi-disabled .fi-control{opacity:.5;cursor:not-allowed}.fi-desc{margin:0;font-size:.75rem;line-height:1.4;color:#64748b}.fi-desc-error{color:#dc2626}.fi-reject-list{margin:4px 0 0;padding-left:18px}.fi-reject-list li{margin:0 0 2px}@media(max-width:480px){.fi-control{font-size:1rem}.fi-remove{padding:10px 12px}}@media(pointer:coarse){.fi-control,.fi-remove{min-height:44px}}\n"],
|
|
610
|
+
dependencies: [{
|
|
611
|
+
kind: "component",
|
|
612
|
+
type: ImagePreviewComponent,
|
|
613
|
+
selector: "ui-image-preview",
|
|
614
|
+
inputs: [
|
|
615
|
+
"src",
|
|
616
|
+
"alt",
|
|
617
|
+
"shape",
|
|
618
|
+
"size",
|
|
619
|
+
"placeholder",
|
|
620
|
+
"loading",
|
|
621
|
+
"positionX",
|
|
622
|
+
"positionY",
|
|
623
|
+
"retryKey"
|
|
624
|
+
]
|
|
625
|
+
}, {
|
|
626
|
+
kind: "component",
|
|
627
|
+
type: SkeletonComponent,
|
|
628
|
+
selector: "ui-skeleton",
|
|
629
|
+
inputs: [
|
|
630
|
+
"height",
|
|
631
|
+
"width",
|
|
632
|
+
"radius",
|
|
633
|
+
"mb",
|
|
634
|
+
"ariaLabel"
|
|
635
|
+
]
|
|
636
|
+
}],
|
|
637
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
638
|
+
});
|
|
639
|
+
}
|
|
640
|
+
};
|
|
641
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
642
|
+
minVersion: "12.0.0",
|
|
643
|
+
version: "22.2.2",
|
|
644
|
+
ngImport: i0,
|
|
645
|
+
type: FileInputComponent,
|
|
646
|
+
decorators: [{
|
|
647
|
+
type: Component,
|
|
648
|
+
args: [{
|
|
649
|
+
selector: "ui-file-input",
|
|
650
|
+
standalone: true,
|
|
651
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
652
|
+
imports: [ImagePreviewComponent, SkeletonComponent],
|
|
653
|
+
providers: [
|
|
654
|
+
{
|
|
655
|
+
provide: NG_VALUE_ACCESSOR,
|
|
656
|
+
useExisting: forwardRef(() => FileInputComponent),
|
|
657
|
+
multi: true
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
provide: NG_VALIDATORS,
|
|
661
|
+
useExisting: forwardRef(() => FileInputComponent),
|
|
662
|
+
multi: true
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
provide: UiFieldValidity,
|
|
666
|
+
useExisting: forwardRef(() => FileInputComponent)
|
|
667
|
+
}
|
|
668
|
+
],
|
|
669
|
+
template: `
|
|
670
|
+
<div class="fi-field" [class.fi-error]="!!_shownError()" [class.fi-disabled]="disabled()" [class.fi-hidden]="!showField()" [class.fi-drag]="_dragging()">
|
|
671
|
+
@if (showField() && label()) {
|
|
672
|
+
<label class="fi-label" [for]="_inputId">
|
|
673
|
+
{{ label() }}
|
|
674
|
+
@if (required()) { <span class="fi-required" aria-hidden="true">*</span> }
|
|
675
|
+
@if (hint()) { <span class="fi-hint-inline">({{ hint() }})</span> }
|
|
676
|
+
</label>
|
|
677
|
+
}
|
|
678
|
+
<input
|
|
679
|
+
#fileEl
|
|
680
|
+
type="file"
|
|
681
|
+
class="fi-native"
|
|
682
|
+
[id]="_inputId"
|
|
683
|
+
[attr.accept]="accept() || null"
|
|
684
|
+
[multiple]="multiple()"
|
|
685
|
+
[disabled]="disabled()"
|
|
686
|
+
[attr.required]="required() || null"
|
|
687
|
+
[attr.aria-label]="ariaLabel() || null"
|
|
688
|
+
[attr.aria-invalid]="_shownError() ? 'true' : null"
|
|
689
|
+
[attr.aria-describedby]="_describedBy()"
|
|
690
|
+
[attr.tabindex]="showField() ? -1 : null"
|
|
691
|
+
(change)="onChange($event)"
|
|
692
|
+
(blur)="_onTouched()" />
|
|
693
|
+
@if (showField()) {
|
|
694
|
+
<div class="fi-row">
|
|
695
|
+
<button type="button" class="fi-control" [disabled]="disabled() || loading()" [attr.aria-busy]="loading() ? 'true' : null"
|
|
696
|
+
[attr.aria-describedby]="_describedBy()"
|
|
697
|
+
(click)="open()" (blur)="_touch()"
|
|
698
|
+
(dragenter)="onDragOver($event)" (dragover)="onDragOver($event)" (dragleave)="onDragLeave($event)" (drop)="onDrop($event)">
|
|
699
|
+
@if (_previewUrl(); as src) {
|
|
700
|
+
<ui-image-preview [src]="src" alt="" shape="rounded" size="sm" placeholder="image" />
|
|
701
|
+
}
|
|
702
|
+
@if (loading()) {
|
|
703
|
+
<span class="fi-name fi-loading"><ui-skeleton [height]="14" width="60%" [radius]="4" /></span>
|
|
704
|
+
<span class="fi-sr" role="status">{{ loadingText() || labels.t('fileInput.processing') }}</span>
|
|
705
|
+
} @else {
|
|
706
|
+
<span class="fi-name" [class.fi-placeholder]="!summary()">{{ summary() || placeholder() }}</span>
|
|
707
|
+
}
|
|
708
|
+
<span class="fi-browse">{{ buttonLabel() }}</span>
|
|
709
|
+
</button>
|
|
710
|
+
@if (clearable() && _files().length > 0 && !loading() && !disabled()) {
|
|
711
|
+
<button type="button" class="fi-remove" [attr.aria-label]="removeLabel() + (summary() ? ' ' + summary() : '')" (click)="remove()">{{ removeLabel() }}</button>
|
|
712
|
+
}
|
|
713
|
+
</div>
|
|
714
|
+
}
|
|
715
|
+
@if (_shownError()) {
|
|
716
|
+
@if (_showRejectList()) {
|
|
717
|
+
<ul class="fi-desc fi-desc-error fi-reject-list" [id]="_inputId + '-desc'" role="alert">
|
|
718
|
+
@for (line of rejectionLines(); track $index) { <li>{{ line }}</li> }
|
|
719
|
+
</ul>
|
|
720
|
+
} @else {
|
|
721
|
+
<p class="fi-desc fi-desc-error" [id]="_inputId + '-desc'" role="alert">{{ _shownError() }}</p>
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
</div>
|
|
725
|
+
`,
|
|
726
|
+
styles: [":host{display:block}:host(:has(.fi-hidden)){display:contents}.fi-field{display:flex;flex-direction:column;gap:6px}.fi-hidden{display:contents}.fi-label{font-size:.8125rem;font-weight:600;color:#374151;line-height:1}.fi-required{color:#dc2626;margin-left:2px}.fi-hint-inline{font-size:.75rem;color:#94a3b8;font-weight:400;margin-left:4px}.fi-native{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.fi-row{display:flex;align-items:stretch;gap:8px}.fi-control{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1 1 auto;min-width:0;box-sizing:border-box;text-align:left;padding:9px 12px;font-size:.875rem;font-family:inherit;color:#1e293b;background:#fff;border:1px solid #7c8ba1;border-radius:8px;outline:none;cursor:pointer;transition:border-color .15s,box-shadow .15s}.fi-control:focus-visible{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61f}.fi-control:has(ui-image-preview){padding-top:6px;padding-bottom:6px}.fi-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fi-loading{overflow:visible}.fi-placeholder{color:#64748b}.fi-browse{flex-shrink:0;font-size:.75rem;font-weight:600;color:#374151;padding:3px 10px;border:1px solid #e2e8f0;border-radius:6px;background:#f8fafc}.fi-remove{flex-shrink:0;align-self:center;font-family:inherit;font-size:.75rem;font-weight:600;color:#b91c1c;padding:6px 10px;border:1px solid #fecaca;border-radius:6px;background:#fff;cursor:pointer;-webkit-appearance:none;appearance:none}.fi-remove:hover{background:#fef2f2}.fi-remove:focus-visible{outline:2px solid #ef4444;outline-offset:2px}.fi-sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.fi-error .fi-control{border-color:#ef4444}.fi-error .fi-control:focus-visible{box-shadow:0 0 0 3px #ef44441f}.fi-drag .fi-control{border-color:#3b82f6;border-style:dashed;background:#eff6ff}.fi-disabled .fi-control{opacity:.5;cursor:not-allowed}.fi-desc{margin:0;font-size:.75rem;line-height:1.4;color:#64748b}.fi-desc-error{color:#dc2626}.fi-reject-list{margin:4px 0 0;padding-left:18px}.fi-reject-list li{margin:0 0 2px}@media(max-width:480px){.fi-control{font-size:1rem}.fi-remove{padding:10px 12px}}@media(pointer:coarse){.fi-control,.fi-remove{min-height:44px}}\n"]
|
|
727
|
+
}]
|
|
728
|
+
}],
|
|
729
|
+
ctorParameters: () => [],
|
|
730
|
+
propDecorators: {
|
|
731
|
+
label: [{
|
|
732
|
+
type: i0.Input,
|
|
733
|
+
args: [{
|
|
734
|
+
isSignal: true,
|
|
735
|
+
alias: "label",
|
|
736
|
+
required: false
|
|
737
|
+
}]
|
|
738
|
+
}],
|
|
739
|
+
ariaLabel: [{
|
|
740
|
+
type: i0.Input,
|
|
741
|
+
args: [{
|
|
742
|
+
isSignal: true,
|
|
743
|
+
alias: "ariaLabel",
|
|
744
|
+
required: false
|
|
745
|
+
}]
|
|
746
|
+
}],
|
|
747
|
+
placeholderInput: [{
|
|
748
|
+
type: i0.Input,
|
|
749
|
+
args: [{
|
|
750
|
+
isSignal: true,
|
|
751
|
+
alias: "placeholder",
|
|
752
|
+
required: false
|
|
753
|
+
}]
|
|
754
|
+
}],
|
|
755
|
+
buttonLabelInput: [{
|
|
756
|
+
type: i0.Input,
|
|
757
|
+
args: [{
|
|
758
|
+
isSignal: true,
|
|
759
|
+
alias: "buttonLabel",
|
|
760
|
+
required: false
|
|
761
|
+
}]
|
|
762
|
+
}],
|
|
763
|
+
accept: [{
|
|
764
|
+
type: i0.Input,
|
|
765
|
+
args: [{
|
|
766
|
+
isSignal: true,
|
|
767
|
+
alias: "accept",
|
|
768
|
+
required: false
|
|
769
|
+
}]
|
|
770
|
+
}],
|
|
771
|
+
multiple: [{
|
|
772
|
+
type: i0.Input,
|
|
773
|
+
args: [{
|
|
774
|
+
isSignal: true,
|
|
775
|
+
alias: "multiple",
|
|
776
|
+
required: false
|
|
777
|
+
}]
|
|
778
|
+
}],
|
|
779
|
+
required: [{
|
|
780
|
+
type: i0.Input,
|
|
781
|
+
args: [{
|
|
782
|
+
isSignal: true,
|
|
783
|
+
alias: "required",
|
|
784
|
+
required: false
|
|
785
|
+
}]
|
|
786
|
+
}],
|
|
787
|
+
hint: [{
|
|
788
|
+
type: i0.Input,
|
|
789
|
+
args: [{
|
|
790
|
+
isSignal: true,
|
|
791
|
+
alias: "hint",
|
|
792
|
+
required: false
|
|
793
|
+
}]
|
|
794
|
+
}],
|
|
795
|
+
error: [{
|
|
796
|
+
type: i0.Input,
|
|
797
|
+
args: [{
|
|
798
|
+
isSignal: true,
|
|
799
|
+
alias: "error",
|
|
800
|
+
required: false
|
|
801
|
+
}]
|
|
802
|
+
}],
|
|
803
|
+
showField: [{
|
|
804
|
+
type: i0.Input,
|
|
805
|
+
args: [{
|
|
806
|
+
isSignal: true,
|
|
807
|
+
alias: "showField",
|
|
808
|
+
required: false
|
|
809
|
+
}]
|
|
810
|
+
}],
|
|
811
|
+
showErrors: [{
|
|
812
|
+
type: i0.Input,
|
|
813
|
+
args: [{
|
|
814
|
+
isSignal: true,
|
|
815
|
+
alias: "showErrors",
|
|
816
|
+
required: false
|
|
817
|
+
}]
|
|
818
|
+
}],
|
|
819
|
+
toastOnReject: [{
|
|
820
|
+
type: i0.Input,
|
|
821
|
+
args: [{
|
|
822
|
+
isSignal: true,
|
|
823
|
+
alias: "toastOnReject",
|
|
824
|
+
required: false
|
|
825
|
+
}]
|
|
826
|
+
}],
|
|
827
|
+
listRejections: [{
|
|
828
|
+
type: i0.Input,
|
|
829
|
+
args: [{
|
|
830
|
+
isSignal: true,
|
|
831
|
+
alias: "listRejections",
|
|
832
|
+
required: false
|
|
833
|
+
}]
|
|
834
|
+
}],
|
|
835
|
+
ariaDescribedBy: [{
|
|
836
|
+
type: i0.Input,
|
|
837
|
+
args: [{
|
|
838
|
+
isSignal: true,
|
|
839
|
+
alias: "ariaDescribedBy",
|
|
840
|
+
required: false
|
|
841
|
+
}]
|
|
842
|
+
}],
|
|
843
|
+
clearable: [{
|
|
844
|
+
type: i0.Input,
|
|
845
|
+
args: [{
|
|
846
|
+
isSignal: true,
|
|
847
|
+
alias: "clearable",
|
|
848
|
+
required: false
|
|
849
|
+
}]
|
|
850
|
+
}],
|
|
851
|
+
removeLabelInput: [{
|
|
852
|
+
type: i0.Input,
|
|
853
|
+
args: [{
|
|
854
|
+
isSignal: true,
|
|
855
|
+
alias: "removeLabel",
|
|
856
|
+
required: false
|
|
857
|
+
}]
|
|
858
|
+
}],
|
|
859
|
+
maxSize: [{
|
|
860
|
+
type: i0.Input,
|
|
861
|
+
args: [{
|
|
862
|
+
isSignal: true,
|
|
863
|
+
alias: "maxSize",
|
|
864
|
+
required: false
|
|
865
|
+
}]
|
|
866
|
+
}],
|
|
867
|
+
enforceAccept: [{
|
|
868
|
+
type: i0.Input,
|
|
869
|
+
args: [{
|
|
870
|
+
isSignal: true,
|
|
871
|
+
alias: "enforceAccept",
|
|
872
|
+
required: false
|
|
873
|
+
}]
|
|
874
|
+
}],
|
|
875
|
+
typeMessage: [{
|
|
876
|
+
type: i0.Input,
|
|
877
|
+
args: [{
|
|
878
|
+
isSignal: true,
|
|
879
|
+
alias: "typeMessage",
|
|
880
|
+
required: false
|
|
881
|
+
}]
|
|
882
|
+
}],
|
|
883
|
+
sizeMessage: [{
|
|
884
|
+
type: i0.Input,
|
|
885
|
+
args: [{
|
|
886
|
+
isSignal: true,
|
|
887
|
+
alias: "sizeMessage",
|
|
888
|
+
required: false
|
|
889
|
+
}]
|
|
890
|
+
}],
|
|
891
|
+
rejectEmpty: [{
|
|
892
|
+
type: i0.Input,
|
|
893
|
+
args: [{
|
|
894
|
+
isSignal: true,
|
|
895
|
+
alias: "rejectEmpty",
|
|
896
|
+
required: false
|
|
897
|
+
}]
|
|
898
|
+
}],
|
|
899
|
+
emptyMessage: [{
|
|
900
|
+
type: i0.Input,
|
|
901
|
+
args: [{
|
|
902
|
+
isSignal: true,
|
|
903
|
+
alias: "emptyMessage",
|
|
904
|
+
required: false
|
|
905
|
+
}]
|
|
906
|
+
}],
|
|
907
|
+
minSize: [{
|
|
908
|
+
type: i0.Input,
|
|
909
|
+
args: [{
|
|
910
|
+
isSignal: true,
|
|
911
|
+
alias: "minSize",
|
|
912
|
+
required: false
|
|
913
|
+
}]
|
|
914
|
+
}],
|
|
915
|
+
minSizeMessage: [{
|
|
916
|
+
type: i0.Input,
|
|
917
|
+
args: [{
|
|
918
|
+
isSignal: true,
|
|
919
|
+
alias: "minSizeMessage",
|
|
920
|
+
required: false
|
|
921
|
+
}]
|
|
922
|
+
}],
|
|
923
|
+
dropzone: [{
|
|
924
|
+
type: i0.Input,
|
|
925
|
+
args: [{
|
|
926
|
+
isSignal: true,
|
|
927
|
+
alias: "dropzone",
|
|
928
|
+
required: false
|
|
929
|
+
}]
|
|
930
|
+
}],
|
|
931
|
+
showDetails: [{
|
|
932
|
+
type: i0.Input,
|
|
933
|
+
args: [{
|
|
934
|
+
isSignal: true,
|
|
935
|
+
alias: "showDetails",
|
|
936
|
+
required: false
|
|
937
|
+
}]
|
|
938
|
+
}],
|
|
939
|
+
preview: [{
|
|
940
|
+
type: i0.Input,
|
|
941
|
+
args: [{
|
|
942
|
+
isSignal: true,
|
|
943
|
+
alias: "preview",
|
|
944
|
+
required: false
|
|
945
|
+
}]
|
|
946
|
+
}],
|
|
947
|
+
loading: [{
|
|
948
|
+
type: i0.Input,
|
|
949
|
+
args: [{
|
|
950
|
+
isSignal: true,
|
|
951
|
+
alias: "loading",
|
|
952
|
+
required: false
|
|
953
|
+
}]
|
|
954
|
+
}],
|
|
955
|
+
loadingText: [{
|
|
956
|
+
type: i0.Input,
|
|
957
|
+
args: [{
|
|
958
|
+
isSignal: true,
|
|
959
|
+
alias: "loadingText",
|
|
960
|
+
required: false
|
|
961
|
+
}]
|
|
962
|
+
}],
|
|
963
|
+
filesSelected: [{
|
|
964
|
+
type: i0.Output,
|
|
965
|
+
args: ["filesSelected"]
|
|
966
|
+
}],
|
|
967
|
+
fileRejected: [{
|
|
968
|
+
type: i0.Output,
|
|
969
|
+
args: ["fileRejected"]
|
|
970
|
+
}],
|
|
971
|
+
filesRejected: [{
|
|
972
|
+
type: i0.Output,
|
|
973
|
+
args: ["filesRejected"]
|
|
974
|
+
}],
|
|
975
|
+
fileRemoved: [{
|
|
976
|
+
type: i0.Output,
|
|
977
|
+
args: ["fileRemoved"]
|
|
978
|
+
}],
|
|
979
|
+
invalidChange: [{
|
|
980
|
+
type: i0.Output,
|
|
981
|
+
args: ["invalidChange"]
|
|
982
|
+
}],
|
|
983
|
+
_disabledInput: [{
|
|
984
|
+
type: i0.Input,
|
|
985
|
+
args: [{
|
|
986
|
+
isSignal: true,
|
|
987
|
+
alias: "disabled",
|
|
988
|
+
required: false
|
|
989
|
+
}]
|
|
990
|
+
}],
|
|
991
|
+
fileEl: [{
|
|
992
|
+
type: i0.ViewChild,
|
|
993
|
+
args: ["fileEl", { isSignal: true }]
|
|
994
|
+
}]
|
|
995
|
+
}
|
|
996
|
+
});
|
|
997
|
+
export { FileInputComponent, acceptLabel, fileMatchesAccept, formatAttachmentSize, formatFileSize };
|
|
998
|
+
|
|
999
|
+
//# sourceMappingURL=forgeroute-ui-file-input.mjs.map
|