@forgeroute/ui 0.5.15 → 0.5.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/forgeroute-ui-action-bar.mjs +190 -0
- package/fesm2022/forgeroute-ui-action-bar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-address-input.mjs +1164 -0
- package/fesm2022/forgeroute-ui-address-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-alert.mjs +223 -0
- package/fesm2022/forgeroute-ui-alert.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-avatar.mjs +320 -0
- package/fesm2022/forgeroute-ui-avatar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-badge.mjs +158 -0
- package/fesm2022/forgeroute-ui-badge.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-bar-row.mjs +255 -0
- package/fesm2022/forgeroute-ui-bar-row.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-boards.mjs +2201 -0
- package/fesm2022/forgeroute-ui-boards.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-bulk-eligible.mjs +172 -0
- package/fesm2022/forgeroute-ui-bulk-eligible.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-business-hours.mjs +771 -0
- package/fesm2022/forgeroute-ui-business-hours.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-calendar.mjs +2006 -0
- package/fesm2022/forgeroute-ui-calendar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-card-list-item.mjs +556 -0
- package/fesm2022/forgeroute-ui-card-list-item.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-charts.mjs +1 -1
- package/fesm2022/forgeroute-ui-charts.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-checkbox.mjs +815 -0
- package/fesm2022/forgeroute-ui-checkbox.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-chip.mjs +379 -0
- package/fesm2022/forgeroute-ui-chip.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-color-input.mjs +492 -0
- package/fesm2022/forgeroute-ui-color-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-column-filter.mjs +645 -0
- package/fesm2022/forgeroute-ui-column-filter.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-columns.mjs +351 -0
- package/fesm2022/forgeroute-ui-columns.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-combobox.mjs +772 -0
- package/fesm2022/forgeroute-ui-combobox.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-confirm.mjs +48 -0
- package/fesm2022/forgeroute-ui-confirm.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-contact-picker.mjs +865 -0
- package/fesm2022/forgeroute-ui-contact-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-conversations.mjs +3627 -0
- package/fesm2022/forgeroute-ui-conversations.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-copy-field.mjs +378 -0
- package/fesm2022/forgeroute-ui-copy-field.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-data-table-core.mjs +6150 -0
- package/fesm2022/forgeroute-ui-data-table-core.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-date-input.mjs +384 -0
- package/fesm2022/forgeroute-ui-date-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-date-range-picker.mjs +453 -0
- package/fesm2022/forgeroute-ui-date-range-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-datetime-input.mjs +375 -0
- package/fesm2022/forgeroute-ui-datetime-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-detail-card.mjs +655 -0
- package/fesm2022/forgeroute-ui-detail-card.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-discount-selector.mjs +259 -0
- package/fesm2022/forgeroute-ui-discount-selector.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-divider.mjs +111 -0
- package/fesm2022/forgeroute-ui-divider.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-dropdown.mjs +550 -0
- package/fesm2022/forgeroute-ui-dropdown.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-editor.mjs +4545 -0
- package/fesm2022/forgeroute-ui-editor.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-empty-state.mjs +231 -0
- package/fesm2022/forgeroute-ui-empty-state.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-error-state.mjs +195 -0
- package/fesm2022/forgeroute-ui-error-state.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-error.mjs +93 -0
- package/fesm2022/forgeroute-ui-error.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-fade.mjs +117 -0
- package/fesm2022/forgeroute-ui-fade.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-file-input.mjs +999 -0
- package/fesm2022/forgeroute-ui-file-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-fixed-footer.mjs +115 -0
- package/fesm2022/forgeroute-ui-fixed-footer.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-form-row.mjs +126 -0
- package/fesm2022/forgeroute-ui-form-row.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-form-section.mjs +93 -0
- package/fesm2022/forgeroute-ui-form-section.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-form.mjs +139 -0
- package/fesm2022/forgeroute-ui-form.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-hint.mjs +47 -0
- package/fesm2022/forgeroute-ui-hint.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-icon-picker.mjs +424 -0
- package/fesm2022/forgeroute-ui-icon-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-icon.mjs +311 -0
- package/fesm2022/forgeroute-ui-icon.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-image-preview.mjs +237 -0
- package/fesm2022/forgeroute-ui-image-preview.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-keypad.mjs +278 -0
- package/fesm2022/forgeroute-ui-keypad.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-kpi-card.mjs +490 -0
- package/fesm2022/forgeroute-ui-kpi-card.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-language-switcher.mjs +134 -0
- package/fesm2022/forgeroute-ui-language-switcher.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-layout.mjs +18 -0
- package/fesm2022/forgeroute-ui-layout.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-list-item.mjs +620 -0
- package/fesm2022/forgeroute-ui-list-item.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-list.mjs +866 -0
- package/fesm2022/forgeroute-ui-list.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-live-region.mjs +118 -0
- package/fesm2022/forgeroute-ui-live-region.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-map.mjs +5 -1
- package/fesm2022/forgeroute-ui-map.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-maps.mjs +2 -1
- package/fesm2022/forgeroute-ui-maps.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-media.mjs +4615 -0
- package/fesm2022/forgeroute-ui-media.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-messaging.mjs +20 -1
- package/fesm2022/forgeroute-ui-messaging.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-more-menu.mjs +418 -0
- package/fesm2022/forgeroute-ui-more-menu.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-multi-select.mjs +532 -0
- package/fesm2022/forgeroute-ui-multi-select.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-notes.mjs +768 -0
- package/fesm2022/forgeroute-ui-notes.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-notification-bell.mjs +587 -0
- package/fesm2022/forgeroute-ui-notification-bell.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-offline-banner.mjs +156 -0
- package/fesm2022/forgeroute-ui-offline-banner.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-option-card.mjs +379 -0
- package/fesm2022/forgeroute-ui-option-card.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-page.mjs +317 -0
- package/fesm2022/forgeroute-ui-page.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-pagination.mjs +225 -0
- package/fesm2022/forgeroute-ui-pagination.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-panel-info-list.mjs +422 -0
- package/fesm2022/forgeroute-ui-panel-info-list.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-password-requirements.mjs +237 -0
- package/fesm2022/forgeroute-ui-password-requirements.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-payments.mjs +6243 -0
- package/fesm2022/forgeroute-ui-payments.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-pdf.mjs +9 -1
- package/fesm2022/forgeroute-ui-pdf.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-phone-number-picker.mjs +840 -0
- package/fesm2022/forgeroute-ui-phone-number-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-pill-tabs.mjs +546 -0
- package/fesm2022/forgeroute-ui-pill-tabs.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-print.mjs +76 -0
- package/fesm2022/forgeroute-ui-print.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-progress-bar.mjs +252 -0
- package/fesm2022/forgeroute-ui-progress-bar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-progress-ring.mjs +277 -0
- package/fesm2022/forgeroute-ui-progress-ring.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-quick-filter-tabs.mjs +301 -0
- package/fesm2022/forgeroute-ui-quick-filter-tabs.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-quickbooks.mjs +20 -3
- package/fesm2022/forgeroute-ui-quickbooks.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-radio-matrix.mjs +471 -0
- package/fesm2022/forgeroute-ui-radio-matrix.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-radio.mjs +911 -0
- package/fesm2022/forgeroute-ui-radio.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-read-only-mode.mjs +15 -0
- package/fesm2022/forgeroute-ui-read-only-mode.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-readonly-fieldset.mjs +146 -0
- package/fesm2022/forgeroute-ui-readonly-fieldset.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-reminder-alerts.mjs +249 -0
- package/fesm2022/forgeroute-ui-reminder-alerts.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-search-input.mjs +373 -0
- package/fesm2022/forgeroute-ui-search-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-section-header.mjs +296 -0
- package/fesm2022/forgeroute-ui-section-header.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-select.mjs +498 -0
- package/fesm2022/forgeroute-ui-select.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-setup.mjs +4649 -0
- package/fesm2022/forgeroute-ui-setup.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-share-menu.mjs +461 -0
- package/fesm2022/forgeroute-ui-share-menu.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-shell.mjs +981 -0
- package/fesm2022/forgeroute-ui-shell.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-show.mjs +129 -0
- package/fesm2022/forgeroute-ui-show.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-sidebar-layout.mjs +355 -0
- package/fesm2022/forgeroute-ui-sidebar-layout.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-skeleton.mjs +152 -0
- package/fesm2022/forgeroute-ui-skeleton.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-skip-link.mjs +129 -0
- package/fesm2022/forgeroute-ui-skip-link.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-snackbar.mjs +200 -0
- package/fesm2022/forgeroute-ui-snackbar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-square.mjs +17 -3
- package/fesm2022/forgeroute-ui-square.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-stack.mjs +233 -0
- package/fesm2022/forgeroute-ui-stack.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stacked-bar.mjs +200 -0
- package/fesm2022/forgeroute-ui-stacked-bar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stacking-plan.mjs +365 -0
- package/fesm2022/forgeroute-ui-stacking-plan.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-star-rating.mjs +498 -0
- package/fesm2022/forgeroute-ui-star-rating.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-star.mjs +184 -0
- package/fesm2022/forgeroute-ui-star.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stepper.mjs +615 -0
- package/fesm2022/forgeroute-ui-stepper.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stripe.mjs +16 -3
- package/fesm2022/forgeroute-ui-stripe.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-swatch-picker.mjs +416 -0
- package/fesm2022/forgeroute-ui-swatch-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-table-toolbar.mjs +770 -0
- package/fesm2022/forgeroute-ui-table-toolbar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-table-types.mjs +277 -0
- package/fesm2022/forgeroute-ui-table-types.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-text-input.mjs +1003 -0
- package/fesm2022/forgeroute-ui-text-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-text-template-picker.mjs +356 -0
- package/fesm2022/forgeroute-ui-text-template-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-text.mjs +195 -0
- package/fesm2022/forgeroute-ui-text.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-textarea-input.mjs +542 -0
- package/fesm2022/forgeroute-ui-textarea-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-time-input.mjs +401 -0
- package/fesm2022/forgeroute-ui-time-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-timeline.mjs +549 -0
- package/fesm2022/forgeroute-ui-timeline.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-toast.mjs +507 -0
- package/fesm2022/forgeroute-ui-toast.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-toggle-badge.mjs +177 -0
- package/fesm2022/forgeroute-ui-toggle-badge.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-toggle.mjs +275 -0
- package/fesm2022/forgeroute-ui-toggle.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-tooltip.mjs +155 -0
- package/fesm2022/forgeroute-ui-tooltip.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-utils.mjs +1071 -0
- package/fesm2022/forgeroute-ui-utils.mjs.map +1 -0
- package/fesm2022/forgeroute-ui.mjs +105 -70663
- package/package.json +417 -1
- package/types/forgeroute-ui-action-bar.d.ts +74 -0
- package/types/forgeroute-ui-address-input.d.ts +354 -0
- package/types/forgeroute-ui-alert.d.ts +89 -0
- package/types/forgeroute-ui-avatar.d.ts +85 -0
- package/types/forgeroute-ui-badge.d.ts +45 -0
- package/types/forgeroute-ui-bar-row.d.ts +90 -0
- package/types/forgeroute-ui-boards.d.ts +575 -0
- package/types/forgeroute-ui-bulk-eligible.d.ts +53 -0
- package/types/forgeroute-ui-business-hours.d.ts +191 -0
- package/types/forgeroute-ui-calendar.d.ts +544 -0
- package/types/forgeroute-ui-card-list-item.d.ts +186 -0
- package/types/forgeroute-ui-charts.d.ts +1 -1
- package/types/forgeroute-ui-checkbox.d.ts +270 -0
- package/types/forgeroute-ui-chip.d.ts +125 -0
- package/types/forgeroute-ui-color-input.d.ts +160 -0
- package/types/forgeroute-ui-column-filter.d.ts +130 -0
- package/types/forgeroute-ui-columns.d.ts +150 -0
- package/types/forgeroute-ui-combobox.d.ts +252 -0
- package/types/forgeroute-ui-confirm.d.ts +34 -0
- package/types/forgeroute-ui-contact-picker.d.ts +173 -0
- package/types/forgeroute-ui-conversations.d.ts +993 -0
- package/types/forgeroute-ui-copy-field.d.ts +122 -0
- package/types/forgeroute-ui-data-table-core.d.ts +1221 -0
- package/types/forgeroute-ui-date-input.d.ts +101 -0
- package/types/forgeroute-ui-date-range-picker.d.ts +109 -0
- package/types/forgeroute-ui-datetime-input.d.ts +97 -0
- package/types/forgeroute-ui-detail-card.d.ts +252 -0
- package/types/forgeroute-ui-discount-selector.d.ts +57 -0
- package/types/forgeroute-ui-divider.d.ts +40 -0
- package/types/forgeroute-ui-dropdown.d.ts +156 -0
- package/types/forgeroute-ui-editor.d.ts +873 -0
- package/types/forgeroute-ui-empty-state.d.ts +29 -0
- package/types/forgeroute-ui-error-state.d.ts +38 -0
- package/types/forgeroute-ui-error.d.ts +29 -0
- package/types/forgeroute-ui-fade.d.ts +39 -0
- package/types/forgeroute-ui-file-input.d.ts +337 -0
- package/types/forgeroute-ui-fixed-footer.d.ts +53 -0
- package/types/forgeroute-ui-form-row.d.ts +30 -0
- package/types/forgeroute-ui-form-section.d.ts +18 -0
- package/types/forgeroute-ui-form.d.ts +68 -0
- package/types/forgeroute-ui-hint.d.ts +10 -0
- package/types/forgeroute-ui-icon-picker.d.ts +122 -0
- package/types/forgeroute-ui-icon.d.ts +95 -0
- package/types/forgeroute-ui-image-preview.d.ts +88 -0
- package/types/forgeroute-ui-keypad.d.ts +73 -0
- package/types/forgeroute-ui-kpi-card.d.ts +161 -0
- package/types/forgeroute-ui-language-switcher.d.ts +41 -0
- package/types/forgeroute-ui-layout.d.ts +13 -0
- package/types/forgeroute-ui-list-item.d.ts +253 -0
- package/types/forgeroute-ui-list.d.ts +282 -0
- package/types/forgeroute-ui-live-region.d.ts +49 -0
- package/types/forgeroute-ui-map.d.ts +1 -1
- package/types/forgeroute-ui-maps.d.ts +1 -1
- package/types/forgeroute-ui-media.d.ts +1221 -0
- package/types/forgeroute-ui-messaging.d.ts +11 -6
- package/types/forgeroute-ui-more-menu.d.ts +91 -0
- package/types/forgeroute-ui-multi-select.d.ts +119 -0
- package/types/forgeroute-ui-notes.d.ts +172 -0
- package/types/forgeroute-ui-notification-bell.d.ts +135 -0
- package/types/forgeroute-ui-offline-banner.d.ts +44 -0
- package/types/forgeroute-ui-option-card.d.ts +106 -0
- package/types/forgeroute-ui-page.d.ts +115 -0
- package/types/forgeroute-ui-pagination.d.ts +55 -0
- package/types/forgeroute-ui-panel-info-list.d.ts +147 -0
- package/types/forgeroute-ui-password-requirements.d.ts +89 -0
- package/types/forgeroute-ui-payments.d.ts +1818 -0
- package/types/forgeroute-ui-pdf.d.ts +1 -1
- package/types/forgeroute-ui-phone-number-picker.d.ts +199 -0
- package/types/forgeroute-ui-pill-tabs.d.ts +208 -0
- package/types/forgeroute-ui-print.d.ts +40 -0
- package/types/forgeroute-ui-progress-bar.d.ts +88 -0
- package/types/forgeroute-ui-progress-ring.d.ts +102 -0
- package/types/forgeroute-ui-quick-filter-tabs.d.ts +51 -0
- package/types/forgeroute-ui-quickbooks.d.ts +6 -3
- package/types/forgeroute-ui-radio-matrix.d.ts +131 -0
- package/types/forgeroute-ui-radio.d.ts +311 -0
- package/types/forgeroute-ui-read-only-mode.d.ts +26 -0
- package/types/forgeroute-ui-readonly-fieldset.d.ts +62 -0
- package/types/forgeroute-ui-reminder-alerts.d.ts +71 -0
- package/types/forgeroute-ui-search-input.d.ts +93 -0
- package/types/forgeroute-ui-section-header.d.ts +149 -0
- package/types/forgeroute-ui-select.d.ts +183 -0
- package/types/forgeroute-ui-setup.d.ts +775 -0
- package/types/forgeroute-ui-share-menu.d.ts +99 -0
- package/types/forgeroute-ui-shell.d.ts +173 -0
- package/types/forgeroute-ui-show.d.ts +40 -0
- package/types/forgeroute-ui-sidebar-layout.d.ts +161 -0
- package/types/forgeroute-ui-skeleton.d.ts +51 -0
- package/types/forgeroute-ui-skip-link.d.ts +51 -0
- package/types/forgeroute-ui-snackbar.d.ts +50 -0
- package/types/forgeroute-ui-square.d.ts +5 -3
- package/types/forgeroute-ui-stack.d.ts +99 -0
- package/types/forgeroute-ui-stacked-bar.d.ts +84 -0
- package/types/forgeroute-ui-stacking-plan.d.ts +116 -0
- package/types/forgeroute-ui-star-rating.d.ts +151 -0
- package/types/forgeroute-ui-star.d.ts +46 -0
- package/types/forgeroute-ui-stepper.d.ts +273 -0
- package/types/forgeroute-ui-stripe.d.ts +4 -2
- package/types/forgeroute-ui-swatch-picker.d.ts +118 -0
- package/types/forgeroute-ui-table-toolbar.d.ts +116 -0
- package/types/forgeroute-ui-table-types.d.ts +624 -0
- package/types/forgeroute-ui-text-input.d.ts +359 -0
- package/types/forgeroute-ui-text-template-picker.d.ts +100 -0
- package/types/forgeroute-ui-text.d.ts +76 -0
- package/types/forgeroute-ui-textarea-input.d.ts +174 -0
- package/types/forgeroute-ui-time-input.d.ts +105 -0
- package/types/forgeroute-ui-timeline.d.ts +196 -0
- package/types/forgeroute-ui-toast.d.ts +131 -0
- package/types/forgeroute-ui-toggle-badge.d.ts +64 -0
- package/types/forgeroute-ui-toggle.d.ts +92 -0
- package/types/forgeroute-ui-tooltip.d.ts +36 -0
- package/types/forgeroute-ui-utils.d.ts +210 -0
- package/types/forgeroute-ui.d.ts +106 -19539
- package/fesm2022/forgeroute-ui.mjs.map +0 -1
|
@@ -0,0 +1,1221 @@
|
|
|
1
|
+
import { UiLabelsService } from "@forgeroute/ui/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { FileInputComponent } from "@forgeroute/ui/file-input";
|
|
4
|
+
import { ImagePreviewPlaceholder } from "@forgeroute/ui/image-preview";
|
|
5
|
+
import { ControlValueAccessor } from "@angular/forms";
|
|
6
|
+
/**
|
|
7
|
+
* Audio player for a recording (a call, a voicemail, a message): the browser's own controls (play / pause, seek, time, volume,
|
|
8
|
+
* keyboard and screen-reader support, the same in Chrome, Edge, Firefox and Safari) in the library's look, plus a readable message
|
|
9
|
+
* when the file can't be played.
|
|
10
|
+
*
|
|
11
|
+
* <ui-audio-player [src]="blobUrl()" ariaLabel="Call recording playback" />
|
|
12
|
+
*
|
|
13
|
+
* - `src`: the audio URL (an object URL from a fetched blob works). An empty `src` renders the player with nothing to play.
|
|
14
|
+
* - `ariaLabel`: the accessible name of the player. Give it one; without it assistive tech just hears "audio".
|
|
15
|
+
* - `preload`: 'metadata' (default; loads the length only), 'auto' or 'none'.
|
|
16
|
+
* - `playbackError` fires once per failed source; the message "Audio could not be played." replaces the player until `src` changes.
|
|
17
|
+
*/
|
|
18
|
+
export declare class AudioPlayerComponent {
|
|
19
|
+
protected readonly labels: UiLabelsService;
|
|
20
|
+
/** The audio URL. */
|
|
21
|
+
readonly src: import("@angular/core").InputSignal<string>;
|
|
22
|
+
/** Accessible name of the player. */
|
|
23
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
24
|
+
/** How much to load before play: 'metadata' (default), 'auto' or 'none'. */
|
|
25
|
+
readonly preload: import("@angular/core").InputSignal<"none" | "metadata" | "auto">;
|
|
26
|
+
/** Fires when the browser can't load or decode the source. */
|
|
27
|
+
readonly playbackError: import("@angular/core").OutputEmitterRef<void>;
|
|
28
|
+
protected readonly failed: import("@angular/core").WritableSignal<boolean>;
|
|
29
|
+
constructor();
|
|
30
|
+
protected onError(): void;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AudioPlayerComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AudioPlayerComponent, "ui-audio-player", never, {
|
|
33
|
+
"src": {
|
|
34
|
+
"alias": "src";
|
|
35
|
+
"required": false;
|
|
36
|
+
"isSignal": true;
|
|
37
|
+
};
|
|
38
|
+
"ariaLabel": {
|
|
39
|
+
"alias": "ariaLabel";
|
|
40
|
+
"required": false;
|
|
41
|
+
"isSignal": true;
|
|
42
|
+
};
|
|
43
|
+
"preload": {
|
|
44
|
+
"alias": "preload";
|
|
45
|
+
"required": false;
|
|
46
|
+
"isSignal": true;
|
|
47
|
+
};
|
|
48
|
+
}, {
|
|
49
|
+
"playbackError": "playbackError";
|
|
50
|
+
}, never, never, true, never>;
|
|
51
|
+
}
|
|
52
|
+
export type ImageRepositionShape = 'circle' | 'rounded';
|
|
53
|
+
/**
|
|
54
|
+
* Drag-to-center photo frame. The image fills the frame (`object-fit: cover`) and the user drags it, or uses the arrow
|
|
55
|
+
* keys, to choose which part stays visible. The result is a focal point in percent (`x`, `y`, 0-100, 50/50 = centered)
|
|
56
|
+
* to apply as CSS `object-position` wherever the image is shown (`ui-image-preview` / the data table image cell take it).
|
|
57
|
+
*
|
|
58
|
+
* <ui-image-reposition [src]="url" [(x)]="posX" [(y)]="posY" label="Photo position" />
|
|
59
|
+
*
|
|
60
|
+
* Only the axis that overflows the frame can move (a landscape photo moves sideways, a portrait one up and down).
|
|
61
|
+
* Arrow keys nudge by 2% (Shift: 10%). The frame is a labelled group with a hint for assistive tech.
|
|
62
|
+
*
|
|
63
|
+
* The frame is a 160px square by default. Give it the SHAPE the image has where it is shown (`aspectRatio="16 / 9"` for a wide
|
|
64
|
+
* cover, `"4 / 3"` for a card photo) and a `width`, so what the user sees while dragging is exactly what visitors see. A circle
|
|
65
|
+
* is always square. `imageObjectPosition({ x, y })` (same entry point) turns the saved point into the CSS the public side needs.
|
|
66
|
+
*/
|
|
67
|
+
export declare class ImageRepositionComponent {
|
|
68
|
+
protected readonly labels: UiLabelsService;
|
|
69
|
+
private static nextId;
|
|
70
|
+
protected readonly hintId: string;
|
|
71
|
+
private readonly host;
|
|
72
|
+
/** Image URL (or data URL). Without one the frame is empty and cannot be moved. */
|
|
73
|
+
readonly src: import("@angular/core").InputSignal<string | null | undefined>;
|
|
74
|
+
readonly alt: import("@angular/core").InputSignal<string>;
|
|
75
|
+
readonly shape: import("@angular/core").InputSignal<ImageRepositionShape>;
|
|
76
|
+
/** Shape of the frame, `'16 / 9'` or `'4/3'` (two positive numbers); anything else, and every `circle`, is a square. Default `'1 / 1'`. */
|
|
77
|
+
readonly aspectRatio: import("@angular/core").InputSignal<string>;
|
|
78
|
+
/** Width of the frame in px (64-1200, never wider than its container); the height follows `aspectRatio`. Default 160. */
|
|
79
|
+
readonly width: import("@angular/core").InputSignal<number>;
|
|
80
|
+
/** Accessible name of the frame. */
|
|
81
|
+
readonly labelInput: import("@angular/core").InputSignal<string | null>;
|
|
82
|
+
readonly label: import("@angular/core").Signal<string>;
|
|
83
|
+
/** Focal point, percent from the left (0-100). Two-way: `[(x)]`. */
|
|
84
|
+
readonly x: import("@angular/core").ModelSignal<number>;
|
|
85
|
+
/** Focal point, percent from the top (0-100). Two-way: `[(y)]`. */
|
|
86
|
+
readonly y: import("@angular/core").ModelSignal<number>;
|
|
87
|
+
protected readonly frameRatio: import("@angular/core").Signal<string>;
|
|
88
|
+
protected readonly frameWidthPx: import("@angular/core").Signal<number>;
|
|
89
|
+
protected readonly dragging: import("@angular/core").WritableSignal<boolean>;
|
|
90
|
+
private natural;
|
|
91
|
+
private start;
|
|
92
|
+
protected onLoad(e: Event): void;
|
|
93
|
+
/** How many px the cover-scaled image overflows the frame on each axis (0 = that axis cannot move). */
|
|
94
|
+
private overflow;
|
|
95
|
+
protected onPointerDown(e: PointerEvent): void;
|
|
96
|
+
protected onPointerMove(e: PointerEvent): void;
|
|
97
|
+
protected endDrag(e: PointerEvent): void;
|
|
98
|
+
protected onKeydown(e: KeyboardEvent): void;
|
|
99
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageRepositionComponent, never>;
|
|
100
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageRepositionComponent, "ui-image-reposition", never, {
|
|
101
|
+
"src": {
|
|
102
|
+
"alias": "src";
|
|
103
|
+
"required": false;
|
|
104
|
+
"isSignal": true;
|
|
105
|
+
};
|
|
106
|
+
"alt": {
|
|
107
|
+
"alias": "alt";
|
|
108
|
+
"required": false;
|
|
109
|
+
"isSignal": true;
|
|
110
|
+
};
|
|
111
|
+
"shape": {
|
|
112
|
+
"alias": "shape";
|
|
113
|
+
"required": false;
|
|
114
|
+
"isSignal": true;
|
|
115
|
+
};
|
|
116
|
+
"aspectRatio": {
|
|
117
|
+
"alias": "aspectRatio";
|
|
118
|
+
"required": false;
|
|
119
|
+
"isSignal": true;
|
|
120
|
+
};
|
|
121
|
+
"width": {
|
|
122
|
+
"alias": "width";
|
|
123
|
+
"required": false;
|
|
124
|
+
"isSignal": true;
|
|
125
|
+
};
|
|
126
|
+
"labelInput": {
|
|
127
|
+
"alias": "label";
|
|
128
|
+
"required": false;
|
|
129
|
+
"isSignal": true;
|
|
130
|
+
};
|
|
131
|
+
"x": {
|
|
132
|
+
"alias": "x";
|
|
133
|
+
"required": false;
|
|
134
|
+
"isSignal": true;
|
|
135
|
+
};
|
|
136
|
+
"y": {
|
|
137
|
+
"alias": "y";
|
|
138
|
+
"required": false;
|
|
139
|
+
"isSignal": true;
|
|
140
|
+
};
|
|
141
|
+
}, {
|
|
142
|
+
"x": "xChange";
|
|
143
|
+
"y": "yChange";
|
|
144
|
+
}, never, never, true, never>;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Focal point of an image in percent (`x` from the left, `y` from the top, 0-100, 50/50 = centered): which part of a photo
|
|
148
|
+
* stays visible where it is cropped. `ui-image-reposition` edits it; these helpers apply it everywhere the photo is shown.
|
|
149
|
+
*/
|
|
150
|
+
export interface ImageFocalPoint {
|
|
151
|
+
x?: number | null;
|
|
152
|
+
y?: number | null;
|
|
153
|
+
}
|
|
154
|
+
/** The centered default. */
|
|
155
|
+
export declare const CENTERED_FOCAL_POINT = 50;
|
|
156
|
+
/** Rounds to a whole percent and keeps it inside 0-100. A missing or non-numeric value is centered (50). */
|
|
157
|
+
export declare function clampFocalPoint(value: number | null | undefined): number;
|
|
158
|
+
/**
|
|
159
|
+
* CSS `object-position` for a stored focal point, e.g. `'15% 85%'`. Centered (`'50% 50%'`) when nothing is stored, so images
|
|
160
|
+
* saved before positioning existed render as they always did. Bind it to `[style.object-position]` on an `object-fit: cover` image.
|
|
161
|
+
*/
|
|
162
|
+
export declare function imageObjectPosition(point: ImageFocalPoint | null | undefined): string;
|
|
163
|
+
/**
|
|
164
|
+
* The `aspect-ratio` the frame uses: `'16 / 9'`, `'4/3'`, `'1.5 / 1'` (two positive numbers). Anything else falls back to a square,
|
|
165
|
+
* so a typo can never collapse the frame to nothing.
|
|
166
|
+
*/
|
|
167
|
+
export declare function frameAspectRatio(value: string | null | undefined): string;
|
|
168
|
+
/** The frame width in px, kept between 64 and 1200; a missing or non-numeric value is the 160px default. */
|
|
169
|
+
export declare function frameWidth(value: number | null | undefined): number;
|
|
170
|
+
/** PNG, JPEG or WEBP, at most 10 MB: the rules of every image upload of the apps (their APIs check the file's real content again). */
|
|
171
|
+
export declare const IMAGE_FIELD_ACCEPT = "image/png,image/jpeg,image/webp,.png,.jpg,.jpeg,.webp";
|
|
172
|
+
export declare const IMAGE_FIELD_MAX_BYTES: number;
|
|
173
|
+
/**
|
|
174
|
+
* The photo field of an add / edit form: the current image in a drag-to-position frame, Upload / Change Photo, Remove Photo,
|
|
175
|
+
* and the file checks (type, size, empty), so every form that has one image behaves the same.
|
|
176
|
+
*
|
|
177
|
+
* <ui-image-field label="Cover image" [src]="savedUrl()" [(x)]="posX" [(y)]="posY"
|
|
178
|
+
* shape="rounded" aspectRatio="16 / 9" [width]="320" [removing]="removing()"
|
|
179
|
+
* (fileChange)="pending.set($event)" (remove)="removeFromServer()" />
|
|
180
|
+
*
|
|
181
|
+
* The component owns only what the user sees. The HOST owns the saving:
|
|
182
|
+
* - `(fileChange)` gives the picked file (nothing is uploaded); the field already previews it and starts it centered. Upload it
|
|
183
|
+
* with the record, sending `x` / `y` along.
|
|
184
|
+
* - `(remove)` fires when the user presses Remove Photo (shown only while a saved image exists). The host deletes it, shows
|
|
185
|
+
* `[removing]` meanwhile, then calls `reset()`.
|
|
186
|
+
* - After a successful save call `reset()` as well: the picked file is dropped and `src` shows the saved image.
|
|
187
|
+
* Fresh files start centered (50/50); the old image's crop does not carry over. `x` / `y` are 0-100 focal-point percents, shown
|
|
188
|
+
* publicly with `imageObjectPosition({ x, y })` on an `object-fit: cover` image.
|
|
189
|
+
*/
|
|
190
|
+
export declare class ImageFieldComponent {
|
|
191
|
+
protected readonly labels: UiLabelsService;
|
|
192
|
+
protected readonly pickerRef: import("@angular/core").Signal<FileInputComponent>;
|
|
193
|
+
/** The SAVED image (URL), or null / empty when the record has none. It is what Remove Photo removes. */
|
|
194
|
+
readonly src: import("@angular/core").InputSignal<string | null | undefined>;
|
|
195
|
+
readonly alt: import("@angular/core").InputSignal<string>;
|
|
196
|
+
/** Accessible name of the picker and default for the section; defaults to "Photo". */
|
|
197
|
+
readonly label: import("@angular/core").InputSignal<string | null>;
|
|
198
|
+
/** Accessible name of the drag frame; defaults to "Photo position". */
|
|
199
|
+
readonly positionLabel: import("@angular/core").InputSignal<string | null>;
|
|
200
|
+
readonly shape: import("@angular/core").InputSignal<ImageRepositionShape>;
|
|
201
|
+
/** Shape of the frame, as the image is shown where visitors see it (`'16 / 9'`); a circle is always square. */
|
|
202
|
+
readonly aspectRatio: import("@angular/core").InputSignal<string>;
|
|
203
|
+
/** Frame width in px (64-1200). */
|
|
204
|
+
readonly width: import("@angular/core").InputSignal<number>;
|
|
205
|
+
/** The icon shown while there is no image. */
|
|
206
|
+
readonly placeholder: import("@angular/core").InputSignal<ImagePreviewPlaceholder>;
|
|
207
|
+
/** The host's Remove request is running: the button shows its spinner and the field cannot be changed. */
|
|
208
|
+
readonly removing: import("@angular/core").InputSignal<boolean>;
|
|
209
|
+
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
210
|
+
readonly accept: import("@angular/core").InputSignal<string>;
|
|
211
|
+
readonly maxSize: import("@angular/core").InputSignal<number>;
|
|
212
|
+
/** Button texts; the dictionary's "Upload Photo" / "Change Photo" / "Remove Photo" when not set. */
|
|
213
|
+
readonly uploadLabel: import("@angular/core").InputSignal<string | null>;
|
|
214
|
+
readonly changeLabel: import("@angular/core").InputSignal<string | null>;
|
|
215
|
+
readonly removeLabel: import("@angular/core").InputSignal<string | null>;
|
|
216
|
+
/** Refusal messages of the picker; the dictionary's when not set. */
|
|
217
|
+
readonly typeMessage: import("@angular/core").InputSignal<string>;
|
|
218
|
+
readonly sizeMessage: import("@angular/core").InputSignal<string>;
|
|
219
|
+
readonly emptyMessage: import("@angular/core").InputSignal<string>;
|
|
220
|
+
/** Prefix of the `data-testid`s: `<id>-row`, `-preview`, `-actions`, `-upload`, `-remove`, `-input`. */
|
|
221
|
+
readonly testId: import("@angular/core").InputSignal<string>;
|
|
222
|
+
/** Focal point, percent from the left / top (0-100). Two-way: `[(x)]` `[(y)]`. */
|
|
223
|
+
readonly x: import("@angular/core").ModelSignal<number>;
|
|
224
|
+
readonly y: import("@angular/core").ModelSignal<number>;
|
|
225
|
+
/** The picked file waiting to be saved with the record (null when none). */
|
|
226
|
+
readonly file: import("@angular/core").WritableSignal<File | null>;
|
|
227
|
+
private readonly preview;
|
|
228
|
+
/** The picked file's preview when there is one, else the saved image. */
|
|
229
|
+
readonly shownSrc: import("@angular/core").Signal<string | null>;
|
|
230
|
+
protected readonly labelText: import("@angular/core").Signal<string>;
|
|
231
|
+
protected readonly positionLabelText: import("@angular/core").Signal<string>;
|
|
232
|
+
protected readonly uploadText: import("@angular/core").Signal<string>;
|
|
233
|
+
protected readonly changeText: import("@angular/core").Signal<string>;
|
|
234
|
+
protected readonly removeText: import("@angular/core").Signal<string>;
|
|
235
|
+
/** The user picked an image (already checked for type, size and emptiness); nothing is uploaded. */
|
|
236
|
+
readonly fileChange: import("@angular/core").OutputEmitterRef<File>;
|
|
237
|
+
/** Remove Photo was pressed; the host deletes the saved image, then calls `reset()`. */
|
|
238
|
+
readonly remove: import("@angular/core").OutputEmitterRef<void>;
|
|
239
|
+
protected onFilesSelected(files: File[]): void;
|
|
240
|
+
/** Drops the picked file and its preview and centers the frame: call it after the record was saved, the image removed, or the form reopened. */
|
|
241
|
+
reset(): void;
|
|
242
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageFieldComponent, never>;
|
|
243
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageFieldComponent, "ui-image-field", never, {
|
|
244
|
+
"src": {
|
|
245
|
+
"alias": "src";
|
|
246
|
+
"required": false;
|
|
247
|
+
"isSignal": true;
|
|
248
|
+
};
|
|
249
|
+
"alt": {
|
|
250
|
+
"alias": "alt";
|
|
251
|
+
"required": false;
|
|
252
|
+
"isSignal": true;
|
|
253
|
+
};
|
|
254
|
+
"label": {
|
|
255
|
+
"alias": "label";
|
|
256
|
+
"required": false;
|
|
257
|
+
"isSignal": true;
|
|
258
|
+
};
|
|
259
|
+
"positionLabel": {
|
|
260
|
+
"alias": "positionLabel";
|
|
261
|
+
"required": false;
|
|
262
|
+
"isSignal": true;
|
|
263
|
+
};
|
|
264
|
+
"shape": {
|
|
265
|
+
"alias": "shape";
|
|
266
|
+
"required": false;
|
|
267
|
+
"isSignal": true;
|
|
268
|
+
};
|
|
269
|
+
"aspectRatio": {
|
|
270
|
+
"alias": "aspectRatio";
|
|
271
|
+
"required": false;
|
|
272
|
+
"isSignal": true;
|
|
273
|
+
};
|
|
274
|
+
"width": {
|
|
275
|
+
"alias": "width";
|
|
276
|
+
"required": false;
|
|
277
|
+
"isSignal": true;
|
|
278
|
+
};
|
|
279
|
+
"placeholder": {
|
|
280
|
+
"alias": "placeholder";
|
|
281
|
+
"required": false;
|
|
282
|
+
"isSignal": true;
|
|
283
|
+
};
|
|
284
|
+
"removing": {
|
|
285
|
+
"alias": "removing";
|
|
286
|
+
"required": false;
|
|
287
|
+
"isSignal": true;
|
|
288
|
+
};
|
|
289
|
+
"disabled": {
|
|
290
|
+
"alias": "disabled";
|
|
291
|
+
"required": false;
|
|
292
|
+
"isSignal": true;
|
|
293
|
+
};
|
|
294
|
+
"accept": {
|
|
295
|
+
"alias": "accept";
|
|
296
|
+
"required": false;
|
|
297
|
+
"isSignal": true;
|
|
298
|
+
};
|
|
299
|
+
"maxSize": {
|
|
300
|
+
"alias": "maxSize";
|
|
301
|
+
"required": false;
|
|
302
|
+
"isSignal": true;
|
|
303
|
+
};
|
|
304
|
+
"uploadLabel": {
|
|
305
|
+
"alias": "uploadLabel";
|
|
306
|
+
"required": false;
|
|
307
|
+
"isSignal": true;
|
|
308
|
+
};
|
|
309
|
+
"changeLabel": {
|
|
310
|
+
"alias": "changeLabel";
|
|
311
|
+
"required": false;
|
|
312
|
+
"isSignal": true;
|
|
313
|
+
};
|
|
314
|
+
"removeLabel": {
|
|
315
|
+
"alias": "removeLabel";
|
|
316
|
+
"required": false;
|
|
317
|
+
"isSignal": true;
|
|
318
|
+
};
|
|
319
|
+
"typeMessage": {
|
|
320
|
+
"alias": "typeMessage";
|
|
321
|
+
"required": false;
|
|
322
|
+
"isSignal": true;
|
|
323
|
+
};
|
|
324
|
+
"sizeMessage": {
|
|
325
|
+
"alias": "sizeMessage";
|
|
326
|
+
"required": false;
|
|
327
|
+
"isSignal": true;
|
|
328
|
+
};
|
|
329
|
+
"emptyMessage": {
|
|
330
|
+
"alias": "emptyMessage";
|
|
331
|
+
"required": false;
|
|
332
|
+
"isSignal": true;
|
|
333
|
+
};
|
|
334
|
+
"testId": {
|
|
335
|
+
"alias": "testId";
|
|
336
|
+
"required": false;
|
|
337
|
+
"isSignal": true;
|
|
338
|
+
};
|
|
339
|
+
"x": {
|
|
340
|
+
"alias": "x";
|
|
341
|
+
"required": false;
|
|
342
|
+
"isSignal": true;
|
|
343
|
+
};
|
|
344
|
+
"y": {
|
|
345
|
+
"alias": "y";
|
|
346
|
+
"required": false;
|
|
347
|
+
"isSignal": true;
|
|
348
|
+
};
|
|
349
|
+
}, {
|
|
350
|
+
"x": "xChange";
|
|
351
|
+
"y": "yChange";
|
|
352
|
+
"fileChange": "fileChange";
|
|
353
|
+
"remove": "remove";
|
|
354
|
+
}, never, never, true, never>;
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* QR code for a URL (or any text), with a "Download QR Code" button (PNG). Projected content
|
|
358
|
+
* renders next to the download button (e.g. an "Open Kiosk Mode" action).
|
|
359
|
+
*
|
|
360
|
+
* Self-contained: uses the built-in encoder in ./qr-encoder.ts — no third-party QR package.
|
|
361
|
+
*
|
|
362
|
+
* ```html
|
|
363
|
+
* <ui-qr-code [url]="publicLink()" filename="open-house-qr-code">
|
|
364
|
+
* <ui-button variant="secondary" size="sm" (click)="openKiosk()">Open Kiosk Mode</ui-button>
|
|
365
|
+
* </ui-qr-code>
|
|
366
|
+
* ```
|
|
367
|
+
*/
|
|
368
|
+
export declare class QrCodeComponent {
|
|
369
|
+
protected readonly labels: UiLabelsService;
|
|
370
|
+
/** URL (or text) encoded into the QR code. Nothing is rendered while empty. */
|
|
371
|
+
readonly url: import("@angular/core").InputSignal<string>;
|
|
372
|
+
/** Displayed width/height in px. The PNG is rendered at 2x for sharp printing. */
|
|
373
|
+
readonly size: import("@angular/core").InputSignal<number>;
|
|
374
|
+
/** Download file name, without the .png extension. */
|
|
375
|
+
readonly filename: import("@angular/core").InputSignal<string>;
|
|
376
|
+
readonly altInput: import("@angular/core").InputSignal<string | null>;
|
|
377
|
+
readonly alt: import("@angular/core").Signal<string>;
|
|
378
|
+
/** iOS Safari doesn't support programmatic download of data: or blob: URLs. */
|
|
379
|
+
protected readonly isIOS: boolean;
|
|
380
|
+
protected readonly qr: import("@angular/core").Signal<{
|
|
381
|
+
dataUrl: string;
|
|
382
|
+
error: boolean;
|
|
383
|
+
}>;
|
|
384
|
+
download(): void;
|
|
385
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QrCodeComponent, never>;
|
|
386
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QrCodeComponent, "ui-qr-code", never, {
|
|
387
|
+
"url": {
|
|
388
|
+
"alias": "url";
|
|
389
|
+
"required": false;
|
|
390
|
+
"isSignal": true;
|
|
391
|
+
};
|
|
392
|
+
"size": {
|
|
393
|
+
"alias": "size";
|
|
394
|
+
"required": false;
|
|
395
|
+
"isSignal": true;
|
|
396
|
+
};
|
|
397
|
+
"filename": {
|
|
398
|
+
"alias": "filename";
|
|
399
|
+
"required": false;
|
|
400
|
+
"isSignal": true;
|
|
401
|
+
};
|
|
402
|
+
"altInput": {
|
|
403
|
+
"alias": "alt";
|
|
404
|
+
"required": false;
|
|
405
|
+
"isSignal": true;
|
|
406
|
+
};
|
|
407
|
+
}, {}, never, ["*"], true, never>;
|
|
408
|
+
}
|
|
409
|
+
/** (library source 2026-11-06, not yet published) One step of a `ui-tour`. */
|
|
410
|
+
export interface TourStep {
|
|
411
|
+
/** CSS selector of the element to point at. Several selectors separated by commas: the first that exists is used. A step whose target is missing is shown centred, without a spotlight. */
|
|
412
|
+
target: string;
|
|
413
|
+
title: string;
|
|
414
|
+
description: string;
|
|
415
|
+
/** Preferred side of the target for the tooltip; it moves to the side with room when the preferred one does not fit. */
|
|
416
|
+
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
417
|
+
}
|
|
418
|
+
type TourSide = 'top' | 'bottom' | 'left' | 'right';
|
|
419
|
+
/**
|
|
420
|
+
* A guided tour: a spotlight on one element at a time and a tooltip with title, text, "Step n of N", Skip / Previous / Next (Finish on the last step).
|
|
421
|
+
* The HOST decides when it runs and remembers that it was seen (the library stores nothing):
|
|
422
|
+
*
|
|
423
|
+
* <ui-tour [steps]="steps" [(open)]="tourOpen" (finished)="markSeen()" (skipped)="markSeen()" />
|
|
424
|
+
*
|
|
425
|
+
* Keyboard: Arrow right / left = next / previous, Escape = skip. Clicking the dimmed page skips. Test ids: `tour-spotlight`, `tour-tooltip`, `tour-title`,
|
|
426
|
+
* `tour-description`, `tour-progress`, `tour-skip`, `tour-prev`, `tour-next`.
|
|
427
|
+
*/
|
|
428
|
+
export declare class TourComponent {
|
|
429
|
+
protected readonly labels: UiLabelsService;
|
|
430
|
+
readonly steps: import("@angular/core").InputSignal<readonly TourStep[]>;
|
|
431
|
+
/** Whether the tour is showing (two-way). The tour closes itself on finish and skip. */
|
|
432
|
+
readonly open: import("@angular/core").ModelSignal<boolean>;
|
|
433
|
+
/** Zero-based current step (two-way). Reset to 0 each time the tour opens. */
|
|
434
|
+
readonly index: import("@angular/core").ModelSignal<number>;
|
|
435
|
+
readonly skipLabelInput: import("@angular/core").InputSignal<string | null>;
|
|
436
|
+
readonly skipLabel: import("@angular/core").Signal<string>;
|
|
437
|
+
readonly previousLabelInput: import("@angular/core").InputSignal<string | null>;
|
|
438
|
+
readonly previousLabel: import("@angular/core").Signal<string>;
|
|
439
|
+
readonly nextLabelInput: import("@angular/core").InputSignal<string | null>;
|
|
440
|
+
readonly nextLabel: import("@angular/core").Signal<string>;
|
|
441
|
+
readonly finishLabelInput: import("@angular/core").InputSignal<string | null>;
|
|
442
|
+
readonly finishLabel: import("@angular/core").Signal<string>;
|
|
443
|
+
/** `{n}` = the step number, `{total}` = how many steps. */
|
|
444
|
+
readonly progressLabelInput: import("@angular/core").InputSignal<string | null>;
|
|
445
|
+
readonly progressLabel: import("@angular/core").Signal<string>;
|
|
446
|
+
/** Emits after the last step's Finish. */
|
|
447
|
+
readonly finished: import("@angular/core").OutputEmitterRef<void>;
|
|
448
|
+
/** Emits when the user skips (button, Escape, or a click on the dimmed page). */
|
|
449
|
+
readonly skipped: import("@angular/core").OutputEmitterRef<void>;
|
|
450
|
+
private readonly tooltip;
|
|
451
|
+
protected readonly spotlight: import("@angular/core").WritableSignal<{
|
|
452
|
+
top: number;
|
|
453
|
+
left: number;
|
|
454
|
+
width: number;
|
|
455
|
+
height: number;
|
|
456
|
+
}>;
|
|
457
|
+
protected readonly place: import("@angular/core").WritableSignal<{
|
|
458
|
+
top: string;
|
|
459
|
+
left: string;
|
|
460
|
+
}>;
|
|
461
|
+
protected readonly side: import("@angular/core").WritableSignal<TourSide>;
|
|
462
|
+
protected readonly step: import("@angular/core").Signal<TourStep>;
|
|
463
|
+
protected readonly isLast: import("@angular/core").Signal<boolean>;
|
|
464
|
+
protected readonly progressText: import("@angular/core").Signal<string>;
|
|
465
|
+
constructor();
|
|
466
|
+
next(): void;
|
|
467
|
+
previous(): void;
|
|
468
|
+
skip(): void;
|
|
469
|
+
protected onKeydown(e: KeyboardEvent): void;
|
|
470
|
+
protected onResize(): void;
|
|
471
|
+
private close;
|
|
472
|
+
private findTarget;
|
|
473
|
+
private position;
|
|
474
|
+
private chooseSide;
|
|
475
|
+
private placement;
|
|
476
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TourComponent, never>;
|
|
477
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TourComponent, "ui-tour", never, {
|
|
478
|
+
"steps": {
|
|
479
|
+
"alias": "steps";
|
|
480
|
+
"required": true;
|
|
481
|
+
"isSignal": true;
|
|
482
|
+
};
|
|
483
|
+
"open": {
|
|
484
|
+
"alias": "open";
|
|
485
|
+
"required": false;
|
|
486
|
+
"isSignal": true;
|
|
487
|
+
};
|
|
488
|
+
"index": {
|
|
489
|
+
"alias": "index";
|
|
490
|
+
"required": false;
|
|
491
|
+
"isSignal": true;
|
|
492
|
+
};
|
|
493
|
+
"skipLabelInput": {
|
|
494
|
+
"alias": "skipLabel";
|
|
495
|
+
"required": false;
|
|
496
|
+
"isSignal": true;
|
|
497
|
+
};
|
|
498
|
+
"previousLabelInput": {
|
|
499
|
+
"alias": "previousLabel";
|
|
500
|
+
"required": false;
|
|
501
|
+
"isSignal": true;
|
|
502
|
+
};
|
|
503
|
+
"nextLabelInput": {
|
|
504
|
+
"alias": "nextLabel";
|
|
505
|
+
"required": false;
|
|
506
|
+
"isSignal": true;
|
|
507
|
+
};
|
|
508
|
+
"finishLabelInput": {
|
|
509
|
+
"alias": "finishLabel";
|
|
510
|
+
"required": false;
|
|
511
|
+
"isSignal": true;
|
|
512
|
+
};
|
|
513
|
+
"progressLabelInput": {
|
|
514
|
+
"alias": "progressLabel";
|
|
515
|
+
"required": false;
|
|
516
|
+
"isSignal": true;
|
|
517
|
+
};
|
|
518
|
+
}, {
|
|
519
|
+
"open": "openChange";
|
|
520
|
+
"index": "indexChange";
|
|
521
|
+
"finished": "finished";
|
|
522
|
+
"skipped": "skipped";
|
|
523
|
+
}, never, never, true, never>;
|
|
524
|
+
}
|
|
525
|
+
export type ImageFit = 'contain' | 'cover' | 'fill' | 'scale-down';
|
|
526
|
+
export type ImageRadius = 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
527
|
+
export type ImageAlign = 'start' | 'center' | 'end';
|
|
528
|
+
/**
|
|
529
|
+
* A content image of any size (a logo, a product photo, a banner) - the bigger sibling of `ui-image-preview`, which is a
|
|
530
|
+
* small fixed-size thumbnail. The whole image is shown (`fit="contain"`) unless you ask for `cover`.
|
|
531
|
+
*
|
|
532
|
+
* <ui-image src="/logo.png" alt="Peaceful Pines Crematory" maxHeight="48px" /> <!-- natural size, capped -->
|
|
533
|
+
* <ui-image [src]="p.imageUrl" [alt]="p.name" width="100%" aspectRatio="4 / 3" radius="md" [bordered]="true" />
|
|
534
|
+
* <ui-image [src]="hero" alt="" fit="cover" width="100%" height="200px" [priority]="true" />
|
|
535
|
+
*
|
|
536
|
+
* - `alt`: required for meaningful images; '' (default) marks it decorative. The placeholder is `role="img"` named by `alt`
|
|
537
|
+
* (or hidden when decorative).
|
|
538
|
+
* - Size: `width` / `height` (CSS lengths, e.g. "200px", "100%") fix the box and the image fills it per `fit`; without them
|
|
539
|
+
* the image keeps its natural size, capped by `maxWidth` (default 100%) and `maxHeight`. `aspectRatio` ("4 / 3", "1")
|
|
540
|
+
* reserves the space before the image loads so the page does not jump.
|
|
541
|
+
* - `positionX` / `positionY` (percent, default 50 / 50 = centered): the focal point kept visible when `fit="cover"` crops the image (CSS `object-position`);
|
|
542
|
+
* the saved result of `ui-image-reposition` / `ui-image-field`. Missing or out-of-range values are centered / clamped.
|
|
543
|
+
* - `radius` none | sm | md | lg | full, `bordered`, `align` (start | center | end, for an image narrower than its row).
|
|
544
|
+
* - `placeholder` (default true): a neutral icon in the same box when there is no `src` or it fails to load. false renders nothing then.
|
|
545
|
+
* - `priority`: above-the-fold image - loads eagerly with high fetch priority. Otherwise `loading="lazy"` and async decoding.
|
|
546
|
+
* - Outputs `loaded` and `failed`. A new `src` (or a changed `retryKey`) gets a fresh chance to load.
|
|
547
|
+
* - Library source 2026-11-04, not yet published: `[interactive]="true"` makes the image a button (e.g. a product photo that opens a preview):
|
|
548
|
+
* the host gets `role="button"`, `tabindex="0"`, a focus ring, and click, Enter or Space emit `(activate)`. Its accessible name is the `alt`
|
|
549
|
+
* text (also set as `aria-label`), so an interactive image NEEDS a non-empty `alt` (a decorative `alt=""` image would be an unnamed button). Not
|
|
550
|
+
* interactive (default) = no role, no tabindex, no key handling, no output: exactly as before.
|
|
551
|
+
* Inside a clickable parent (e.g. a pressable `ui-list-item` row via the `list-item-image` slot) the click bubbles: `activate` fires AND the parent's
|
|
552
|
+
* own click handling runs (the row is selected). Enter / Space fire `activate` only; the parent's key handlers that require their own element as the
|
|
553
|
+
* target (`ui-list-item`) ignore them.
|
|
554
|
+
* <ui-image [src]="p.photo" [alt]="'Open photo of ' + p.name" [interactive]="true" (activate)="preview(p)" />
|
|
555
|
+
*/
|
|
556
|
+
export declare class ImageComponent {
|
|
557
|
+
/** Image URL (or data URL). Blank shows the placeholder. */
|
|
558
|
+
readonly src: import("@angular/core").InputSignal<string | null | undefined>;
|
|
559
|
+
/** Alt text; '' (default) marks the image decorative. */
|
|
560
|
+
readonly alt: import("@angular/core").InputSignal<string>;
|
|
561
|
+
readonly fit: import("@angular/core").InputSignal<ImageFit>;
|
|
562
|
+
/** Focal point, percent from the left (0-100, 50 = centered): which part stays visible when the image is cropped by `fit="cover"`. */
|
|
563
|
+
readonly positionX: import("@angular/core").InputSignal<number | null | undefined>;
|
|
564
|
+
/** Focal point, percent from the top (0-100, 50 = centered). */
|
|
565
|
+
readonly positionY: import("@angular/core").InputSignal<number | null | undefined>;
|
|
566
|
+
protected readonly objectPosition: import("@angular/core").Signal<string>;
|
|
567
|
+
/** CSS width of the box (e.g. "200px", "100%"). Empty = natural width. */
|
|
568
|
+
readonly width: import("@angular/core").InputSignal<string>;
|
|
569
|
+
/** CSS height of the box. Empty = natural height. */
|
|
570
|
+
readonly height: import("@angular/core").InputSignal<string>;
|
|
571
|
+
readonly maxWidth: import("@angular/core").InputSignal<string>;
|
|
572
|
+
readonly maxHeight: import("@angular/core").InputSignal<string>;
|
|
573
|
+
/** Minimum height of the image box (any CSS length). Empty = none. */
|
|
574
|
+
readonly minHeight: import("@angular/core").InputSignal<string>;
|
|
575
|
+
/** CSS aspect-ratio, e.g. "4 / 3". Reserves the space while the image loads. */
|
|
576
|
+
readonly aspectRatio: import("@angular/core").InputSignal<string>;
|
|
577
|
+
readonly radius: import("@angular/core").InputSignal<ImageRadius>;
|
|
578
|
+
readonly bordered: import("@angular/core").InputSignal<boolean>;
|
|
579
|
+
readonly align: import("@angular/core").InputSignal<ImageAlign>;
|
|
580
|
+
/** Show a neutral placeholder when there is no usable image. false = render nothing. */
|
|
581
|
+
readonly placeholder: import("@angular/core").InputSignal<boolean>;
|
|
582
|
+
/** Above-the-fold image: eager loading with high fetch priority. */
|
|
583
|
+
readonly priority: import("@angular/core").InputSignal<boolean>;
|
|
584
|
+
/** Bump to retry a failed image with the same `src`. */
|
|
585
|
+
readonly retryKey: import("@angular/core").InputSignal<unknown>;
|
|
586
|
+
/**
|
|
587
|
+
* Library source 2026-11-04, not yet published. `true` = the image is a button: `role="button"`, `tabindex="0"`, `aria-label` from `alt`, and click /
|
|
588
|
+
* Enter / Space emit `activate`. Needs a non-empty `alt` (it is the button's name). Default `false` = a plain image, nothing changes.
|
|
589
|
+
*/
|
|
590
|
+
readonly interactive: import("@angular/core").InputSignal<boolean>;
|
|
591
|
+
readonly loaded: import("@angular/core").OutputEmitterRef<void>;
|
|
592
|
+
readonly failed: import("@angular/core").OutputEmitterRef<void>;
|
|
593
|
+
/** Fires (once per press) when an `interactive` image is clicked, or Enter / Space is pressed on it. Never fires when not interactive. */
|
|
594
|
+
readonly activate: import("@angular/core").OutputEmitterRef<void>;
|
|
595
|
+
protected readonly _failed: import("@angular/core").WritableSignal<boolean>;
|
|
596
|
+
protected readonly _url: import("@angular/core").Signal<string | null>;
|
|
597
|
+
protected readonly radiusCss: import("@angular/core").Signal<string>;
|
|
598
|
+
protected readonly imgWidth: import("@angular/core").Signal<string | null>;
|
|
599
|
+
protected readonly imgHeight: import("@angular/core").Signal<string | null>;
|
|
600
|
+
/** The placeholder needs a real box when the caller gave none. */
|
|
601
|
+
protected readonly boxWidth: import("@angular/core").Signal<string | null>;
|
|
602
|
+
protected readonly boxHeight: import("@angular/core").Signal<string | null>;
|
|
603
|
+
protected readonly isBlock: import("@angular/core").Signal<boolean>;
|
|
604
|
+
constructor();
|
|
605
|
+
protected _onError(): void;
|
|
606
|
+
protected onActivate(): void;
|
|
607
|
+
protected onKey(event: Event): void;
|
|
608
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageComponent, never>;
|
|
609
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageComponent, "ui-image", never, {
|
|
610
|
+
"src": {
|
|
611
|
+
"alias": "src";
|
|
612
|
+
"required": false;
|
|
613
|
+
"isSignal": true;
|
|
614
|
+
};
|
|
615
|
+
"alt": {
|
|
616
|
+
"alias": "alt";
|
|
617
|
+
"required": false;
|
|
618
|
+
"isSignal": true;
|
|
619
|
+
};
|
|
620
|
+
"fit": {
|
|
621
|
+
"alias": "fit";
|
|
622
|
+
"required": false;
|
|
623
|
+
"isSignal": true;
|
|
624
|
+
};
|
|
625
|
+
"positionX": {
|
|
626
|
+
"alias": "positionX";
|
|
627
|
+
"required": false;
|
|
628
|
+
"isSignal": true;
|
|
629
|
+
};
|
|
630
|
+
"positionY": {
|
|
631
|
+
"alias": "positionY";
|
|
632
|
+
"required": false;
|
|
633
|
+
"isSignal": true;
|
|
634
|
+
};
|
|
635
|
+
"width": {
|
|
636
|
+
"alias": "width";
|
|
637
|
+
"required": false;
|
|
638
|
+
"isSignal": true;
|
|
639
|
+
};
|
|
640
|
+
"height": {
|
|
641
|
+
"alias": "height";
|
|
642
|
+
"required": false;
|
|
643
|
+
"isSignal": true;
|
|
644
|
+
};
|
|
645
|
+
"maxWidth": {
|
|
646
|
+
"alias": "maxWidth";
|
|
647
|
+
"required": false;
|
|
648
|
+
"isSignal": true;
|
|
649
|
+
};
|
|
650
|
+
"maxHeight": {
|
|
651
|
+
"alias": "maxHeight";
|
|
652
|
+
"required": false;
|
|
653
|
+
"isSignal": true;
|
|
654
|
+
};
|
|
655
|
+
"minHeight": {
|
|
656
|
+
"alias": "minHeight";
|
|
657
|
+
"required": false;
|
|
658
|
+
"isSignal": true;
|
|
659
|
+
};
|
|
660
|
+
"aspectRatio": {
|
|
661
|
+
"alias": "aspectRatio";
|
|
662
|
+
"required": false;
|
|
663
|
+
"isSignal": true;
|
|
664
|
+
};
|
|
665
|
+
"radius": {
|
|
666
|
+
"alias": "radius";
|
|
667
|
+
"required": false;
|
|
668
|
+
"isSignal": true;
|
|
669
|
+
};
|
|
670
|
+
"bordered": {
|
|
671
|
+
"alias": "bordered";
|
|
672
|
+
"required": false;
|
|
673
|
+
"isSignal": true;
|
|
674
|
+
};
|
|
675
|
+
"align": {
|
|
676
|
+
"alias": "align";
|
|
677
|
+
"required": false;
|
|
678
|
+
"isSignal": true;
|
|
679
|
+
};
|
|
680
|
+
"placeholder": {
|
|
681
|
+
"alias": "placeholder";
|
|
682
|
+
"required": false;
|
|
683
|
+
"isSignal": true;
|
|
684
|
+
};
|
|
685
|
+
"priority": {
|
|
686
|
+
"alias": "priority";
|
|
687
|
+
"required": false;
|
|
688
|
+
"isSignal": true;
|
|
689
|
+
};
|
|
690
|
+
"retryKey": {
|
|
691
|
+
"alias": "retryKey";
|
|
692
|
+
"required": false;
|
|
693
|
+
"isSignal": true;
|
|
694
|
+
};
|
|
695
|
+
"interactive": {
|
|
696
|
+
"alias": "interactive";
|
|
697
|
+
"required": false;
|
|
698
|
+
"isSignal": true;
|
|
699
|
+
};
|
|
700
|
+
}, {
|
|
701
|
+
"loaded": "loaded";
|
|
702
|
+
"failed": "failed";
|
|
703
|
+
"activate": "activate";
|
|
704
|
+
}, never, never, true, never>;
|
|
705
|
+
}
|
|
706
|
+
/** One picture of a `ui-image-gallery`. */
|
|
707
|
+
export interface GalleryImage {
|
|
708
|
+
src: string;
|
|
709
|
+
/** Alt text of this picture. Defaults to "Image N of M". */
|
|
710
|
+
alt?: string;
|
|
711
|
+
/** Visible caption shown under the picture while it is the shown one (library source 2026-11-06, not yet published). Empty / missing = no caption line. */
|
|
712
|
+
caption?: string | null;
|
|
713
|
+
/** Focal point of this picture in percent (50 = centered): the part that stays visible when `fit="cover"` crops it. */
|
|
714
|
+
positionX?: number | null;
|
|
715
|
+
positionY?: number | null;
|
|
716
|
+
}
|
|
717
|
+
/**
|
|
718
|
+
* Image gallery (a "slideshow"): one large picture with previous / next buttons, a counter and dots. Put it inside a
|
|
719
|
+
* `ui-modal` for a lightbox, or inline on a page.
|
|
720
|
+
*
|
|
721
|
+
* <ui-image-gallery [images]="[{ src: a, alt: 'Front' }, { src: b, alt: 'Side' }]" [(index)]="i" ariaLabel="Photos of the urn" />
|
|
722
|
+
*
|
|
723
|
+
* - `images`: the pictures. With a single picture there are no buttons, counter or dots.
|
|
724
|
+
* - `index` (two-way, default 0): the shown picture; values outside the list are clamped.
|
|
725
|
+
* - `loop` (default true): Next after the last goes to the first, Previous before the first to the last. false disables
|
|
726
|
+
* the button at either end.
|
|
727
|
+
* - `showDots` / `showCounter` (default true), `aspectRatio` (default "4 / 3"), `maxHeight` (default "70vh"), `fit` (default contain).
|
|
728
|
+
* - Keyboard: with focus inside the gallery, ArrowLeft / ArrowRight (and Home / End) change the picture. The picture
|
|
729
|
+
* change is announced ("Image 2 of 5: <alt>") through an always-present live region.
|
|
730
|
+
* - Accessibility: a labelled group (`ariaLabel`, default "Image gallery") described as a carousel; the buttons are named
|
|
731
|
+
* "Previous image" / "Next image"; each dot is a button "Show image N of M" with `aria-current` on the shown one.
|
|
732
|
+
*/
|
|
733
|
+
export declare class ImageGalleryComponent {
|
|
734
|
+
protected readonly labels: UiLabelsService;
|
|
735
|
+
readonly images: import("@angular/core").InputSignal<GalleryImage[]>;
|
|
736
|
+
/** Shown picture (0-based). Two-way. */
|
|
737
|
+
readonly index: import("@angular/core").ModelSignal<number>;
|
|
738
|
+
readonly loop: import("@angular/core").InputSignal<boolean>;
|
|
739
|
+
readonly showDots: import("@angular/core").InputSignal<boolean>;
|
|
740
|
+
readonly showCounter: import("@angular/core").InputSignal<boolean>;
|
|
741
|
+
readonly aspectRatio: import("@angular/core").InputSignal<string>;
|
|
742
|
+
readonly maxHeight: import("@angular/core").InputSignal<string>;
|
|
743
|
+
readonly fit: import("@angular/core").InputSignal<"contain" | "cover">;
|
|
744
|
+
readonly ariaLabelInput: import("@angular/core").InputSignal<string | null>;
|
|
745
|
+
readonly ariaLabel: import("@angular/core").Signal<string>;
|
|
746
|
+
/**
|
|
747
|
+
* true = when the gallery sits in a `ui-modal`, the dialog opens with focus on the gallery's "Next image" button (or "Previous image" when
|
|
748
|
+
* Next is disabled at the last picture of a non-looping gallery), so the arrow keys work at once without a Tab. With a single picture there are
|
|
749
|
+
* no buttons, so the dialog keeps its normal initial focus. Default false: unchanged.
|
|
750
|
+
*/
|
|
751
|
+
readonly autofocus: import("@angular/core").InputSignal<boolean>;
|
|
752
|
+
protected readonly count: import("@angular/core").Signal<number>;
|
|
753
|
+
/** `index` clamped into the list. */
|
|
754
|
+
protected readonly position: import("@angular/core").Signal<number>;
|
|
755
|
+
protected readonly current: import("@angular/core").Signal<GalleryImage>;
|
|
756
|
+
protected readonly currentAlt: import("@angular/core").Signal<string>;
|
|
757
|
+
protected readonly currentCaption: import("@angular/core").Signal<string>;
|
|
758
|
+
protected readonly autofocusNext: import("@angular/core").Signal<boolean>;
|
|
759
|
+
protected readonly autofocusPrev: import("@angular/core").Signal<boolean>;
|
|
760
|
+
protected readonly canPrev: import("@angular/core").Signal<boolean>;
|
|
761
|
+
protected readonly canNext: import("@angular/core").Signal<boolean>;
|
|
762
|
+
protected readonly announcement: import("@angular/core").Signal<string>;
|
|
763
|
+
prev(): void;
|
|
764
|
+
next(): void;
|
|
765
|
+
go(i: number): void;
|
|
766
|
+
protected onKey(e: KeyboardEvent): void;
|
|
767
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageGalleryComponent, never>;
|
|
768
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageGalleryComponent, "ui-image-gallery", never, {
|
|
769
|
+
"images": {
|
|
770
|
+
"alias": "images";
|
|
771
|
+
"required": false;
|
|
772
|
+
"isSignal": true;
|
|
773
|
+
};
|
|
774
|
+
"index": {
|
|
775
|
+
"alias": "index";
|
|
776
|
+
"required": false;
|
|
777
|
+
"isSignal": true;
|
|
778
|
+
};
|
|
779
|
+
"loop": {
|
|
780
|
+
"alias": "loop";
|
|
781
|
+
"required": false;
|
|
782
|
+
"isSignal": true;
|
|
783
|
+
};
|
|
784
|
+
"showDots": {
|
|
785
|
+
"alias": "showDots";
|
|
786
|
+
"required": false;
|
|
787
|
+
"isSignal": true;
|
|
788
|
+
};
|
|
789
|
+
"showCounter": {
|
|
790
|
+
"alias": "showCounter";
|
|
791
|
+
"required": false;
|
|
792
|
+
"isSignal": true;
|
|
793
|
+
};
|
|
794
|
+
"aspectRatio": {
|
|
795
|
+
"alias": "aspectRatio";
|
|
796
|
+
"required": false;
|
|
797
|
+
"isSignal": true;
|
|
798
|
+
};
|
|
799
|
+
"maxHeight": {
|
|
800
|
+
"alias": "maxHeight";
|
|
801
|
+
"required": false;
|
|
802
|
+
"isSignal": true;
|
|
803
|
+
};
|
|
804
|
+
"fit": {
|
|
805
|
+
"alias": "fit";
|
|
806
|
+
"required": false;
|
|
807
|
+
"isSignal": true;
|
|
808
|
+
};
|
|
809
|
+
"ariaLabelInput": {
|
|
810
|
+
"alias": "ariaLabel";
|
|
811
|
+
"required": false;
|
|
812
|
+
"isSignal": true;
|
|
813
|
+
};
|
|
814
|
+
"autofocus": {
|
|
815
|
+
"alias": "autofocus";
|
|
816
|
+
"required": false;
|
|
817
|
+
"isSignal": true;
|
|
818
|
+
};
|
|
819
|
+
}, {
|
|
820
|
+
"index": "indexChange";
|
|
821
|
+
}, never, never, true, never>;
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
* A pad to draw a signature (or initials) on: a ControlValueAccessor whose value is a PNG data URL (`null` = empty).
|
|
825
|
+
*
|
|
826
|
+
* <ui-signature-pad label="Your signature" [(ngModel)]="signature" />
|
|
827
|
+
* <ui-signature-pad ariaLabel="Initials" [outputWidth]="200" [outputHeight]="60" (signatureChange)="onSigned($event)" />
|
|
828
|
+
*
|
|
829
|
+
* Drawing works with a mouse, a finger or a pen (pointer events; the pad blocks touch scrolling while you draw) and with the keyboard:
|
|
830
|
+
* focus the pad, move the cursor with the arrow keys (Shift = bigger steps), hold Space to draw, Escape hides the cursor (it does not
|
|
831
|
+
* leave the dialog the pad may sit in until the cursor is hidden). When a stroke ends the drawing is cropped to its content (4px margin),
|
|
832
|
+
* scaled to fit `outputWidth` x `outputHeight` (left-aligned, vertically centered) and emitted, so every signature has the same visual
|
|
833
|
+
* weight. Clear empties the pad. `disabled` (input or form control) blocks drawing.
|
|
834
|
+
*
|
|
835
|
+
* The pad is shown at the container's width and keeps the bitmap's aspect ratio (`width` : `height`), so ink is never stretched and the saved PNG
|
|
836
|
+
* looks like what was drawn. Changing `width` / `height` after drawing repaints the current signature (scaled to fit) instead of losing it.
|
|
837
|
+
* Screen readers get the keyboard instructions as a description of the pad and a polite "Signature captured" / "Signature cleared" announcement.
|
|
838
|
+
*
|
|
839
|
+
* Public methods: `clear()`, `isEmpty()`, `toDataUrl()` (the current normalized signature, or `null` when empty) and `resetTouched()` (hides a host `error` again after the host reset its form; same method on ui-rich-text-editor and ui-multi-select).
|
|
840
|
+
*/
|
|
841
|
+
export declare class SignaturePadComponent implements ControlValueAccessor {
|
|
842
|
+
protected readonly labels: UiLabelsService;
|
|
843
|
+
readonly label: import("@angular/core").InputSignal<string>;
|
|
844
|
+
/** Accessible name when there is no visible label. A default describing the keyboard controls is used when neither is set. */
|
|
845
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
846
|
+
readonly hint: import("@angular/core").InputSignal<string>;
|
|
847
|
+
/** Host error message. Shown (with the red state and aria-invalid) after the user interacted with the pad (finished a stroke or left it) or while `showErrors` is true. */
|
|
848
|
+
readonly error: import("@angular/core").InputSignal<string>;
|
|
849
|
+
/** True once the user drew on the pad or tabbed away from it. */
|
|
850
|
+
/** The host's "tried to submit" flag (e.g. after a failed Save click): `true` shows the host `error` at once, even before the user touched the field; switching it from true back to false forgets the interaction (closing the form leaves no red field). */
|
|
851
|
+
readonly showErrors: import("@angular/core").InputSignal<boolean>;
|
|
852
|
+
private readonly _reveal;
|
|
853
|
+
protected readonly _touched: import("@angular/core").WritableSignal<boolean>;
|
|
854
|
+
protected readonly _activeError: import("@angular/core").Signal<string>;
|
|
855
|
+
/** Forgets that the user interacted (call it when the host resets its form): a host `error` is hidden again until the next stroke / blur. */
|
|
856
|
+
resetTouched(): void;
|
|
857
|
+
/** Bitmap size of the drawing surface in pixels. The pad is displayed at the container's width with this same aspect ratio, so strokes keep their proportions. */
|
|
858
|
+
readonly width: import("@angular/core").InputSignal<number>;
|
|
859
|
+
readonly height: import("@angular/core").InputSignal<number>;
|
|
860
|
+
/** Size of the emitted PNG: the drawing is cropped to its content and scaled to fit this box. */
|
|
861
|
+
readonly outputWidth: import("@angular/core").InputSignal<number>;
|
|
862
|
+
readonly outputHeight: import("@angular/core").InputSignal<number>;
|
|
863
|
+
readonly penColor: import("@angular/core").InputSignal<string>;
|
|
864
|
+
readonly penWidth: import("@angular/core").InputSignal<number>;
|
|
865
|
+
/** Show the built-in Clear button under the pad. */
|
|
866
|
+
readonly showClear: import("@angular/core").InputSignal<boolean>;
|
|
867
|
+
readonly clearLabelInput: import("@angular/core").InputSignal<string | null>;
|
|
868
|
+
readonly clearLabel: import("@angular/core").Signal<string>;
|
|
869
|
+
readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
|
|
870
|
+
/** Emits the normalized PNG data URL when a stroke ends, and `null` when the pad is cleared. */
|
|
871
|
+
readonly signatureChange: import("@angular/core").OutputEmitterRef<string | null>;
|
|
872
|
+
private readonly _canvas;
|
|
873
|
+
private readonly _cvaDisabled;
|
|
874
|
+
protected readonly disabled: import("@angular/core").Signal<boolean>;
|
|
875
|
+
protected readonly _empty: import("@angular/core").WritableSignal<boolean>;
|
|
876
|
+
protected readonly _cursorVisible: import("@angular/core").WritableSignal<boolean>;
|
|
877
|
+
protected readonly _cursorX: import("@angular/core").WritableSignal<number>;
|
|
878
|
+
protected readonly _cursorY: import("@angular/core").WritableSignal<number>;
|
|
879
|
+
protected readonly _keyboardDrawing: import("@angular/core").WritableSignal<boolean>;
|
|
880
|
+
protected readonly _announcement: import("@angular/core").WritableSignal<string>;
|
|
881
|
+
private readonly _injector;
|
|
882
|
+
private readonly _id;
|
|
883
|
+
protected readonly _labelId: string;
|
|
884
|
+
protected readonly _descId: string;
|
|
885
|
+
protected readonly _helpId: string;
|
|
886
|
+
/** The `ariaLabel`; with neither it nor a visible `label`, a default name (the canvas always has one). The keyboard instructions are a separate description. */
|
|
887
|
+
protected readonly _accessibleName: import("@angular/core").Signal<string | null>;
|
|
888
|
+
/** The error / hint (when shown) plus the always-present keyboard instructions, so they are announced whatever names the canvas. */
|
|
889
|
+
protected readonly _describedBy: import("@angular/core").Signal<string>;
|
|
890
|
+
private _ctx;
|
|
891
|
+
private _pointerId;
|
|
892
|
+
private _dirty;
|
|
893
|
+
/** A value was written before the canvas existed: the setup effect paints it. */
|
|
894
|
+
private _pendingImage;
|
|
895
|
+
private _value;
|
|
896
|
+
/** A written / repainted image is still decoding: the bitmap does not hold the signature yet, `_value` does. */
|
|
897
|
+
private _loading;
|
|
898
|
+
/** `width`x`height` the bitmap was last set up for; a change wipes the canvas, so the signature is repainted from `_value`. */
|
|
899
|
+
private _sizeKey;
|
|
900
|
+
private _onChange;
|
|
901
|
+
private _onTouched;
|
|
902
|
+
constructor();
|
|
903
|
+
isEmpty(): boolean;
|
|
904
|
+
/** The current signature as a normalized PNG data URL, or `null` when nothing is drawn. */
|
|
905
|
+
toDataUrl(): string | null;
|
|
906
|
+
/** Empties the pad and tells the form (value `null`). */
|
|
907
|
+
clear(): void;
|
|
908
|
+
writeValue(value: string | null): void;
|
|
909
|
+
/** Draws a written value scaled to fit, left-aligned and vertically centered (ignored when the value was replaced while it loaded). */
|
|
910
|
+
private _paint;
|
|
911
|
+
/**
|
|
912
|
+
* Assigning the canvas `width` / `height` wipes the bitmap while `_value` and `_empty` still describe a signature: once the new size is
|
|
913
|
+
* rendered, paint the current signature (the last committed / written PNG, scaled to fit) again so state and bitmap agree.
|
|
914
|
+
*/
|
|
915
|
+
private _repaintAfterResize;
|
|
916
|
+
registerOnChange(fn: (value: string | null) => void): void;
|
|
917
|
+
registerOnTouched(fn: () => void): void;
|
|
918
|
+
setDisabledState(disabled: boolean): void;
|
|
919
|
+
protected onPointerDown(event: PointerEvent): void;
|
|
920
|
+
protected onPointerMove(event: PointerEvent): void;
|
|
921
|
+
protected onPointerEnd(event: PointerEvent): void;
|
|
922
|
+
protected onKeyDown(event: KeyboardEvent): void;
|
|
923
|
+
protected onKeyUp(event: KeyboardEvent): void;
|
|
924
|
+
protected onBlur(): void;
|
|
925
|
+
private _stopKeyboardStroke;
|
|
926
|
+
/** A stroke ended: normalize the drawing, publish it to the form and the output. */
|
|
927
|
+
private _commit;
|
|
928
|
+
private _setUpContext;
|
|
929
|
+
/** The drawing context, created on first use (a form can write its value before the setup effect has run). */
|
|
930
|
+
private _contextOf;
|
|
931
|
+
/**
|
|
932
|
+
* Pen settings go on the context at the start of every stroke as well as in the setup effect: assigning the canvas `width` / `height`
|
|
933
|
+
* (the `[width]` / `[height]` bindings, which run after the effect on the first render and on every size change) resets the context state.
|
|
934
|
+
*/
|
|
935
|
+
private _applyPen;
|
|
936
|
+
private _clearBitmap;
|
|
937
|
+
/** Display coordinates -> bitmap coordinates (the pad is scaled by CSS). */
|
|
938
|
+
private _pointOf;
|
|
939
|
+
/** Crop the drawing to its content (4px margin) and scale it into `outputWidth` x `outputHeight`, left-aligned and vertically centered. */
|
|
940
|
+
private _normalize;
|
|
941
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SignaturePadComponent, never>;
|
|
942
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SignaturePadComponent, "ui-signature-pad", never, {
|
|
943
|
+
"label": {
|
|
944
|
+
"alias": "label";
|
|
945
|
+
"required": false;
|
|
946
|
+
"isSignal": true;
|
|
947
|
+
};
|
|
948
|
+
"ariaLabel": {
|
|
949
|
+
"alias": "ariaLabel";
|
|
950
|
+
"required": false;
|
|
951
|
+
"isSignal": true;
|
|
952
|
+
};
|
|
953
|
+
"hint": {
|
|
954
|
+
"alias": "hint";
|
|
955
|
+
"required": false;
|
|
956
|
+
"isSignal": true;
|
|
957
|
+
};
|
|
958
|
+
"error": {
|
|
959
|
+
"alias": "error";
|
|
960
|
+
"required": false;
|
|
961
|
+
"isSignal": true;
|
|
962
|
+
};
|
|
963
|
+
"showErrors": {
|
|
964
|
+
"alias": "showErrors";
|
|
965
|
+
"required": false;
|
|
966
|
+
"isSignal": true;
|
|
967
|
+
};
|
|
968
|
+
"width": {
|
|
969
|
+
"alias": "width";
|
|
970
|
+
"required": false;
|
|
971
|
+
"isSignal": true;
|
|
972
|
+
};
|
|
973
|
+
"height": {
|
|
974
|
+
"alias": "height";
|
|
975
|
+
"required": false;
|
|
976
|
+
"isSignal": true;
|
|
977
|
+
};
|
|
978
|
+
"outputWidth": {
|
|
979
|
+
"alias": "outputWidth";
|
|
980
|
+
"required": false;
|
|
981
|
+
"isSignal": true;
|
|
982
|
+
};
|
|
983
|
+
"outputHeight": {
|
|
984
|
+
"alias": "outputHeight";
|
|
985
|
+
"required": false;
|
|
986
|
+
"isSignal": true;
|
|
987
|
+
};
|
|
988
|
+
"penColor": {
|
|
989
|
+
"alias": "penColor";
|
|
990
|
+
"required": false;
|
|
991
|
+
"isSignal": true;
|
|
992
|
+
};
|
|
993
|
+
"penWidth": {
|
|
994
|
+
"alias": "penWidth";
|
|
995
|
+
"required": false;
|
|
996
|
+
"isSignal": true;
|
|
997
|
+
};
|
|
998
|
+
"showClear": {
|
|
999
|
+
"alias": "showClear";
|
|
1000
|
+
"required": false;
|
|
1001
|
+
"isSignal": true;
|
|
1002
|
+
};
|
|
1003
|
+
"clearLabelInput": {
|
|
1004
|
+
"alias": "clearLabel";
|
|
1005
|
+
"required": false;
|
|
1006
|
+
"isSignal": true;
|
|
1007
|
+
};
|
|
1008
|
+
"_disabledInput": {
|
|
1009
|
+
"alias": "disabled";
|
|
1010
|
+
"required": false;
|
|
1011
|
+
"isSignal": true;
|
|
1012
|
+
};
|
|
1013
|
+
}, {
|
|
1014
|
+
"signatureChange": "signatureChange";
|
|
1015
|
+
}, never, never, true, never>;
|
|
1016
|
+
}
|
|
1017
|
+
/**
|
|
1018
|
+
* A "sign here" spot placed over a rendered PDF page, at the coordinates the document gives (pixels from the page's top-left corner).
|
|
1019
|
+
* Put it inside a `position: relative` element that holds the page, one per field:
|
|
1020
|
+
*
|
|
1021
|
+
* <div style="position: relative; width: 612px; height: 792px">
|
|
1022
|
+
* <canvas ...></canvas>
|
|
1023
|
+
* <ui-pdf-hotspot [x]="f.x" [y]="f.y" [width]="f.width" [height]="f.height"
|
|
1024
|
+
* [state]="ready ? 'ready' : 'blocked'" label="Sign Here" blockedLabel="Add signature above"
|
|
1025
|
+
* ariaLabel="Click to sign here" [image]="f.signatureImage" (activate)="apply(f)" />
|
|
1026
|
+
* </div>
|
|
1027
|
+
*
|
|
1028
|
+
* `state="ready"` is a clickable button (`label`), `"blocked"` the same button disabled (`blockedLabel`, e.g. "create your signature first"),
|
|
1029
|
+
* and `"signed"` shows the applied `image` (a signature data URL) contained inside the box instead (signed without an image is a disabled button showing `label`). The box size comes from the document
|
|
1030
|
+
* so the text is scaled to it (height x 0.25, clamped to 7-11px); on touch devices the tap area is extended to at least 44px tall.
|
|
1031
|
+
*
|
|
1032
|
+
* Inside an ancestor scaled with CSS `transform: scale(s)` (e.g. a PDF page shrunk to fit a phone), pass that factor as `scale` so the tap area
|
|
1033
|
+
* stays at least 44 CSS px on screen (the area is made 44 / s px tall before the ancestor shrinks it). Default 1; values <= 0, NaN or
|
|
1034
|
+
* non-finite count as 1. Only the touch tap area changes, not the look, font size or accessibility.
|
|
1035
|
+
*
|
|
1036
|
+
* <div [style.transform]="'scale(' + s + ')'" style="transform-origin: top left">
|
|
1037
|
+
* <ui-pdf-hotspot ... [scale]="s" /> <!-- s = 0.5 -> tap area at least 88px tall before scaling = 44px on screen -->
|
|
1038
|
+
* </div>
|
|
1039
|
+
*/
|
|
1040
|
+
export declare class PdfHotspotComponent {
|
|
1041
|
+
protected readonly labels: UiLabelsService;
|
|
1042
|
+
/** Position and size in pixels, from the page's top-left corner. */
|
|
1043
|
+
readonly x: import("@angular/core").InputSignal<number>;
|
|
1044
|
+
readonly y: import("@angular/core").InputSignal<number>;
|
|
1045
|
+
readonly width: import("@angular/core").InputSignal<number>;
|
|
1046
|
+
readonly height: import("@angular/core").InputSignal<number>;
|
|
1047
|
+
/** `ready`: clickable; `blocked`: disabled (a prerequisite is missing); `signed`: shows `image`. */
|
|
1048
|
+
readonly state: import("@angular/core").InputSignal<"ready" | "blocked" | "signed">;
|
|
1049
|
+
/** `warning` gives the ready state an amber look (e.g. for initials), default is blue. */
|
|
1050
|
+
readonly tone: import("@angular/core").InputSignal<"primary" | "warning">;
|
|
1051
|
+
/** Text of the ready button (e.g. "Sign Here"). */
|
|
1052
|
+
readonly labelInput: import("@angular/core").InputSignal<string | null>;
|
|
1053
|
+
readonly label: import("@angular/core").Signal<string>;
|
|
1054
|
+
/** Text of the blocked button (e.g. "Add signature above"). */
|
|
1055
|
+
readonly blockedLabel: import("@angular/core").InputSignal<string>;
|
|
1056
|
+
/** Accessible name of the button (its text is used when empty). */
|
|
1057
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
1058
|
+
/** The applied signature (data URL), shown when `state` is `signed`. */
|
|
1059
|
+
readonly image: import("@angular/core").InputSignal<string | null>;
|
|
1060
|
+
readonly imageAltInput: import("@angular/core").InputSignal<string | null>;
|
|
1061
|
+
readonly imageAlt: import("@angular/core").Signal<string>;
|
|
1062
|
+
/** The CSS scale factor an ancestor applies (`transform: scale(s)`); keeps the touch tap area at least 44px on screen. Invalid values count as 1. */
|
|
1063
|
+
readonly scale: import("@angular/core").InputSignal<number>;
|
|
1064
|
+
/** The ready button was clicked. */
|
|
1065
|
+
readonly activate: import("@angular/core").OutputEmitterRef<void>;
|
|
1066
|
+
/** `--ph-scale` value, or null (no property at all) for scale 1 and invalid values. */
|
|
1067
|
+
protected readonly _scaleVar: import("@angular/core").Signal<string | null>;
|
|
1068
|
+
protected readonly fontSize: import("@angular/core").Signal<number>;
|
|
1069
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PdfHotspotComponent, never>;
|
|
1070
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PdfHotspotComponent, "ui-pdf-hotspot", never, {
|
|
1071
|
+
"x": {
|
|
1072
|
+
"alias": "x";
|
|
1073
|
+
"required": false;
|
|
1074
|
+
"isSignal": true;
|
|
1075
|
+
};
|
|
1076
|
+
"y": {
|
|
1077
|
+
"alias": "y";
|
|
1078
|
+
"required": false;
|
|
1079
|
+
"isSignal": true;
|
|
1080
|
+
};
|
|
1081
|
+
"width": {
|
|
1082
|
+
"alias": "width";
|
|
1083
|
+
"required": false;
|
|
1084
|
+
"isSignal": true;
|
|
1085
|
+
};
|
|
1086
|
+
"height": {
|
|
1087
|
+
"alias": "height";
|
|
1088
|
+
"required": false;
|
|
1089
|
+
"isSignal": true;
|
|
1090
|
+
};
|
|
1091
|
+
"state": {
|
|
1092
|
+
"alias": "state";
|
|
1093
|
+
"required": false;
|
|
1094
|
+
"isSignal": true;
|
|
1095
|
+
};
|
|
1096
|
+
"tone": {
|
|
1097
|
+
"alias": "tone";
|
|
1098
|
+
"required": false;
|
|
1099
|
+
"isSignal": true;
|
|
1100
|
+
};
|
|
1101
|
+
"labelInput": {
|
|
1102
|
+
"alias": "label";
|
|
1103
|
+
"required": false;
|
|
1104
|
+
"isSignal": true;
|
|
1105
|
+
};
|
|
1106
|
+
"blockedLabel": {
|
|
1107
|
+
"alias": "blockedLabel";
|
|
1108
|
+
"required": false;
|
|
1109
|
+
"isSignal": true;
|
|
1110
|
+
};
|
|
1111
|
+
"ariaLabel": {
|
|
1112
|
+
"alias": "ariaLabel";
|
|
1113
|
+
"required": false;
|
|
1114
|
+
"isSignal": true;
|
|
1115
|
+
};
|
|
1116
|
+
"image": {
|
|
1117
|
+
"alias": "image";
|
|
1118
|
+
"required": false;
|
|
1119
|
+
"isSignal": true;
|
|
1120
|
+
};
|
|
1121
|
+
"imageAltInput": {
|
|
1122
|
+
"alias": "imageAlt";
|
|
1123
|
+
"required": false;
|
|
1124
|
+
"isSignal": true;
|
|
1125
|
+
};
|
|
1126
|
+
"scale": {
|
|
1127
|
+
"alias": "scale";
|
|
1128
|
+
"required": false;
|
|
1129
|
+
"isSignal": true;
|
|
1130
|
+
};
|
|
1131
|
+
}, {
|
|
1132
|
+
"activate": "activate";
|
|
1133
|
+
}, never, never, true, never>;
|
|
1134
|
+
}
|
|
1135
|
+
/**
|
|
1136
|
+
* A lightbox: a `ui-modal` that shows a `ui-image-gallery` with a Close button in the footer.
|
|
1137
|
+
*
|
|
1138
|
+
* <ui-image-gallery-dialog [(open)]="galleryOpen" [images]="images" title="Photos of the urn" galleryLabel="Urn photos"
|
|
1139
|
+
* dialogTestId="gallery-dialog" closeTestId="gallery-close" />
|
|
1140
|
+
*
|
|
1141
|
+
* - `open` (two-way): shown while true. Escape, a click on the backdrop and the footer Close button set it to false (the header X is
|
|
1142
|
+
* hidden, the footer button replaces it). Focus returns to the element that opened the dialog (modal behaviour).
|
|
1143
|
+
* - `images` (`GalleryImage[]`), `index` (two-way): the shown picture; it resets to 0 every time the dialog opens.
|
|
1144
|
+
* - `title`, `dialogTestId` (on the dialog element), `closeLabel` (default "Close"), `closeTestId` (on the Close button), `maxWidth`
|
|
1145
|
+
* (default `56rem`), `galleryLabel` (accessible name of the gallery group, default "Image gallery").
|
|
1146
|
+
* - The gallery has `autofocus` on: the dialog opens with focus on "Next image" so the arrow keys work at once (touch screens focus the dialog itself).
|
|
1147
|
+
* - The gallery is only created while the dialog is open, so closed dialogs load no pictures.
|
|
1148
|
+
*/
|
|
1149
|
+
export declare class ImageGalleryDialogComponent {
|
|
1150
|
+
protected readonly labels: UiLabelsService;
|
|
1151
|
+
/** Two-way: whether the dialog is shown. */
|
|
1152
|
+
readonly open: import("@angular/core").ModelSignal<boolean>;
|
|
1153
|
+
readonly images: import("@angular/core").InputSignal<GalleryImage[]>;
|
|
1154
|
+
/** Two-way: the shown picture. Reset to 0 whenever the dialog opens. */
|
|
1155
|
+
readonly index: import("@angular/core").ModelSignal<number>;
|
|
1156
|
+
readonly title: import("@angular/core").InputSignal<string>;
|
|
1157
|
+
/** `data-testid` of the dialog element. */
|
|
1158
|
+
readonly dialogTestId: import("@angular/core").InputSignal<string>;
|
|
1159
|
+
/** Text of the footer Close button. */
|
|
1160
|
+
readonly closeLabelInput: import("@angular/core").InputSignal<string | null>;
|
|
1161
|
+
readonly closeLabel: import("@angular/core").Signal<string>;
|
|
1162
|
+
/** `data-testid` of the footer Close button (on the `ui-button` host); none when empty. */
|
|
1163
|
+
readonly closeTestId: import("@angular/core").InputSignal<string>;
|
|
1164
|
+
/** Max width of the dialog (any CSS length). */
|
|
1165
|
+
readonly maxWidth: import("@angular/core").InputSignal<string>;
|
|
1166
|
+
/** Accessible name of the gallery group. */
|
|
1167
|
+
readonly galleryLabelInput: import("@angular/core").InputSignal<string | null>;
|
|
1168
|
+
readonly galleryLabel: import("@angular/core").Signal<string>;
|
|
1169
|
+
constructor();
|
|
1170
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageGalleryDialogComponent, never>;
|
|
1171
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageGalleryDialogComponent, "ui-image-gallery-dialog", never, {
|
|
1172
|
+
"open": {
|
|
1173
|
+
"alias": "open";
|
|
1174
|
+
"required": false;
|
|
1175
|
+
"isSignal": true;
|
|
1176
|
+
};
|
|
1177
|
+
"images": {
|
|
1178
|
+
"alias": "images";
|
|
1179
|
+
"required": false;
|
|
1180
|
+
"isSignal": true;
|
|
1181
|
+
};
|
|
1182
|
+
"index": {
|
|
1183
|
+
"alias": "index";
|
|
1184
|
+
"required": false;
|
|
1185
|
+
"isSignal": true;
|
|
1186
|
+
};
|
|
1187
|
+
"title": {
|
|
1188
|
+
"alias": "title";
|
|
1189
|
+
"required": false;
|
|
1190
|
+
"isSignal": true;
|
|
1191
|
+
};
|
|
1192
|
+
"dialogTestId": {
|
|
1193
|
+
"alias": "dialogTestId";
|
|
1194
|
+
"required": false;
|
|
1195
|
+
"isSignal": true;
|
|
1196
|
+
};
|
|
1197
|
+
"closeLabelInput": {
|
|
1198
|
+
"alias": "closeLabel";
|
|
1199
|
+
"required": false;
|
|
1200
|
+
"isSignal": true;
|
|
1201
|
+
};
|
|
1202
|
+
"closeTestId": {
|
|
1203
|
+
"alias": "closeTestId";
|
|
1204
|
+
"required": false;
|
|
1205
|
+
"isSignal": true;
|
|
1206
|
+
};
|
|
1207
|
+
"maxWidth": {
|
|
1208
|
+
"alias": "maxWidth";
|
|
1209
|
+
"required": false;
|
|
1210
|
+
"isSignal": true;
|
|
1211
|
+
};
|
|
1212
|
+
"galleryLabelInput": {
|
|
1213
|
+
"alias": "galleryLabel";
|
|
1214
|
+
"required": false;
|
|
1215
|
+
"isSignal": true;
|
|
1216
|
+
};
|
|
1217
|
+
}, {
|
|
1218
|
+
"open": "openChange";
|
|
1219
|
+
"index": "indexChange";
|
|
1220
|
+
}, never, never, true, never>;
|
|
1221
|
+
}
|