@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,106 @@
|
|
|
1
|
+
import { UiLabelsService } from "@forgeroute/ui/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* One option the user can pick or connect: a coloured tile (a letter, or a library icon), a title, a short description and a small action button.
|
|
5
|
+
* The same card is used for the source cards of an import step, the provider cards of the setup wizard (calendar, email, tools) and a CRM
|
|
6
|
+
* live-sync option, so they all look and behave alike. Anything inside the tag is shown under the row (an expanding form, a result).
|
|
7
|
+
*
|
|
8
|
+
* <ui-option-card title="Gmail" letter="G" color="#ea4335" description="Connect your Google account" actionLabel="Connect" (action)="connect()" />
|
|
9
|
+
* <ui-option-card title="Follow Up Boss" letter="F" actionLabel="Sync live" (action)="open()"> <form>…</form> </ui-option-card>
|
|
10
|
+
*
|
|
11
|
+
* Inputs: `title` (required), `description`, `letter` (one character in the tile) or `icon` (a library icon name, used when there is no letter),
|
|
12
|
+
* `color` (tile background, default slate), `actionLabel` (no label = no button), `actionVariant` (default secondary), `actionAriaLabel`,
|
|
13
|
+
* `actionTestId`, `actionLoading`, `disabled`, `selected`. Output: `action`.
|
|
14
|
+
*
|
|
15
|
+
* `selected` (default false = the card as before) marks the card as the chosen one: a blue 2px border, a check mark at the end of the row and the text
|
|
16
|
+
* "Selected" for screen readers (`data-selected="true"` on the host). The state is shown by the border AND the check, so colour is never the only signal. The
|
|
17
|
+
* card does not toggle by itself: the app owns the state.
|
|
18
|
+
*
|
|
19
|
+
* A brand logo goes in the tile: `<img option-card-logo src="stripe.svg" alt="" />` (decorative, the title names the card; leave out `letter` and `icon`, set
|
|
20
|
+
* `color` to the logo's background, e.g. `#fff`). The element is limited to the tile (36 x 36 px). Without it nothing changes.
|
|
21
|
+
*/
|
|
22
|
+
export declare class OptionCardComponent {
|
|
23
|
+
readonly title: import("@angular/core").InputSignal<string>;
|
|
24
|
+
readonly description: import("@angular/core").InputSignal<string>;
|
|
25
|
+
readonly letter: import("@angular/core").InputSignal<string>;
|
|
26
|
+
readonly icon: import("@angular/core").InputSignal<string>;
|
|
27
|
+
readonly color: import("@angular/core").InputSignal<string>;
|
|
28
|
+
readonly actionLabel: import("@angular/core").InputSignal<string>;
|
|
29
|
+
readonly actionVariant: import("@angular/core").InputSignal<"primary" | "secondary">;
|
|
30
|
+
readonly actionAriaLabel: import("@angular/core").InputSignal<string>;
|
|
31
|
+
readonly actionTestId: import("@angular/core").InputSignal<string>;
|
|
32
|
+
readonly actionLoading: import("@angular/core").InputSignal<boolean>;
|
|
33
|
+
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
34
|
+
/** `true`: the card is the chosen one (blue border, a check mark, "Selected" for screen readers). Default false: the card as before. */
|
|
35
|
+
readonly selected: import("@angular/core").InputSignal<boolean>;
|
|
36
|
+
/** The action button was pressed. */
|
|
37
|
+
readonly action: import("@angular/core").OutputEmitterRef<void>;
|
|
38
|
+
protected readonly labels: UiLabelsService;
|
|
39
|
+
protected readonly checkD: string;
|
|
40
|
+
protected iconD(): string | null;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OptionCardComponent, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OptionCardComponent, "ui-option-card", never, {
|
|
43
|
+
"title": {
|
|
44
|
+
"alias": "title";
|
|
45
|
+
"required": true;
|
|
46
|
+
"isSignal": true;
|
|
47
|
+
};
|
|
48
|
+
"description": {
|
|
49
|
+
"alias": "description";
|
|
50
|
+
"required": false;
|
|
51
|
+
"isSignal": true;
|
|
52
|
+
};
|
|
53
|
+
"letter": {
|
|
54
|
+
"alias": "letter";
|
|
55
|
+
"required": false;
|
|
56
|
+
"isSignal": true;
|
|
57
|
+
};
|
|
58
|
+
"icon": {
|
|
59
|
+
"alias": "icon";
|
|
60
|
+
"required": false;
|
|
61
|
+
"isSignal": true;
|
|
62
|
+
};
|
|
63
|
+
"color": {
|
|
64
|
+
"alias": "color";
|
|
65
|
+
"required": false;
|
|
66
|
+
"isSignal": true;
|
|
67
|
+
};
|
|
68
|
+
"actionLabel": {
|
|
69
|
+
"alias": "actionLabel";
|
|
70
|
+
"required": false;
|
|
71
|
+
"isSignal": true;
|
|
72
|
+
};
|
|
73
|
+
"actionVariant": {
|
|
74
|
+
"alias": "actionVariant";
|
|
75
|
+
"required": false;
|
|
76
|
+
"isSignal": true;
|
|
77
|
+
};
|
|
78
|
+
"actionAriaLabel": {
|
|
79
|
+
"alias": "actionAriaLabel";
|
|
80
|
+
"required": false;
|
|
81
|
+
"isSignal": true;
|
|
82
|
+
};
|
|
83
|
+
"actionTestId": {
|
|
84
|
+
"alias": "actionTestId";
|
|
85
|
+
"required": false;
|
|
86
|
+
"isSignal": true;
|
|
87
|
+
};
|
|
88
|
+
"actionLoading": {
|
|
89
|
+
"alias": "actionLoading";
|
|
90
|
+
"required": false;
|
|
91
|
+
"isSignal": true;
|
|
92
|
+
};
|
|
93
|
+
"disabled": {
|
|
94
|
+
"alias": "disabled";
|
|
95
|
+
"required": false;
|
|
96
|
+
"isSignal": true;
|
|
97
|
+
};
|
|
98
|
+
"selected": {
|
|
99
|
+
"alias": "selected";
|
|
100
|
+
"required": false;
|
|
101
|
+
"isSignal": true;
|
|
102
|
+
};
|
|
103
|
+
}, {
|
|
104
|
+
"action": "action";
|
|
105
|
+
}, never, ["[option-card-logo]", "*"], true, never>;
|
|
106
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* The shell of a public (not signed-in) page or wizard: an optional header, the content in a single `<main>`, an optional footer.
|
|
4
|
+
*
|
|
5
|
+
* <ui-page maxWidth="80rem" padding="responsive" background="#f9fafb" [fillViewport]="true" [stickyHeader]="true" [stickyFooter]="true"
|
|
6
|
+
* [ownScroll]="true" [transparent]="embed()" [focusKey]="step()">
|
|
7
|
+
* <div page-header> ...stepper... </div>
|
|
8
|
+
* ...the current screen...
|
|
9
|
+
* <div page-footer> ...navigation bar... </div>
|
|
10
|
+
* </ui-page>
|
|
11
|
+
*
|
|
12
|
+
* Inputs (all defaults leave the page plain: no limits, no padding, no sticky parts):
|
|
13
|
+
* - `maxWidth`: CSS length of the main content area ("80rem"). Default '' = none.
|
|
14
|
+
* - `padding`: '' (none) | 'responsive' (32px 16px 16px; 32px 24px 16px from 640px; 32px 0 16px from 1024px) | any CSS padding value.
|
|
15
|
+
* - `centered`: centre the main area when `maxWidth` is set (default true).
|
|
16
|
+
* - `background`: CSS colour of the page. Default '' = none.
|
|
17
|
+
* - `fillViewport`: the page is at least one viewport high (100dvh, 100vh fallback) and the footer sticks to the bottom (default false).
|
|
18
|
+
* - `stickyHeader` / `stickyFooter`: the header slot is `position: sticky; top: 0`, the footer slot `bottom: 0`, z-index 20 (default false).
|
|
19
|
+
* Sticky is relative to the nearest scrolling ancestor: NO ancestor may be an overflow container (overflow other than visible), or
|
|
20
|
+
* the bars stop sticking. When the page owns the scrolling, use `ownScroll`.
|
|
21
|
+
* - `transparent`: embed (iframe) mode: transparent background, no minimum height, no maximum width, the padding reduced to 8px 0 16px
|
|
22
|
+
* (only when a padding is set) and neither bar is sticky (default false).
|
|
23
|
+
* - `ownScroll`: make the document the scroll container (html overflow auto; body and app-root overflow visible; with `transparent` also
|
|
24
|
+
* a transparent html/body background). The previous inline values are restored when the page is destroyed (default false).
|
|
25
|
+
* - `focusKey`: when this value CHANGES (not on the first render), the page scrolls its top into view and moves focus to a zero-height
|
|
26
|
+
* anchor so screen readers start at the new content. Smooth scrolling follows the page CSS, instant with prefers-reduced-motion.
|
|
27
|
+
* `focusTop()` does the same on demand.
|
|
28
|
+
*
|
|
29
|
+
* Accessibility: the content wrapper is the only `<main>`; the header and footer slots are plain divs (they are landmarks only if the
|
|
30
|
+
* host projects a `<header>` / `<footer>` / role itself).
|
|
31
|
+
*/
|
|
32
|
+
export declare class PageComponent {
|
|
33
|
+
readonly maxWidth: import("@angular/core").InputSignal<string>;
|
|
34
|
+
readonly padding: import("@angular/core").InputSignal<string>;
|
|
35
|
+
readonly centered: import("@angular/core").InputSignal<boolean>;
|
|
36
|
+
readonly background: import("@angular/core").InputSignal<string>;
|
|
37
|
+
readonly fillViewport: import("@angular/core").InputSignal<boolean>;
|
|
38
|
+
readonly stickyHeader: import("@angular/core").InputSignal<boolean>;
|
|
39
|
+
readonly stickyFooter: import("@angular/core").InputSignal<boolean>;
|
|
40
|
+
readonly transparent: import("@angular/core").InputSignal<boolean>;
|
|
41
|
+
readonly ownScroll: import("@angular/core").InputSignal<boolean>;
|
|
42
|
+
readonly focusKey: import("@angular/core").InputSignal<unknown>;
|
|
43
|
+
private readonly anchor;
|
|
44
|
+
private readonly doc;
|
|
45
|
+
private readonly injector;
|
|
46
|
+
private readonly browser;
|
|
47
|
+
protected readonly backgroundCss: import("@angular/core").Signal<string | null>;
|
|
48
|
+
protected readonly maxWidthCss: import("@angular/core").Signal<string | null>;
|
|
49
|
+
protected readonly paddingCss: import("@angular/core").Signal<string | null>;
|
|
50
|
+
private scrollSaved;
|
|
51
|
+
private bgSaved;
|
|
52
|
+
private focusInitialised;
|
|
53
|
+
private lastFocusKey;
|
|
54
|
+
constructor();
|
|
55
|
+
/** Scrolls the top of the page into view and moves focus to the (invisible) top anchor. */
|
|
56
|
+
focusTop(): void;
|
|
57
|
+
private save;
|
|
58
|
+
private applyScroll;
|
|
59
|
+
private releaseScroll;
|
|
60
|
+
private applyBackground;
|
|
61
|
+
private releaseBackground;
|
|
62
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageComponent, never>;
|
|
63
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageComponent, "ui-page", never, {
|
|
64
|
+
"maxWidth": {
|
|
65
|
+
"alias": "maxWidth";
|
|
66
|
+
"required": false;
|
|
67
|
+
"isSignal": true;
|
|
68
|
+
};
|
|
69
|
+
"padding": {
|
|
70
|
+
"alias": "padding";
|
|
71
|
+
"required": false;
|
|
72
|
+
"isSignal": true;
|
|
73
|
+
};
|
|
74
|
+
"centered": {
|
|
75
|
+
"alias": "centered";
|
|
76
|
+
"required": false;
|
|
77
|
+
"isSignal": true;
|
|
78
|
+
};
|
|
79
|
+
"background": {
|
|
80
|
+
"alias": "background";
|
|
81
|
+
"required": false;
|
|
82
|
+
"isSignal": true;
|
|
83
|
+
};
|
|
84
|
+
"fillViewport": {
|
|
85
|
+
"alias": "fillViewport";
|
|
86
|
+
"required": false;
|
|
87
|
+
"isSignal": true;
|
|
88
|
+
};
|
|
89
|
+
"stickyHeader": {
|
|
90
|
+
"alias": "stickyHeader";
|
|
91
|
+
"required": false;
|
|
92
|
+
"isSignal": true;
|
|
93
|
+
};
|
|
94
|
+
"stickyFooter": {
|
|
95
|
+
"alias": "stickyFooter";
|
|
96
|
+
"required": false;
|
|
97
|
+
"isSignal": true;
|
|
98
|
+
};
|
|
99
|
+
"transparent": {
|
|
100
|
+
"alias": "transparent";
|
|
101
|
+
"required": false;
|
|
102
|
+
"isSignal": true;
|
|
103
|
+
};
|
|
104
|
+
"ownScroll": {
|
|
105
|
+
"alias": "ownScroll";
|
|
106
|
+
"required": false;
|
|
107
|
+
"isSignal": true;
|
|
108
|
+
};
|
|
109
|
+
"focusKey": {
|
|
110
|
+
"alias": "focusKey";
|
|
111
|
+
"required": false;
|
|
112
|
+
"isSignal": true;
|
|
113
|
+
};
|
|
114
|
+
}, {}, never, ["[page-header]", "*", "[page-footer]"], true, never>;
|
|
115
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { UiLabelsService } from "@forgeroute/ui/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PaginationComponent {
|
|
4
|
+
protected readonly labels: UiLabelsService;
|
|
5
|
+
readonly page: import("@angular/core").InputSignal<number>;
|
|
6
|
+
readonly pageSize: import("@angular/core").InputSignal<number>;
|
|
7
|
+
readonly totalItems: import("@angular/core").InputSignal<number>;
|
|
8
|
+
/** Standalone look (full border, full radius, small top margin) for use under separate cards rather than flush under a table. */
|
|
9
|
+
readonly detached: import("@angular/core").InputSignal<boolean>;
|
|
10
|
+
/** Embedded look for a container that already has its own background and edge (a `ui-detail-card` footer, a panel): transparent, no border, no radius, no padding. Default false: unchanged. Wins over `detached`. */
|
|
11
|
+
readonly embedded: import("@angular/core").InputSignal<boolean>;
|
|
12
|
+
/** Accessible name of the pager's navigation landmark (default `Pagination`, translated by the app's `UiLabelsService` dictionary). Give each pager of a page its own name (`Contacts pages`) so assistive tech can tell them apart; empty or blank falls back to the default. */
|
|
13
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
14
|
+
readonly pageChange: import("@angular/core").OutputEmitterRef<number>;
|
|
15
|
+
readonly totalPages: import("@angular/core").Signal<number>;
|
|
16
|
+
readonly startItem: import("@angular/core").Signal<number>;
|
|
17
|
+
readonly endItem: import("@angular/core").Signal<number>;
|
|
18
|
+
readonly visiblePages: import("@angular/core").Signal<number[]>;
|
|
19
|
+
goTo(p: number): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PaginationComponent, "ui-pagination", never, {
|
|
22
|
+
"page": {
|
|
23
|
+
"alias": "page";
|
|
24
|
+
"required": false;
|
|
25
|
+
"isSignal": true;
|
|
26
|
+
};
|
|
27
|
+
"pageSize": {
|
|
28
|
+
"alias": "pageSize";
|
|
29
|
+
"required": false;
|
|
30
|
+
"isSignal": true;
|
|
31
|
+
};
|
|
32
|
+
"totalItems": {
|
|
33
|
+
"alias": "totalItems";
|
|
34
|
+
"required": false;
|
|
35
|
+
"isSignal": true;
|
|
36
|
+
};
|
|
37
|
+
"detached": {
|
|
38
|
+
"alias": "detached";
|
|
39
|
+
"required": false;
|
|
40
|
+
"isSignal": true;
|
|
41
|
+
};
|
|
42
|
+
"embedded": {
|
|
43
|
+
"alias": "embedded";
|
|
44
|
+
"required": false;
|
|
45
|
+
"isSignal": true;
|
|
46
|
+
};
|
|
47
|
+
"ariaLabel": {
|
|
48
|
+
"alias": "ariaLabel";
|
|
49
|
+
"required": false;
|
|
50
|
+
"isSignal": true;
|
|
51
|
+
};
|
|
52
|
+
}, {
|
|
53
|
+
"pageChange": "pageChange";
|
|
54
|
+
}, never, never, true, never>;
|
|
55
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { BadgeVariant } from "@forgeroute/ui/table-types";
|
|
2
|
+
import { UiLabelsService } from "@forgeroute/ui/core";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface PanelInfoItem {
|
|
5
|
+
label: string;
|
|
6
|
+
value?: string | null;
|
|
7
|
+
badge?: {
|
|
8
|
+
label: string;
|
|
9
|
+
variant: BadgeVariant;
|
|
10
|
+
};
|
|
11
|
+
badges?: Array<{
|
|
12
|
+
label: string;
|
|
13
|
+
variant: BadgeVariant;
|
|
14
|
+
}>;
|
|
15
|
+
/** Router link for the value. */
|
|
16
|
+
link?: string;
|
|
17
|
+
/**
|
|
18
|
+
* A real `<a href>` for the value (the visible `value` is the link text). Only `mailto:`, `tel:`, `http:` and `https:` are
|
|
19
|
+
* allowed; any other scheme (`javascript:`, `data:` ...) renders the value as plain text. `http(s)` links open in a new tab with
|
|
20
|
+
* `rel="noopener noreferrer"`. Wins over `email` / `phone` / `link`.
|
|
21
|
+
*/
|
|
22
|
+
href?: string;
|
|
23
|
+
/** Shortcut: the value becomes a `mailto:` link to this address (the value defaults to the address). */
|
|
24
|
+
email?: string;
|
|
25
|
+
/** Shortcut: the value becomes a `tel:` link to this number (digits and a leading + are kept; the value defaults to the number as written). */
|
|
26
|
+
phone?: string;
|
|
27
|
+
/** Show the value with an "open" icon instead of blue link styling. */
|
|
28
|
+
linkIcon?: boolean;
|
|
29
|
+
/** Renders a small edit (pencil) `ui-icon` button after the value; `editTooltip` is its tooltip and accessible name (default "Edit"). */
|
|
30
|
+
editAction?: () => void;
|
|
31
|
+
editTooltip?: string;
|
|
32
|
+
/** Renders a small delete (bin) `ui-icon` button after the edit pencil; the host asks for confirmation and does the deleting. `deleteTooltip` is its tooltip and accessible name (default "Delete"). */
|
|
33
|
+
deleteAction?: () => void;
|
|
34
|
+
deleteTooltip?: string;
|
|
35
|
+
muted?: boolean;
|
|
36
|
+
danger?: boolean;
|
|
37
|
+
hidden?: boolean;
|
|
38
|
+
/** Keep the line breaks of `value` (an address, a note); long lines still wrap. Plain values only. */
|
|
39
|
+
multiline?: boolean;
|
|
40
|
+
/** Bold row: the label and the value in the strong text colour and weight (a total, a balance due). */
|
|
41
|
+
emphasis?: boolean;
|
|
42
|
+
}
|
|
43
|
+
export interface PanelInfoSection {
|
|
44
|
+
title?: string;
|
|
45
|
+
headerLink?: {
|
|
46
|
+
label: string;
|
|
47
|
+
url: string;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* A small secondary button at the end of the section's header bar (e.g. "Add item" for a list of line items). `action` runs on
|
|
51
|
+
* click; `ariaLabel` is the accessible name when the visible label is not enough (default: the label). The header bar is shown
|
|
52
|
+
* for a section with a `headerAction` even when it has no `title`. Not rendered for a section with no visible items unless
|
|
53
|
+
* `showEmptyState` keeps the section. `icon` is an optional SVG path (the `d` value, 24x24 grid, same convention as a toolbar action's
|
|
54
|
+
* `icon`) drawn before the label; it is decorative, so the accessible name stays the label / `ariaLabel`.
|
|
55
|
+
*/
|
|
56
|
+
headerAction?: {
|
|
57
|
+
label: string;
|
|
58
|
+
action: () => void;
|
|
59
|
+
ariaLabel?: string;
|
|
60
|
+
disabled?: boolean;
|
|
61
|
+
icon?: string;
|
|
62
|
+
};
|
|
63
|
+
items: PanelInfoItem[];
|
|
64
|
+
columns?: 2;
|
|
65
|
+
/**
|
|
66
|
+
* A state mark drawn before the section's title in the header bar: a round tile in the colours of the badge `variant` holding a check (`icon: 'check'`)
|
|
67
|
+
* or a cross (`icon: 'close'`). `label` ("Done", "Not done") is the mark's accessible name (the tile has no visible text; the shape tells check from cross,
|
|
68
|
+
* so the colour is never the only signal) and its hover tooltip. The header bar is shown for a section with a `status` even without a `title`.
|
|
69
|
+
* Absent: the header bar is as before.
|
|
70
|
+
*/
|
|
71
|
+
status?: {
|
|
72
|
+
icon: 'check' | 'close';
|
|
73
|
+
label: string;
|
|
74
|
+
variant: BadgeVariant;
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Read-only label/value list for side panels and detail views, grouped into bordered
|
|
79
|
+
* sections. Items with `hidden: true` are skipped; sections with no visible items are
|
|
80
|
+
* dropped unless `showEmptyState` is set (then they show an empty-state message).
|
|
81
|
+
*
|
|
82
|
+
* Usage:
|
|
83
|
+
* <ui-panel-info-list [sections]="[{ title: 'DETAILS', items: [
|
|
84
|
+
* { label: 'Status', badge: { label: 'Pending', variant: 'yellow' } },
|
|
85
|
+
* { label: 'Notes', value: notes, hidden: !notes },
|
|
86
|
+
* ] }]" />
|
|
87
|
+
*/
|
|
88
|
+
export declare class PanelInfoListComponent {
|
|
89
|
+
protected readonly labels: UiLabelsService;
|
|
90
|
+
readonly sections: import("@angular/core").InputSignal<PanelInfoSection[]>;
|
|
91
|
+
readonly showEmptyState: import("@angular/core").InputSignal<boolean>;
|
|
92
|
+
/**
|
|
93
|
+
* true = each row reads "Label: value" (a colon after the label and a real space, so `textContent` is "Label: value") with the value
|
|
94
|
+
* next to the label instead of pushed to the right edge. Works with plain values, links (href / email / phone / link) and badges.
|
|
95
|
+
* Default false = the label and value as before.
|
|
96
|
+
*/
|
|
97
|
+
readonly labelColon: import("@angular/core").InputSignal<boolean>;
|
|
98
|
+
/**
|
|
99
|
+
* The list stretches to the height of its container (a grid cell or flex item with a definite height), so lists side by side in
|
|
100
|
+
* one grid row end at the same height; with one section, that section's box fills the height. Default false = as tall as its content.
|
|
101
|
+
*/
|
|
102
|
+
readonly fill: import("@angular/core").InputSignal<boolean>;
|
|
103
|
+
readonly displaySections: import("@angular/core").Signal<PanelInfoSection[]>;
|
|
104
|
+
/**
|
|
105
|
+
* The safe href of an item, or null: `href` first, else `mailto:`/`tel:` built from `email`/`phone`. Only mailto, tel, http and https
|
|
106
|
+
* are allowed (the scheme is checked after removing control characters and spaces, like browsers do).
|
|
107
|
+
*/
|
|
108
|
+
hrefOf(item: PanelInfoItem): string | null;
|
|
109
|
+
isWeb(href: string): boolean;
|
|
110
|
+
/** Link text: the value, else the email / phone as written. */
|
|
111
|
+
textOf(item: PanelInfoItem): string;
|
|
112
|
+
/** Plain value, or the dash for an empty / blank one. */
|
|
113
|
+
valueOf(item: PanelInfoItem): string;
|
|
114
|
+
/** Colours of a section's `status` mark: the badge colours of its variant (an unknown variant falls back to gray, like the badge). */
|
|
115
|
+
statusStyle(variant: BadgeVariant): {
|
|
116
|
+
bg: string;
|
|
117
|
+
color: string;
|
|
118
|
+
};
|
|
119
|
+
/** SVG path of a section's `status` icon (the library's own check and close icons). */
|
|
120
|
+
statusPath(icon: 'check' | 'close'): string;
|
|
121
|
+
/** A disabled header action never runs, even when the click reaches the host element. */
|
|
122
|
+
runHeaderAction(ha: NonNullable<PanelInfoSection['headerAction']>): void;
|
|
123
|
+
visibleItems(section: PanelInfoSection): PanelInfoItem[];
|
|
124
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PanelInfoListComponent, never>;
|
|
125
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PanelInfoListComponent, "ui-panel-info-list", never, {
|
|
126
|
+
"sections": {
|
|
127
|
+
"alias": "sections";
|
|
128
|
+
"required": false;
|
|
129
|
+
"isSignal": true;
|
|
130
|
+
};
|
|
131
|
+
"showEmptyState": {
|
|
132
|
+
"alias": "showEmptyState";
|
|
133
|
+
"required": false;
|
|
134
|
+
"isSignal": true;
|
|
135
|
+
};
|
|
136
|
+
"labelColon": {
|
|
137
|
+
"alias": "labelColon";
|
|
138
|
+
"required": false;
|
|
139
|
+
"isSignal": true;
|
|
140
|
+
};
|
|
141
|
+
"fill": {
|
|
142
|
+
"alias": "fill";
|
|
143
|
+
"required": false;
|
|
144
|
+
"isSignal": true;
|
|
145
|
+
};
|
|
146
|
+
}, {}, never, never, true, never>;
|
|
147
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { UiLabelKey, UiLabelsService } from "@forgeroute/ui/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { ValidatorFn } from "@angular/forms";
|
|
4
|
+
/** One password rule: `test` decides whether the typed password satisfies it. */
|
|
5
|
+
export interface PasswordRule {
|
|
6
|
+
id: string;
|
|
7
|
+
label: string;
|
|
8
|
+
/** Dictionary key of the label; when set, the label is shown in the app's active language (a rule without one shows `label` as given). */
|
|
9
|
+
labelKey?: UiLabelKey;
|
|
10
|
+
test: (password: string) => boolean;
|
|
11
|
+
}
|
|
12
|
+
/** The default rules (same as the backends): 8+ characters, an uppercase letter, a lowercase letter, a digit and a special character. */
|
|
13
|
+
export declare const DEFAULT_PASSWORD_RULES: readonly PasswordRule[];
|
|
14
|
+
/** True when the password satisfies every rule (default: {@link DEFAULT_PASSWORD_RULES}). Use it to gate Save. */
|
|
15
|
+
export declare function passwordMeetsRules(password: string, rules?: readonly PasswordRule[]): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The password requirements checklist. Pass the typed password; each rule shows as a row that turns green with a check mark once it is
|
|
18
|
+
* satisfied, and stays grey with an empty circle until then. There is no "(met)" text: the state is also in `data-met` and in
|
|
19
|
+
* visually hidden text for screen readers, so it is not colour alone.
|
|
20
|
+
*
|
|
21
|
+
* Also available as `<ui-text-input type="password" [passwordRequirements]="true">`, which shows this list under the field.
|
|
22
|
+
*/
|
|
23
|
+
export declare class PasswordRequirementsComponent {
|
|
24
|
+
protected readonly labels: UiLabelsService;
|
|
25
|
+
/** The password to check. */
|
|
26
|
+
readonly value: import("@angular/core").InputSignal<string>;
|
|
27
|
+
/** Rules to show; default {@link DEFAULT_PASSWORD_RULES}. */
|
|
28
|
+
readonly rules: import("@angular/core").InputSignal<readonly PasswordRule[]>;
|
|
29
|
+
readonly titleInput: import("@angular/core").InputSignal<string | null>;
|
|
30
|
+
readonly title: import("@angular/core").Signal<string>;
|
|
31
|
+
protected readonly _check: string;
|
|
32
|
+
protected readonly _results: import("@angular/core").Signal<{
|
|
33
|
+
id: string;
|
|
34
|
+
label: string;
|
|
35
|
+
met: boolean;
|
|
36
|
+
}[]>;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PasswordRequirementsComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PasswordRequirementsComponent, "ui-password-requirements", never, {
|
|
39
|
+
"value": {
|
|
40
|
+
"alias": "value";
|
|
41
|
+
"required": false;
|
|
42
|
+
"isSignal": true;
|
|
43
|
+
};
|
|
44
|
+
"rules": {
|
|
45
|
+
"alias": "rules";
|
|
46
|
+
"required": false;
|
|
47
|
+
"isSignal": true;
|
|
48
|
+
};
|
|
49
|
+
"titleInput": {
|
|
50
|
+
"alias": "title";
|
|
51
|
+
"required": false;
|
|
52
|
+
"isSignal": true;
|
|
53
|
+
};
|
|
54
|
+
}, {}, never, never, true, never>;
|
|
55
|
+
}
|
|
56
|
+
/** Longest password the apps' servers accept (128 characters); use it as the password input's `maxlength`. */
|
|
57
|
+
export declare const PASSWORD_MAX_LENGTH = 128;
|
|
58
|
+
/**
|
|
59
|
+
* BCrypt, the hash many servers use, only reads the first 72 BYTES of a password, so such a server refuses a longer one. Characters and bytes differ for
|
|
60
|
+
* accents and emoji (a 36-character password of 2-byte letters is already 72 bytes). Pass it as `maxBytes` next to a 72-character `maxLength`.
|
|
61
|
+
*/
|
|
62
|
+
export declare const PASSWORD_MAX_BYTES = 72;
|
|
63
|
+
/** UTF-8 byte length of a password. */
|
|
64
|
+
export declare function passwordByteLength(password: string): number;
|
|
65
|
+
/**
|
|
66
|
+
* True when `password` has at most `maxLength` characters AND, when `maxBytes` is given, at most `maxBytes` UTF-8 bytes. A null / undefined value counts
|
|
67
|
+
* as an empty string.
|
|
68
|
+
*/
|
|
69
|
+
export declare function passwordWithinLimits(password: string | null | undefined, maxLength?: number, maxBytes?: number): boolean;
|
|
70
|
+
/** The message for a password over the limits (said under the field instead of after a server round trip); '' when the length is fine. */
|
|
71
|
+
export declare function passwordTooLongMessage(password: string | null | undefined, maxLength?: number, maxBytes?: number): string;
|
|
72
|
+
/**
|
|
73
|
+
* Policy of servers that accept only these special characters: 8+ characters, an uppercase letter, a lowercase letter, a digit and one of
|
|
74
|
+
* `@ $ ! % * ? & #`. (Anything else, e.g. `^` or a space, does NOT count as the special character.)
|
|
75
|
+
*/
|
|
76
|
+
export declare const LISTED_SPECIAL_PASSWORD_RULES: readonly PasswordRule[];
|
|
77
|
+
/**
|
|
78
|
+
* Policy of servers that accept any ASCII symbol as the special character (character codes 33-126 that are not letters or digits): 8+ characters,
|
|
79
|
+
* an uppercase letter, a lowercase letter, a digit and one ASCII symbol. A space and non-ASCII characters (e.g. `é`) do NOT count.
|
|
80
|
+
*/
|
|
81
|
+
export declare const ASCII_SPECIAL_PASSWORD_RULES: readonly PasswordRule[];
|
|
82
|
+
/**
|
|
83
|
+
* A form validator for a sign-up / reset-password control: the value must satisfy every rule and be at most `maxLength` characters. The error key
|
|
84
|
+
* is `passwordRules` (value `true`). With `maxBytes` (see `PASSWORD_MAX_BYTES`) the value must also fit in that many UTF-8 bytes. A null / undefined value counts as an empty string (so it fails the rules; combine with `Validators.required`
|
|
85
|
+
* when an empty field should show a different message).
|
|
86
|
+
*
|
|
87
|
+
* password = new FormControl('', [createPasswordPolicyValidator(LISTED_SPECIAL_PASSWORD_RULES)]);
|
|
88
|
+
*/
|
|
89
|
+
export declare function createPasswordPolicyValidator(rules: readonly PasswordRule[], maxLength?: number, maxBytes?: number): ValidatorFn;
|