@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,575 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { TemplateRef } from "@angular/core";
|
|
3
|
+
import { RowAction } from "@forgeroute/ui/table-types";
|
|
4
|
+
import { UiLabelsService } from "@forgeroute/ui/core";
|
|
5
|
+
/** One column (stage) of a [ui-board]. `items` are the host's own records; the board never reads their fields. */
|
|
6
|
+
export interface BoardColumn<T = unknown> {
|
|
7
|
+
/** Unique id of the column (the stage key); reported in `from` / `to` of a move. */
|
|
8
|
+
key: string;
|
|
9
|
+
/** Column title (shown uppercase). */
|
|
10
|
+
label: string;
|
|
11
|
+
items: T[];
|
|
12
|
+
/** Dot colour: a CSS colour, or one of blue / cyan / green / teal / amber / orange / red / pink / slate / gray. */
|
|
13
|
+
color?: string;
|
|
14
|
+
/** Small line under the title, e.g. a pre-formatted total ("$120,000"). */
|
|
15
|
+
summary?: string;
|
|
16
|
+
/** Spoken version of `summary` (aria-label). Defaults to the summary text. */
|
|
17
|
+
summaryLabel?: string;
|
|
18
|
+
/** 'success' = green column and green card edge (a won / done stage). */
|
|
19
|
+
tone?: 'default' | 'success';
|
|
20
|
+
/** true = display-only column: items can't be dropped into it. */
|
|
21
|
+
dropDisabled?: boolean;
|
|
22
|
+
/** Text of the empty column; defaults to the board's `emptyColumnText`. */
|
|
23
|
+
emptyText?: string;
|
|
24
|
+
}
|
|
25
|
+
/** Fired when the user moves a card to another column (drag and drop, or Shift + Arrow keys on a focused card). */
|
|
26
|
+
export interface BoardMoveEvent<T = unknown> {
|
|
27
|
+
item: T;
|
|
28
|
+
from: string;
|
|
29
|
+
to: string;
|
|
30
|
+
/** The board has ALREADY moved the card on screen. Call this if the host's save fails to put it back. */
|
|
31
|
+
revert: () => void;
|
|
32
|
+
}
|
|
33
|
+
export interface BoardCardActionEvent<T = unknown> {
|
|
34
|
+
type: string;
|
|
35
|
+
item: T;
|
|
36
|
+
}
|
|
37
|
+
/** Context of the card template: `<ng-template uiBoardCard let-item let-column="column" let-menu="menu">`. */
|
|
38
|
+
export interface BoardCardContext<T = unknown> {
|
|
39
|
+
$implicit: T;
|
|
40
|
+
column: BoardColumn<T>;
|
|
41
|
+
/** Template of the card's "⋮" menu (renders nothing without `cardActions`). Output it with `{ $implicit: item }` in the card's top row. */
|
|
42
|
+
menu: TemplateRef<{
|
|
43
|
+
$implicit: T;
|
|
44
|
+
}>;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Marks the template that renders the INSIDE of a card (the board draws the card frame, menu and drag handling).
|
|
48
|
+
* Bind the board's columns to type the card item: `<ng-template [uiBoardCard]="columns()" let-lead>` gives `lead` the
|
|
49
|
+
* columns' item type. The bare `<ng-template uiBoardCard let-item>` still works; `item` is then `unknown`.
|
|
50
|
+
*/
|
|
51
|
+
export declare class BoardCardDirective<T = unknown> {
|
|
52
|
+
/** Only used to infer the item type in the template; the value is never read. */
|
|
53
|
+
readonly typeFrom: import("@angular/core").InputSignal<"" | BoardColumn<T>[]>;
|
|
54
|
+
readonly template: TemplateRef<BoardCardContext<T>>;
|
|
55
|
+
static ngTemplateContextGuard<T>(_dir: BoardCardDirective<T>, _ctx: unknown): _ctx is BoardCardContext<T>;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BoardCardDirective<any>, never>;
|
|
57
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BoardCardDirective<any>, "ng-template[uiBoardCard]", never, {
|
|
58
|
+
"typeFrom": {
|
|
59
|
+
"alias": "uiBoardCard";
|
|
60
|
+
"required": false;
|
|
61
|
+
"isSignal": true;
|
|
62
|
+
};
|
|
63
|
+
}, {}, never, never, true, never>;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Kanban board: columns of cards that can be dragged between columns. Data and saving stay with the host.
|
|
67
|
+
*
|
|
68
|
+
* <ui-board [columns]="columns()" [itemKey]="key" [itemLabel]="label" [cardActions]="actions" [readOnly]="perm() !== 'full'"
|
|
69
|
+
* [loading]="loading()" [error]="error()" (retry)="load()"
|
|
70
|
+
* (cardClick)="open($event)" (cardAction)="onAction($event)" (itemMove)="onMove($event)">
|
|
71
|
+
* <ng-template [uiBoardCard]="columns()" let-deal let-menu="menu">
|
|
72
|
+
* <div class="ub-card__top"><span class="ub-card__title">{{ deal.title }}</span>
|
|
73
|
+
* <ng-container [ngTemplateOutlet]="menu" [ngTemplateOutletContext]="{ $implicit: deal }" /></div>
|
|
74
|
+
* <div class="ub-card__contact">{{ deal.contactName }}</div>
|
|
75
|
+
* </ng-template>
|
|
76
|
+
* </ui-board>
|
|
77
|
+
*
|
|
78
|
+
* - A drop moves the card on screen at once and emits `itemMove`; the host saves it and calls `event.revert()` if that fails.
|
|
79
|
+
* - Keyboard: Enter / Space opens a card; Shift + ← / → moves it to the neighbouring column (announced to screen readers).
|
|
80
|
+
* - `readOnly` removes dragging and keyboard moves. On phones (≤640px) the columns stack.
|
|
81
|
+
*/
|
|
82
|
+
export declare class BoardComponent<T = unknown> {
|
|
83
|
+
protected readonly labels: UiLabelsService;
|
|
84
|
+
/** The columns in display order, each with its items. A new value replaces the board's content (and any on-screen move). */
|
|
85
|
+
readonly columns: import("@angular/core").InputSignal<BoardColumn<T>[]>;
|
|
86
|
+
/** Stable unique id of a card (used to track cards between renders, to find its menu and to move it). Must be unique across the whole board. */
|
|
87
|
+
readonly itemKey: import("@angular/core").InputSignal<(item: T) => string>;
|
|
88
|
+
/** Spoken name of a card: title, who, status, value... The card's visible content is the `uiBoardCard` template. */
|
|
89
|
+
readonly itemLabel: import("@angular/core").InputSignal<(item: T) => string>;
|
|
90
|
+
/** Menu on every card (the "⋮" button). Empty = no menu. Handle the pick in `(cardAction)`. */
|
|
91
|
+
readonly cardActions: import("@angular/core").InputSignal<RowAction[]>;
|
|
92
|
+
/**
|
|
93
|
+
* Adds "Move to <column>" to every card's menu (one item per column the card may be moved to), so a card can be moved
|
|
94
|
+
* without dragging - by touch, with a screen reader or with the mouse alone. Only while cards can be moved (not read-only,
|
|
95
|
+
* not `moveDisabled`) and only to columns that accept the card (`canMove`, `dropDisabled`). Set false to leave the menu to `cardActions`.
|
|
96
|
+
*/
|
|
97
|
+
readonly moveMenu: import("@angular/core").InputSignal<boolean>;
|
|
98
|
+
readonly loading: import("@angular/core").InputSignal<boolean>;
|
|
99
|
+
/** Error text: replaces the board with the message and a Retry button. */
|
|
100
|
+
readonly error: import("@angular/core").InputSignal<string | null>;
|
|
101
|
+
/** true = no dragging, no keyboard moves. */
|
|
102
|
+
readonly readOnly: import("@angular/core").InputSignal<boolean>;
|
|
103
|
+
/** true = moves are paused (e.g. a save is running) so a second card can't be moved before the first is saved. */
|
|
104
|
+
readonly moveDisabled: import("@angular/core").InputSignal<boolean>;
|
|
105
|
+
/** Optional rule: may this card go from this column to that one? A refused drop does nothing. */
|
|
106
|
+
readonly canMove: import("@angular/core").InputSignal<((item: T, from: string, to: string) => boolean) | null>;
|
|
107
|
+
readonly ariaLabelInput: import("@angular/core").InputSignal<string | null>;
|
|
108
|
+
readonly ariaLabel: import("@angular/core").Signal<string>;
|
|
109
|
+
readonly emptyMessageInput: import("@angular/core").InputSignal<string | null>;
|
|
110
|
+
readonly emptyMessage: import("@angular/core").Signal<string>;
|
|
111
|
+
readonly emptyColumnTextInput: import("@angular/core").InputSignal<string | null>;
|
|
112
|
+
readonly emptyColumnText: import("@angular/core").Signal<string>;
|
|
113
|
+
/** Singular / plural noun for the column's spoken count ("3 deals"). */
|
|
114
|
+
readonly itemNounInput: import("@angular/core").InputSignal<string | null>;
|
|
115
|
+
readonly itemNoun: import("@angular/core").Signal<string>;
|
|
116
|
+
readonly itemNounPluralInput: import("@angular/core").InputSignal<string | null>;
|
|
117
|
+
readonly itemNounPlural: import("@angular/core").Signal<string>;
|
|
118
|
+
readonly retryLabelInput: import("@angular/core").InputSignal<string | null>;
|
|
119
|
+
readonly retryLabel: import("@angular/core").Signal<string>;
|
|
120
|
+
/**
|
|
121
|
+
* Cards drawn per column at first, and added by each "Show more" click (0 = draw every card). The board loads every item
|
|
122
|
+
* at once, so drawing only a page of each column keeps the first paint fast however many items there are. Column counts
|
|
123
|
+
* and summaries still cover every item; a card moved into a column is drawn at its top, so it is always on screen.
|
|
124
|
+
*/
|
|
125
|
+
readonly pageSize: import("@angular/core").InputSignal<number>;
|
|
126
|
+
readonly cardClick: import("@angular/core").OutputEmitterRef<T>;
|
|
127
|
+
readonly cardAction: import("@angular/core").OutputEmitterRef<BoardCardActionEvent<T>>;
|
|
128
|
+
readonly itemMove: import("@angular/core").OutputEmitterRef<BoardMoveEvent<T>>;
|
|
129
|
+
readonly retry: import("@angular/core").OutputEmitterRef<void>;
|
|
130
|
+
protected readonly card: import("@angular/core").Signal<BoardCardDirective<T> | undefined>;
|
|
131
|
+
/** The columns as shown: the host's value, plus any move not yet replaced by new data. */
|
|
132
|
+
protected readonly cols: import("@angular/core").WritableSignal<BoardColumn<T>[]>;
|
|
133
|
+
/** Cards drawn per column. Kept when the host re-sends columns (a saved move, a search), so the board never jumps back; back to the first page on a reload (`loading`). */
|
|
134
|
+
private readonly drawn;
|
|
135
|
+
/** The card the user last moved and where it went: it stays drawn even if the host re-sends it far down the column. */
|
|
136
|
+
private readonly movedTo;
|
|
137
|
+
protected readonly shownCols: import("@angular/core").Signal<{
|
|
138
|
+
col: BoardColumn<T>;
|
|
139
|
+
shown: T[];
|
|
140
|
+
hidden: number;
|
|
141
|
+
next: number;
|
|
142
|
+
}[]>;
|
|
143
|
+
/** How many cards of `col` are drawn: the pages shown so far, extended so the card the user moved is always on screen. */
|
|
144
|
+
private limitOf;
|
|
145
|
+
protected showMore(key: string): void;
|
|
146
|
+
/** Id of the keyboard-move hint that describes the board region. */
|
|
147
|
+
protected readonly hintId: string;
|
|
148
|
+
protected readonly overKey: import("@angular/core").WritableSignal<string | null>;
|
|
149
|
+
protected readonly draggingKey: import("@angular/core").WritableSignal<string | null>;
|
|
150
|
+
protected readonly announcement: import("@angular/core").WritableSignal<string>;
|
|
151
|
+
private readonly host;
|
|
152
|
+
constructor();
|
|
153
|
+
private drag;
|
|
154
|
+
protected readonly skeletonColumns: import("@angular/core").Signal<number[]>;
|
|
155
|
+
protected readonly canDrag: import("@angular/core").Signal<boolean>;
|
|
156
|
+
protected dot(color?: string): string;
|
|
157
|
+
protected onDragStart(event: DragEvent, item: T, col: BoardColumn<T>): void;
|
|
158
|
+
protected onDragEnd(): void;
|
|
159
|
+
protected onDragOver(event: DragEvent, col: BoardColumn<T>): void;
|
|
160
|
+
protected onDragLeave(event: DragEvent, col: BoardColumn<T>): void;
|
|
161
|
+
protected onDrop(event: DragEvent, col: BoardColumn<T>): void;
|
|
162
|
+
protected onCardKey(event: KeyboardEvent, item: T, col: BoardColumn<T>): void;
|
|
163
|
+
/** The menu of each card by item key: the host's `cardActions`, then "Move to <column>" for each column that accepts the card (one shared array per column when the host has no `canMove` rule). */
|
|
164
|
+
protected readonly menuActions: import("@angular/core").Signal<Map<string, RowAction[]>>;
|
|
165
|
+
protected onMenuAction(type: string, item: T): void;
|
|
166
|
+
/** The card is re-created in its new column: put the focus back on it once it is drawn. */
|
|
167
|
+
private focusCard;
|
|
168
|
+
private accepts;
|
|
169
|
+
private move;
|
|
170
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BoardComponent<any>, never>;
|
|
171
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BoardComponent<any>, "ui-board", never, {
|
|
172
|
+
"columns": {
|
|
173
|
+
"alias": "columns";
|
|
174
|
+
"required": true;
|
|
175
|
+
"isSignal": true;
|
|
176
|
+
};
|
|
177
|
+
"itemKey": {
|
|
178
|
+
"alias": "itemKey";
|
|
179
|
+
"required": true;
|
|
180
|
+
"isSignal": true;
|
|
181
|
+
};
|
|
182
|
+
"itemLabel": {
|
|
183
|
+
"alias": "itemLabel";
|
|
184
|
+
"required": true;
|
|
185
|
+
"isSignal": true;
|
|
186
|
+
};
|
|
187
|
+
"cardActions": {
|
|
188
|
+
"alias": "cardActions";
|
|
189
|
+
"required": false;
|
|
190
|
+
"isSignal": true;
|
|
191
|
+
};
|
|
192
|
+
"moveMenu": {
|
|
193
|
+
"alias": "moveMenu";
|
|
194
|
+
"required": false;
|
|
195
|
+
"isSignal": true;
|
|
196
|
+
};
|
|
197
|
+
"loading": {
|
|
198
|
+
"alias": "loading";
|
|
199
|
+
"required": false;
|
|
200
|
+
"isSignal": true;
|
|
201
|
+
};
|
|
202
|
+
"error": {
|
|
203
|
+
"alias": "error";
|
|
204
|
+
"required": false;
|
|
205
|
+
"isSignal": true;
|
|
206
|
+
};
|
|
207
|
+
"readOnly": {
|
|
208
|
+
"alias": "readOnly";
|
|
209
|
+
"required": false;
|
|
210
|
+
"isSignal": true;
|
|
211
|
+
};
|
|
212
|
+
"moveDisabled": {
|
|
213
|
+
"alias": "moveDisabled";
|
|
214
|
+
"required": false;
|
|
215
|
+
"isSignal": true;
|
|
216
|
+
};
|
|
217
|
+
"canMove": {
|
|
218
|
+
"alias": "canMove";
|
|
219
|
+
"required": false;
|
|
220
|
+
"isSignal": true;
|
|
221
|
+
};
|
|
222
|
+
"ariaLabelInput": {
|
|
223
|
+
"alias": "ariaLabel";
|
|
224
|
+
"required": false;
|
|
225
|
+
"isSignal": true;
|
|
226
|
+
};
|
|
227
|
+
"emptyMessageInput": {
|
|
228
|
+
"alias": "emptyMessage";
|
|
229
|
+
"required": false;
|
|
230
|
+
"isSignal": true;
|
|
231
|
+
};
|
|
232
|
+
"emptyColumnTextInput": {
|
|
233
|
+
"alias": "emptyColumnText";
|
|
234
|
+
"required": false;
|
|
235
|
+
"isSignal": true;
|
|
236
|
+
};
|
|
237
|
+
"itemNounInput": {
|
|
238
|
+
"alias": "itemNoun";
|
|
239
|
+
"required": false;
|
|
240
|
+
"isSignal": true;
|
|
241
|
+
};
|
|
242
|
+
"itemNounPluralInput": {
|
|
243
|
+
"alias": "itemNounPlural";
|
|
244
|
+
"required": false;
|
|
245
|
+
"isSignal": true;
|
|
246
|
+
};
|
|
247
|
+
"retryLabelInput": {
|
|
248
|
+
"alias": "retryLabel";
|
|
249
|
+
"required": false;
|
|
250
|
+
"isSignal": true;
|
|
251
|
+
};
|
|
252
|
+
"pageSize": {
|
|
253
|
+
"alias": "pageSize";
|
|
254
|
+
"required": false;
|
|
255
|
+
"isSignal": true;
|
|
256
|
+
};
|
|
257
|
+
}, {
|
|
258
|
+
"cardClick": "cardClick";
|
|
259
|
+
"cardAction": "cardAction";
|
|
260
|
+
"itemMove": "itemMove";
|
|
261
|
+
"retry": "retry";
|
|
262
|
+
}, ["card"], never, true, never>;
|
|
263
|
+
}
|
|
264
|
+
/** One column (stage) of a [ui-kanban-board]. */
|
|
265
|
+
export interface KanbanColumn {
|
|
266
|
+
/** Unique id of the column; what `columnFn` returns for the cards that belong to it, and `fromColumn` / `toColumn` of a move. */
|
|
267
|
+
key: string;
|
|
268
|
+
/** Column title. */
|
|
269
|
+
label: string;
|
|
270
|
+
/** Dot colour: a CSS colour or one of blue / cyan / green / teal / amber / orange / red / pink / slate / gray. */
|
|
271
|
+
color?: string;
|
|
272
|
+
/** Chance (0 to 100) that a card in this stage closes, shown as a chip next to the count ("60%"). */
|
|
273
|
+
probability?: number;
|
|
274
|
+
/** Pre-formatted value shown at the foot of the column, e.g. a weighted total ("$1.2M weighted"). */
|
|
275
|
+
footer?: string;
|
|
276
|
+
/** Spoken version of `footer`. Defaults to the footer text. */
|
|
277
|
+
footerLabel?: string;
|
|
278
|
+
/** Text of the empty column; defaults to the board's `emptyText`. */
|
|
279
|
+
emptyText?: string;
|
|
280
|
+
/** true = cards can be dragged out of this column but never dropped into it. */
|
|
281
|
+
disabled?: boolean;
|
|
282
|
+
/**
|
|
283
|
+
* Cards of this column the host has NOT loaded into `items` yet (server-side paging of a long column). They are added to the count chip and the spoken count, and once
|
|
284
|
+
* every loaded card is drawn the column offers a "Show more" button that emits `columnMore` so the host can load the next page. A card the user moves out of or into the column
|
|
285
|
+
* changes the count by itself (only the loaded cards move), so the host keeps `remaining` = server total minus the loaded cards of the column.
|
|
286
|
+
*/
|
|
287
|
+
remaining?: number;
|
|
288
|
+
/** true while the host loads the next page of this column (the "Show more" button shows its spinner and ignores clicks). */
|
|
289
|
+
loadingMore?: boolean;
|
|
290
|
+
/** How many cards the host's next page adds, for the "Show N more" label (never more than `remaining`). Default: the board's `pageSize`, or all `remaining` cards when the board draws everything (pageSize 0). */
|
|
291
|
+
nextCount?: number;
|
|
292
|
+
}
|
|
293
|
+
/** Fired when the user drops a card somewhere new (drag, keyboard or the "Move to" menu). The board has ALREADY moved the card on screen. */
|
|
294
|
+
export interface KanbanMove<T = unknown> {
|
|
295
|
+
/** Unique per move; `revert(move)` uses it. */
|
|
296
|
+
id: number;
|
|
297
|
+
item: T;
|
|
298
|
+
fromColumn: string;
|
|
299
|
+
toColumn: string;
|
|
300
|
+
/** Position (0-based) in the column the card came from. */
|
|
301
|
+
fromIndex: number;
|
|
302
|
+
/** Final position (0-based) in the column it went to. */
|
|
303
|
+
toIndex: number;
|
|
304
|
+
/** Same as `board.revert(move)`: call it when the host's save failed to put the card back where it was. */
|
|
305
|
+
revert: () => void;
|
|
306
|
+
}
|
|
307
|
+
/** Context of the card template: `<ng-template [uiKanbanCard]="items()" let-deal let-column="column">`. */
|
|
308
|
+
export interface KanbanCardContext<T = unknown> {
|
|
309
|
+
$implicit: T;
|
|
310
|
+
column: KanbanColumn;
|
|
311
|
+
/** Position of the card in its column (0-based). */
|
|
312
|
+
index: number;
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* Marks the template that renders the INSIDE of a card (the board draws the frame, the grip, the "Move to" menu and the drag handling).
|
|
316
|
+
* Bind the board's items to type the card: `<ng-template [uiKanbanCard]="items()" let-deal>`; the bare `<ng-template uiKanbanCard let-item>` still works
|
|
317
|
+
* (`item` is then `unknown`).
|
|
318
|
+
*/
|
|
319
|
+
export declare class KanbanCardDirective<T = unknown> {
|
|
320
|
+
/** Only used to infer the item type in the template; the value is never read. */
|
|
321
|
+
readonly typeFrom: import("@angular/core").InputSignal<"" | readonly T[]>;
|
|
322
|
+
readonly template: TemplateRef<KanbanCardContext<T>>;
|
|
323
|
+
static ngTemplateContextGuard<T>(_dir: KanbanCardDirective<T>, _ctx: unknown): _ctx is KanbanCardContext<T>;
|
|
324
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KanbanCardDirective<any>, never>;
|
|
325
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KanbanCardDirective<any>, "ng-template[uiKanbanCard]", never, {
|
|
326
|
+
"typeFrom": {
|
|
327
|
+
"alias": "uiKanbanCard";
|
|
328
|
+
"required": false;
|
|
329
|
+
"isSignal": true;
|
|
330
|
+
};
|
|
331
|
+
}, {}, never, never, true, never>;
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* Kanban board with positional drag and drop: columns of cards that can be moved between and within columns. Data and saving stay with the host.
|
|
335
|
+
*
|
|
336
|
+
* <ui-kanban-board [columns]="columns()" [items]="deals()" [columnFn]="stageOf" [cardId]="idOf" [cardLabel]="nameOf"
|
|
337
|
+
* [canDrop]="canDrop" [readOnly]="perm() !== 'full'" [disabled]="saving()" [loading]="loading()"
|
|
338
|
+
* (cardMove)="save($event)" (cardClick)="open($event)">
|
|
339
|
+
* <ng-template [uiKanbanCard]="deals()" let-deal let-column="column"> ...card content... </ng-template>
|
|
340
|
+
* </ui-kanban-board>
|
|
341
|
+
*
|
|
342
|
+
* - A drop moves the card on screen at once and emits `cardMove`; the host saves it and calls `board.revert(move)` (or `move.revert()`) if that fails.
|
|
343
|
+
* - Pointer: drag a card (the mouse anywhere on it, touch from its grip). Keyboard: focus a card, Space picks it up, the arrow keys move it
|
|
344
|
+
* (left / right = column, up / down = position), Space or Enter drops it, Escape cancels; every step is announced in a polite live region
|
|
345
|
+
* ("Moved Oak Plaza to Negotiation, position 2 of 5"). Enter on a card that is not picked up emits `cardClick`. Arrow keys on a card that is
|
|
346
|
+
* not picked up move the focus between cards.
|
|
347
|
+
* - Touch-safe alternative: every card has a "Move to" menu (`moveMenu`), which also serves screen readers and mouse users who do not drag.
|
|
348
|
+
* - `canDrop(item, fromColumn, toColumn)` forbids moves the backend would refuse: blocked columns are marked while a card is held (a visible
|
|
349
|
+
* "Not allowed" badge, `aria-disabled`, announced), the drop is refused and the "Move to" menu leaves them out.
|
|
350
|
+
* - `readOnly` removes the grips, the menu and every move; `disabled` pauses moves (e.g. while a save runs) and marks the board busy.
|
|
351
|
+
* - On phones (<=640px) the columns scroll sideways with snap points.
|
|
352
|
+
*/
|
|
353
|
+
export declare class KanbanBoardComponent<T = unknown> {
|
|
354
|
+
protected readonly labels: UiLabelsService;
|
|
355
|
+
private readonly host;
|
|
356
|
+
private readonly doc;
|
|
357
|
+
private readonly injector;
|
|
358
|
+
private readonly zone;
|
|
359
|
+
/** The columns in display order. */
|
|
360
|
+
readonly columns: import("@angular/core").InputSignal<readonly KanbanColumn[]>;
|
|
361
|
+
/** Every card of the board, in the order they should appear inside their column. Cards whose column is not in `columns` are not shown. */
|
|
362
|
+
readonly items: import("@angular/core").InputSignal<readonly T[]>;
|
|
363
|
+
/** The column key a card belongs to. */
|
|
364
|
+
readonly columnFn: import("@angular/core").InputSignal<(item: T) => string>;
|
|
365
|
+
/** Stable unique id of a card (tracks it between renders and finds it for focus and revert). Unique across the whole board. */
|
|
366
|
+
readonly cardId: import("@angular/core").InputSignal<(item: T) => string>;
|
|
367
|
+
/** Spoken name of a card ("Oak Plaza, $1.2M"): its accessible name and what the announcements say. The visible content is the `uiKanbanCard` template. */
|
|
368
|
+
readonly cardLabel: import("@angular/core").InputSignal<(item: T) => string>;
|
|
369
|
+
/** Rule for moves between columns: may this card go from this column to that one? Refused targets are marked, announced and left out of the menu. Not called for a move inside one column. */
|
|
370
|
+
readonly canDrop: import("@angular/core").InputSignal<((item: T, fromColumn: string, toColumn: string) => boolean) | null>;
|
|
371
|
+
/** false = cards can only change column, never position inside one (use it for a board the host sorts itself, e.g. by value). */
|
|
372
|
+
readonly reorderable: import("@angular/core").InputSignal<boolean>;
|
|
373
|
+
/** Adds the "Move to <column>" menu to every card: the touch-, screen-reader- and mouse-friendly alternative to dragging. */
|
|
374
|
+
readonly moveMenu: import("@angular/core").InputSignal<boolean>;
|
|
375
|
+
readonly loading: import("@angular/core").InputSignal<boolean>;
|
|
376
|
+
/** true = no grips, no menu, no drag, no keyboard moves (a read-only user). Cards still open. */
|
|
377
|
+
readonly readOnly: import("@angular/core").InputSignal<boolean>;
|
|
378
|
+
/** true = moves are paused (a save is running): like `readOnly` (no grips, no menu, a drag in progress is cancelled) and the board is marked busy. */
|
|
379
|
+
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
380
|
+
/** Cards drawn per column at first and added by each "Show more" (0 = all). Counts and footers always cover every card. */
|
|
381
|
+
readonly pageSize: import("@angular/core").InputSignal<number>;
|
|
382
|
+
readonly ariaLabelInput: import("@angular/core").InputSignal<string | null>;
|
|
383
|
+
protected readonly ariaLabel: import("@angular/core").Signal<string>;
|
|
384
|
+
readonly emptyTextInput: import("@angular/core").InputSignal<string | null>;
|
|
385
|
+
protected readonly emptyText: import("@angular/core").Signal<string>;
|
|
386
|
+
/** A card was dropped somewhere new. */
|
|
387
|
+
readonly cardMove: import("@angular/core").OutputEmitterRef<KanbanMove<T>>;
|
|
388
|
+
/** A card was clicked, or Enter was pressed on it. */
|
|
389
|
+
readonly cardClick: import("@angular/core").OutputEmitterRef<T>;
|
|
390
|
+
/** The "Show more" button of a column that has `remaining` unloaded cards was pressed: the host loads the next page of that column (the payload is the column key). */
|
|
391
|
+
readonly columnMore: import("@angular/core").OutputEmitterRef<string>;
|
|
392
|
+
protected readonly card: import("@angular/core").Signal<KanbanCardDirective<T> | undefined>;
|
|
393
|
+
protected readonly hintId: string;
|
|
394
|
+
/** `aria-keyshortcuts` of a movable card: the key that picks it up. */
|
|
395
|
+
protected readonly pickUpKeys = "Space";
|
|
396
|
+
protected readonly announcement: import("@angular/core").WritableSignal<string>;
|
|
397
|
+
protected readonly tabKey: import("@angular/core").WritableSignal<string | null>;
|
|
398
|
+
protected readonly canDrag: import("@angular/core").Signal<boolean>;
|
|
399
|
+
protected readonly skeletonColumns: import("@angular/core").Signal<number[]>;
|
|
400
|
+
/** The cards of every column in display order: the host's items, plus any move not yet replaced by new items. */
|
|
401
|
+
private readonly layout;
|
|
402
|
+
/** The column keys in order. A host that re-sends `columns` with new footers or counts must not reset a move that is still being saved, so the layout depends on the keys only. */
|
|
403
|
+
private readonly columnKeys;
|
|
404
|
+
private readonly session;
|
|
405
|
+
private readonly drawn;
|
|
406
|
+
/** The key of the last moved card: whichever column it is in draws at least up to it, so a card dropped deep in a long column stays on screen (until the next move starts). */
|
|
407
|
+
private readonly movedKey;
|
|
408
|
+
private readonly history;
|
|
409
|
+
private moveSeq;
|
|
410
|
+
private pointer;
|
|
411
|
+
private suppressClick;
|
|
412
|
+
protected readonly liftedKey: import("@angular/core").Signal<string | null>;
|
|
413
|
+
protected readonly pointerDragging: import("@angular/core").Signal<boolean>;
|
|
414
|
+
/**
|
|
415
|
+
* What each column draws. A column draws its first `pageSize` cards ("Show more" adds more) PLUS whatever must be on screen: the card that was last moved
|
|
416
|
+
* (wherever the host put it), the card being moved in its own column, and - while a card is held with the keyboard - the whole of its own column and of the target
|
|
417
|
+
* column (so End, the slot and the announcement are exact; this is bounded by the size of one column). A pointer drag never widens a column: the drop position
|
|
418
|
+
* is counted among the cards drawn, so hovering a 600-card column does not render 600 cards.
|
|
419
|
+
*/
|
|
420
|
+
protected readonly views: import("@angular/core").Signal<{
|
|
421
|
+
col: KanbanColumn;
|
|
422
|
+
list: T[];
|
|
423
|
+
shown: T[];
|
|
424
|
+
hidden: number;
|
|
425
|
+
next: number;
|
|
426
|
+
remaining: number;
|
|
427
|
+
count: number;
|
|
428
|
+
nextRemote: number;
|
|
429
|
+
}[]>;
|
|
430
|
+
/** The card the Tab key reaches (one tab stop for the whole board): the last focused one, else the first card of the first column that has one. */
|
|
431
|
+
protected readonly tabbableKey: import("@angular/core").Signal<string | null>;
|
|
432
|
+
/** Where the drop slot is drawn: in `col`, before the card `beforeKey` (null = at the end). Null while nothing is held or the target is refused. */
|
|
433
|
+
private readonly slot;
|
|
434
|
+
/** "Move to" menus, built on demand and rebuilt when the columns, the rule or the language change. */
|
|
435
|
+
private readonly menuMemo;
|
|
436
|
+
constructor();
|
|
437
|
+
/** Ends any move in progress without a drop and without an announcement (the board changed under it). */
|
|
438
|
+
private letGo;
|
|
439
|
+
protected dot(color?: string): string;
|
|
440
|
+
protected percent(p: number): string;
|
|
441
|
+
protected columnLabel(col: KanbanColumn, count: number): string;
|
|
442
|
+
protected isTarget(key: string): boolean;
|
|
443
|
+
/** While a card is held, a column that cannot take it. */
|
|
444
|
+
protected isBlocked(key: string): boolean;
|
|
445
|
+
protected slotBefore(colKey: string, beforeKey: string | null): boolean;
|
|
446
|
+
protected loadMore(col: KanbanColumn): void;
|
|
447
|
+
protected showMore(colKey: string): void;
|
|
448
|
+
/**
|
|
449
|
+
* Puts a card back where it was before `move` (call it when the host's save failed). Does nothing when the host has already replaced `items`
|
|
450
|
+
* (the new data wins; a host that updates its own items inside `cardMove` must revert its own data) or the move was reverted before. When the same card
|
|
451
|
+
* was moved again after `move`, reverting the OLDER move puts the card at the older origin and makes the later move's revert a no-op; reverting the later move
|
|
452
|
+
* first puts it at the later origin (and the older revert still works).
|
|
453
|
+
*/
|
|
454
|
+
revert(move: KanbanMove<T>): void;
|
|
455
|
+
private group;
|
|
456
|
+
/** May the card leave `from` for column `to` (a different column)? */
|
|
457
|
+
private accepts;
|
|
458
|
+
private targetAllowed;
|
|
459
|
+
private previewLength;
|
|
460
|
+
private colLabelOf;
|
|
461
|
+
private announce;
|
|
462
|
+
protected onCardClick(item: T): void;
|
|
463
|
+
protected onCardKey(event: KeyboardEvent, item: T, col: KanbanColumn, index: number): void;
|
|
464
|
+
protected onCardFocusOut(event: FocusEvent, key: string): void;
|
|
465
|
+
private pickUp;
|
|
466
|
+
private onHeldKey;
|
|
467
|
+
/** Moves the held card's target and says where it is now (or that the place refuses it). */
|
|
468
|
+
private target;
|
|
469
|
+
/** Keeps the held card's target on screen: after the new slot (or the refused column) is drawn, scroll it into view (sideways to the column, down to the slot). */
|
|
470
|
+
private showTarget;
|
|
471
|
+
private moveFocus;
|
|
472
|
+
private keyAt;
|
|
473
|
+
protected onPointerDown(event: PointerEvent, item: T, colKey: string, index: number): void;
|
|
474
|
+
private readonly onDocMove;
|
|
475
|
+
private readonly onDocUp;
|
|
476
|
+
private readonly onDocCancel;
|
|
477
|
+
/** A drag across the page must not select text on the way. */
|
|
478
|
+
private readonly onSelectStart;
|
|
479
|
+
private readonly onDocKey;
|
|
480
|
+
private startDrag;
|
|
481
|
+
private placeGhost;
|
|
482
|
+
/** Finds the column under the pointer and the position among its cards. */
|
|
483
|
+
private retarget;
|
|
484
|
+
private scheduleScroll;
|
|
485
|
+
/** Ends a press: `commit` drops the card where it is held, otherwise it stays. `say` = announce a cancel. */
|
|
486
|
+
private endPointer;
|
|
487
|
+
/** Drops the held card at its target: a refused target announces why (a held card stays held, a dragged one goes home). */
|
|
488
|
+
private drop;
|
|
489
|
+
private cancelSession;
|
|
490
|
+
/** The "Move to" menu of a card: one item per column that accepts it. */
|
|
491
|
+
protected moveActions(item: T, fromCol: string): RowAction[];
|
|
492
|
+
protected onMenuAction(type: string, item: T, fromCol: string): void;
|
|
493
|
+
private applyMove;
|
|
494
|
+
private findCard;
|
|
495
|
+
private focusNow;
|
|
496
|
+
/** A moved card is drawn again in its new place: put the focus back on it once it is there. */
|
|
497
|
+
private focusCard;
|
|
498
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KanbanBoardComponent<any>, never>;
|
|
499
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KanbanBoardComponent<any>, "ui-kanban-board", never, {
|
|
500
|
+
"columns": {
|
|
501
|
+
"alias": "columns";
|
|
502
|
+
"required": true;
|
|
503
|
+
"isSignal": true;
|
|
504
|
+
};
|
|
505
|
+
"items": {
|
|
506
|
+
"alias": "items";
|
|
507
|
+
"required": true;
|
|
508
|
+
"isSignal": true;
|
|
509
|
+
};
|
|
510
|
+
"columnFn": {
|
|
511
|
+
"alias": "columnFn";
|
|
512
|
+
"required": true;
|
|
513
|
+
"isSignal": true;
|
|
514
|
+
};
|
|
515
|
+
"cardId": {
|
|
516
|
+
"alias": "cardId";
|
|
517
|
+
"required": true;
|
|
518
|
+
"isSignal": true;
|
|
519
|
+
};
|
|
520
|
+
"cardLabel": {
|
|
521
|
+
"alias": "cardLabel";
|
|
522
|
+
"required": true;
|
|
523
|
+
"isSignal": true;
|
|
524
|
+
};
|
|
525
|
+
"canDrop": {
|
|
526
|
+
"alias": "canDrop";
|
|
527
|
+
"required": false;
|
|
528
|
+
"isSignal": true;
|
|
529
|
+
};
|
|
530
|
+
"reorderable": {
|
|
531
|
+
"alias": "reorderable";
|
|
532
|
+
"required": false;
|
|
533
|
+
"isSignal": true;
|
|
534
|
+
};
|
|
535
|
+
"moveMenu": {
|
|
536
|
+
"alias": "moveMenu";
|
|
537
|
+
"required": false;
|
|
538
|
+
"isSignal": true;
|
|
539
|
+
};
|
|
540
|
+
"loading": {
|
|
541
|
+
"alias": "loading";
|
|
542
|
+
"required": false;
|
|
543
|
+
"isSignal": true;
|
|
544
|
+
};
|
|
545
|
+
"readOnly": {
|
|
546
|
+
"alias": "readOnly";
|
|
547
|
+
"required": false;
|
|
548
|
+
"isSignal": true;
|
|
549
|
+
};
|
|
550
|
+
"disabled": {
|
|
551
|
+
"alias": "disabled";
|
|
552
|
+
"required": false;
|
|
553
|
+
"isSignal": true;
|
|
554
|
+
};
|
|
555
|
+
"pageSize": {
|
|
556
|
+
"alias": "pageSize";
|
|
557
|
+
"required": false;
|
|
558
|
+
"isSignal": true;
|
|
559
|
+
};
|
|
560
|
+
"ariaLabelInput": {
|
|
561
|
+
"alias": "ariaLabel";
|
|
562
|
+
"required": false;
|
|
563
|
+
"isSignal": true;
|
|
564
|
+
};
|
|
565
|
+
"emptyTextInput": {
|
|
566
|
+
"alias": "emptyText";
|
|
567
|
+
"required": false;
|
|
568
|
+
"isSignal": true;
|
|
569
|
+
};
|
|
570
|
+
}, {
|
|
571
|
+
"cardMove": "cardMove";
|
|
572
|
+
"cardClick": "cardClick";
|
|
573
|
+
"columnMore": "columnMore";
|
|
574
|
+
}, ["card"], never, true, never>;
|
|
575
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Filters selected IDs to only include records eligible for a given bulk action.
|
|
3
|
+
* Returns { eligibleIds, skippedCount } so the UI can warn the user if some were skipped.
|
|
4
|
+
*
|
|
5
|
+
* Usage:
|
|
6
|
+
* const { eligibleIds, skippedCount } = getEligibleIds(
|
|
7
|
+
* contacts,
|
|
8
|
+
* selectedIds,
|
|
9
|
+
* 'change-status',
|
|
10
|
+
* { targetValue: 'active' }
|
|
11
|
+
* );
|
|
12
|
+
*/
|
|
13
|
+
export interface EligibleResult {
|
|
14
|
+
eligibleIds: string[];
|
|
15
|
+
skippedCount: number;
|
|
16
|
+
}
|
|
17
|
+
export interface EligibleOptions {
|
|
18
|
+
targetValue?: string;
|
|
19
|
+
targetTag?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Filters a list of options to only include values that would actually change
|
|
23
|
+
* at least one of the selected items. Removes any option where ALL selected
|
|
24
|
+
* items already have that value (no-op options).
|
|
25
|
+
*
|
|
26
|
+
* Usage:
|
|
27
|
+
* const opts = getEligibleOptions(statusOptions, selectedItems, 'status');
|
|
28
|
+
*/
|
|
29
|
+
export declare function getEligibleOptions<T>(options: {
|
|
30
|
+
value: string;
|
|
31
|
+
label: string;
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
}[], selectedItems: T[], field: keyof T): {
|
|
34
|
+
value: string;
|
|
35
|
+
label: string;
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
}[];
|
|
38
|
+
export declare function getEligibleIds<T extends {
|
|
39
|
+
id: string;
|
|
40
|
+
status?: string;
|
|
41
|
+
type?: string;
|
|
42
|
+
tags?: {
|
|
43
|
+
name: string;
|
|
44
|
+
}[];
|
|
45
|
+
}>(items: T[], selectedIds: Set<string>, action: string, options?: EligibleOptions): EligibleResult;
|
|
46
|
+
/**
|
|
47
|
+
* Orders bulk select options: values listed in `order` first, in that order (exact, case-sensitive match on `value`), then the remaining
|
|
48
|
+
* options in their existing order. Values in `order` that are not among the options are ignored (nothing is added); a repeated value in
|
|
49
|
+
* `order` counts once. Returns a new array; with an empty `order` the options come back unchanged.
|
|
50
|
+
*/
|
|
51
|
+
export declare function orderBulkOptions<O extends {
|
|
52
|
+
value: string;
|
|
53
|
+
}>(options: readonly O[], order: readonly string[] | null | undefined): O[];
|