@forgeroute/ui 0.5.16 → 0.5.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/forgeroute-ui-action-bar.mjs +190 -0
- package/fesm2022/forgeroute-ui-action-bar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-address-input.mjs +1164 -0
- package/fesm2022/forgeroute-ui-address-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-alert.mjs +223 -0
- package/fesm2022/forgeroute-ui-alert.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-avatar.mjs +320 -0
- package/fesm2022/forgeroute-ui-avatar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-badge.mjs +158 -0
- package/fesm2022/forgeroute-ui-badge.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-bar-row.mjs +255 -0
- package/fesm2022/forgeroute-ui-bar-row.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-boards.mjs +2201 -0
- package/fesm2022/forgeroute-ui-boards.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-bulk-eligible.mjs +172 -0
- package/fesm2022/forgeroute-ui-bulk-eligible.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-business-hours.mjs +771 -0
- package/fesm2022/forgeroute-ui-business-hours.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-calendar.mjs +2006 -0
- package/fesm2022/forgeroute-ui-calendar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-card-list-item.mjs +556 -0
- package/fesm2022/forgeroute-ui-card-list-item.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-charts.mjs +1 -1
- package/fesm2022/forgeroute-ui-charts.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-checkbox.mjs +815 -0
- package/fesm2022/forgeroute-ui-checkbox.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-chip.mjs +379 -0
- package/fesm2022/forgeroute-ui-chip.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-color-input.mjs +492 -0
- package/fesm2022/forgeroute-ui-color-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-column-filter.mjs +645 -0
- package/fesm2022/forgeroute-ui-column-filter.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-columns.mjs +351 -0
- package/fesm2022/forgeroute-ui-columns.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-combobox.mjs +772 -0
- package/fesm2022/forgeroute-ui-combobox.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-confirm.mjs +48 -0
- package/fesm2022/forgeroute-ui-confirm.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-contact-picker.mjs +865 -0
- package/fesm2022/forgeroute-ui-contact-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-conversations.mjs +3627 -0
- package/fesm2022/forgeroute-ui-conversations.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-copy-field.mjs +378 -0
- package/fesm2022/forgeroute-ui-copy-field.mjs.map +1 -0
- package/fesm2022/{forgeroute-ui-core-ui-labels.es-Dzj_XJJM.mjs → forgeroute-ui-core-ui-labels.es-Woi3az70.mjs} +186 -2
- package/fesm2022/{forgeroute-ui-core-ui-labels.es-Dzj_XJJM.mjs.map → forgeroute-ui-core-ui-labels.es-Woi3az70.mjs.map} +1 -1
- package/fesm2022/forgeroute-ui-core.mjs +186 -2
- package/fesm2022/forgeroute-ui-core.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-data-table-core.mjs +6150 -0
- package/fesm2022/forgeroute-ui-data-table-core.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-date-input.mjs +384 -0
- package/fesm2022/forgeroute-ui-date-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-date-range-picker.mjs +453 -0
- package/fesm2022/forgeroute-ui-date-range-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-datetime-input.mjs +375 -0
- package/fesm2022/forgeroute-ui-datetime-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-detail-card.mjs +655 -0
- package/fesm2022/forgeroute-ui-detail-card.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-discount-selector.mjs +259 -0
- package/fesm2022/forgeroute-ui-discount-selector.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-divider.mjs +111 -0
- package/fesm2022/forgeroute-ui-divider.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-dropdown.mjs +550 -0
- package/fesm2022/forgeroute-ui-dropdown.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-editor.mjs +4545 -0
- package/fesm2022/forgeroute-ui-editor.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-empty-state.mjs +231 -0
- package/fesm2022/forgeroute-ui-empty-state.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-error-state.mjs +195 -0
- package/fesm2022/forgeroute-ui-error-state.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-error.mjs +93 -0
- package/fesm2022/forgeroute-ui-error.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-fade.mjs +117 -0
- package/fesm2022/forgeroute-ui-fade.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-file-input.mjs +999 -0
- package/fesm2022/forgeroute-ui-file-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-fixed-footer.mjs +115 -0
- package/fesm2022/forgeroute-ui-fixed-footer.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-form-row.mjs +126 -0
- package/fesm2022/forgeroute-ui-form-row.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-form-section.mjs +93 -0
- package/fesm2022/forgeroute-ui-form-section.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-form.mjs +139 -0
- package/fesm2022/forgeroute-ui-form.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-hint.mjs +47 -0
- package/fesm2022/forgeroute-ui-hint.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-icon-picker.mjs +424 -0
- package/fesm2022/forgeroute-ui-icon-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-icon.mjs +311 -0
- package/fesm2022/forgeroute-ui-icon.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-image-preview.mjs +237 -0
- package/fesm2022/forgeroute-ui-image-preview.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-keypad.mjs +278 -0
- package/fesm2022/forgeroute-ui-keypad.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-kpi-card.mjs +490 -0
- package/fesm2022/forgeroute-ui-kpi-card.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-language-switcher.mjs +134 -0
- package/fesm2022/forgeroute-ui-language-switcher.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-layout.mjs +18 -0
- package/fesm2022/forgeroute-ui-layout.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-list-item.mjs +620 -0
- package/fesm2022/forgeroute-ui-list-item.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-list.mjs +866 -0
- package/fesm2022/forgeroute-ui-list.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-live-region.mjs +118 -0
- package/fesm2022/forgeroute-ui-live-region.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-map.mjs +5 -1
- package/fesm2022/forgeroute-ui-map.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-maps.mjs +2 -1
- package/fesm2022/forgeroute-ui-maps.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-media.mjs +4615 -0
- package/fesm2022/forgeroute-ui-media.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-messaging.mjs +20 -1
- package/fesm2022/forgeroute-ui-messaging.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-more-menu.mjs +418 -0
- package/fesm2022/forgeroute-ui-more-menu.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-multi-select.mjs +532 -0
- package/fesm2022/forgeroute-ui-multi-select.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-notes.mjs +768 -0
- package/fesm2022/forgeroute-ui-notes.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-notification-bell.mjs +587 -0
- package/fesm2022/forgeroute-ui-notification-bell.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-offline-banner.mjs +156 -0
- package/fesm2022/forgeroute-ui-offline-banner.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-option-card.mjs +379 -0
- package/fesm2022/forgeroute-ui-option-card.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-page.mjs +317 -0
- package/fesm2022/forgeroute-ui-page.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-pagination.mjs +225 -0
- package/fesm2022/forgeroute-ui-pagination.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-panel-info-list.mjs +422 -0
- package/fesm2022/forgeroute-ui-panel-info-list.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-password-requirements.mjs +237 -0
- package/fesm2022/forgeroute-ui-password-requirements.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-payments.mjs +6258 -0
- package/fesm2022/forgeroute-ui-payments.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-pdf.mjs +9 -1
- package/fesm2022/forgeroute-ui-pdf.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-phone-number-picker.mjs +840 -0
- package/fesm2022/forgeroute-ui-phone-number-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-pill-tabs.mjs +546 -0
- package/fesm2022/forgeroute-ui-pill-tabs.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-print.mjs +76 -0
- package/fesm2022/forgeroute-ui-print.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-progress-bar.mjs +252 -0
- package/fesm2022/forgeroute-ui-progress-bar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-progress-ring.mjs +277 -0
- package/fesm2022/forgeroute-ui-progress-ring.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-quick-filter-tabs.mjs +301 -0
- package/fesm2022/forgeroute-ui-quick-filter-tabs.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-quickbooks.mjs +18 -1
- package/fesm2022/forgeroute-ui-quickbooks.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-radio-matrix.mjs +471 -0
- package/fesm2022/forgeroute-ui-radio-matrix.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-radio.mjs +911 -0
- package/fesm2022/forgeroute-ui-radio.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-read-only-mode.mjs +15 -0
- package/fesm2022/forgeroute-ui-read-only-mode.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-readonly-fieldset.mjs +146 -0
- package/fesm2022/forgeroute-ui-readonly-fieldset.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-reminder-alerts.mjs +249 -0
- package/fesm2022/forgeroute-ui-reminder-alerts.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-search-input.mjs +373 -0
- package/fesm2022/forgeroute-ui-search-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-section-header.mjs +296 -0
- package/fesm2022/forgeroute-ui-section-header.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-select.mjs +498 -0
- package/fesm2022/forgeroute-ui-select.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-setup.mjs +4649 -0
- package/fesm2022/forgeroute-ui-setup.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-share-menu.mjs +461 -0
- package/fesm2022/forgeroute-ui-share-menu.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-shell.mjs +981 -0
- package/fesm2022/forgeroute-ui-shell.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-show.mjs +129 -0
- package/fesm2022/forgeroute-ui-show.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-sidebar-layout.mjs +355 -0
- package/fesm2022/forgeroute-ui-sidebar-layout.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-skeleton.mjs +152 -0
- package/fesm2022/forgeroute-ui-skeleton.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-skip-link.mjs +129 -0
- package/fesm2022/forgeroute-ui-skip-link.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-snackbar.mjs +200 -0
- package/fesm2022/forgeroute-ui-snackbar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-square.mjs +15 -1
- package/fesm2022/forgeroute-ui-square.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-stack.mjs +233 -0
- package/fesm2022/forgeroute-ui-stack.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stacked-bar.mjs +200 -0
- package/fesm2022/forgeroute-ui-stacked-bar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stacking-plan.mjs +365 -0
- package/fesm2022/forgeroute-ui-stacking-plan.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-star-rating.mjs +498 -0
- package/fesm2022/forgeroute-ui-star-rating.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-star.mjs +184 -0
- package/fesm2022/forgeroute-ui-star.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stepper.mjs +615 -0
- package/fesm2022/forgeroute-ui-stepper.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stripe.mjs +6254 -1188
- package/fesm2022/forgeroute-ui-stripe.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-swatch-picker.mjs +416 -0
- package/fesm2022/forgeroute-ui-swatch-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-table-toolbar.mjs +770 -0
- package/fesm2022/forgeroute-ui-table-toolbar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-table-types.mjs +277 -0
- package/fesm2022/forgeroute-ui-table-types.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-text-input.mjs +1003 -0
- package/fesm2022/forgeroute-ui-text-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-text-template-picker.mjs +356 -0
- package/fesm2022/forgeroute-ui-text-template-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-text.mjs +195 -0
- package/fesm2022/forgeroute-ui-text.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-textarea-input.mjs +542 -0
- package/fesm2022/forgeroute-ui-textarea-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-time-input.mjs +401 -0
- package/fesm2022/forgeroute-ui-time-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-timeline.mjs +549 -0
- package/fesm2022/forgeroute-ui-timeline.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-toast.mjs +507 -0
- package/fesm2022/forgeroute-ui-toast.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-toggle-badge.mjs +177 -0
- package/fesm2022/forgeroute-ui-toggle-badge.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-toggle.mjs +275 -0
- package/fesm2022/forgeroute-ui-toggle.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-tooltip.mjs +155 -0
- package/fesm2022/forgeroute-ui-tooltip.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-utils.mjs +1071 -0
- package/fesm2022/forgeroute-ui-utils.mjs.map +1 -0
- package/fesm2022/forgeroute-ui.mjs +105 -70663
- package/package.json +422 -2
- package/types/forgeroute-ui-action-bar.d.ts +74 -0
- package/types/forgeroute-ui-address-input.d.ts +354 -0
- package/types/forgeroute-ui-alert.d.ts +89 -0
- package/types/forgeroute-ui-avatar.d.ts +85 -0
- package/types/forgeroute-ui-badge.d.ts +45 -0
- package/types/forgeroute-ui-bar-row.d.ts +90 -0
- package/types/forgeroute-ui-boards.d.ts +575 -0
- package/types/forgeroute-ui-bulk-eligible.d.ts +53 -0
- package/types/forgeroute-ui-business-hours.d.ts +191 -0
- package/types/forgeroute-ui-calendar.d.ts +544 -0
- package/types/forgeroute-ui-card-list-item.d.ts +186 -0
- package/types/forgeroute-ui-charts.d.ts +1 -1
- package/types/forgeroute-ui-checkbox.d.ts +270 -0
- package/types/forgeroute-ui-chip.d.ts +125 -0
- package/types/forgeroute-ui-color-input.d.ts +160 -0
- package/types/forgeroute-ui-column-filter.d.ts +130 -0
- package/types/forgeroute-ui-columns.d.ts +150 -0
- package/types/forgeroute-ui-combobox.d.ts +252 -0
- package/types/forgeroute-ui-confirm.d.ts +34 -0
- package/types/forgeroute-ui-contact-picker.d.ts +173 -0
- package/types/forgeroute-ui-conversations.d.ts +993 -0
- package/types/forgeroute-ui-copy-field.d.ts +122 -0
- package/types/forgeroute-ui-core.d.ts +188 -4
- package/types/forgeroute-ui-data-table-core.d.ts +1221 -0
- package/types/forgeroute-ui-date-input.d.ts +101 -0
- package/types/forgeroute-ui-date-range-picker.d.ts +109 -0
- package/types/forgeroute-ui-datetime-input.d.ts +97 -0
- package/types/forgeroute-ui-detail-card.d.ts +252 -0
- package/types/forgeroute-ui-discount-selector.d.ts +57 -0
- package/types/forgeroute-ui-divider.d.ts +40 -0
- package/types/forgeroute-ui-dropdown.d.ts +156 -0
- package/types/forgeroute-ui-editor.d.ts +873 -0
- package/types/forgeroute-ui-empty-state.d.ts +29 -0
- package/types/forgeroute-ui-error-state.d.ts +38 -0
- package/types/forgeroute-ui-error.d.ts +29 -0
- package/types/forgeroute-ui-fade.d.ts +39 -0
- package/types/forgeroute-ui-file-input.d.ts +337 -0
- package/types/forgeroute-ui-fixed-footer.d.ts +53 -0
- package/types/forgeroute-ui-form-row.d.ts +30 -0
- package/types/forgeroute-ui-form-section.d.ts +18 -0
- package/types/forgeroute-ui-form.d.ts +68 -0
- package/types/forgeroute-ui-hint.d.ts +10 -0
- package/types/forgeroute-ui-icon-picker.d.ts +122 -0
- package/types/forgeroute-ui-icon.d.ts +95 -0
- package/types/forgeroute-ui-image-preview.d.ts +88 -0
- package/types/forgeroute-ui-keypad.d.ts +73 -0
- package/types/forgeroute-ui-kpi-card.d.ts +161 -0
- package/types/forgeroute-ui-language-switcher.d.ts +41 -0
- package/types/forgeroute-ui-layout.d.ts +13 -0
- package/types/forgeroute-ui-list-item.d.ts +253 -0
- package/types/forgeroute-ui-list.d.ts +282 -0
- package/types/forgeroute-ui-live-region.d.ts +49 -0
- package/types/forgeroute-ui-map.d.ts +1 -1
- package/types/forgeroute-ui-maps.d.ts +1 -1
- package/types/forgeroute-ui-media.d.ts +1221 -0
- package/types/forgeroute-ui-messaging.d.ts +11 -6
- package/types/forgeroute-ui-more-menu.d.ts +91 -0
- package/types/forgeroute-ui-multi-select.d.ts +119 -0
- package/types/forgeroute-ui-notes.d.ts +172 -0
- package/types/forgeroute-ui-notification-bell.d.ts +135 -0
- package/types/forgeroute-ui-offline-banner.d.ts +44 -0
- package/types/forgeroute-ui-option-card.d.ts +106 -0
- package/types/forgeroute-ui-page.d.ts +115 -0
- package/types/forgeroute-ui-pagination.d.ts +55 -0
- package/types/forgeroute-ui-panel-info-list.d.ts +147 -0
- package/types/forgeroute-ui-password-requirements.d.ts +89 -0
- package/types/forgeroute-ui-payments.d.ts +1826 -0
- package/types/forgeroute-ui-pdf.d.ts +1 -1
- package/types/forgeroute-ui-phone-number-picker.d.ts +199 -0
- package/types/forgeroute-ui-pill-tabs.d.ts +208 -0
- package/types/forgeroute-ui-print.d.ts +40 -0
- package/types/forgeroute-ui-progress-bar.d.ts +88 -0
- package/types/forgeroute-ui-progress-ring.d.ts +102 -0
- package/types/forgeroute-ui-quick-filter-tabs.d.ts +51 -0
- package/types/forgeroute-ui-quickbooks.d.ts +6 -3
- package/types/forgeroute-ui-radio-matrix.d.ts +131 -0
- package/types/forgeroute-ui-radio.d.ts +311 -0
- package/types/forgeroute-ui-read-only-mode.d.ts +26 -0
- package/types/forgeroute-ui-readonly-fieldset.d.ts +62 -0
- package/types/forgeroute-ui-reminder-alerts.d.ts +71 -0
- package/types/forgeroute-ui-search-input.d.ts +93 -0
- package/types/forgeroute-ui-section-header.d.ts +149 -0
- package/types/forgeroute-ui-select.d.ts +183 -0
- package/types/forgeroute-ui-setup.d.ts +775 -0
- package/types/forgeroute-ui-share-menu.d.ts +99 -0
- package/types/forgeroute-ui-shell.d.ts +173 -0
- package/types/forgeroute-ui-show.d.ts +40 -0
- package/types/forgeroute-ui-sidebar-layout.d.ts +161 -0
- package/types/forgeroute-ui-skeleton.d.ts +51 -0
- package/types/forgeroute-ui-skip-link.d.ts +51 -0
- package/types/forgeroute-ui-snackbar.d.ts +50 -0
- package/types/forgeroute-ui-square.d.ts +5 -3
- package/types/forgeroute-ui-stack.d.ts +99 -0
- package/types/forgeroute-ui-stacked-bar.d.ts +84 -0
- package/types/forgeroute-ui-stacking-plan.d.ts +116 -0
- package/types/forgeroute-ui-star-rating.d.ts +151 -0
- package/types/forgeroute-ui-star.d.ts +46 -0
- package/types/forgeroute-ui-stepper.d.ts +273 -0
- package/types/forgeroute-ui-stripe.d.ts +1458 -3
- package/types/forgeroute-ui-swatch-picker.d.ts +118 -0
- package/types/forgeroute-ui-table-toolbar.d.ts +116 -0
- package/types/forgeroute-ui-table-types.d.ts +624 -0
- package/types/forgeroute-ui-text-input.d.ts +359 -0
- package/types/forgeroute-ui-text-template-picker.d.ts +100 -0
- package/types/forgeroute-ui-text.d.ts +76 -0
- package/types/forgeroute-ui-textarea-input.d.ts +174 -0
- package/types/forgeroute-ui-time-input.d.ts +105 -0
- package/types/forgeroute-ui-timeline.d.ts +196 -0
- package/types/forgeroute-ui-toast.d.ts +131 -0
- package/types/forgeroute-ui-toggle-badge.d.ts +64 -0
- package/types/forgeroute-ui-toggle.d.ts +92 -0
- package/types/forgeroute-ui-tooltip.d.ts +36 -0
- package/types/forgeroute-ui-utils.d.ts +210 -0
- package/types/forgeroute-ui.d.ts +106 -19539
- package/fesm2022/forgeroute-ui.mjs.map +0 -1
|
@@ -0,0 +1,1003 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, computed, effect, forwardRef, inject, input, isDevMode, output, signal, viewChild } from "@angular/core";
|
|
3
|
+
import { NG_VALIDATORS, NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
4
|
+
import { DEFAULT_PASSWORD_RULES, PasswordRequirementsComponent } from "@forgeroute/ui/password-requirements";
|
|
5
|
+
import { iconPath } from "@forgeroute/ui/icon";
|
|
6
|
+
import { UiFieldValidity, UiLabelsService, createFieldReveal, issueToErrors, maxLengthIssue, mergeDescribedBy, requiredIssue, uiText } from "@forgeroute/ui/core";
|
|
7
|
+
var TextInputComponent = class TextInputComponent {
|
|
8
|
+
static {
|
|
9
|
+
this._EMAIL_RE = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
10
|
+
}
|
|
11
|
+
focus(options) {
|
|
12
|
+
this._fieldEl()?.nativeElement.focus(options);
|
|
13
|
+
}
|
|
14
|
+
getSelection() {
|
|
15
|
+
const el = this._fieldEl()?.nativeElement;
|
|
16
|
+
if (!el) return null;
|
|
17
|
+
try {
|
|
18
|
+
if (el.selectionStart === null || el.selectionEnd === null) return null;
|
|
19
|
+
return {
|
|
20
|
+
start: el.selectionStart,
|
|
21
|
+
end: el.selectionEnd
|
|
22
|
+
};
|
|
23
|
+
} catch {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
setSelection(start, end = start) {
|
|
28
|
+
const el = this._fieldEl()?.nativeElement;
|
|
29
|
+
if (!el) return;
|
|
30
|
+
const max = el.value.length;
|
|
31
|
+
const from = Math.min(Math.max(0, start), max);
|
|
32
|
+
const to = Math.min(Math.max(from, end), max);
|
|
33
|
+
try {
|
|
34
|
+
el.setSelectionRange(from, to);
|
|
35
|
+
} catch {}
|
|
36
|
+
}
|
|
37
|
+
insertAtCaret(text) {
|
|
38
|
+
const el = this._fieldEl()?.nativeElement;
|
|
39
|
+
if (!el || el.disabled || el.readOnly || !text) return;
|
|
40
|
+
const value = el.value;
|
|
41
|
+
let from = value.length;
|
|
42
|
+
let to = value.length;
|
|
43
|
+
try {
|
|
44
|
+
if (el.selectionStart !== null && el.selectionEnd !== null) {
|
|
45
|
+
from = el.selectionStart;
|
|
46
|
+
to = el.selectionEnd;
|
|
47
|
+
}
|
|
48
|
+
} catch {}
|
|
49
|
+
const max = this.maxlength();
|
|
50
|
+
const room = max === void 0 ? text.length : max - (value.length - (to - from));
|
|
51
|
+
const insert = text.slice(0, Math.max(0, room));
|
|
52
|
+
if (!insert) return;
|
|
53
|
+
el.value = value.slice(0, from) + insert + value.slice(to);
|
|
54
|
+
const caret = from + insert.length;
|
|
55
|
+
try {
|
|
56
|
+
el.setSelectionRange(caret, caret);
|
|
57
|
+
} catch {}
|
|
58
|
+
el.dispatchEvent(new Event("input", { bubbles: true }));
|
|
59
|
+
}
|
|
60
|
+
constructor() {
|
|
61
|
+
this.labels = inject(UiLabelsService);
|
|
62
|
+
this.label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
63
|
+
this.ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
64
|
+
this.inputTestId = input("", ...ngDevMode ? [{ debugName: "inputTestId" }] : /* istanbul ignore next */ []);
|
|
65
|
+
this.inputName = input("", ...ngDevMode ? [{ debugName: "inputName" }] : /* istanbul ignore next */ []);
|
|
66
|
+
this.placeholder = input("", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
67
|
+
this.prefix = input("", ...ngDevMode ? [{ debugName: "prefix" }] : /* istanbul ignore next */ []);
|
|
68
|
+
this.leadingIcon = input("", ...ngDevMode ? [{ debugName: "leadingIcon" }] : /* istanbul ignore next */ []);
|
|
69
|
+
this.revealable = input(false, ...ngDevMode ? [{ debugName: "revealable" }] : /* istanbul ignore next */ []);
|
|
70
|
+
this.passwordRequirements = input(false, ...ngDevMode ? [{ debugName: "passwordRequirements" }] : /* istanbul ignore next */ []);
|
|
71
|
+
this.passwordRules = input(void 0, ...ngDevMode ? [{ debugName: "passwordRules" }] : /* istanbul ignore next */ []);
|
|
72
|
+
this.type = input("text", ...ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []);
|
|
73
|
+
this.maxlength = input(void 0, ...ngDevMode ? [{ debugName: "maxlength" }] : /* istanbul ignore next */ []);
|
|
74
|
+
this.required = input(false, ...ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []);
|
|
75
|
+
this.autocomplete = input("off", ...ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []);
|
|
76
|
+
this.inputmode = input("", ...ngDevMode ? [{ debugName: "inputmode" }] : /* istanbul ignore next */ []);
|
|
77
|
+
this.readonly = input(false, ...ngDevMode ? [{ debugName: "readonly" }] : /* istanbul ignore next */ []);
|
|
78
|
+
this.hint = input("", ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
|
|
79
|
+
this.ariaDescribedBy = input("", ...ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
|
|
80
|
+
this.ariaInvalid = input(false, ...ngDevMode ? [{ debugName: "ariaInvalid" }] : /* istanbul ignore next */ []);
|
|
81
|
+
this.error = input("", ...ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []);
|
|
82
|
+
this.phoneFormat = input(false, ...ngDevMode ? [{ debugName: "phoneFormat" }] : /* istanbul ignore next */ []);
|
|
83
|
+
this.min = input(void 0, ...ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []);
|
|
84
|
+
this.max = input(void 0, ...ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []);
|
|
85
|
+
this.maxDecimals = input(void 0, ...ngDevMode ? [{ debugName: "maxDecimals" }] : /* istanbul ignore next */ []);
|
|
86
|
+
this.step = input(void 0, ...ngDevMode ? [{ debugName: "step" }] : /* istanbul ignore next */ []);
|
|
87
|
+
this.valueType = input("string", ...ngDevMode ? [{ debugName: "valueType" }] : /* istanbul ignore next */ []);
|
|
88
|
+
this.formatter = input(void 0, ...ngDevMode ? [{ debugName: "formatter" }] : /* istanbul ignore next */ []);
|
|
89
|
+
this.integer = input(false, ...ngDevMode ? [{ debugName: "integer" }] : /* istanbul ignore next */ []);
|
|
90
|
+
this.showErrors = input(false, ...ngDevMode ? [{ debugName: "showErrors" }] : /* istanbul ignore next */ []);
|
|
91
|
+
this.valueChange = output();
|
|
92
|
+
this.focused = output();
|
|
93
|
+
this.blurred = output();
|
|
94
|
+
this.invalidChange = output();
|
|
95
|
+
this._disabledInput = input(false, {
|
|
96
|
+
...ngDevMode ? { debugName: "_disabledInput" } : /* istanbul ignore next */ {},
|
|
97
|
+
alias: "disabled"
|
|
98
|
+
});
|
|
99
|
+
this._cvaDisabled = signal(false, ...ngDevMode ? [{ debugName: "_cvaDisabled" }] : /* istanbul ignore next */ []);
|
|
100
|
+
this.disabled = computed(() => this._disabledInput() || this._cvaDisabled(), ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
|
|
101
|
+
this._value = signal("", ...ngDevMode ? [{ debugName: "_value" }] : /* istanbul ignore next */ []);
|
|
102
|
+
this._reveal = createFieldReveal(this.showErrors);
|
|
103
|
+
this._leadingD = computed(() => {
|
|
104
|
+
const key = this.leadingIcon().trim();
|
|
105
|
+
return key ? iconPath(key) ?? null : null;
|
|
106
|
+
}, ...ngDevMode ? [{ debugName: "_leadingD" }] : /* istanbul ignore next */ []);
|
|
107
|
+
this._prefixPadding = computed(() => {
|
|
108
|
+
const icon = !!this._leadingD();
|
|
109
|
+
if (this.prefix()) return icon ? `calc(36px + ${this.prefix().length}ch + 6px)` : `calc(12px + ${this.prefix().length}ch + 6px)`;
|
|
110
|
+
return icon ? "36px" : null;
|
|
111
|
+
}, ...ngDevMode ? [{ debugName: "_prefixPadding" }] : /* istanbul ignore next */ []);
|
|
112
|
+
this._fieldEl = viewChild("field", ...ngDevMode ? [{ debugName: "_fieldEl" }] : /* istanbul ignore next */ []);
|
|
113
|
+
this._numeric = computed(() => this.valueType() === "number" && this.type() === "number", ...ngDevMode ? [{ debugName: "_numeric" }] : /* istanbul ignore next */ []);
|
|
114
|
+
this._stepAttr = computed(() => {
|
|
115
|
+
const step = this.step();
|
|
116
|
+
if (this.type() === "number" && typeof step === "number" && Number.isFinite(step) && step > 0) return String(step);
|
|
117
|
+
return this.type() === "number" && this.integer() ? "1" : null;
|
|
118
|
+
}, ...ngDevMode ? [{ debugName: "_stepAttr" }] : /* istanbul ignore next */ []);
|
|
119
|
+
this._revealable = computed(() => this.revealable() && this.type() === "password", ...ngDevMode ? [{ debugName: "_revealable" }] : /* istanbul ignore next */ []);
|
|
120
|
+
this._shown = signal(false, ...ngDevMode ? [{ debugName: "_shown" }] : /* istanbul ignore next */ []);
|
|
121
|
+
this._inputType = computed(() => this._revealable() && this._shown() ? "text" : this.type(), ...ngDevMode ? [{ debugName: "_inputType" }] : /* istanbul ignore next */ []);
|
|
122
|
+
this._eyePath = iconPath("view");
|
|
123
|
+
this._eyeOffPath = iconPath("view-off");
|
|
124
|
+
this._showRequirements = computed(() => this.passwordRequirements() && this.type() === "password" && this._typed(), ...ngDevMode ? [{ debugName: "_showRequirements" }] : /* istanbul ignore next */ []);
|
|
125
|
+
this._describedBy = computed(() => {
|
|
126
|
+
const ids = [this._activeError() || this.hint() ? this._inputId + "-desc" : "", this._showRequirements() ? this._inputId + "-req" : ""].filter(Boolean);
|
|
127
|
+
return mergeDescribedBy(ids.join(" "), this.ariaDescribedBy());
|
|
128
|
+
}, ...ngDevMode ? [{ debugName: "_describedBy" }] : /* istanbul ignore next */ []);
|
|
129
|
+
this._typed = signal(false, ...ngDevMode ? [{ debugName: "_typed" }] : /* istanbul ignore next */ []);
|
|
130
|
+
this._defaultRules = DEFAULT_PASSWORD_RULES;
|
|
131
|
+
this._warned = false;
|
|
132
|
+
this._formatting = computed(() => this.phoneFormat() || this.type() === "tel", ...ngDevMode ? [{ debugName: "_formatting" }] : /* istanbul ignore next */ []);
|
|
133
|
+
this._hostText = signal(null, ...ngDevMode ? [{ debugName: "_hostText" }] : /* istanbul ignore next */ []);
|
|
134
|
+
this._issue = computed(() => this._check(this._hostText() ?? this._value()), ...ngDevMode ? [{ debugName: "_issue" }] : /* istanbul ignore next */ []);
|
|
135
|
+
this.invalid = computed(() => !!this.error() || !!this._issue(), ...ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []);
|
|
136
|
+
this.errorMessage = computed(() => this._issue()?.message ?? "", ...ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []);
|
|
137
|
+
this._activeError = computed(() => this._reveal.revealed() ? this.error() || this.errorMessage() : "", ...ngDevMode ? [{ debugName: "_activeError" }] : /* istanbul ignore next */ []);
|
|
138
|
+
this._inputId = `ti-${Math.random().toString(36).slice(2, 8)}`;
|
|
139
|
+
this._onChange = (_) => {};
|
|
140
|
+
this._onTouched = () => {};
|
|
141
|
+
this._onValidatorChange = () => {};
|
|
142
|
+
effect(() => {
|
|
143
|
+
this.invalidChange.emit(this.invalid());
|
|
144
|
+
});
|
|
145
|
+
effect(() => {
|
|
146
|
+
if (this.valueType() === "number" && this.type() !== "number" && !this._warned && isDevMode()) {
|
|
147
|
+
this._warned = true;
|
|
148
|
+
console.warn("ui-text-input: valueType=\"number\" needs type=\"number\"");
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
ngOnChanges() {
|
|
153
|
+
this._onValidatorChange();
|
|
154
|
+
}
|
|
155
|
+
writeValue(val) {
|
|
156
|
+
const text = val == null || typeof val === "number" && Number.isNaN(val) && this._numeric() ? "" : String(val);
|
|
157
|
+
const shown = this._formatting() ? TextInputComponent._formatPhone(text) : text;
|
|
158
|
+
this._value.set(shown);
|
|
159
|
+
this._hostText.set(this._formatting() && shown !== text && this.type() === "tel" ? text : null);
|
|
160
|
+
if (text === "") this._typed.set(false);
|
|
161
|
+
}
|
|
162
|
+
validate(control) {
|
|
163
|
+
const v = control.value;
|
|
164
|
+
let text = v == null ? "" : String(v);
|
|
165
|
+
if (this._numeric()) {
|
|
166
|
+
const typed = this._value();
|
|
167
|
+
if (typed.trim() && TextInputComponent._parse(typed) === (typeof v === "number" && Number.isFinite(v) ? v : null)) text = typed;
|
|
168
|
+
}
|
|
169
|
+
return issueToErrors(this._check(text));
|
|
170
|
+
}
|
|
171
|
+
registerOnValidatorChange(fn) {
|
|
172
|
+
this._onValidatorChange = fn;
|
|
173
|
+
}
|
|
174
|
+
registerOnChange(fn) {
|
|
175
|
+
this._onChange = fn;
|
|
176
|
+
}
|
|
177
|
+
registerOnTouched(fn) {
|
|
178
|
+
this._onTouched = fn;
|
|
179
|
+
}
|
|
180
|
+
setDisabledState(d) {
|
|
181
|
+
this._cvaDisabled.set(d);
|
|
182
|
+
}
|
|
183
|
+
onInput(event) {
|
|
184
|
+
this._typed.set(true);
|
|
185
|
+
const input = event.target;
|
|
186
|
+
const raw = input.value;
|
|
187
|
+
let caretBefore = null;
|
|
188
|
+
try {
|
|
189
|
+
caretBefore = input.selectionStart;
|
|
190
|
+
} catch {}
|
|
191
|
+
let val = this._formatting() ? TextInputComponent._formatPhone(raw) : raw;
|
|
192
|
+
if (this.integer()) val = val.replace(/[.eE].*$/, "");
|
|
193
|
+
const format = this.formatter();
|
|
194
|
+
if (format) val = format(val);
|
|
195
|
+
this._hostText.set(null);
|
|
196
|
+
this._value.set(val);
|
|
197
|
+
const emitted = this._numeric() ? TextInputComponent._parse(val) : val;
|
|
198
|
+
this._onChange(emitted);
|
|
199
|
+
this.valueChange.emit(emitted);
|
|
200
|
+
const shown = this._value();
|
|
201
|
+
if (input.value !== shown) {
|
|
202
|
+
input.value = shown;
|
|
203
|
+
const caret = this._formatting() && !format && caretBefore !== null && caretBefore < raw.length ? TextInputComponent._caretAfterDigits(raw, caretBefore, shown) : shown.length;
|
|
204
|
+
try {
|
|
205
|
+
input.setSelectionRange(caret, caret);
|
|
206
|
+
} catch {}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
static _caretAfterDigits(raw, caret, formatted) {
|
|
210
|
+
let n = (raw.slice(0, caret).match(/\d/g) ?? []).length;
|
|
211
|
+
const all = raw.replace(/\D/g, "");
|
|
212
|
+
if (!raw.startsWith("+") && all.length === 11 && all.startsWith("1")) n = Math.max(0, n - 1);
|
|
213
|
+
let pos = 0;
|
|
214
|
+
if (n > 0) {
|
|
215
|
+
let seen = 0;
|
|
216
|
+
pos = formatted.length;
|
|
217
|
+
for (let i = 0; i < formatted.length; i++) if (/\d/.test(formatted[i]) && ++seen === n) {
|
|
218
|
+
pos = i + 1;
|
|
219
|
+
break;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
if (caret > 0 && !/\d/.test(raw[caret - 1])) while (pos < formatted.length && !/\d/.test(formatted[pos])) pos++;
|
|
223
|
+
return pos;
|
|
224
|
+
}
|
|
225
|
+
static _parse(text) {
|
|
226
|
+
const t = text.trim();
|
|
227
|
+
if (!t) return null;
|
|
228
|
+
const n = Number(t);
|
|
229
|
+
return Number.isFinite(n) ? n : null;
|
|
230
|
+
}
|
|
231
|
+
onFocus() {
|
|
232
|
+
this.focused.emit();
|
|
233
|
+
}
|
|
234
|
+
onBlur() {
|
|
235
|
+
this._onTouched();
|
|
236
|
+
this.blurred.emit();
|
|
237
|
+
this._reveal.touched.set(true);
|
|
238
|
+
}
|
|
239
|
+
_check(value) {
|
|
240
|
+
if (this.disabled() || this.readonly()) return null;
|
|
241
|
+
const text = value.trim();
|
|
242
|
+
if (!text) return this.required() ? requiredIssue(this.label()) : null;
|
|
243
|
+
const tooLong = maxLengthIssue(text, this.maxlength());
|
|
244
|
+
if (tooLong) return tooLong;
|
|
245
|
+
switch (this.type()) {
|
|
246
|
+
case "email": return TextInputComponent._EMAIL_RE.test(text) ? null : {
|
|
247
|
+
key: "email",
|
|
248
|
+
message: uiText("validation.email")
|
|
249
|
+
};
|
|
250
|
+
case "tel": return TextInputComponent._validPhone(text) ? null : {
|
|
251
|
+
key: "phone",
|
|
252
|
+
message: uiText("validation.phone")
|
|
253
|
+
};
|
|
254
|
+
case "number": return this._checkNumber(text);
|
|
255
|
+
default: return null;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
_checkNumber(text) {
|
|
259
|
+
const n = Number(text);
|
|
260
|
+
if (!Number.isFinite(n)) return {
|
|
261
|
+
key: "number",
|
|
262
|
+
message: uiText("validation.number")
|
|
263
|
+
};
|
|
264
|
+
const min = this.min(), max = this.max(), decimals = this.maxDecimals() ?? (this.integer() ? 0 : void 0);
|
|
265
|
+
if (min != null && n < min) return {
|
|
266
|
+
key: "min",
|
|
267
|
+
message: uiText("validation.min", { min }),
|
|
268
|
+
value: {
|
|
269
|
+
min,
|
|
270
|
+
actual: n
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
if (max != null && n > max) return {
|
|
274
|
+
key: "max",
|
|
275
|
+
message: uiText("validation.max", { max }),
|
|
276
|
+
value: {
|
|
277
|
+
max,
|
|
278
|
+
actual: n
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
if (decimals != null && !/e/i.test(text) && (text.split(".")[1]?.length ?? 0) > decimals) return {
|
|
282
|
+
key: "decimals",
|
|
283
|
+
message: uiText(decimals === 1 ? "validation.decimals_one" : "validation.decimals_other", { count: decimals }),
|
|
284
|
+
value: { maxDecimals: decimals }
|
|
285
|
+
};
|
|
286
|
+
return null;
|
|
287
|
+
}
|
|
288
|
+
static _validPhone(text) {
|
|
289
|
+
const digits = text.replace(/\D/g, "");
|
|
290
|
+
if (text.startsWith("+")) return digits.length >= 8 && digits.length <= 15;
|
|
291
|
+
return digits.length === 10 || digits.length === 11 && digits.startsWith("1");
|
|
292
|
+
}
|
|
293
|
+
static _formatPhone(raw) {
|
|
294
|
+
if (!raw) return "";
|
|
295
|
+
if (raw.startsWith("+")) return raw;
|
|
296
|
+
const digits = raw.replace(/\D/g, "");
|
|
297
|
+
const d = digits.startsWith("1") && digits.length === 11 ? digits.slice(1) : digits.slice(0, 10);
|
|
298
|
+
if (d.length <= 3) return d;
|
|
299
|
+
if (d.length <= 6) return `(${d.slice(0, 3)}) ${d.slice(3)}`;
|
|
300
|
+
return `(${d.slice(0, 3)}) ${d.slice(3, 6)}-${d.slice(6)}`;
|
|
301
|
+
}
|
|
302
|
+
static {
|
|
303
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
304
|
+
minVersion: "12.0.0",
|
|
305
|
+
version: "22.2.2",
|
|
306
|
+
ngImport: i0,
|
|
307
|
+
type: TextInputComponent,
|
|
308
|
+
deps: [],
|
|
309
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
static {
|
|
313
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
314
|
+
minVersion: "17.0.0",
|
|
315
|
+
version: "22.2.2",
|
|
316
|
+
type: TextInputComponent,
|
|
317
|
+
isStandalone: true,
|
|
318
|
+
selector: "ui-text-input",
|
|
319
|
+
inputs: {
|
|
320
|
+
label: {
|
|
321
|
+
classPropertyName: "label",
|
|
322
|
+
publicName: "label",
|
|
323
|
+
isSignal: true,
|
|
324
|
+
isRequired: false,
|
|
325
|
+
transformFunction: null
|
|
326
|
+
},
|
|
327
|
+
ariaLabel: {
|
|
328
|
+
classPropertyName: "ariaLabel",
|
|
329
|
+
publicName: "ariaLabel",
|
|
330
|
+
isSignal: true,
|
|
331
|
+
isRequired: false,
|
|
332
|
+
transformFunction: null
|
|
333
|
+
},
|
|
334
|
+
inputTestId: {
|
|
335
|
+
classPropertyName: "inputTestId",
|
|
336
|
+
publicName: "inputTestId",
|
|
337
|
+
isSignal: true,
|
|
338
|
+
isRequired: false,
|
|
339
|
+
transformFunction: null
|
|
340
|
+
},
|
|
341
|
+
inputName: {
|
|
342
|
+
classPropertyName: "inputName",
|
|
343
|
+
publicName: "inputName",
|
|
344
|
+
isSignal: true,
|
|
345
|
+
isRequired: false,
|
|
346
|
+
transformFunction: null
|
|
347
|
+
},
|
|
348
|
+
placeholder: {
|
|
349
|
+
classPropertyName: "placeholder",
|
|
350
|
+
publicName: "placeholder",
|
|
351
|
+
isSignal: true,
|
|
352
|
+
isRequired: false,
|
|
353
|
+
transformFunction: null
|
|
354
|
+
},
|
|
355
|
+
prefix: {
|
|
356
|
+
classPropertyName: "prefix",
|
|
357
|
+
publicName: "prefix",
|
|
358
|
+
isSignal: true,
|
|
359
|
+
isRequired: false,
|
|
360
|
+
transformFunction: null
|
|
361
|
+
},
|
|
362
|
+
leadingIcon: {
|
|
363
|
+
classPropertyName: "leadingIcon",
|
|
364
|
+
publicName: "leadingIcon",
|
|
365
|
+
isSignal: true,
|
|
366
|
+
isRequired: false,
|
|
367
|
+
transformFunction: null
|
|
368
|
+
},
|
|
369
|
+
revealable: {
|
|
370
|
+
classPropertyName: "revealable",
|
|
371
|
+
publicName: "revealable",
|
|
372
|
+
isSignal: true,
|
|
373
|
+
isRequired: false,
|
|
374
|
+
transformFunction: null
|
|
375
|
+
},
|
|
376
|
+
passwordRequirements: {
|
|
377
|
+
classPropertyName: "passwordRequirements",
|
|
378
|
+
publicName: "passwordRequirements",
|
|
379
|
+
isSignal: true,
|
|
380
|
+
isRequired: false,
|
|
381
|
+
transformFunction: null
|
|
382
|
+
},
|
|
383
|
+
passwordRules: {
|
|
384
|
+
classPropertyName: "passwordRules",
|
|
385
|
+
publicName: "passwordRules",
|
|
386
|
+
isSignal: true,
|
|
387
|
+
isRequired: false,
|
|
388
|
+
transformFunction: null
|
|
389
|
+
},
|
|
390
|
+
type: {
|
|
391
|
+
classPropertyName: "type",
|
|
392
|
+
publicName: "type",
|
|
393
|
+
isSignal: true,
|
|
394
|
+
isRequired: false,
|
|
395
|
+
transformFunction: null
|
|
396
|
+
},
|
|
397
|
+
maxlength: {
|
|
398
|
+
classPropertyName: "maxlength",
|
|
399
|
+
publicName: "maxlength",
|
|
400
|
+
isSignal: true,
|
|
401
|
+
isRequired: false,
|
|
402
|
+
transformFunction: null
|
|
403
|
+
},
|
|
404
|
+
required: {
|
|
405
|
+
classPropertyName: "required",
|
|
406
|
+
publicName: "required",
|
|
407
|
+
isSignal: true,
|
|
408
|
+
isRequired: false,
|
|
409
|
+
transformFunction: null
|
|
410
|
+
},
|
|
411
|
+
autocomplete: {
|
|
412
|
+
classPropertyName: "autocomplete",
|
|
413
|
+
publicName: "autocomplete",
|
|
414
|
+
isSignal: true,
|
|
415
|
+
isRequired: false,
|
|
416
|
+
transformFunction: null
|
|
417
|
+
},
|
|
418
|
+
inputmode: {
|
|
419
|
+
classPropertyName: "inputmode",
|
|
420
|
+
publicName: "inputmode",
|
|
421
|
+
isSignal: true,
|
|
422
|
+
isRequired: false,
|
|
423
|
+
transformFunction: null
|
|
424
|
+
},
|
|
425
|
+
readonly: {
|
|
426
|
+
classPropertyName: "readonly",
|
|
427
|
+
publicName: "readonly",
|
|
428
|
+
isSignal: true,
|
|
429
|
+
isRequired: false,
|
|
430
|
+
transformFunction: null
|
|
431
|
+
},
|
|
432
|
+
hint: {
|
|
433
|
+
classPropertyName: "hint",
|
|
434
|
+
publicName: "hint",
|
|
435
|
+
isSignal: true,
|
|
436
|
+
isRequired: false,
|
|
437
|
+
transformFunction: null
|
|
438
|
+
},
|
|
439
|
+
ariaDescribedBy: {
|
|
440
|
+
classPropertyName: "ariaDescribedBy",
|
|
441
|
+
publicName: "ariaDescribedBy",
|
|
442
|
+
isSignal: true,
|
|
443
|
+
isRequired: false,
|
|
444
|
+
transformFunction: null
|
|
445
|
+
},
|
|
446
|
+
ariaInvalid: {
|
|
447
|
+
classPropertyName: "ariaInvalid",
|
|
448
|
+
publicName: "ariaInvalid",
|
|
449
|
+
isSignal: true,
|
|
450
|
+
isRequired: false,
|
|
451
|
+
transformFunction: null
|
|
452
|
+
},
|
|
453
|
+
error: {
|
|
454
|
+
classPropertyName: "error",
|
|
455
|
+
publicName: "error",
|
|
456
|
+
isSignal: true,
|
|
457
|
+
isRequired: false,
|
|
458
|
+
transformFunction: null
|
|
459
|
+
},
|
|
460
|
+
phoneFormat: {
|
|
461
|
+
classPropertyName: "phoneFormat",
|
|
462
|
+
publicName: "phoneFormat",
|
|
463
|
+
isSignal: true,
|
|
464
|
+
isRequired: false,
|
|
465
|
+
transformFunction: null
|
|
466
|
+
},
|
|
467
|
+
min: {
|
|
468
|
+
classPropertyName: "min",
|
|
469
|
+
publicName: "min",
|
|
470
|
+
isSignal: true,
|
|
471
|
+
isRequired: false,
|
|
472
|
+
transformFunction: null
|
|
473
|
+
},
|
|
474
|
+
max: {
|
|
475
|
+
classPropertyName: "max",
|
|
476
|
+
publicName: "max",
|
|
477
|
+
isSignal: true,
|
|
478
|
+
isRequired: false,
|
|
479
|
+
transformFunction: null
|
|
480
|
+
},
|
|
481
|
+
maxDecimals: {
|
|
482
|
+
classPropertyName: "maxDecimals",
|
|
483
|
+
publicName: "maxDecimals",
|
|
484
|
+
isSignal: true,
|
|
485
|
+
isRequired: false,
|
|
486
|
+
transformFunction: null
|
|
487
|
+
},
|
|
488
|
+
step: {
|
|
489
|
+
classPropertyName: "step",
|
|
490
|
+
publicName: "step",
|
|
491
|
+
isSignal: true,
|
|
492
|
+
isRequired: false,
|
|
493
|
+
transformFunction: null
|
|
494
|
+
},
|
|
495
|
+
valueType: {
|
|
496
|
+
classPropertyName: "valueType",
|
|
497
|
+
publicName: "valueType",
|
|
498
|
+
isSignal: true,
|
|
499
|
+
isRequired: false,
|
|
500
|
+
transformFunction: null
|
|
501
|
+
},
|
|
502
|
+
formatter: {
|
|
503
|
+
classPropertyName: "formatter",
|
|
504
|
+
publicName: "formatter",
|
|
505
|
+
isSignal: true,
|
|
506
|
+
isRequired: false,
|
|
507
|
+
transformFunction: null
|
|
508
|
+
},
|
|
509
|
+
integer: {
|
|
510
|
+
classPropertyName: "integer",
|
|
511
|
+
publicName: "integer",
|
|
512
|
+
isSignal: true,
|
|
513
|
+
isRequired: false,
|
|
514
|
+
transformFunction: null
|
|
515
|
+
},
|
|
516
|
+
showErrors: {
|
|
517
|
+
classPropertyName: "showErrors",
|
|
518
|
+
publicName: "showErrors",
|
|
519
|
+
isSignal: true,
|
|
520
|
+
isRequired: false,
|
|
521
|
+
transformFunction: null
|
|
522
|
+
},
|
|
523
|
+
_disabledInput: {
|
|
524
|
+
classPropertyName: "_disabledInput",
|
|
525
|
+
publicName: "disabled",
|
|
526
|
+
isSignal: true,
|
|
527
|
+
isRequired: false,
|
|
528
|
+
transformFunction: null
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
outputs: {
|
|
532
|
+
valueChange: "valueChange",
|
|
533
|
+
focused: "focused",
|
|
534
|
+
blurred: "blurred",
|
|
535
|
+
invalidChange: "invalidChange"
|
|
536
|
+
},
|
|
537
|
+
providers: [
|
|
538
|
+
{
|
|
539
|
+
provide: NG_VALUE_ACCESSOR,
|
|
540
|
+
useExisting: forwardRef(() => TextInputComponent),
|
|
541
|
+
multi: true
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
provide: NG_VALIDATORS,
|
|
545
|
+
useExisting: forwardRef(() => TextInputComponent),
|
|
546
|
+
multi: true
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
provide: UiFieldValidity,
|
|
550
|
+
useExisting: forwardRef(() => TextInputComponent)
|
|
551
|
+
}
|
|
552
|
+
],
|
|
553
|
+
viewQueries: [{
|
|
554
|
+
propertyName: "_fieldEl",
|
|
555
|
+
first: true,
|
|
556
|
+
predicate: ["field"],
|
|
557
|
+
descendants: true,
|
|
558
|
+
isSignal: true
|
|
559
|
+
}],
|
|
560
|
+
usesOnChanges: true,
|
|
561
|
+
ngImport: i0,
|
|
562
|
+
template: `
|
|
563
|
+
<div class="ti-field" [class.ti-error]="_activeError()" [class.ti-disabled]="disabled()"
|
|
564
|
+
[class.ti-prefixed]="!!prefix() || _revealable() || !!_leadingD()" [style.--ti-input-row]="(prefix() || _revealable() || _leadingD()) ? (label() ? 2 : 1) : null">
|
|
565
|
+
@if (label()) {
|
|
566
|
+
<div class="ti-label-row">
|
|
567
|
+
<label class="ti-label" [for]="_inputId">
|
|
568
|
+
{{ label() }}
|
|
569
|
+
@if (required()) { <span class="ti-required" aria-hidden="true">*</span> }
|
|
570
|
+
</label>
|
|
571
|
+
<ng-content select="[uiLabelEnd]" />
|
|
572
|
+
</div>
|
|
573
|
+
}
|
|
574
|
+
<input
|
|
575
|
+
#field
|
|
576
|
+
class="ti-input"
|
|
577
|
+
[style.padding-left]="_prefixPadding()"
|
|
578
|
+
[style.padding-right]="_revealable() ? '44px' : null"
|
|
579
|
+
[id]="_inputId"
|
|
580
|
+
[attr.data-testid]="inputTestId() || null"
|
|
581
|
+
[attr.name]="inputName() || null"
|
|
582
|
+
[type]="_inputType()"
|
|
583
|
+
[attr.inputmode]="inputmode() || (type() === 'tel' ? 'tel' : integer() ? 'numeric' : null)"
|
|
584
|
+
[placeholder]="placeholder()"
|
|
585
|
+
[value]="_value()"
|
|
586
|
+
[disabled]="disabled()"
|
|
587
|
+
[readOnly]="readonly()"
|
|
588
|
+
[attr.maxlength]="maxlength() ?? null"
|
|
589
|
+
[attr.step]="_stepAttr()"
|
|
590
|
+
[attr.autocomplete]="autocomplete()"
|
|
591
|
+
[attr.required]="required() || null"
|
|
592
|
+
[attr.aria-label]="ariaLabel() || null"
|
|
593
|
+
[attr.aria-invalid]="_activeError() || ariaInvalid() ? 'true' : null"
|
|
594
|
+
[attr.aria-describedby]="_describedBy()"
|
|
595
|
+
(input)="onInput($event)"
|
|
596
|
+
(focus)="onFocus()"
|
|
597
|
+
(blur)="onBlur()"
|
|
598
|
+
/>
|
|
599
|
+
@if (_leadingD(); as d) {
|
|
600
|
+
<!-- Optional leading icon (library source 2026-11-04): decorative, laid over the input's left padding by the same grid as the prefix. -->
|
|
601
|
+
<svg class="ti-leading-icon" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path [attr.d]="d" /></svg>
|
|
602
|
+
}
|
|
603
|
+
@if (prefix()) {
|
|
604
|
+
<!-- Optional leading mark ("$"): a sibling after the input, laid over it by the grid of .ti-prefixed, so toggling it never recreates the input (focus and caret stay). -->
|
|
605
|
+
<span class="ti-prefix" aria-hidden="true" [style.margin-left]="_leadingD() ? '36px' : null">{{ prefix() }}</span>
|
|
606
|
+
}
|
|
607
|
+
@if (_revealable()) {
|
|
608
|
+
<!-- Show / hide toggle laid over the end of the input by the grid of .ti-prefixed. The name stays "Show password"; aria-pressed carries the state. -->
|
|
609
|
+
<button type="button" class="ti-reveal" data-testid="ti-reveal" [attr.aria-label]="labels.t('textInput.showPassword')"
|
|
610
|
+
[attr.aria-pressed]="_shown()" [attr.aria-controls]="_inputId" [disabled]="disabled()" (click)="_shown.set(!_shown())">
|
|
611
|
+
<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">
|
|
612
|
+
<path [attr.d]="_shown() ? _eyeOffPath : _eyePath" />
|
|
613
|
+
</svg>
|
|
614
|
+
</button>
|
|
615
|
+
}
|
|
616
|
+
@if (_showRequirements()) {
|
|
617
|
+
<ui-password-requirements [attr.id]="_inputId + '-req'" [value]="_value()" [rules]="passwordRules() ?? _defaultRules" />
|
|
618
|
+
}
|
|
619
|
+
@if (_activeError()) {
|
|
620
|
+
<p class="ti-desc ti-desc-error" [id]="_inputId + '-desc'" role="alert">{{ _activeError() }}</p>
|
|
621
|
+
} @else if (hint()) {
|
|
622
|
+
<p class="ti-desc" [id]="_inputId + '-desc'">{{ hint() }}</p>
|
|
623
|
+
}
|
|
624
|
+
</div>
|
|
625
|
+
`,
|
|
626
|
+
isInline: true,
|
|
627
|
+
styles: [":host{display:block}.ti-field{display:flex;flex-direction:column;gap:6px}.ti-label-row{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.ti-label{font-size:.8125rem;font-weight:600;color:#374151;line-height:1}.ti-required{color:#dc2626;margin-left:2px}.ti-prefixed{display:grid;grid-template-columns:minmax(0,1fr)}.ti-prefixed .ti-input{grid-row:var(--ti-input-row);grid-column:1}.ti-prefix{grid-row:var(--ti-input-row);grid-column:1;justify-self:start;align-self:center;margin-left:12px;font-size:.875rem;line-height:1;color:#64748b;pointer-events:none}@media(pointer:coarse),(max-width:480px){.ti-prefix{font-size:1rem}}.ti-disabled .ti-prefix{opacity:.5}.ti-leading-icon{grid-row:var(--ti-input-row);grid-column:1;justify-self:start;align-self:center;margin-left:12px;color:#64748b;pointer-events:none}.ti-disabled .ti-leading-icon{opacity:.5}.ti-reveal{grid-row:var(--ti-input-row);grid-column:1;justify-self:end;align-self:center;margin-right:6px;position:relative;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:0;border-radius:6px;background:transparent;color:#64748b;cursor:pointer}.ti-reveal:hover:not(:disabled){color:#1e293b;background:#f1f5f9}.ti-reveal:focus-visible{outline:2px solid #3b82f6;outline-offset:0}.ti-reveal:disabled{opacity:.5;cursor:not-allowed}@media(pointer:coarse),(max-width:480px){.ti-reveal{width:44px;height:44px;margin-right:0}}.ti-input{width:100%;box-sizing:border-box;padding:9px 12px;font-size:.875rem;font-family:inherit;color:#1e293b;background:#fff;border:1px solid #7c8ba1;border-radius:8px;outline:none;transition:border-color .15s,box-shadow .15s}.ti-input::placeholder{color:#64748b;opacity:1}.ti-input:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61f}.ti-input:read-only{background:#f8fafc;cursor:default}.ti-error .ti-input{border-color:#ef4444}.ti-error .ti-input:focus{box-shadow:0 0 0 3px #ef44441f}.ti-disabled .ti-input{opacity:.5;cursor:not-allowed}.ti-desc{margin:0;font-size:.75rem;line-height:1.4;color:#64748b}.ti-desc-error{color:#dc2626}@media(pointer:coarse),(max-width:480px){.ti-input{font-size:1rem}}@media(pointer:coarse),(max-width:480px){.ti-input{min-height:44px}}\n"],
|
|
628
|
+
dependencies: [{
|
|
629
|
+
kind: "component",
|
|
630
|
+
type: PasswordRequirementsComponent,
|
|
631
|
+
selector: "ui-password-requirements",
|
|
632
|
+
inputs: [
|
|
633
|
+
"value",
|
|
634
|
+
"rules",
|
|
635
|
+
"title"
|
|
636
|
+
]
|
|
637
|
+
}],
|
|
638
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
639
|
+
});
|
|
640
|
+
}
|
|
641
|
+
};
|
|
642
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
643
|
+
minVersion: "12.0.0",
|
|
644
|
+
version: "22.2.2",
|
|
645
|
+
ngImport: i0,
|
|
646
|
+
type: TextInputComponent,
|
|
647
|
+
decorators: [{
|
|
648
|
+
type: Component,
|
|
649
|
+
args: [{
|
|
650
|
+
selector: "ui-text-input",
|
|
651
|
+
standalone: true,
|
|
652
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
653
|
+
imports: [PasswordRequirementsComponent],
|
|
654
|
+
providers: [
|
|
655
|
+
{
|
|
656
|
+
provide: NG_VALUE_ACCESSOR,
|
|
657
|
+
useExisting: forwardRef(() => TextInputComponent),
|
|
658
|
+
multi: true
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
provide: NG_VALIDATORS,
|
|
662
|
+
useExisting: forwardRef(() => TextInputComponent),
|
|
663
|
+
multi: true
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
provide: UiFieldValidity,
|
|
667
|
+
useExisting: forwardRef(() => TextInputComponent)
|
|
668
|
+
}
|
|
669
|
+
],
|
|
670
|
+
template: `
|
|
671
|
+
<div class="ti-field" [class.ti-error]="_activeError()" [class.ti-disabled]="disabled()"
|
|
672
|
+
[class.ti-prefixed]="!!prefix() || _revealable() || !!_leadingD()" [style.--ti-input-row]="(prefix() || _revealable() || _leadingD()) ? (label() ? 2 : 1) : null">
|
|
673
|
+
@if (label()) {
|
|
674
|
+
<div class="ti-label-row">
|
|
675
|
+
<label class="ti-label" [for]="_inputId">
|
|
676
|
+
{{ label() }}
|
|
677
|
+
@if (required()) { <span class="ti-required" aria-hidden="true">*</span> }
|
|
678
|
+
</label>
|
|
679
|
+
<ng-content select="[uiLabelEnd]" />
|
|
680
|
+
</div>
|
|
681
|
+
}
|
|
682
|
+
<input
|
|
683
|
+
#field
|
|
684
|
+
class="ti-input"
|
|
685
|
+
[style.padding-left]="_prefixPadding()"
|
|
686
|
+
[style.padding-right]="_revealable() ? '44px' : null"
|
|
687
|
+
[id]="_inputId"
|
|
688
|
+
[attr.data-testid]="inputTestId() || null"
|
|
689
|
+
[attr.name]="inputName() || null"
|
|
690
|
+
[type]="_inputType()"
|
|
691
|
+
[attr.inputmode]="inputmode() || (type() === 'tel' ? 'tel' : integer() ? 'numeric' : null)"
|
|
692
|
+
[placeholder]="placeholder()"
|
|
693
|
+
[value]="_value()"
|
|
694
|
+
[disabled]="disabled()"
|
|
695
|
+
[readOnly]="readonly()"
|
|
696
|
+
[attr.maxlength]="maxlength() ?? null"
|
|
697
|
+
[attr.step]="_stepAttr()"
|
|
698
|
+
[attr.autocomplete]="autocomplete()"
|
|
699
|
+
[attr.required]="required() || null"
|
|
700
|
+
[attr.aria-label]="ariaLabel() || null"
|
|
701
|
+
[attr.aria-invalid]="_activeError() || ariaInvalid() ? 'true' : null"
|
|
702
|
+
[attr.aria-describedby]="_describedBy()"
|
|
703
|
+
(input)="onInput($event)"
|
|
704
|
+
(focus)="onFocus()"
|
|
705
|
+
(blur)="onBlur()"
|
|
706
|
+
/>
|
|
707
|
+
@if (_leadingD(); as d) {
|
|
708
|
+
<!-- Optional leading icon (library source 2026-11-04): decorative, laid over the input's left padding by the same grid as the prefix. -->
|
|
709
|
+
<svg class="ti-leading-icon" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path [attr.d]="d" /></svg>
|
|
710
|
+
}
|
|
711
|
+
@if (prefix()) {
|
|
712
|
+
<!-- Optional leading mark ("$"): a sibling after the input, laid over it by the grid of .ti-prefixed, so toggling it never recreates the input (focus and caret stay). -->
|
|
713
|
+
<span class="ti-prefix" aria-hidden="true" [style.margin-left]="_leadingD() ? '36px' : null">{{ prefix() }}</span>
|
|
714
|
+
}
|
|
715
|
+
@if (_revealable()) {
|
|
716
|
+
<!-- Show / hide toggle laid over the end of the input by the grid of .ti-prefixed. The name stays "Show password"; aria-pressed carries the state. -->
|
|
717
|
+
<button type="button" class="ti-reveal" data-testid="ti-reveal" [attr.aria-label]="labels.t('textInput.showPassword')"
|
|
718
|
+
[attr.aria-pressed]="_shown()" [attr.aria-controls]="_inputId" [disabled]="disabled()" (click)="_shown.set(!_shown())">
|
|
719
|
+
<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">
|
|
720
|
+
<path [attr.d]="_shown() ? _eyeOffPath : _eyePath" />
|
|
721
|
+
</svg>
|
|
722
|
+
</button>
|
|
723
|
+
}
|
|
724
|
+
@if (_showRequirements()) {
|
|
725
|
+
<ui-password-requirements [attr.id]="_inputId + '-req'" [value]="_value()" [rules]="passwordRules() ?? _defaultRules" />
|
|
726
|
+
}
|
|
727
|
+
@if (_activeError()) {
|
|
728
|
+
<p class="ti-desc ti-desc-error" [id]="_inputId + '-desc'" role="alert">{{ _activeError() }}</p>
|
|
729
|
+
} @else if (hint()) {
|
|
730
|
+
<p class="ti-desc" [id]="_inputId + '-desc'">{{ hint() }}</p>
|
|
731
|
+
}
|
|
732
|
+
</div>
|
|
733
|
+
`,
|
|
734
|
+
styles: [":host{display:block}.ti-field{display:flex;flex-direction:column;gap:6px}.ti-label-row{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.ti-label{font-size:.8125rem;font-weight:600;color:#374151;line-height:1}.ti-required{color:#dc2626;margin-left:2px}.ti-prefixed{display:grid;grid-template-columns:minmax(0,1fr)}.ti-prefixed .ti-input{grid-row:var(--ti-input-row);grid-column:1}.ti-prefix{grid-row:var(--ti-input-row);grid-column:1;justify-self:start;align-self:center;margin-left:12px;font-size:.875rem;line-height:1;color:#64748b;pointer-events:none}@media(pointer:coarse),(max-width:480px){.ti-prefix{font-size:1rem}}.ti-disabled .ti-prefix{opacity:.5}.ti-leading-icon{grid-row:var(--ti-input-row);grid-column:1;justify-self:start;align-self:center;margin-left:12px;color:#64748b;pointer-events:none}.ti-disabled .ti-leading-icon{opacity:.5}.ti-reveal{grid-row:var(--ti-input-row);grid-column:1;justify-self:end;align-self:center;margin-right:6px;position:relative;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:0;border-radius:6px;background:transparent;color:#64748b;cursor:pointer}.ti-reveal:hover:not(:disabled){color:#1e293b;background:#f1f5f9}.ti-reveal:focus-visible{outline:2px solid #3b82f6;outline-offset:0}.ti-reveal:disabled{opacity:.5;cursor:not-allowed}@media(pointer:coarse),(max-width:480px){.ti-reveal{width:44px;height:44px;margin-right:0}}.ti-input{width:100%;box-sizing:border-box;padding:9px 12px;font-size:.875rem;font-family:inherit;color:#1e293b;background:#fff;border:1px solid #7c8ba1;border-radius:8px;outline:none;transition:border-color .15s,box-shadow .15s}.ti-input::placeholder{color:#64748b;opacity:1}.ti-input:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61f}.ti-input:read-only{background:#f8fafc;cursor:default}.ti-error .ti-input{border-color:#ef4444}.ti-error .ti-input:focus{box-shadow:0 0 0 3px #ef44441f}.ti-disabled .ti-input{opacity:.5;cursor:not-allowed}.ti-desc{margin:0;font-size:.75rem;line-height:1.4;color:#64748b}.ti-desc-error{color:#dc2626}@media(pointer:coarse),(max-width:480px){.ti-input{font-size:1rem}}@media(pointer:coarse),(max-width:480px){.ti-input{min-height:44px}}\n"]
|
|
735
|
+
}]
|
|
736
|
+
}],
|
|
737
|
+
ctorParameters: () => [],
|
|
738
|
+
propDecorators: {
|
|
739
|
+
label: [{
|
|
740
|
+
type: i0.Input,
|
|
741
|
+
args: [{
|
|
742
|
+
isSignal: true,
|
|
743
|
+
alias: "label",
|
|
744
|
+
required: false
|
|
745
|
+
}]
|
|
746
|
+
}],
|
|
747
|
+
ariaLabel: [{
|
|
748
|
+
type: i0.Input,
|
|
749
|
+
args: [{
|
|
750
|
+
isSignal: true,
|
|
751
|
+
alias: "ariaLabel",
|
|
752
|
+
required: false
|
|
753
|
+
}]
|
|
754
|
+
}],
|
|
755
|
+
inputTestId: [{
|
|
756
|
+
type: i0.Input,
|
|
757
|
+
args: [{
|
|
758
|
+
isSignal: true,
|
|
759
|
+
alias: "inputTestId",
|
|
760
|
+
required: false
|
|
761
|
+
}]
|
|
762
|
+
}],
|
|
763
|
+
inputName: [{
|
|
764
|
+
type: i0.Input,
|
|
765
|
+
args: [{
|
|
766
|
+
isSignal: true,
|
|
767
|
+
alias: "inputName",
|
|
768
|
+
required: false
|
|
769
|
+
}]
|
|
770
|
+
}],
|
|
771
|
+
placeholder: [{
|
|
772
|
+
type: i0.Input,
|
|
773
|
+
args: [{
|
|
774
|
+
isSignal: true,
|
|
775
|
+
alias: "placeholder",
|
|
776
|
+
required: false
|
|
777
|
+
}]
|
|
778
|
+
}],
|
|
779
|
+
prefix: [{
|
|
780
|
+
type: i0.Input,
|
|
781
|
+
args: [{
|
|
782
|
+
isSignal: true,
|
|
783
|
+
alias: "prefix",
|
|
784
|
+
required: false
|
|
785
|
+
}]
|
|
786
|
+
}],
|
|
787
|
+
leadingIcon: [{
|
|
788
|
+
type: i0.Input,
|
|
789
|
+
args: [{
|
|
790
|
+
isSignal: true,
|
|
791
|
+
alias: "leadingIcon",
|
|
792
|
+
required: false
|
|
793
|
+
}]
|
|
794
|
+
}],
|
|
795
|
+
revealable: [{
|
|
796
|
+
type: i0.Input,
|
|
797
|
+
args: [{
|
|
798
|
+
isSignal: true,
|
|
799
|
+
alias: "revealable",
|
|
800
|
+
required: false
|
|
801
|
+
}]
|
|
802
|
+
}],
|
|
803
|
+
passwordRequirements: [{
|
|
804
|
+
type: i0.Input,
|
|
805
|
+
args: [{
|
|
806
|
+
isSignal: true,
|
|
807
|
+
alias: "passwordRequirements",
|
|
808
|
+
required: false
|
|
809
|
+
}]
|
|
810
|
+
}],
|
|
811
|
+
passwordRules: [{
|
|
812
|
+
type: i0.Input,
|
|
813
|
+
args: [{
|
|
814
|
+
isSignal: true,
|
|
815
|
+
alias: "passwordRules",
|
|
816
|
+
required: false
|
|
817
|
+
}]
|
|
818
|
+
}],
|
|
819
|
+
type: [{
|
|
820
|
+
type: i0.Input,
|
|
821
|
+
args: [{
|
|
822
|
+
isSignal: true,
|
|
823
|
+
alias: "type",
|
|
824
|
+
required: false
|
|
825
|
+
}]
|
|
826
|
+
}],
|
|
827
|
+
maxlength: [{
|
|
828
|
+
type: i0.Input,
|
|
829
|
+
args: [{
|
|
830
|
+
isSignal: true,
|
|
831
|
+
alias: "maxlength",
|
|
832
|
+
required: false
|
|
833
|
+
}]
|
|
834
|
+
}],
|
|
835
|
+
required: [{
|
|
836
|
+
type: i0.Input,
|
|
837
|
+
args: [{
|
|
838
|
+
isSignal: true,
|
|
839
|
+
alias: "required",
|
|
840
|
+
required: false
|
|
841
|
+
}]
|
|
842
|
+
}],
|
|
843
|
+
autocomplete: [{
|
|
844
|
+
type: i0.Input,
|
|
845
|
+
args: [{
|
|
846
|
+
isSignal: true,
|
|
847
|
+
alias: "autocomplete",
|
|
848
|
+
required: false
|
|
849
|
+
}]
|
|
850
|
+
}],
|
|
851
|
+
inputmode: [{
|
|
852
|
+
type: i0.Input,
|
|
853
|
+
args: [{
|
|
854
|
+
isSignal: true,
|
|
855
|
+
alias: "inputmode",
|
|
856
|
+
required: false
|
|
857
|
+
}]
|
|
858
|
+
}],
|
|
859
|
+
readonly: [{
|
|
860
|
+
type: i0.Input,
|
|
861
|
+
args: [{
|
|
862
|
+
isSignal: true,
|
|
863
|
+
alias: "readonly",
|
|
864
|
+
required: false
|
|
865
|
+
}]
|
|
866
|
+
}],
|
|
867
|
+
hint: [{
|
|
868
|
+
type: i0.Input,
|
|
869
|
+
args: [{
|
|
870
|
+
isSignal: true,
|
|
871
|
+
alias: "hint",
|
|
872
|
+
required: false
|
|
873
|
+
}]
|
|
874
|
+
}],
|
|
875
|
+
ariaDescribedBy: [{
|
|
876
|
+
type: i0.Input,
|
|
877
|
+
args: [{
|
|
878
|
+
isSignal: true,
|
|
879
|
+
alias: "ariaDescribedBy",
|
|
880
|
+
required: false
|
|
881
|
+
}]
|
|
882
|
+
}],
|
|
883
|
+
ariaInvalid: [{
|
|
884
|
+
type: i0.Input,
|
|
885
|
+
args: [{
|
|
886
|
+
isSignal: true,
|
|
887
|
+
alias: "ariaInvalid",
|
|
888
|
+
required: false
|
|
889
|
+
}]
|
|
890
|
+
}],
|
|
891
|
+
error: [{
|
|
892
|
+
type: i0.Input,
|
|
893
|
+
args: [{
|
|
894
|
+
isSignal: true,
|
|
895
|
+
alias: "error",
|
|
896
|
+
required: false
|
|
897
|
+
}]
|
|
898
|
+
}],
|
|
899
|
+
phoneFormat: [{
|
|
900
|
+
type: i0.Input,
|
|
901
|
+
args: [{
|
|
902
|
+
isSignal: true,
|
|
903
|
+
alias: "phoneFormat",
|
|
904
|
+
required: false
|
|
905
|
+
}]
|
|
906
|
+
}],
|
|
907
|
+
min: [{
|
|
908
|
+
type: i0.Input,
|
|
909
|
+
args: [{
|
|
910
|
+
isSignal: true,
|
|
911
|
+
alias: "min",
|
|
912
|
+
required: false
|
|
913
|
+
}]
|
|
914
|
+
}],
|
|
915
|
+
max: [{
|
|
916
|
+
type: i0.Input,
|
|
917
|
+
args: [{
|
|
918
|
+
isSignal: true,
|
|
919
|
+
alias: "max",
|
|
920
|
+
required: false
|
|
921
|
+
}]
|
|
922
|
+
}],
|
|
923
|
+
maxDecimals: [{
|
|
924
|
+
type: i0.Input,
|
|
925
|
+
args: [{
|
|
926
|
+
isSignal: true,
|
|
927
|
+
alias: "maxDecimals",
|
|
928
|
+
required: false
|
|
929
|
+
}]
|
|
930
|
+
}],
|
|
931
|
+
step: [{
|
|
932
|
+
type: i0.Input,
|
|
933
|
+
args: [{
|
|
934
|
+
isSignal: true,
|
|
935
|
+
alias: "step",
|
|
936
|
+
required: false
|
|
937
|
+
}]
|
|
938
|
+
}],
|
|
939
|
+
valueType: [{
|
|
940
|
+
type: i0.Input,
|
|
941
|
+
args: [{
|
|
942
|
+
isSignal: true,
|
|
943
|
+
alias: "valueType",
|
|
944
|
+
required: false
|
|
945
|
+
}]
|
|
946
|
+
}],
|
|
947
|
+
formatter: [{
|
|
948
|
+
type: i0.Input,
|
|
949
|
+
args: [{
|
|
950
|
+
isSignal: true,
|
|
951
|
+
alias: "formatter",
|
|
952
|
+
required: false
|
|
953
|
+
}]
|
|
954
|
+
}],
|
|
955
|
+
integer: [{
|
|
956
|
+
type: i0.Input,
|
|
957
|
+
args: [{
|
|
958
|
+
isSignal: true,
|
|
959
|
+
alias: "integer",
|
|
960
|
+
required: false
|
|
961
|
+
}]
|
|
962
|
+
}],
|
|
963
|
+
showErrors: [{
|
|
964
|
+
type: i0.Input,
|
|
965
|
+
args: [{
|
|
966
|
+
isSignal: true,
|
|
967
|
+
alias: "showErrors",
|
|
968
|
+
required: false
|
|
969
|
+
}]
|
|
970
|
+
}],
|
|
971
|
+
valueChange: [{
|
|
972
|
+
type: i0.Output,
|
|
973
|
+
args: ["valueChange"]
|
|
974
|
+
}],
|
|
975
|
+
focused: [{
|
|
976
|
+
type: i0.Output,
|
|
977
|
+
args: ["focused"]
|
|
978
|
+
}],
|
|
979
|
+
blurred: [{
|
|
980
|
+
type: i0.Output,
|
|
981
|
+
args: ["blurred"]
|
|
982
|
+
}],
|
|
983
|
+
invalidChange: [{
|
|
984
|
+
type: i0.Output,
|
|
985
|
+
args: ["invalidChange"]
|
|
986
|
+
}],
|
|
987
|
+
_disabledInput: [{
|
|
988
|
+
type: i0.Input,
|
|
989
|
+
args: [{
|
|
990
|
+
isSignal: true,
|
|
991
|
+
alias: "disabled",
|
|
992
|
+
required: false
|
|
993
|
+
}]
|
|
994
|
+
}],
|
|
995
|
+
_fieldEl: [{
|
|
996
|
+
type: i0.ViewChild,
|
|
997
|
+
args: ["field", { isSignal: true }]
|
|
998
|
+
}]
|
|
999
|
+
}
|
|
1000
|
+
});
|
|
1001
|
+
export { TextInputComponent };
|
|
1002
|
+
|
|
1003
|
+
//# sourceMappingURL=forgeroute-ui-text-input.mjs.map
|