@forgeroute/ui 0.5.15 → 0.5.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/forgeroute-ui-action-bar.mjs +190 -0
- package/fesm2022/forgeroute-ui-action-bar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-address-input.mjs +1164 -0
- package/fesm2022/forgeroute-ui-address-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-alert.mjs +223 -0
- package/fesm2022/forgeroute-ui-alert.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-avatar.mjs +320 -0
- package/fesm2022/forgeroute-ui-avatar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-badge.mjs +158 -0
- package/fesm2022/forgeroute-ui-badge.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-bar-row.mjs +255 -0
- package/fesm2022/forgeroute-ui-bar-row.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-boards.mjs +2201 -0
- package/fesm2022/forgeroute-ui-boards.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-bulk-eligible.mjs +172 -0
- package/fesm2022/forgeroute-ui-bulk-eligible.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-business-hours.mjs +771 -0
- package/fesm2022/forgeroute-ui-business-hours.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-calendar.mjs +2006 -0
- package/fesm2022/forgeroute-ui-calendar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-card-list-item.mjs +556 -0
- package/fesm2022/forgeroute-ui-card-list-item.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-charts.mjs +1 -1
- package/fesm2022/forgeroute-ui-charts.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-checkbox.mjs +815 -0
- package/fesm2022/forgeroute-ui-checkbox.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-chip.mjs +379 -0
- package/fesm2022/forgeroute-ui-chip.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-color-input.mjs +492 -0
- package/fesm2022/forgeroute-ui-color-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-column-filter.mjs +645 -0
- package/fesm2022/forgeroute-ui-column-filter.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-columns.mjs +351 -0
- package/fesm2022/forgeroute-ui-columns.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-combobox.mjs +772 -0
- package/fesm2022/forgeroute-ui-combobox.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-confirm.mjs +48 -0
- package/fesm2022/forgeroute-ui-confirm.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-contact-picker.mjs +865 -0
- package/fesm2022/forgeroute-ui-contact-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-conversations.mjs +3627 -0
- package/fesm2022/forgeroute-ui-conversations.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-copy-field.mjs +378 -0
- package/fesm2022/forgeroute-ui-copy-field.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-data-table-core.mjs +6150 -0
- package/fesm2022/forgeroute-ui-data-table-core.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-date-input.mjs +384 -0
- package/fesm2022/forgeroute-ui-date-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-date-range-picker.mjs +453 -0
- package/fesm2022/forgeroute-ui-date-range-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-datetime-input.mjs +375 -0
- package/fesm2022/forgeroute-ui-datetime-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-detail-card.mjs +655 -0
- package/fesm2022/forgeroute-ui-detail-card.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-discount-selector.mjs +259 -0
- package/fesm2022/forgeroute-ui-discount-selector.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-divider.mjs +111 -0
- package/fesm2022/forgeroute-ui-divider.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-dropdown.mjs +550 -0
- package/fesm2022/forgeroute-ui-dropdown.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-editor.mjs +4545 -0
- package/fesm2022/forgeroute-ui-editor.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-empty-state.mjs +231 -0
- package/fesm2022/forgeroute-ui-empty-state.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-error-state.mjs +195 -0
- package/fesm2022/forgeroute-ui-error-state.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-error.mjs +93 -0
- package/fesm2022/forgeroute-ui-error.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-fade.mjs +117 -0
- package/fesm2022/forgeroute-ui-fade.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-file-input.mjs +999 -0
- package/fesm2022/forgeroute-ui-file-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-fixed-footer.mjs +115 -0
- package/fesm2022/forgeroute-ui-fixed-footer.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-form-row.mjs +126 -0
- package/fesm2022/forgeroute-ui-form-row.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-form-section.mjs +93 -0
- package/fesm2022/forgeroute-ui-form-section.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-form.mjs +139 -0
- package/fesm2022/forgeroute-ui-form.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-hint.mjs +47 -0
- package/fesm2022/forgeroute-ui-hint.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-icon-picker.mjs +424 -0
- package/fesm2022/forgeroute-ui-icon-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-icon.mjs +311 -0
- package/fesm2022/forgeroute-ui-icon.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-image-preview.mjs +237 -0
- package/fesm2022/forgeroute-ui-image-preview.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-keypad.mjs +278 -0
- package/fesm2022/forgeroute-ui-keypad.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-kpi-card.mjs +490 -0
- package/fesm2022/forgeroute-ui-kpi-card.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-language-switcher.mjs +134 -0
- package/fesm2022/forgeroute-ui-language-switcher.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-layout.mjs +18 -0
- package/fesm2022/forgeroute-ui-layout.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-list-item.mjs +620 -0
- package/fesm2022/forgeroute-ui-list-item.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-list.mjs +866 -0
- package/fesm2022/forgeroute-ui-list.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-live-region.mjs +118 -0
- package/fesm2022/forgeroute-ui-live-region.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-map.mjs +5 -1
- package/fesm2022/forgeroute-ui-map.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-maps.mjs +2 -1
- package/fesm2022/forgeroute-ui-maps.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-media.mjs +4615 -0
- package/fesm2022/forgeroute-ui-media.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-messaging.mjs +20 -1
- package/fesm2022/forgeroute-ui-messaging.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-more-menu.mjs +418 -0
- package/fesm2022/forgeroute-ui-more-menu.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-multi-select.mjs +532 -0
- package/fesm2022/forgeroute-ui-multi-select.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-notes.mjs +768 -0
- package/fesm2022/forgeroute-ui-notes.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-notification-bell.mjs +587 -0
- package/fesm2022/forgeroute-ui-notification-bell.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-offline-banner.mjs +156 -0
- package/fesm2022/forgeroute-ui-offline-banner.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-option-card.mjs +379 -0
- package/fesm2022/forgeroute-ui-option-card.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-page.mjs +317 -0
- package/fesm2022/forgeroute-ui-page.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-pagination.mjs +225 -0
- package/fesm2022/forgeroute-ui-pagination.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-panel-info-list.mjs +422 -0
- package/fesm2022/forgeroute-ui-panel-info-list.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-password-requirements.mjs +237 -0
- package/fesm2022/forgeroute-ui-password-requirements.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-payments.mjs +6243 -0
- package/fesm2022/forgeroute-ui-payments.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-pdf.mjs +9 -1
- package/fesm2022/forgeroute-ui-pdf.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-phone-number-picker.mjs +840 -0
- package/fesm2022/forgeroute-ui-phone-number-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-pill-tabs.mjs +546 -0
- package/fesm2022/forgeroute-ui-pill-tabs.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-print.mjs +76 -0
- package/fesm2022/forgeroute-ui-print.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-progress-bar.mjs +252 -0
- package/fesm2022/forgeroute-ui-progress-bar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-progress-ring.mjs +277 -0
- package/fesm2022/forgeroute-ui-progress-ring.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-quick-filter-tabs.mjs +301 -0
- package/fesm2022/forgeroute-ui-quick-filter-tabs.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-quickbooks.mjs +20 -3
- package/fesm2022/forgeroute-ui-quickbooks.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-radio-matrix.mjs +471 -0
- package/fesm2022/forgeroute-ui-radio-matrix.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-radio.mjs +911 -0
- package/fesm2022/forgeroute-ui-radio.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-read-only-mode.mjs +15 -0
- package/fesm2022/forgeroute-ui-read-only-mode.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-readonly-fieldset.mjs +146 -0
- package/fesm2022/forgeroute-ui-readonly-fieldset.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-reminder-alerts.mjs +249 -0
- package/fesm2022/forgeroute-ui-reminder-alerts.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-search-input.mjs +373 -0
- package/fesm2022/forgeroute-ui-search-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-section-header.mjs +296 -0
- package/fesm2022/forgeroute-ui-section-header.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-select.mjs +498 -0
- package/fesm2022/forgeroute-ui-select.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-setup.mjs +4649 -0
- package/fesm2022/forgeroute-ui-setup.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-share-menu.mjs +461 -0
- package/fesm2022/forgeroute-ui-share-menu.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-shell.mjs +981 -0
- package/fesm2022/forgeroute-ui-shell.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-show.mjs +129 -0
- package/fesm2022/forgeroute-ui-show.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-sidebar-layout.mjs +355 -0
- package/fesm2022/forgeroute-ui-sidebar-layout.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-skeleton.mjs +152 -0
- package/fesm2022/forgeroute-ui-skeleton.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-skip-link.mjs +129 -0
- package/fesm2022/forgeroute-ui-skip-link.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-snackbar.mjs +200 -0
- package/fesm2022/forgeroute-ui-snackbar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-square.mjs +17 -3
- package/fesm2022/forgeroute-ui-square.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-stack.mjs +233 -0
- package/fesm2022/forgeroute-ui-stack.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stacked-bar.mjs +200 -0
- package/fesm2022/forgeroute-ui-stacked-bar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stacking-plan.mjs +365 -0
- package/fesm2022/forgeroute-ui-stacking-plan.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-star-rating.mjs +498 -0
- package/fesm2022/forgeroute-ui-star-rating.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-star.mjs +184 -0
- package/fesm2022/forgeroute-ui-star.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stepper.mjs +615 -0
- package/fesm2022/forgeroute-ui-stepper.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stripe.mjs +16 -3
- package/fesm2022/forgeroute-ui-stripe.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-swatch-picker.mjs +416 -0
- package/fesm2022/forgeroute-ui-swatch-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-table-toolbar.mjs +770 -0
- package/fesm2022/forgeroute-ui-table-toolbar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-table-types.mjs +277 -0
- package/fesm2022/forgeroute-ui-table-types.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-text-input.mjs +1003 -0
- package/fesm2022/forgeroute-ui-text-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-text-template-picker.mjs +356 -0
- package/fesm2022/forgeroute-ui-text-template-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-text.mjs +195 -0
- package/fesm2022/forgeroute-ui-text.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-textarea-input.mjs +542 -0
- package/fesm2022/forgeroute-ui-textarea-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-time-input.mjs +401 -0
- package/fesm2022/forgeroute-ui-time-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-timeline.mjs +549 -0
- package/fesm2022/forgeroute-ui-timeline.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-toast.mjs +507 -0
- package/fesm2022/forgeroute-ui-toast.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-toggle-badge.mjs +177 -0
- package/fesm2022/forgeroute-ui-toggle-badge.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-toggle.mjs +275 -0
- package/fesm2022/forgeroute-ui-toggle.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-tooltip.mjs +155 -0
- package/fesm2022/forgeroute-ui-tooltip.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-utils.mjs +1071 -0
- package/fesm2022/forgeroute-ui-utils.mjs.map +1 -0
- package/fesm2022/forgeroute-ui.mjs +105 -70663
- package/package.json +417 -1
- package/types/forgeroute-ui-action-bar.d.ts +74 -0
- package/types/forgeroute-ui-address-input.d.ts +354 -0
- package/types/forgeroute-ui-alert.d.ts +89 -0
- package/types/forgeroute-ui-avatar.d.ts +85 -0
- package/types/forgeroute-ui-badge.d.ts +45 -0
- package/types/forgeroute-ui-bar-row.d.ts +90 -0
- package/types/forgeroute-ui-boards.d.ts +575 -0
- package/types/forgeroute-ui-bulk-eligible.d.ts +53 -0
- package/types/forgeroute-ui-business-hours.d.ts +191 -0
- package/types/forgeroute-ui-calendar.d.ts +544 -0
- package/types/forgeroute-ui-card-list-item.d.ts +186 -0
- package/types/forgeroute-ui-charts.d.ts +1 -1
- package/types/forgeroute-ui-checkbox.d.ts +270 -0
- package/types/forgeroute-ui-chip.d.ts +125 -0
- package/types/forgeroute-ui-color-input.d.ts +160 -0
- package/types/forgeroute-ui-column-filter.d.ts +130 -0
- package/types/forgeroute-ui-columns.d.ts +150 -0
- package/types/forgeroute-ui-combobox.d.ts +252 -0
- package/types/forgeroute-ui-confirm.d.ts +34 -0
- package/types/forgeroute-ui-contact-picker.d.ts +173 -0
- package/types/forgeroute-ui-conversations.d.ts +993 -0
- package/types/forgeroute-ui-copy-field.d.ts +122 -0
- package/types/forgeroute-ui-data-table-core.d.ts +1221 -0
- package/types/forgeroute-ui-date-input.d.ts +101 -0
- package/types/forgeroute-ui-date-range-picker.d.ts +109 -0
- package/types/forgeroute-ui-datetime-input.d.ts +97 -0
- package/types/forgeroute-ui-detail-card.d.ts +252 -0
- package/types/forgeroute-ui-discount-selector.d.ts +57 -0
- package/types/forgeroute-ui-divider.d.ts +40 -0
- package/types/forgeroute-ui-dropdown.d.ts +156 -0
- package/types/forgeroute-ui-editor.d.ts +873 -0
- package/types/forgeroute-ui-empty-state.d.ts +29 -0
- package/types/forgeroute-ui-error-state.d.ts +38 -0
- package/types/forgeroute-ui-error.d.ts +29 -0
- package/types/forgeroute-ui-fade.d.ts +39 -0
- package/types/forgeroute-ui-file-input.d.ts +337 -0
- package/types/forgeroute-ui-fixed-footer.d.ts +53 -0
- package/types/forgeroute-ui-form-row.d.ts +30 -0
- package/types/forgeroute-ui-form-section.d.ts +18 -0
- package/types/forgeroute-ui-form.d.ts +68 -0
- package/types/forgeroute-ui-hint.d.ts +10 -0
- package/types/forgeroute-ui-icon-picker.d.ts +122 -0
- package/types/forgeroute-ui-icon.d.ts +95 -0
- package/types/forgeroute-ui-image-preview.d.ts +88 -0
- package/types/forgeroute-ui-keypad.d.ts +73 -0
- package/types/forgeroute-ui-kpi-card.d.ts +161 -0
- package/types/forgeroute-ui-language-switcher.d.ts +41 -0
- package/types/forgeroute-ui-layout.d.ts +13 -0
- package/types/forgeroute-ui-list-item.d.ts +253 -0
- package/types/forgeroute-ui-list.d.ts +282 -0
- package/types/forgeroute-ui-live-region.d.ts +49 -0
- package/types/forgeroute-ui-map.d.ts +1 -1
- package/types/forgeroute-ui-maps.d.ts +1 -1
- package/types/forgeroute-ui-media.d.ts +1221 -0
- package/types/forgeroute-ui-messaging.d.ts +11 -6
- package/types/forgeroute-ui-more-menu.d.ts +91 -0
- package/types/forgeroute-ui-multi-select.d.ts +119 -0
- package/types/forgeroute-ui-notes.d.ts +172 -0
- package/types/forgeroute-ui-notification-bell.d.ts +135 -0
- package/types/forgeroute-ui-offline-banner.d.ts +44 -0
- package/types/forgeroute-ui-option-card.d.ts +106 -0
- package/types/forgeroute-ui-page.d.ts +115 -0
- package/types/forgeroute-ui-pagination.d.ts +55 -0
- package/types/forgeroute-ui-panel-info-list.d.ts +147 -0
- package/types/forgeroute-ui-password-requirements.d.ts +89 -0
- package/types/forgeroute-ui-payments.d.ts +1818 -0
- package/types/forgeroute-ui-pdf.d.ts +1 -1
- package/types/forgeroute-ui-phone-number-picker.d.ts +199 -0
- package/types/forgeroute-ui-pill-tabs.d.ts +208 -0
- package/types/forgeroute-ui-print.d.ts +40 -0
- package/types/forgeroute-ui-progress-bar.d.ts +88 -0
- package/types/forgeroute-ui-progress-ring.d.ts +102 -0
- package/types/forgeroute-ui-quick-filter-tabs.d.ts +51 -0
- package/types/forgeroute-ui-quickbooks.d.ts +6 -3
- package/types/forgeroute-ui-radio-matrix.d.ts +131 -0
- package/types/forgeroute-ui-radio.d.ts +311 -0
- package/types/forgeroute-ui-read-only-mode.d.ts +26 -0
- package/types/forgeroute-ui-readonly-fieldset.d.ts +62 -0
- package/types/forgeroute-ui-reminder-alerts.d.ts +71 -0
- package/types/forgeroute-ui-search-input.d.ts +93 -0
- package/types/forgeroute-ui-section-header.d.ts +149 -0
- package/types/forgeroute-ui-select.d.ts +183 -0
- package/types/forgeroute-ui-setup.d.ts +775 -0
- package/types/forgeroute-ui-share-menu.d.ts +99 -0
- package/types/forgeroute-ui-shell.d.ts +173 -0
- package/types/forgeroute-ui-show.d.ts +40 -0
- package/types/forgeroute-ui-sidebar-layout.d.ts +161 -0
- package/types/forgeroute-ui-skeleton.d.ts +51 -0
- package/types/forgeroute-ui-skip-link.d.ts +51 -0
- package/types/forgeroute-ui-snackbar.d.ts +50 -0
- package/types/forgeroute-ui-square.d.ts +5 -3
- package/types/forgeroute-ui-stack.d.ts +99 -0
- package/types/forgeroute-ui-stacked-bar.d.ts +84 -0
- package/types/forgeroute-ui-stacking-plan.d.ts +116 -0
- package/types/forgeroute-ui-star-rating.d.ts +151 -0
- package/types/forgeroute-ui-star.d.ts +46 -0
- package/types/forgeroute-ui-stepper.d.ts +273 -0
- package/types/forgeroute-ui-stripe.d.ts +4 -2
- package/types/forgeroute-ui-swatch-picker.d.ts +118 -0
- package/types/forgeroute-ui-table-toolbar.d.ts +116 -0
- package/types/forgeroute-ui-table-types.d.ts +624 -0
- package/types/forgeroute-ui-text-input.d.ts +359 -0
- package/types/forgeroute-ui-text-template-picker.d.ts +100 -0
- package/types/forgeroute-ui-text.d.ts +76 -0
- package/types/forgeroute-ui-textarea-input.d.ts +174 -0
- package/types/forgeroute-ui-time-input.d.ts +105 -0
- package/types/forgeroute-ui-timeline.d.ts +196 -0
- package/types/forgeroute-ui-toast.d.ts +131 -0
- package/types/forgeroute-ui-toggle-badge.d.ts +64 -0
- package/types/forgeroute-ui-toggle.d.ts +92 -0
- package/types/forgeroute-ui-tooltip.d.ts +36 -0
- package/types/forgeroute-ui-utils.d.ts +210 -0
- package/types/forgeroute-ui.d.ts +106 -19539
- package/fesm2022/forgeroute-ui.mjs.map +0 -1
|
@@ -0,0 +1,1221 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { OnInit, Signal } from "@angular/core";
|
|
3
|
+
import { UrlTree } from "@angular/router";
|
|
4
|
+
import { UiLabelsService } from "@forgeroute/ui/core";
|
|
5
|
+
import { BadgeConfig, BulkActionDef, BulkActionEvent, BulkPanelEvent, BulkUpdateOption, ColumnDef, FilterOption, LinkClickEvent, QuickFilterTab, RangeFilterConfig, RowAction, SavedView, SortDir, TablePermission, TableRowReorderEvent, ToolbarAction } from "@forgeroute/ui/table-types";
|
|
6
|
+
import { ColumnRangeSpec, ColumnRangeValue } from "@forgeroute/ui/column-filter";
|
|
7
|
+
import { Observable } from "rxjs";
|
|
8
|
+
import { SelectOption } from "@forgeroute/ui/select";
|
|
9
|
+
export interface ImportFieldDef {
|
|
10
|
+
key: string;
|
|
11
|
+
label: string;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* An example of what the column should contain (e.g. `VACANT, OCCUPIED`, `500.00`, `YYYY-MM-DD`). It is shown under the field's
|
|
15
|
+
* label in the column-mapping step as "e.g. <example>" and linked to the column dropdown for screen readers. Omit it and nothing changes.
|
|
16
|
+
*/
|
|
17
|
+
example?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ImportSource {
|
|
20
|
+
value: string;
|
|
21
|
+
label: string;
|
|
22
|
+
desc?: string;
|
|
23
|
+
letter?: string;
|
|
24
|
+
color?: string;
|
|
25
|
+
aliases?: Record<string, string[]>;
|
|
26
|
+
}
|
|
27
|
+
export interface ImportExportConfig {
|
|
28
|
+
entityName: string;
|
|
29
|
+
entityNamePlural: string;
|
|
30
|
+
exportEndpoint: string;
|
|
31
|
+
/**
|
|
32
|
+
* POST endpoint for the import wizard. Omit to make the table export-only —
|
|
33
|
+
* ui-data-table only injects the Import button when this is set.
|
|
34
|
+
*/
|
|
35
|
+
importEndpoint?: string;
|
|
36
|
+
exportHeaders: string[];
|
|
37
|
+
exportRow: (item: any) => (string | number)[];
|
|
38
|
+
importFields?: ImportFieldDef[];
|
|
39
|
+
columnAliases?: Record<string, string[]>;
|
|
40
|
+
templateSampleRows?: string[][];
|
|
41
|
+
/** Text of the template download button inside the import window, e.g. "Download Cases CSV Template" (default: "Download template"). */
|
|
42
|
+
templateLabel?: string;
|
|
43
|
+
/** When true, the Export button appears in the More Actions dropdown instead of as a standalone button. */
|
|
44
|
+
exportInMoreActions?: boolean;
|
|
45
|
+
}
|
|
46
|
+
interface ImportError {
|
|
47
|
+
row: number;
|
|
48
|
+
message: string;
|
|
49
|
+
}
|
|
50
|
+
export interface ImportSubmitRequest {
|
|
51
|
+
file: File | null;
|
|
52
|
+
records: Record<string, string>[];
|
|
53
|
+
mapping: Record<string, string>;
|
|
54
|
+
}
|
|
55
|
+
export interface ImportSubmitResult {
|
|
56
|
+
imported: number;
|
|
57
|
+
errors?: {
|
|
58
|
+
row: number;
|
|
59
|
+
message: string;
|
|
60
|
+
}[];
|
|
61
|
+
warnings?: {
|
|
62
|
+
row: number;
|
|
63
|
+
message: string;
|
|
64
|
+
}[];
|
|
65
|
+
}
|
|
66
|
+
/** One problem the `validate` check found in a CSV row (`row` is the 1-based data row, the header not counted). A row may have several. */
|
|
67
|
+
export interface ImportRowIssue {
|
|
68
|
+
row: number;
|
|
69
|
+
message: string;
|
|
70
|
+
}
|
|
71
|
+
type ImportStep = 'source' | 'upload' | 'mapping' | 'preview' | 'result';
|
|
72
|
+
export declare class ImportExportComponent {
|
|
73
|
+
protected readonly labels: UiLabelsService;
|
|
74
|
+
readonly _configInput: import("@angular/core").InputSignal<ImportExportConfig | null>;
|
|
75
|
+
readonly importSources: import("@angular/core").InputSignal<ImportSource[] | undefined>;
|
|
76
|
+
readonly exportParams: import("@angular/core").InputSignal<Record<string, string>>;
|
|
77
|
+
readonly exportOnly: import("@angular/core").InputSignal<boolean>;
|
|
78
|
+
/** The window's footer has one Close button that closes it at once, never Back / Cancel (the setup wizard). */
|
|
79
|
+
readonly closeOnly: import("@angular/core").InputSignal<boolean>;
|
|
80
|
+
/**
|
|
81
|
+
* Replaces the built-in `POST importEndpoint { records }` for an app whose import runs differently (e.g. the server reads the CSV file itself):
|
|
82
|
+
* receives the chosen file, the parsed rows (field key -> value) and the mapping (field key -> CSV column) and answers the result.
|
|
83
|
+
*/
|
|
84
|
+
readonly submit: import("@angular/core").InputSignal<((request: ImportSubmitRequest) => Observable<ImportSubmitResult>) | null>;
|
|
85
|
+
/**
|
|
86
|
+
* A check of the mapped rows that runs when the Preview step opens (e.g. the server's dry run). It gets the same request as `submit`
|
|
87
|
+
* and answers the rows that would be refused; they are listed above the preview ("N rows with errors found") and the button reads
|
|
88
|
+
* "Import Valid Rows". A check that fails shows no list (the import is still decided by the server). Omit it and nothing changes.
|
|
89
|
+
*/
|
|
90
|
+
readonly validate: import("@angular/core").InputSignal<((request: ImportSubmitRequest) => Observable<ImportRowIssue[]>) | null>;
|
|
91
|
+
/**
|
|
92
|
+
* With `validate`: the server saves nothing when any row is refused, so the import button stays disabled while the check runs, failed,
|
|
93
|
+
* or listed errors (and the list says so). Without `validate` it has no effect.
|
|
94
|
+
*/
|
|
95
|
+
readonly allOrNothing: import("@angular/core").InputSignal<boolean>;
|
|
96
|
+
/** Fired when the user presses Done after an import, with what the import answered (also `imported`). */
|
|
97
|
+
readonly finished: import("@angular/core").OutputEmitterRef<ImportSubmitResult>;
|
|
98
|
+
readonly imported: import("@angular/core").OutputEmitterRef<void>;
|
|
99
|
+
config: ImportExportConfig;
|
|
100
|
+
private static nextUid;
|
|
101
|
+
/** Unique prefix for the ids this window links with aria-describedby / aria-labelledby. */
|
|
102
|
+
readonly uid: string;
|
|
103
|
+
private readonly resultBox;
|
|
104
|
+
/** The container of the step on screen (Source / Upload / Map Columns / Preview): focused when the step changes, because the control the user pressed is gone. */
|
|
105
|
+
private readonly stepBox;
|
|
106
|
+
private readonly http;
|
|
107
|
+
/** API root from FORGEROUTE_CONFIG (e.g. a cross-origin prod API); falls back to same-origin `/api`. */
|
|
108
|
+
private readonly apiBase;
|
|
109
|
+
private readonly toast;
|
|
110
|
+
private readonly cdr;
|
|
111
|
+
private readonly destroyRef;
|
|
112
|
+
/** Seconds since the import request started (shown while it runs). */
|
|
113
|
+
importElapsed: number;
|
|
114
|
+
private importTimer;
|
|
115
|
+
constructor();
|
|
116
|
+
exporting: boolean;
|
|
117
|
+
exportAll(): void;
|
|
118
|
+
downloadTemplate(): void;
|
|
119
|
+
importOpen: boolean;
|
|
120
|
+
step: ImportStep;
|
|
121
|
+
selectedSource: string;
|
|
122
|
+
csvHeaders: string[];
|
|
123
|
+
csvRows: string[][];
|
|
124
|
+
fileError: string | null;
|
|
125
|
+
columnMapping: Record<string, string>;
|
|
126
|
+
mappingError: string | null;
|
|
127
|
+
importing: boolean;
|
|
128
|
+
/** The `validate` check of the Preview step is running. */
|
|
129
|
+
validating: boolean;
|
|
130
|
+
/** Result of the `validate` check: null = not run yet / failed, [] = every row is fine. */
|
|
131
|
+
validationErrors: ImportRowIssue[] | null;
|
|
132
|
+
private validationRun;
|
|
133
|
+
/** `warnings` = rows imported with a value changed (e.g. an unrecognised status mapped to the default). */
|
|
134
|
+
importResult: {
|
|
135
|
+
imported: number;
|
|
136
|
+
errors: ImportError[];
|
|
137
|
+
warnings: ImportError[];
|
|
138
|
+
} | null;
|
|
139
|
+
get stepIndex(): number;
|
|
140
|
+
/** The progress list: one entry per step with its number, label and whether it is the current / a finished step. */
|
|
141
|
+
get stepItems(): {
|
|
142
|
+
key: ImportStep;
|
|
143
|
+
num: number;
|
|
144
|
+
label: string;
|
|
145
|
+
current: boolean;
|
|
146
|
+
done: boolean;
|
|
147
|
+
}[];
|
|
148
|
+
/** What the persistent status region says once the import has finished (empty before). */
|
|
149
|
+
get resultAnnouncement(): string;
|
|
150
|
+
get modalTitle(): string;
|
|
151
|
+
openImport(): void;
|
|
152
|
+
onSourceSelected(value: string): void;
|
|
153
|
+
confirmSource(): void;
|
|
154
|
+
closeImport(): void;
|
|
155
|
+
finishImport(): void;
|
|
156
|
+
onFileChange(event: Event): void;
|
|
157
|
+
private csvFile;
|
|
158
|
+
private readCsvFile;
|
|
159
|
+
private autoMap;
|
|
160
|
+
private static nextId;
|
|
161
|
+
private readonly idPrefix;
|
|
162
|
+
/** Id of a field's example hint (the column dropdown points at it with aria-describedby). */
|
|
163
|
+
protected exampleId(field: ImportFieldDef): string;
|
|
164
|
+
get canSubmit(): boolean;
|
|
165
|
+
get unmappedRequiredFields(): string[];
|
|
166
|
+
get unmatchedCsvHeaders(): string[];
|
|
167
|
+
get csvHeaderOptions(): SelectOption[];
|
|
168
|
+
get allRequiredMapped(): boolean;
|
|
169
|
+
getSample(fieldKey: string): string;
|
|
170
|
+
goToPreview(): void;
|
|
171
|
+
private resetValidation;
|
|
172
|
+
private runValidation;
|
|
173
|
+
/** Number of different rows the check refused. */
|
|
174
|
+
get validationRowCount(): number;
|
|
175
|
+
/** `allOrNothing`: no import before a check came back clean. */
|
|
176
|
+
get importBlocked(): boolean;
|
|
177
|
+
get importButtonLabel(): string;
|
|
178
|
+
get mappedFields(): ImportFieldDef[];
|
|
179
|
+
get previewRows(): Record<string, string>[];
|
|
180
|
+
/** Shows another step and moves focus to its container (the pressed button / focused file input was removed from the page). */
|
|
181
|
+
goTo(step: ImportStep): void;
|
|
182
|
+
/** Moves focus to the result summary (the button that had it is gone), so keyboard and screen reader users land on the outcome. */
|
|
183
|
+
private focusResult;
|
|
184
|
+
private stopImportTimer;
|
|
185
|
+
private buildRequest;
|
|
186
|
+
submitImport(): void;
|
|
187
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImportExportComponent, never>;
|
|
188
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImportExportComponent, "ui-import-export", never, {
|
|
189
|
+
"_configInput": {
|
|
190
|
+
"alias": "config";
|
|
191
|
+
"required": false;
|
|
192
|
+
"isSignal": true;
|
|
193
|
+
};
|
|
194
|
+
"importSources": {
|
|
195
|
+
"alias": "importSources";
|
|
196
|
+
"required": false;
|
|
197
|
+
"isSignal": true;
|
|
198
|
+
};
|
|
199
|
+
"exportParams": {
|
|
200
|
+
"alias": "exportParams";
|
|
201
|
+
"required": false;
|
|
202
|
+
"isSignal": true;
|
|
203
|
+
};
|
|
204
|
+
"exportOnly": {
|
|
205
|
+
"alias": "exportOnly";
|
|
206
|
+
"required": false;
|
|
207
|
+
"isSignal": true;
|
|
208
|
+
};
|
|
209
|
+
"closeOnly": {
|
|
210
|
+
"alias": "closeOnly";
|
|
211
|
+
"required": false;
|
|
212
|
+
"isSignal": true;
|
|
213
|
+
};
|
|
214
|
+
"submit": {
|
|
215
|
+
"alias": "submit";
|
|
216
|
+
"required": false;
|
|
217
|
+
"isSignal": true;
|
|
218
|
+
};
|
|
219
|
+
"validate": {
|
|
220
|
+
"alias": "validate";
|
|
221
|
+
"required": false;
|
|
222
|
+
"isSignal": true;
|
|
223
|
+
};
|
|
224
|
+
"allOrNothing": {
|
|
225
|
+
"alias": "allOrNothing";
|
|
226
|
+
"required": false;
|
|
227
|
+
"isSignal": true;
|
|
228
|
+
};
|
|
229
|
+
}, {
|
|
230
|
+
"finished": "finished";
|
|
231
|
+
"imported": "imported";
|
|
232
|
+
}, never, never, true, never>;
|
|
233
|
+
}
|
|
234
|
+
/** Simple English plural: "property" → "properties", "box" → "boxes", "contact" → "contacts". */
|
|
235
|
+
export declare function pluralize(word: string): string;
|
|
236
|
+
/** Resolved anchor data of a link cell (internal). */
|
|
237
|
+
interface ResolvedLink {
|
|
238
|
+
href: string;
|
|
239
|
+
tree: UrlTree | null;
|
|
240
|
+
blank: boolean;
|
|
241
|
+
rel: string | null;
|
|
242
|
+
download: boolean;
|
|
243
|
+
ariaLabel: string | null;
|
|
244
|
+
}
|
|
245
|
+
export declare class DataTableComponent<T extends Record<string, any>> implements OnInit {
|
|
246
|
+
readonly endpoint: import("@angular/core").InputSignal<string>;
|
|
247
|
+
readonly columns: import("@angular/core").InputSignal<ColumnDef[]>;
|
|
248
|
+
/** Search box placeholder when no column is searchable; `null` (default) = the library text for the active language. */
|
|
249
|
+
readonly searchPlaceholder: import("@angular/core").InputSignal<string | null>;
|
|
250
|
+
readonly pageSize: import("@angular/core").InputSignal<number>;
|
|
251
|
+
/** Accessible name of the table; `null` (default) = the library text for the active language. */
|
|
252
|
+
readonly tableLabel: import("@angular/core").InputSignal<string | null>;
|
|
253
|
+
protected readonly tableLabelText: Signal<string>;
|
|
254
|
+
/** Message of the empty table; `null` (default) = the library text for the active language. */
|
|
255
|
+
readonly emptyMessage: import("@angular/core").InputSignal<string | null>;
|
|
256
|
+
protected readonly emptyMessageText: Signal<string>;
|
|
257
|
+
/**
|
|
258
|
+
* Text of the retry button in the failed-load state (desktop table and phone cards). Plain text.
|
|
259
|
+
* Empty / blank keeps the error state's own default ("Try again").
|
|
260
|
+
*/
|
|
261
|
+
readonly retryLabel: import("@angular/core").InputSignal<string>;
|
|
262
|
+
protected readonly _retryLabel: Signal<string>;
|
|
263
|
+
readonly lockedColumn: import("@angular/core").InputSignal<string>;
|
|
264
|
+
readonly savedViews: import("@angular/core").InputSignal<SavedView[]>;
|
|
265
|
+
/**
|
|
266
|
+
* When provided, the table manages saved views automatically — loads from backend on init,
|
|
267
|
+
* saves/deletes via API, and restores state on load. Value is the `page` key used in
|
|
268
|
+
* `GET /api/saved-views?page=<savedViewsPage>`. No host wiring needed.
|
|
269
|
+
*/
|
|
270
|
+
readonly page: import("@angular/core").InputSignal<string>;
|
|
271
|
+
/** Show column config + saved views toolbar. Defaults true. Set false to hide both. */
|
|
272
|
+
readonly showToolbar: import("@angular/core").InputSignal<boolean>;
|
|
273
|
+
/**
|
|
274
|
+
* Show the More Actions menu in the toolbar (Import, Columns, Save/Saved Views and page-defined menu items). Defaults true.
|
|
275
|
+
* Set false for a page that has nothing to offer there; Export, page-defined primary/secondary buttons and the search box
|
|
276
|
+
* are unaffected. The table still hides the menu by itself when it is empty and unfiltered.
|
|
277
|
+
*/
|
|
278
|
+
readonly showMoreActions: import("@angular/core").InputSignal<boolean>;
|
|
279
|
+
/**
|
|
280
|
+
* Words a quick-filter tab. Called with the tab's key (a key of `/counts`, e.g. `no-deals`); the text it returns is the tab's label. Return `null`, `undefined` or `''` for a key the host does not
|
|
281
|
+
* word and the table reads it as before (the label of a column with a `badgeFn` that has that value, else the key split into capitalised words: `no-deals` → "No Deals"). Use it when a tab has no
|
|
282
|
+
* column to take its text from, e.g. a Spanish app wording `no-deals` → "Sin negocios". The tab's `value` (the key sent to the backend) never changes. Default: none (every label as before).
|
|
283
|
+
*/
|
|
284
|
+
readonly quickTabLabelFn: import("@angular/core").InputSignal<((key: string) => string | null | undefined) | null>;
|
|
285
|
+
/**
|
|
286
|
+
* Show the search box above the table. Defaults true. Set false for small fixed tables where searching is meaningless
|
|
287
|
+
* (a handful of summary rows). Quick-filter tabs and the toolbar are unaffected; when the search box, the tabs and the
|
|
288
|
+
* toolbar are all off, the header row above the table is not rendered at all.
|
|
289
|
+
*/
|
|
290
|
+
readonly showSearch: import("@angular/core").InputSignal<boolean>;
|
|
291
|
+
/**
|
|
292
|
+
* Show the quick-filter tabs ("All / Active / ..."), which the table builds from the `/counts` endpoint. Defaults true:
|
|
293
|
+
* with correct `/counts` data the tabs show. Set false for a table where the tabs add nothing (a small breakdown table in a
|
|
294
|
+
* side panel); search, toolbar, column filters and the counts requests are unaffected. When the search box, the toolbar and the
|
|
295
|
+
* tabs are all off, the header row is not rendered at all.
|
|
296
|
+
*/
|
|
297
|
+
readonly showQuickTabs: import("@angular/core").InputSignal<boolean>;
|
|
298
|
+
/** `false` hides the pager under the rows: the table shows only the first `pageSize` rows (a dashboard card that links to the full list instead). Default `true`. */
|
|
299
|
+
readonly showPagination: import("@angular/core").InputSignal<boolean>;
|
|
300
|
+
/**
|
|
301
|
+
* Keep the Actions column (the row "⋮" menu) pinned to the right edge while the table scrolls sideways, so a wide table never hides it
|
|
302
|
+
* off-screen. Default false: every existing table is unchanged. Only matters when the table is wider than its container (columns scroll);
|
|
303
|
+
* phones use the card list, which has no sideways scroll.
|
|
304
|
+
*/
|
|
305
|
+
readonly stickyActions: import("@angular/core").InputSignal<boolean>;
|
|
306
|
+
/**
|
|
307
|
+
* Optional heading shown at the start of the header row, on the same row as the search box / tabs on the left and the
|
|
308
|
+
* Export / primary buttons on the right (rendered as an `<h3>`, also while the table is loading and when it is empty).
|
|
309
|
+
* Empty (default) renders nothing. Use it when the table is a section of a page and its title belongs with its toolbar.
|
|
310
|
+
*/
|
|
311
|
+
readonly tableTitle: import("@angular/core").InputSignal<string>;
|
|
312
|
+
/** False when the header row would be empty (no title, no search box, no toolbar, no quick-filter tabs). */
|
|
313
|
+
protected readonly _showHeader: Signal<boolean>;
|
|
314
|
+
/** Optional endpoint that returns Record<string,number> counts per quick-filter value. */
|
|
315
|
+
readonly countsEndpoint: import("@angular/core").InputSignal<string>;
|
|
316
|
+
/**
|
|
317
|
+
* Optional footer totals row. Path relative to `baseUrl` (like `endpoint`). When set, the table GETs it with the same query params as the
|
|
318
|
+
* rows request except paging and sorting (host `params`, lower-cased `search` + `searchFields`, active tab as `filter`, column filters) and
|
|
319
|
+
* shows a footer built from each column's `footerFn`. The response is `Record<string, string | number | null>`. Totals follow the FILTERED
|
|
320
|
+
* set, not the page; they are refetched on search / tab / filter / params / refresh() / resetToFirstPage() / import (not on paging or
|
|
321
|
+
* sorting) and never cached. Hidden while loading, on error, with zero rows, or when the totals request fails (silently).
|
|
322
|
+
*/
|
|
323
|
+
readonly totalsEndpoint: import("@angular/core").InputSignal<string>;
|
|
324
|
+
/** Text of the footer's label cell (first visible column) and the phone summary card's accessible name. */
|
|
325
|
+
/** Label of the footer totals row; `null` (default) = the library text for the active language. */
|
|
326
|
+
readonly totalsLabel: import("@angular/core").InputSignal<string | null>;
|
|
327
|
+
protected readonly totalsLabelText: Signal<string>;
|
|
328
|
+
/**
|
|
329
|
+
* Optional extra query params owned by the host page (e.g. a period picker or a parent-record id),
|
|
330
|
+
* sent with every row, /counts, /filter-counts and export request. When the value changes the table
|
|
331
|
+
* goes back to page 1 and refreshes rows + counts; search, sort, tab and column filters are kept.
|
|
332
|
+
* Omit it (default null) and nothing changes. Empty / null values are dropped.
|
|
333
|
+
* [params]="{ period: period() }"
|
|
334
|
+
*/
|
|
335
|
+
readonly params: import("@angular/core").InputSignal<Record<string, string | null | undefined> | null>;
|
|
336
|
+
/** Action buttons rendered in the table header. Primary variant = standalone button; secondary = More Actions dropdown. */
|
|
337
|
+
readonly tableButtons: import("@angular/core").InputSignal<ToolbarAction[]>;
|
|
338
|
+
/** Optional endpoint that returns Record<string, Record<string,number>> counts per badge column value. */
|
|
339
|
+
readonly filterCountsEndpoint: import("@angular/core").InputSignal<string>;
|
|
340
|
+
/** Import/export config. When provided, Import + Export buttons are automatically added to the toolbar. */
|
|
341
|
+
readonly importExportConfig: import("@angular/core").InputSignal<ImportExportConfig | null>;
|
|
342
|
+
/** Competitor/source profiles for the import wizard. App-defined — not baked into the library. */
|
|
343
|
+
readonly importSources: import("@angular/core").InputSignal<ImportSource[] | undefined>;
|
|
344
|
+
/**
|
|
345
|
+
* Page permission. Anything other than 'full' makes the table read-only: no Import,
|
|
346
|
+
* no bulk update/delete and no checkbox column (even when `selectable` is set), no page-defined
|
|
347
|
+
* toolbar buttons except Export and pure reads marked `allowReadOnly` (More Actions offers only their existing Saved Views), and the
|
|
348
|
+
* row menu offers only View (`type: 'view'`).
|
|
349
|
+
* Rows with nothing to show get no "⋮" trigger; the Actions column is dropped when no row has View.
|
|
350
|
+
*/
|
|
351
|
+
readonly permission: import("@angular/core").InputSignal<TablePermission>;
|
|
352
|
+
/** The app's optional central read-only switch (`provideReadOnlyMode`): while it is on, every table is read-only whatever its `permission` says. Off / not provided = no effect. */
|
|
353
|
+
private readonly _readOnlyMode;
|
|
354
|
+
protected readonly _canEdit: Signal<boolean>;
|
|
355
|
+
/** Enable row checkboxes and selection count bar (without bulk actions). */
|
|
356
|
+
readonly selectable: import("@angular/core").InputSignal<boolean>;
|
|
357
|
+
/** Singular item label used in the selection count (e.g. "contact" → "3 contacts selected"). */
|
|
358
|
+
readonly itemLabel: import("@angular/core").InputSignal<string>;
|
|
359
|
+
/** Plural label; defaults to English pluralisation of `itemLabel` ("property" → "properties"). */
|
|
360
|
+
readonly itemLabelPlural: import("@angular/core").InputSignal<string>;
|
|
361
|
+
/** The singular item word: the host's `itemLabel`, or (when the host left the default `item`) the dictionary word for the active language. */
|
|
362
|
+
protected _itemWord(): string;
|
|
363
|
+
/** The plural item word: the host's `itemLabelPlural`, else the dictionary word for the default item, else English pluralisation of the host's label (hosts in other languages pass `itemLabelPlural`). */
|
|
364
|
+
protected _itemsWord(): string;
|
|
365
|
+
protected _countLabel(count: number): string;
|
|
366
|
+
/** "3 contacts selected" in the active language (singular/plural forms differ in Spanish: "1 contacto seleccionado"). */
|
|
367
|
+
protected _selectedText(): string;
|
|
368
|
+
/** `<base>_one` / `<base>_other` label for a count, with `count` (and any `extra` placeholders) filled in. */
|
|
369
|
+
private _plural;
|
|
370
|
+
/** "3 updated, 1 skipped, 2 not allowed." when some rows were left out ("Actualización: 3, omisiones: 1, sin permiso: 2." in Spanish), else "3 item(s) updated.". */
|
|
371
|
+
private _resultSummary;
|
|
372
|
+
/** "3 item(s) updated." in English (the singular word and "(s)"); "Actualización: 3 contactos." in a language whose dictionary turns `dataTable.summaryUsesCountAgreement` on (the word agrees with the count). */
|
|
373
|
+
private _summaryAll;
|
|
374
|
+
/** Default bulk-Delete confirm title: "Delete " + the title-cased plural item label ("template" → "Delete Templates", "lien waiver" → "Delete Lien Waivers"). */
|
|
375
|
+
protected _deleteTitle(): string;
|
|
376
|
+
/**
|
|
377
|
+
* Column keys to enable bulk updates for, plus the special keyword `'delete'`.
|
|
378
|
+
* e.g. `['status', 'type', 'delete']`
|
|
379
|
+
* The table matches each key to its column definition to get the label and options —
|
|
380
|
+
* no extra config or API calls needed. Setting this automatically enables row checkboxes.
|
|
381
|
+
* Use `{ field, exclude }` to leave values users can't set out of that field's bulk select:
|
|
382
|
+
* `[{ field: 'status', exclude: ['EXPIRED'] }, 'delete']` (see `BulkUpdateOption`).
|
|
383
|
+
* Use `{ field, allowedFrom: { TARGET: [sourceValues] } }` for a status workflow: only targets some selected row can
|
|
384
|
+
* legally move to are offered, and rows that can't move are skipped (never sent).
|
|
385
|
+
* Use `{ field: 'resend', action: true, label: 'Resend', eligible?, confirm?, variant?, doneLabel? }` for a direct bulk action: a bar button
|
|
386
|
+
* that confirms and POSTs `<endpoint>/bulk/<field>` with `{ ids }` of the eligible rows (no select, no column needed).
|
|
387
|
+
* A blank `label` falls back to the key split on `_`, `-` and camelCase with only the first word capitalised ('send_reminder' -> 'Send reminder');
|
|
388
|
+
* two actions with the same key collapse to the first; an `eligible` that throws counts as "row not eligible".
|
|
389
|
+
*/
|
|
390
|
+
readonly bulkUpdateOptions: import("@angular/core").InputSignal<BulkUpdateOption<T>[]>;
|
|
391
|
+
readonly rowClick: import("@angular/core").OutputEmitterRef<T>;
|
|
392
|
+
/**
|
|
393
|
+
* A `cellType: 'link'` anchor was clicked (plain or with ctrl/cmd/shift; a middle-button click is an `auxclick`, not emitted). Fires instead of
|
|
394
|
+
* `rowClick`: the anchor stops the click from reaching the row. For an in-app `routerLink` the table has already
|
|
395
|
+
* called `Router.navigateByUrl` on a plain left click (modifier / `_blank` clicks are left to the browser).
|
|
396
|
+
*/
|
|
397
|
+
readonly linkClick: import("@angular/core").OutputEmitterRef<LinkClickEvent<T>>;
|
|
398
|
+
/**
|
|
399
|
+
* Optional per-row opt-out for (rowClick): rows where it returns false get no pointer cursor,
|
|
400
|
+
* no tab stop and no click/keyboard activation (e.g. log rows with no linked record).
|
|
401
|
+
*/
|
|
402
|
+
readonly rowClickableFn: import("@angular/core").InputSignal<((item: T) => boolean) | null>;
|
|
403
|
+
/**
|
|
404
|
+
* Accessible name of a row / card (e.g. `View case for Jane Doe`) so a screen reader announces what activating it does.
|
|
405
|
+
* Return '' (or omit the input) for no `aria-label`.
|
|
406
|
+
*/
|
|
407
|
+
readonly rowLabelFn: import("@angular/core").InputSignal<((item: T) => string) | null>;
|
|
408
|
+
readonly tableButtonClick: import("@angular/core").OutputEmitterRef<string>;
|
|
409
|
+
/** Emitted when a row action with opens === 'panel' is clicked.
|
|
410
|
+
* The host component listens to this and opens the appropriate side panel or form modal. */
|
|
411
|
+
readonly panelActionClick: import("@angular/core").OutputEmitterRef<{
|
|
412
|
+
type: string;
|
|
413
|
+
item: T;
|
|
414
|
+
}>;
|
|
415
|
+
readonly saveViewClick: import("@angular/core").OutputEmitterRef<void>;
|
|
416
|
+
readonly loadViewClick: import("@angular/core").OutputEmitterRef<SavedView>;
|
|
417
|
+
readonly deleteViewClick: import("@angular/core").OutputEmitterRef<string>;
|
|
418
|
+
readonly imported: import("@angular/core").OutputEmitterRef<void>;
|
|
419
|
+
readonly selectionChange: import("@angular/core").OutputEmitterRef<Set<string>>;
|
|
420
|
+
/**
|
|
421
|
+
* Emitted with the active quick-filter tab's key whenever it changes — a tab click, "Clear filters" (`''`),
|
|
422
|
+
* or a saved view being applied. `''` means the "All" tab. Lets a host page know which tab the user is on
|
|
423
|
+
* (e.g. to preselect it in an Add panel).
|
|
424
|
+
*/
|
|
425
|
+
readonly tabChange: import("@angular/core").OutputEmitterRef<string>;
|
|
426
|
+
/** Emitted when the user applies a bulk action. The table has already filtered to eligible IDs. */
|
|
427
|
+
readonly bulkAction: import("@angular/core").OutputEmitterRef<BulkActionEvent>;
|
|
428
|
+
/**
|
|
429
|
+
* Emitted when the user clicks a bulk action declared `{ field, action: true, opens: 'panel' }`. The table sends nothing: the host opens its
|
|
430
|
+
* own panel for `rows` and, when it has finished, calls `clearSelection()` and `refresh()` on the table.
|
|
431
|
+
*/
|
|
432
|
+
readonly bulkPanelClick: import("@angular/core").OutputEmitterRef<BulkPanelEvent<T>>;
|
|
433
|
+
/**
|
|
434
|
+
* Emitted after every rows request that completes (a request superseded by a newer one emits nothing; first load, page, sort, search, tab, filter, `refresh()` ...): `{ ok: true, total }` when the rows
|
|
435
|
+
* arrived (`total` = all matching rows), `{ ok: false, total }` when the request failed (the rows on screen are kept, `total` is the last known).
|
|
436
|
+
* Lets a host refresh something that must follow the table (e.g. a failure banner above it).
|
|
437
|
+
*/
|
|
438
|
+
readonly loaded: import("@angular/core").OutputEmitterRef<{
|
|
439
|
+
ok: boolean;
|
|
440
|
+
total: number;
|
|
441
|
+
}>;
|
|
442
|
+
/** Emitted after a built-in single-row delete completes successfully. */
|
|
443
|
+
readonly rowDeleted: import("@angular/core").OutputEmitterRef<T>;
|
|
444
|
+
/**
|
|
445
|
+
* Optional drag-and-drop ordering of the rows. Off by default; when `true` (and the user has full access) every row gets a grip
|
|
446
|
+
* (drag it, or focus it and use the arrow keys / Home / End; phone cards get Move up / Move down buttons). Reordering is only
|
|
447
|
+
* offered while the list is in its stored order: with a sort, search, quick tab or column filter active the grips are disabled
|
|
448
|
+
* (their tooltip says why), because the visible order is then not the stored one. The move is applied to the page on screen at
|
|
449
|
+
* once and announced as `(rowReorder)`; the host saves it (a failed save should call `refresh()` to bring back the stored order).
|
|
450
|
+
*/
|
|
451
|
+
readonly reorderable: import("@angular/core").InputSignal<boolean>;
|
|
452
|
+
/** Emitted after the user moves a row: `items` is the page in its new order, `from` / `to` are page indexes, `offset` is the number of rows on earlier pages. */
|
|
453
|
+
readonly rowReorder: import("@angular/core").OutputEmitterRef<TableRowReorderEvent<T>>;
|
|
454
|
+
private readonly config;
|
|
455
|
+
private readonly http;
|
|
456
|
+
private readonly destroyRef;
|
|
457
|
+
protected readonly labels: UiLabelsService;
|
|
458
|
+
private readonly _confirmSvc;
|
|
459
|
+
private readonly _toast;
|
|
460
|
+
protected readonly _items: import("@angular/core").WritableSignal<T[]>;
|
|
461
|
+
/** Public read-only signal of current page items — used by host components for bulk selection. */
|
|
462
|
+
readonly items: Signal<T[]>;
|
|
463
|
+
protected readonly _selectedIds: import("@angular/core").WritableSignal<Set<string>>;
|
|
464
|
+
protected readonly _total: import("@angular/core").WritableSignal<number>;
|
|
465
|
+
protected readonly _loading: import("@angular/core").WritableSignal<boolean>;
|
|
466
|
+
protected readonly _hasLoaded: import("@angular/core").WritableSignal<boolean>;
|
|
467
|
+
/** Image URLs that failed to load — their cells show the placeholder instead. */
|
|
468
|
+
/** True only while a SEARCH-triggered load is in flight (drives the search box spinner). */
|
|
469
|
+
protected readonly _searchLoading: import("@angular/core").WritableSignal<boolean>;
|
|
470
|
+
private _searchPending;
|
|
471
|
+
protected readonly _failedImages: import("@angular/core").WritableSignal<Set<string>>;
|
|
472
|
+
private readonly _numericKeys;
|
|
473
|
+
protected readonly _tabCounts: import("@angular/core").WritableSignal<Record<string, number>>;
|
|
474
|
+
protected readonly _filterCounts: import("@angular/core").WritableSignal<Record<string, Record<string, number>>>;
|
|
475
|
+
private _tabCountsSub?;
|
|
476
|
+
private _filterCountsSub?;
|
|
477
|
+
/**
|
|
478
|
+
* Values that actually occur in the data (count > 0). Shared by quick-filter tabs
|
|
479
|
+
* and column filters so both follow the same rule: with only one value there is
|
|
480
|
+
* nothing to filter on — tabs are disabled and the column filter icon is hidden.
|
|
481
|
+
*/
|
|
482
|
+
private _presentKeys;
|
|
483
|
+
/** Auto-generates tabs from countsEndpoint keys. */
|
|
484
|
+
protected readonly _effectiveTabs: Signal<QuickFilterTab[]>;
|
|
485
|
+
/**
|
|
486
|
+
* Badge label for a quick-filter tab key, so a tab reads exactly like the column's badges
|
|
487
|
+
* (`signsAndPrint` → "Signs & Print", `mlsFees` → "MLS Fees"). The key is matched to a value from
|
|
488
|
+
* /filter-counts of a column with a badgeFn, ignoring case, dashes, underscores and spaces.
|
|
489
|
+
* null when nothing matches — the caller falls back to splitting the key.
|
|
490
|
+
*/
|
|
491
|
+
private _columnBadgeLabel;
|
|
492
|
+
protected readonly _error: import("@angular/core").WritableSignal<string | null>;
|
|
493
|
+
/** Phone card list is only a role=list while it contains listitems: skeleton cards or real rows (not error / empty / no-match). */
|
|
494
|
+
protected readonly _cardListHasItems: Signal<boolean>;
|
|
495
|
+
private readonly _loadFailed;
|
|
496
|
+
/**
|
|
497
|
+
* True from a failed load (the table shows its error state) until a later load SUCCEEDS. Unlike the error state itself it stays true while
|
|
498
|
+
* Retry / a reload is in flight, so a host can keep its own controls (a date range card, say) out of the page for the whole time the
|
|
499
|
+
* table is not showing real data. Read it through the table reference: `tableRef()?.loadFailed()`.
|
|
500
|
+
*/
|
|
501
|
+
readonly loadFailed: Signal<boolean>;
|
|
502
|
+
protected readonly _search: import("@angular/core").WritableSignal<string>;
|
|
503
|
+
/** The search text as sent to the API: lower-cased, so every search is case-insensitive whatever the backend does. The input still shows what the user typed. */
|
|
504
|
+
protected readonly _searchParam: Signal<string>;
|
|
505
|
+
protected readonly _page: import("@angular/core").WritableSignal<number>;
|
|
506
|
+
protected readonly _sortField: import("@angular/core").WritableSignal<string | null>;
|
|
507
|
+
protected readonly _sortDir: import("@angular/core").WritableSignal<SortDir>;
|
|
508
|
+
protected readonly _activeTab: import("@angular/core").WritableSignal<string>;
|
|
509
|
+
protected readonly _colFilterValues: import("@angular/core").WritableSignal<Record<string, string[]>>;
|
|
510
|
+
/**
|
|
511
|
+
* Opt-in numeric range filters (`<ui-data-table [rangeFilters]>`): a visible column whose key is listed gets a Min / Max filter (same funnel icon
|
|
512
|
+
* and popover as the value list; the range replaces the value list for that column). Empty (default) = no range filter anywhere: no icon, no
|
|
513
|
+
* param, no saved-view field. The table sends `<minParam>` / `<maxParam>` on rows, export and totals (never on /counts or /filter-counts, like
|
|
514
|
+
* every column filter); the backend filters.
|
|
515
|
+
*/
|
|
516
|
+
readonly rangeFilters: import("@angular/core").InputSignal<RangeFilterConfig[]>;
|
|
517
|
+
/** Applied ranges by column key (bounds are finite numbers; a bound that is null is omitted). */
|
|
518
|
+
protected readonly _rangeValues: import("@angular/core").WritableSignal<Record<string, ColumnRangeValue>>;
|
|
519
|
+
/** Listed configs by column key, with defaults resolved. */
|
|
520
|
+
private readonly _rangeSpecs;
|
|
521
|
+
/**
|
|
522
|
+
* Ranges of columns that are no longer listed are forgotten, so listing the column again later starts empty (no stale range comes back).
|
|
523
|
+
* When a forgotten range had a bound, the rows were filtered by it, so the rows are reloaded (page 1, rows only: counts never carry filters)
|
|
524
|
+
* and match the params again. A host that briefly passes `[]` therefore drops the user's ranges.
|
|
525
|
+
*/
|
|
526
|
+
private readonly _pruneRanges;
|
|
527
|
+
/** Query params of the applied ranges (only listed keys; empty bounds omitted). */
|
|
528
|
+
protected readonly _rangeParams: Signal<Record<string, string>>;
|
|
529
|
+
/** The range filter of a header cell: null unless the table lists this column's key. */
|
|
530
|
+
protected getRangeFilter(col: ColumnDef): {
|
|
531
|
+
spec: ColumnRangeSpec;
|
|
532
|
+
value: ColumnRangeValue;
|
|
533
|
+
} | null;
|
|
534
|
+
protected readonly _phoneRangeCols: Signal<{
|
|
535
|
+
col: ColumnDef;
|
|
536
|
+
rf: {
|
|
537
|
+
spec: ColumnRangeSpec;
|
|
538
|
+
value: ColumnRangeValue;
|
|
539
|
+
};
|
|
540
|
+
}[]>;
|
|
541
|
+
protected onRangeChange(key: string, value: ColumnRangeValue): void;
|
|
542
|
+
/** True while a listed range filter has a bound set. */
|
|
543
|
+
private _anyRangeActive;
|
|
544
|
+
protected readonly _activeViewId: import("@angular/core").WritableSignal<string | null>;
|
|
545
|
+
/** Internal saved views managed by the table when savedViewsPage is set. */
|
|
546
|
+
private readonly _internalSavedViews;
|
|
547
|
+
/** Resolved saved views — internal when savedViewsPage is set, host-supplied otherwise. */
|
|
548
|
+
protected readonly _effectiveSavedViews: Signal<SavedView[]>;
|
|
549
|
+
/** Empty = show all defaultVisible; non-empty = show exactly these keys */
|
|
550
|
+
protected readonly _visibleColumns: import("@angular/core").WritableSignal<string[]>;
|
|
551
|
+
/** Drops the key of every `cellType: 'actions'` column — Actions is never part of a configured/saved column list. */
|
|
552
|
+
protected _configurableKeys(keys: string[] | null | undefined): string[];
|
|
553
|
+
protected readonly _ieRef: Signal<ImportExportComponent | undefined>;
|
|
554
|
+
/** Tag overflow tooltip — fixed position to escape table's overflow:auto */
|
|
555
|
+
protected readonly _tagTooltip: import("@angular/core").WritableSignal<{
|
|
556
|
+
tags: any[];
|
|
557
|
+
x: number;
|
|
558
|
+
y: number;
|
|
559
|
+
} | null>;
|
|
560
|
+
protected readonly visibleCols: Signal<ColumnDef[]>;
|
|
561
|
+
protected readonly _effectiveSearchPlaceholder: Signal<string>;
|
|
562
|
+
/**
|
|
563
|
+
* True when the host binds (rowClick). Signal outputs have no public "observed" flag, so read the
|
|
564
|
+
* OutputEmitterRef's subscriber list (a method, not a computed: subscribers aren't a signal).
|
|
565
|
+
* Falls back to true if Angular ever changes that internal shape.
|
|
566
|
+
*/
|
|
567
|
+
protected _rowClickable(): boolean;
|
|
568
|
+
protected readonly skeletonCols: Signal<unknown[]>;
|
|
569
|
+
protected readonly skeletonRows: Signal<unknown[]>;
|
|
570
|
+
/** Splits visible columns into roles for the mobile card view. */
|
|
571
|
+
protected readonly _cardCols: Signal<{
|
|
572
|
+
titleCol: ColumnDef | null;
|
|
573
|
+
imageCol: ColumnDef | null;
|
|
574
|
+
badgeCols: ColumnDef[];
|
|
575
|
+
tagCols: ColumnDef[];
|
|
576
|
+
detailCols: ColumnDef[];
|
|
577
|
+
actionsCol: ColumnDef | null;
|
|
578
|
+
}>;
|
|
579
|
+
/**
|
|
580
|
+
* A successful load returned no rows and no search, tab or column filter is active: there is nothing to search,
|
|
581
|
+
* export or configure, so only the primary buttons (Add) stay in the toolbar. Host `params` (a date range, a selected
|
|
582
|
+
* parent) don't count — the host's own controls for them stay on screen — but an active search, tab or column filter
|
|
583
|
+
* keeps the full toolbar so the user can clear it.
|
|
584
|
+
*/
|
|
585
|
+
protected readonly _emptyUnfiltered: Signal<boolean>;
|
|
586
|
+
/** Buttons handed to the toolbar: all of them, or only the primary ones while the table is empty and unfiltered. */
|
|
587
|
+
protected readonly _toolbarButtons: Signal<ToolbarAction[]>;
|
|
588
|
+
/** True while the table is empty and unfiltered but the host kept a More Actions item (`keepWhenEmpty`) — the menu stays. */
|
|
589
|
+
protected readonly _keepMoreActions: Signal<boolean>;
|
|
590
|
+
/** The reorder column is part of the table (the grips may still be disabled, see `_reorderActive`). */
|
|
591
|
+
protected readonly _reorderOn: Signal<boolean>;
|
|
592
|
+
/** Moves are allowed: the list is in its stored order (no sort / search / tab / filter), loaded, and has more than one row. */
|
|
593
|
+
protected readonly _reorderActive: Signal<boolean>;
|
|
594
|
+
/** Why the grips are off: an active sort / search / tab / filter is the reason to name even when it left one row ("nothing to reorder" would hide it). */
|
|
595
|
+
protected readonly _reorderHint: Signal<string>;
|
|
596
|
+
/** One id per table, so each grip can point to the instructions (aria-describedby) even with several tables on a page. */
|
|
597
|
+
protected readonly _reorderHelpId: string;
|
|
598
|
+
protected readonly _dragFrom: import("@angular/core").WritableSignal<number | null>;
|
|
599
|
+
/** Key of the row being dragged: the index can go stale if the page reloads mid-drag, the key cannot. */
|
|
600
|
+
private _dragKey;
|
|
601
|
+
protected readonly _dragOver: import("@angular/core").WritableSignal<number | null>;
|
|
602
|
+
/** Polite screen-reader message after a move. */
|
|
603
|
+
protected readonly _reorderAnnouncement: import("@angular/core").WritableSignal<string>;
|
|
604
|
+
private readonly _host;
|
|
605
|
+
protected reorderLabel(item: T): string;
|
|
606
|
+
protected onGripDragStart(e: DragEvent, index: number): void;
|
|
607
|
+
protected onGripDragEnd(): void;
|
|
608
|
+
protected onRowDragOver(e: DragEvent, index: number): void;
|
|
609
|
+
protected onRowDrop(e: DragEvent, index: number): void;
|
|
610
|
+
protected onGripKeydown(e: KeyboardEvent, index: number): void;
|
|
611
|
+
/**
|
|
612
|
+
* A Move up / Move down button (touch screens and phone cards). The pressed button can end up disabled (the row reached an end), and a
|
|
613
|
+
* focused control that gets disabled drops focus to the page, so focus goes to the row's other Move button then.
|
|
614
|
+
*/
|
|
615
|
+
protected moveByButton(index: number, direction: -1 | 1): void;
|
|
616
|
+
/** Moves the row at `from` to `to` (both page indexes) in the table and tells the host. false = nothing changed. */
|
|
617
|
+
protected moveRow(from: number, to: number): boolean;
|
|
618
|
+
protected readonly _hasActiveFilters: Signal<boolean>;
|
|
619
|
+
/** Host `params` with empty values dropped; equal by content so a new object with the same values doesn't reload. */
|
|
620
|
+
protected readonly _extraParams: Signal<Record<string, string>>;
|
|
621
|
+
/** Current active filter/search/sort params — passed to the export so it exports the filtered view. */
|
|
622
|
+
/** Visible searchable column keys (comma-joined) — the table and Export only search what's on screen. */
|
|
623
|
+
protected readonly _searchFields: Signal<string>;
|
|
624
|
+
/** Latest footer totals response (null = none / failed / not requested). */
|
|
625
|
+
protected readonly _totals: import("@angular/core").WritableSignal<Record<string, string | number | null> | null>;
|
|
626
|
+
private _totalsSub?;
|
|
627
|
+
/** Set by paging and sorting: they reload rows but never change the totals. */
|
|
628
|
+
private _totalsSkipNext;
|
|
629
|
+
protected readonly _footerVisible: Signal<boolean>;
|
|
630
|
+
/** Footer text per visible column key (only columns whose footerFn returns text). */
|
|
631
|
+
protected readonly _footerCells: Signal<Record<string, string>>;
|
|
632
|
+
protected readonly _footerPhoneLines: Signal<{
|
|
633
|
+
key: string;
|
|
634
|
+
label: string;
|
|
635
|
+
value: string;
|
|
636
|
+
}[]>;
|
|
637
|
+
/** Totals request params: the export params without sorting (the rows request without paging and sorting). */
|
|
638
|
+
private _totalsParams;
|
|
639
|
+
/** `keepShown`: a silent (background) refresh keeps the current footer on screen until the new totals arrive. */
|
|
640
|
+
private _fetchTotals;
|
|
641
|
+
protected readonly _exportParams: Signal<Record<string, string>>;
|
|
642
|
+
/**
|
|
643
|
+
* Toolbar buttons with auto-injected Export (always) and Import (only when
|
|
644
|
+
* importExportConfig.importEndpoint is set) when importExportConfig is provided.
|
|
645
|
+
*/
|
|
646
|
+
protected readonly _effectiveButtons: Signal<ToolbarAction[]>;
|
|
647
|
+
/** True when checkboxes should be shown — either explicit selectable or bulk options are defined. */
|
|
648
|
+
/** Row checkboxes — never for read-only users (no bulk column at all), even when `selectable` is set. */
|
|
649
|
+
protected readonly _isSelectable: Signal<boolean>;
|
|
650
|
+
/**
|
|
651
|
+
* Derives internal action definitions from the `bulkUpdateOptions` string array.
|
|
652
|
+
* 'delete' → built-in danger action with table-managed confirm dialog.
|
|
653
|
+
* `{ field, action: true, label }` → direct action (type `action-<key>`, no column needed, no select).
|
|
654
|
+
* Everything else → matched to a column: label = the entry's `label` when given, else "Change {col.label}"; options from column config.
|
|
655
|
+
*/
|
|
656
|
+
protected readonly _bulkDefs: Signal<BulkActionDef[]>;
|
|
657
|
+
/** Fallback label of a direct action without one: splits the key on `_`, `-` and camelCase, capitalises the first word only ('send_reminder' / 'sendReminder' -> 'Send reminder'). */
|
|
658
|
+
private _actionKeyLabel;
|
|
659
|
+
/** Runs a direct action's `eligible` predicate; a predicate that throws counts as "row not eligible". */
|
|
660
|
+
private _isActionEligible;
|
|
661
|
+
/** Options for a field-based bulk action: the field's options (or, with `listAll`, its full value set) minus the entry's `exclude` values. */
|
|
662
|
+
private _bulkOptionsFor;
|
|
663
|
+
/**
|
|
664
|
+
* `listAll` options: a list of values = exactly that set in that order; `true` = the usual options (filter counts, or the page's distinct values)
|
|
665
|
+
* plus every `allowedFrom` target not yet listed. Labels go through the column's `badgeFn`, like the usual options. Blank and repeated values are dropped.
|
|
666
|
+
*/
|
|
667
|
+
private _listAllOptions;
|
|
668
|
+
/** The loaded-page rows the user has selected. */
|
|
669
|
+
private _selectedRows;
|
|
670
|
+
/** The `canApply` verdict of a bulk change for the whole selection: allowed, or the reason it is refused (a throwing rule refuses). */
|
|
671
|
+
private _applyVerdict;
|
|
672
|
+
/** True when a row whose field currently holds `current` may be moved to `target` by this action. */
|
|
673
|
+
private _canBulkMove;
|
|
674
|
+
/** True when `value` is in the action's `exclude` list (ignoring case, spaces, dashes and underscores). */
|
|
675
|
+
private _isBulkExcluded;
|
|
676
|
+
/** Which bulk action is currently showing its inline select (null = show action buttons). */
|
|
677
|
+
protected readonly _activeBulkType: import("@angular/core").WritableSignal<string | null>;
|
|
678
|
+
/** True while the Apply (field change) HTTP call is in flight. */
|
|
679
|
+
protected readonly _applyingBulk: import("@angular/core").WritableSignal<boolean>;
|
|
680
|
+
/** True while the bulk Delete HTTP call is in flight. */
|
|
681
|
+
protected readonly _deletingBulk: import("@angular/core").WritableSignal<boolean>;
|
|
682
|
+
protected readonly _activeBulkDef: Signal<BulkActionDef | null>;
|
|
683
|
+
/** Bound to the inline ui-select via ngModel. Plain property — signal change triggers re-render. */
|
|
684
|
+
protected _bulkSelectStr: string;
|
|
685
|
+
/** Options for the active bulk action's inline select, filtered to exclude no-ops. */
|
|
686
|
+
protected readonly _eligibleBulkOptions: Signal<{
|
|
687
|
+
value: string;
|
|
688
|
+
label: string;
|
|
689
|
+
disabled?: boolean;
|
|
690
|
+
}[]>;
|
|
691
|
+
/** Id prefix of the reason hints beside the inline select (the select is linked to them with aria-describedby). */
|
|
692
|
+
protected readonly _bulkHintId: string;
|
|
693
|
+
/** Space-separated ids of the reason hints, for the select's `aria-describedby` ('' = none, no attribute). */
|
|
694
|
+
protected readonly _bulkOptionHintIds: Signal<string>;
|
|
695
|
+
/** "<option>: <reason>" for each target the whole-selection rule (`canApply`) refuses right now; shown as visible text beside the inline select. */
|
|
696
|
+
protected readonly _bulkOptionHints: Signal<string[]>;
|
|
697
|
+
protected readonly _allSelected: Signal<boolean>;
|
|
698
|
+
protected readonly _someSelected: Signal<boolean>;
|
|
699
|
+
/**
|
|
700
|
+
* The row's human name for assistive tech: the locked column's value (or the first avatar-name / text column),
|
|
701
|
+
* through the column's own `nameFn` / `render` so it reads exactly like the cell. '' when there is none.
|
|
702
|
+
*/
|
|
703
|
+
protected rowName(item: T): string;
|
|
704
|
+
/**
|
|
705
|
+
* Rows of the loaded page whose name repeats get a position suffix (" (1 of 2)", " (2 of 2)"), so a screen-reader user never hears two rows
|
|
706
|
+
* announced identically ("Select Jane Cooper" twice). Names that are unique on the page — and rows with no name — are left exactly as they are.
|
|
707
|
+
*/
|
|
708
|
+
private readonly _rowNameSuffix;
|
|
709
|
+
/** A row's accessible name: its name, plus the position among rows of the same name when that name repeats on the page. */
|
|
710
|
+
protected rowAccessibleName(item: T): string;
|
|
711
|
+
/** "Select Acme Electric" — a row's selection checkbox name ("Select Acme Electric (2 of 3)" when the name repeats on the page). */
|
|
712
|
+
protected selectRowLabel(item: T): string;
|
|
713
|
+
/**
|
|
714
|
+
* "Row actions for Acme Electric" — a row's actions-menu trigger name. It still contains the generic "Row actions"
|
|
715
|
+
* text, so lookups by that accessible name (substring) keep finding the button, while a screen-reader user now
|
|
716
|
+
* hears which row it belongs to ("Row actions for Acme Electric (2 of 3)" when the name repeats on the page).
|
|
717
|
+
*/
|
|
718
|
+
protected rowActionsLabel(item: T): string;
|
|
719
|
+
protected toggleSelectAll(): void;
|
|
720
|
+
protected toggleRow(item: T): void;
|
|
721
|
+
/**
|
|
722
|
+
* The table's current query as the parameters it sends with Export: the host `params`, the lower-cased `search` (+ `searchFields`),
|
|
723
|
+
* the active quick tab as `filter`, `sort` + `direction`, and every active column filter (multi-values comma-joined). A new copy
|
|
724
|
+
* on every call; reading it changes nothing. A host uses it to act on exactly what the table shows (print the same rows, call a
|
|
725
|
+
* report endpoint with the same search / filters) without keeping its own copy of that state. Paging is not included.
|
|
726
|
+
*/
|
|
727
|
+
currentQuery(): Record<string, string>;
|
|
728
|
+
/** Clears the selection — call from the host component after a bulk action completes. */
|
|
729
|
+
clearSelection(): void;
|
|
730
|
+
resetColumns(): void;
|
|
731
|
+
/**
|
|
732
|
+
* Host-written confirm copy for a bulk action (null = use the default wording). `skippedNote` is the library's standard
|
|
733
|
+
* skipped-rows sentence, appended on a new paragraph unless the copy sets `omitSkippedNote`.
|
|
734
|
+
*/
|
|
735
|
+
private _hostConfirm;
|
|
736
|
+
/** Why a bulk action can't be used right now ('' = it can). Only Delete with `deletable` and a direct action with `eligible` can be blocked. */
|
|
737
|
+
protected _bulkBlockedReason(def: BulkActionDef): string;
|
|
738
|
+
/** A panel action is not shown while the host says it is unavailable or no selected row is eligible. Everything else is always shown. */
|
|
739
|
+
protected _bulkHidden(def: BulkActionDef): boolean;
|
|
740
|
+
/** The distinct reasons of the currently blocked bulk actions, shown as visible text next to the disabled buttons. */
|
|
741
|
+
protected _bulkBlockedHints(): string[];
|
|
742
|
+
/** Selected rows (loaded page) split by the delete option's `deletable` predicate; without it every selected row is deletable. */
|
|
743
|
+
private _deleteSplit;
|
|
744
|
+
/** Selected rows (loaded page) split by a direct action's `eligible` predicate; without it every selected row is eligible. */
|
|
745
|
+
private _actionSplit;
|
|
746
|
+
/** Type of the direct bulk action whose request is in flight (null = none). */
|
|
747
|
+
protected readonly _runningAction: import("@angular/core").WritableSignal<string | null>;
|
|
748
|
+
/** True while a direct action's confirm dialog is open (guards against a second click). */
|
|
749
|
+
private _confirmingAction;
|
|
750
|
+
/** Panel action: no confirm and no request; hands the eligible rows to the host, which opens its own panel. */
|
|
751
|
+
private _openBulkPanel;
|
|
752
|
+
/** Direct bulk action: confirm, then POST `<endpoint>/bulk/<key>` with `{ ids }` of the eligible rows. */
|
|
753
|
+
private _runDirectAction;
|
|
754
|
+
/** Direct action that returns a file: POST `{ ids }` asking for a blob, save it as one download, toast, clear the selection. */
|
|
755
|
+
private _runDownloadAction;
|
|
756
|
+
/** The `{ message }` of a failed file request: with a blob response the error body arrives as a Blob, so it is read as text first. */
|
|
757
|
+
private _downloadErrorMessage;
|
|
758
|
+
/** Called when the user clicks a bulk action button in the selection bar. */
|
|
759
|
+
protected onBulkActionClick(def: BulkActionDef): void;
|
|
760
|
+
/** True while the field-change confirmation dialog is open (guards against a second Apply click). */
|
|
761
|
+
private _confirmingBulk;
|
|
762
|
+
/**
|
|
763
|
+
* Applies the inline-selected value for the active field-based bulk action.
|
|
764
|
+
* Asks the user to confirm first (library confirm dialog, same as bulk Delete); the request is only sent on confirm.
|
|
765
|
+
* Cancel / Escape / backdrop leave the selection and the inline select untouched.
|
|
766
|
+
*/
|
|
767
|
+
protected applyBulkAction(): Promise<void>;
|
|
768
|
+
/**
|
|
769
|
+
* Returns the eligible IDs and skipped count for a bulk action.
|
|
770
|
+
* - 'delete' — all selected are eligible
|
|
771
|
+
* - 'change-{field}' — skip rows already at targetValue
|
|
772
|
+
* - anything else — all selected are eligible
|
|
773
|
+
*/
|
|
774
|
+
private _getEligible;
|
|
775
|
+
/**
|
|
776
|
+
* Derives the available options for a given field from the table's existing config —
|
|
777
|
+
* no extra inputs or API calls needed.
|
|
778
|
+
* Priority: filterCounts → distinct item values.
|
|
779
|
+
*/
|
|
780
|
+
private _getOptionsForField;
|
|
781
|
+
/** State for the built-in single-row delete confirmation modal. */
|
|
782
|
+
protected readonly _rowDeleteTarget: import("@angular/core").WritableSignal<T | null>;
|
|
783
|
+
protected readonly _rowDeleting: import("@angular/core").WritableSignal<boolean>;
|
|
784
|
+
/** Ids the built-in delete confirm dialog is described by (aria-describedby): its message and the "what will happen" list. */
|
|
785
|
+
private readonly _confirmUid;
|
|
786
|
+
protected readonly _confirmMsgId: string;
|
|
787
|
+
protected readonly _confirmDetailsId: string;
|
|
788
|
+
protected readonly _rowDeleteConfig: import("@angular/core").WritableSignal<{
|
|
789
|
+
title: string;
|
|
790
|
+
message: string;
|
|
791
|
+
confirmLabel: string;
|
|
792
|
+
details?: string[];
|
|
793
|
+
variant?: "danger" | "primary" | "warning";
|
|
794
|
+
}>;
|
|
795
|
+
protected _confirmRowDelete(): void;
|
|
796
|
+
private readonly triggerLoad$;
|
|
797
|
+
/** Phone viewport (≤640px, same breakpoint as the card-view CSS) — renders the card list instead of the table. */
|
|
798
|
+
protected readonly _isPhone: import("@angular/core").WritableSignal<boolean>;
|
|
799
|
+
constructor();
|
|
800
|
+
/** Query params for the counts requests: host params plus the active search (and its scope). Tabs and column filters are never sent. */
|
|
801
|
+
private _countParams;
|
|
802
|
+
/**
|
|
803
|
+
* Fetches `/counts` (tab badges) and `/filter-counts` (column options). The numbers follow the SEARCH only: the
|
|
804
|
+
* requests carry the active `search` + `searchFields`, and are refetched when the search changes. Picking a tab or a
|
|
805
|
+
* column-filter option never changes them. A backend may ignore the params (counts stay tenant-wide). Stale
|
|
806
|
+
* responses are cancelled. As always, only values with a count above 0 become tabs / filter options.
|
|
807
|
+
*/
|
|
808
|
+
private _fetchCounts;
|
|
809
|
+
ngOnInit(): void;
|
|
810
|
+
/**
|
|
811
|
+
* Retry from the error state. A failed table shows no search box or quick tabs (there is nothing to search), so a search term that was
|
|
812
|
+
* active when the request failed could not be cleared any more: the retry therefore asks for the unsearched list on page 1.
|
|
813
|
+
*/
|
|
814
|
+
protected _retryAfterError(): void;
|
|
815
|
+
protected onSearchChange(val: string): void;
|
|
816
|
+
/** Phone sort control: "Default" (value '') + one entry per sortable visible column and direction ("<key>:asc|desc"). */
|
|
817
|
+
protected readonly _phoneSortOptions: Signal<{
|
|
818
|
+
value: string;
|
|
819
|
+
label: string;
|
|
820
|
+
}[]>;
|
|
821
|
+
protected readonly _phoneSortValue: Signal<string>;
|
|
822
|
+
/** Filterable visible columns (same rule as the header funnels). */
|
|
823
|
+
protected readonly _phoneFilterCols: Signal<{
|
|
824
|
+
col: ColumnDef;
|
|
825
|
+
cf: {
|
|
826
|
+
options: FilterOption[];
|
|
827
|
+
activeValues: string[];
|
|
828
|
+
};
|
|
829
|
+
}[]>;
|
|
830
|
+
/**
|
|
831
|
+
* The sort buttons / icons and the column-filter icons only show while there is something to sort or filter: not after a failed
|
|
832
|
+
* load, and not when the table is empty because nothing exists or only a search / quick tab matched nothing (clear the search to
|
|
833
|
+
* get back). Once the user has used a column header control (a column filter or a sort is active) the controls stay, even with
|
|
834
|
+
* zero rows, so they can change or clear it. Headers are plain labels otherwise.
|
|
835
|
+
*/
|
|
836
|
+
protected readonly _showColumnControls: Signal<boolean>;
|
|
837
|
+
/**
|
|
838
|
+
* Keys of sortable columns whose cell is blank ('' or '—') on every loaded row — nothing to sort by, so the sort control is
|
|
839
|
+
* hidden. Judged from the loaded page (the same text the cells show); an active sort on the column keeps its control so it
|
|
840
|
+
* can be changed or cleared.
|
|
841
|
+
*/
|
|
842
|
+
protected readonly _emptyColumnKeys: Signal<Set<string>>;
|
|
843
|
+
/** A header sort control shows for a sortable column while there are rows and the column has a value somewhere. */
|
|
844
|
+
protected _canShowSort(col: ColumnDef): boolean;
|
|
845
|
+
protected readonly _hasPhoneControls: Signal<boolean>;
|
|
846
|
+
/** Phone sort select → sets the sort directly (same state, page reset and load as the header's onSort). */
|
|
847
|
+
protected onPhoneSort(value: string): void;
|
|
848
|
+
protected onSort(field: string): void;
|
|
849
|
+
protected onPageChange(p: number): void;
|
|
850
|
+
protected onTabChange(value: string): void;
|
|
851
|
+
/**
|
|
852
|
+
* Wire name of a column's filter: `filterParam` when set, else the column `key`. Used ONLY for the column-filter query
|
|
853
|
+
* param, the /filter-counts lookup, `_colFilterValues` and saved views (never for sort, row data, bulk fields).
|
|
854
|
+
*/
|
|
855
|
+
protected _filterName(col: ColumnDef): string;
|
|
856
|
+
protected onColFilterChange(column: string, values: string[]): void;
|
|
857
|
+
protected clearFilters(): void;
|
|
858
|
+
protected getColFilter(col: ColumnDef): {
|
|
859
|
+
options: FilterOption[];
|
|
860
|
+
activeValues: string[];
|
|
861
|
+
} | null;
|
|
862
|
+
private _loadSavedViews;
|
|
863
|
+
protected onSaveViewClick(name: string): void;
|
|
864
|
+
protected onLoadViewClick(view: SavedView): void;
|
|
865
|
+
protected onDeleteViewClick(id: string): void;
|
|
866
|
+
/** Returns a snapshot of current table state for saving as a view. */
|
|
867
|
+
getState(): Pick<SavedView, 'quickFilter' | 'sortField' | 'sortDir' | 'visibleColumns' | 'rangeFilters'> & {
|
|
868
|
+
columnFilters: Record<string, string>;
|
|
869
|
+
};
|
|
870
|
+
/** Restores table state from a saved view and reloads. */
|
|
871
|
+
applyView(view: SavedView): void;
|
|
872
|
+
private _restorableRanges;
|
|
873
|
+
/** Keeps only filters that still make sense: known column keys, and (when the counts list the column) known values. */
|
|
874
|
+
private _restorableColumnFilters;
|
|
875
|
+
/** Plain/number/date columns sort unless `sortable: false`; badge and image columns only when `sortable: true`; never actions. */
|
|
876
|
+
protected _isSortable(col: ColumnDef): boolean;
|
|
877
|
+
protected sortAriaLabel(field: string): string;
|
|
878
|
+
protected trackItem(item: T, index: number): string | number;
|
|
879
|
+
protected isRowClickable(item: T): boolean;
|
|
880
|
+
protected rowLabel(item: T): string | null;
|
|
881
|
+
protected onRowClick(item: T): void;
|
|
882
|
+
/** Enter / Space on a focused clickable row or card activates it — ignored when focus is on a control inside it. */
|
|
883
|
+
protected onRowKeydown(e: KeyboardEvent, item: T): void;
|
|
884
|
+
protected onInternalButtonClick(type: string): Promise<void>;
|
|
885
|
+
protected onImported(): void;
|
|
886
|
+
/** Row actions visible for the current permission: everything for 'full'; otherwise only View (`type: 'view'`) and actions marked
|
|
887
|
+
* `allowReadOnly` (never the built-in delete). The Actions column itself is shown only while some row has a visible action. */
|
|
888
|
+
protected _rowActions(col: ColumnDef, item: T): RowAction[];
|
|
889
|
+
protected onTableRowAction(type: string, col: ColumnDef, item: T): Promise<void>;
|
|
890
|
+
private isNumericCol;
|
|
891
|
+
protected resolveCellAlign(col: ColumnDef, item: T): 'left' | 'right' | 'center';
|
|
892
|
+
/** null → the cell renders a plain '—' (badgeFn returned null, or an empty value without a badgeFn). */
|
|
893
|
+
protected resolveBadge(col: ColumnDef, item: T): BadgeConfig | null;
|
|
894
|
+
protected showTagTooltip(event: MouseEvent | FocusEvent, tags: any[]): void;
|
|
895
|
+
protected hideTagTooltip(): void;
|
|
896
|
+
protected imageUrl(col: ColumnDef, item: T): string | null;
|
|
897
|
+
/** Always a string so the <img> keeps an `alt` attribute ('' = decorative). */
|
|
898
|
+
protected imageAlt(col: ColumnDef, item: T): string;
|
|
899
|
+
/** CSS object-position from `imagePositionFn` (percent); centered when there is none or it throws. */
|
|
900
|
+
protected imagePosition(col: ColumnDef, item: T): string;
|
|
901
|
+
protected imageClass(col: ColumnDef, small: boolean): string;
|
|
902
|
+
protected onImageError(url: string): void;
|
|
903
|
+
protected phoneCell(value: any): string;
|
|
904
|
+
private readonly _injector;
|
|
905
|
+
/** Safe hrefs only: mailto:, tel:, http(s):// and root-relative paths. Everything else is refused (null). */
|
|
906
|
+
private _safeHref;
|
|
907
|
+
/** Text and (when there is a safe target) the anchor data of a `cellType: 'link'` cell. Never throws. */
|
|
908
|
+
protected linkView(col: ColumnDef, item: T): {
|
|
909
|
+
text: string;
|
|
910
|
+
link: ResolvedLink | null;
|
|
911
|
+
};
|
|
912
|
+
/** Anchor click: never reaches the row; a plain left click on an in-app route navigates via the Router (SPA, no reload). */
|
|
913
|
+
protected onLinkClick(e: MouseEvent, link: ResolvedLink, col: ColumnDef, item: T): void;
|
|
914
|
+
protected getInitials(name: string): string;
|
|
915
|
+
protected isCardOverdue(col: ColumnDef, item: T): boolean;
|
|
916
|
+
/** Cell types that never get a leading icon: they draw their own leading visual or are not text-like. */
|
|
917
|
+
private static readonly _NO_ICON_TYPES;
|
|
918
|
+
/**
|
|
919
|
+
* Path of the leading icon for a cell (library source 2026-11-05, not yet published): `iconFn` returns a `<ui-icon>` key (known key wins) or a raw
|
|
920
|
+
* 24x24 stroke path (drawing commands and numbers only, same rule as ui-radio's `icon`); anything else, an empty value, a throwing `iconFn` or a
|
|
921
|
+
* non-text-like cell type gives null (nothing is drawn).
|
|
922
|
+
*/
|
|
923
|
+
protected cellIconPath(col: ColumnDef, item: T): string | null;
|
|
924
|
+
/** Screen-reader text for a meaningful icon (`iconLabelFn`); '' (decorative) when absent, empty, throwing or when no icon is drawn. */
|
|
925
|
+
protected cellIconLabel(col: ColumnDef, item: T): string;
|
|
926
|
+
/** Renders any non-badge column value as a plain string for the mobile card view. */
|
|
927
|
+
protected cardCellText(col: ColumnDef, item: T): string;
|
|
928
|
+
/** Refresh data rows only — used internally for sort, filter, search, pagination. */
|
|
929
|
+
load(): void;
|
|
930
|
+
/**
|
|
931
|
+
* Drops the active quick-filter tab (back to "All"), emits `tabChange('')` and reloads from page 1. For hosts
|
|
932
|
+
* whose tab was renamed or removed by the user's own change, so the table doesn't stay on a tab key that no
|
|
933
|
+
* longer exists. No-op when no tab is active.
|
|
934
|
+
*/
|
|
935
|
+
resetTab(): void;
|
|
936
|
+
/** Go to page 1 and do a full refresh — use after adding a new record. */
|
|
937
|
+
resetToFirstPage(): void;
|
|
938
|
+
/**
|
|
939
|
+
* Full refresh after a mutation — fires data rows, tab counts, and filter counts
|
|
940
|
+
* in parallel so every part of the UI (pagination totals, quick-filter badges,
|
|
941
|
+
* column filter options) reflects the change.
|
|
942
|
+
*/
|
|
943
|
+
refresh(options?: {
|
|
944
|
+
silent?: boolean;
|
|
945
|
+
}): void;
|
|
946
|
+
/** Set by `refresh({ silent: true })` for the next load only: rows stay visible (no skeleton) while it runs. */
|
|
947
|
+
private _silentNext;
|
|
948
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableComponent<any>, never>;
|
|
949
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableComponent<any>, "ui-data-table", never, {
|
|
950
|
+
"endpoint": {
|
|
951
|
+
"alias": "endpoint";
|
|
952
|
+
"required": true;
|
|
953
|
+
"isSignal": true;
|
|
954
|
+
};
|
|
955
|
+
"columns": {
|
|
956
|
+
"alias": "columns";
|
|
957
|
+
"required": true;
|
|
958
|
+
"isSignal": true;
|
|
959
|
+
};
|
|
960
|
+
"searchPlaceholder": {
|
|
961
|
+
"alias": "searchPlaceholder";
|
|
962
|
+
"required": false;
|
|
963
|
+
"isSignal": true;
|
|
964
|
+
};
|
|
965
|
+
"pageSize": {
|
|
966
|
+
"alias": "pageSize";
|
|
967
|
+
"required": false;
|
|
968
|
+
"isSignal": true;
|
|
969
|
+
};
|
|
970
|
+
"tableLabel": {
|
|
971
|
+
"alias": "tableLabel";
|
|
972
|
+
"required": false;
|
|
973
|
+
"isSignal": true;
|
|
974
|
+
};
|
|
975
|
+
"emptyMessage": {
|
|
976
|
+
"alias": "emptyMessage";
|
|
977
|
+
"required": false;
|
|
978
|
+
"isSignal": true;
|
|
979
|
+
};
|
|
980
|
+
"retryLabel": {
|
|
981
|
+
"alias": "retryLabel";
|
|
982
|
+
"required": false;
|
|
983
|
+
"isSignal": true;
|
|
984
|
+
};
|
|
985
|
+
"lockedColumn": {
|
|
986
|
+
"alias": "lockedColumn";
|
|
987
|
+
"required": false;
|
|
988
|
+
"isSignal": true;
|
|
989
|
+
};
|
|
990
|
+
"savedViews": {
|
|
991
|
+
"alias": "savedViews";
|
|
992
|
+
"required": false;
|
|
993
|
+
"isSignal": true;
|
|
994
|
+
};
|
|
995
|
+
"page": {
|
|
996
|
+
"alias": "page";
|
|
997
|
+
"required": false;
|
|
998
|
+
"isSignal": true;
|
|
999
|
+
};
|
|
1000
|
+
"showToolbar": {
|
|
1001
|
+
"alias": "showToolbar";
|
|
1002
|
+
"required": false;
|
|
1003
|
+
"isSignal": true;
|
|
1004
|
+
};
|
|
1005
|
+
"showMoreActions": {
|
|
1006
|
+
"alias": "showMoreActions";
|
|
1007
|
+
"required": false;
|
|
1008
|
+
"isSignal": true;
|
|
1009
|
+
};
|
|
1010
|
+
"quickTabLabelFn": {
|
|
1011
|
+
"alias": "quickTabLabelFn";
|
|
1012
|
+
"required": false;
|
|
1013
|
+
"isSignal": true;
|
|
1014
|
+
};
|
|
1015
|
+
"showSearch": {
|
|
1016
|
+
"alias": "showSearch";
|
|
1017
|
+
"required": false;
|
|
1018
|
+
"isSignal": true;
|
|
1019
|
+
};
|
|
1020
|
+
"showQuickTabs": {
|
|
1021
|
+
"alias": "showQuickTabs";
|
|
1022
|
+
"required": false;
|
|
1023
|
+
"isSignal": true;
|
|
1024
|
+
};
|
|
1025
|
+
"showPagination": {
|
|
1026
|
+
"alias": "showPagination";
|
|
1027
|
+
"required": false;
|
|
1028
|
+
"isSignal": true;
|
|
1029
|
+
};
|
|
1030
|
+
"stickyActions": {
|
|
1031
|
+
"alias": "stickyActions";
|
|
1032
|
+
"required": false;
|
|
1033
|
+
"isSignal": true;
|
|
1034
|
+
};
|
|
1035
|
+
"tableTitle": {
|
|
1036
|
+
"alias": "tableTitle";
|
|
1037
|
+
"required": false;
|
|
1038
|
+
"isSignal": true;
|
|
1039
|
+
};
|
|
1040
|
+
"countsEndpoint": {
|
|
1041
|
+
"alias": "countsEndpoint";
|
|
1042
|
+
"required": false;
|
|
1043
|
+
"isSignal": true;
|
|
1044
|
+
};
|
|
1045
|
+
"totalsEndpoint": {
|
|
1046
|
+
"alias": "totalsEndpoint";
|
|
1047
|
+
"required": false;
|
|
1048
|
+
"isSignal": true;
|
|
1049
|
+
};
|
|
1050
|
+
"totalsLabel": {
|
|
1051
|
+
"alias": "totalsLabel";
|
|
1052
|
+
"required": false;
|
|
1053
|
+
"isSignal": true;
|
|
1054
|
+
};
|
|
1055
|
+
"params": {
|
|
1056
|
+
"alias": "params";
|
|
1057
|
+
"required": false;
|
|
1058
|
+
"isSignal": true;
|
|
1059
|
+
};
|
|
1060
|
+
"tableButtons": {
|
|
1061
|
+
"alias": "tableButtons";
|
|
1062
|
+
"required": false;
|
|
1063
|
+
"isSignal": true;
|
|
1064
|
+
};
|
|
1065
|
+
"filterCountsEndpoint": {
|
|
1066
|
+
"alias": "filterCountsEndpoint";
|
|
1067
|
+
"required": false;
|
|
1068
|
+
"isSignal": true;
|
|
1069
|
+
};
|
|
1070
|
+
"importExportConfig": {
|
|
1071
|
+
"alias": "importExportConfig";
|
|
1072
|
+
"required": false;
|
|
1073
|
+
"isSignal": true;
|
|
1074
|
+
};
|
|
1075
|
+
"importSources": {
|
|
1076
|
+
"alias": "importSources";
|
|
1077
|
+
"required": false;
|
|
1078
|
+
"isSignal": true;
|
|
1079
|
+
};
|
|
1080
|
+
"permission": {
|
|
1081
|
+
"alias": "permission";
|
|
1082
|
+
"required": false;
|
|
1083
|
+
"isSignal": true;
|
|
1084
|
+
};
|
|
1085
|
+
"selectable": {
|
|
1086
|
+
"alias": "selectable";
|
|
1087
|
+
"required": false;
|
|
1088
|
+
"isSignal": true;
|
|
1089
|
+
};
|
|
1090
|
+
"itemLabel": {
|
|
1091
|
+
"alias": "itemLabel";
|
|
1092
|
+
"required": false;
|
|
1093
|
+
"isSignal": true;
|
|
1094
|
+
};
|
|
1095
|
+
"itemLabelPlural": {
|
|
1096
|
+
"alias": "itemLabelPlural";
|
|
1097
|
+
"required": false;
|
|
1098
|
+
"isSignal": true;
|
|
1099
|
+
};
|
|
1100
|
+
"bulkUpdateOptions": {
|
|
1101
|
+
"alias": "bulkUpdateOptions";
|
|
1102
|
+
"required": false;
|
|
1103
|
+
"isSignal": true;
|
|
1104
|
+
};
|
|
1105
|
+
"rowClickableFn": {
|
|
1106
|
+
"alias": "rowClickableFn";
|
|
1107
|
+
"required": false;
|
|
1108
|
+
"isSignal": true;
|
|
1109
|
+
};
|
|
1110
|
+
"rowLabelFn": {
|
|
1111
|
+
"alias": "rowLabelFn";
|
|
1112
|
+
"required": false;
|
|
1113
|
+
"isSignal": true;
|
|
1114
|
+
};
|
|
1115
|
+
"reorderable": {
|
|
1116
|
+
"alias": "reorderable";
|
|
1117
|
+
"required": false;
|
|
1118
|
+
"isSignal": true;
|
|
1119
|
+
};
|
|
1120
|
+
"rangeFilters": {
|
|
1121
|
+
"alias": "rangeFilters";
|
|
1122
|
+
"required": false;
|
|
1123
|
+
"isSignal": true;
|
|
1124
|
+
};
|
|
1125
|
+
}, {
|
|
1126
|
+
"rowClick": "rowClick";
|
|
1127
|
+
"linkClick": "linkClick";
|
|
1128
|
+
"tableButtonClick": "tableButtonClick";
|
|
1129
|
+
"panelActionClick": "panelActionClick";
|
|
1130
|
+
"saveViewClick": "saveViewClick";
|
|
1131
|
+
"loadViewClick": "loadViewClick";
|
|
1132
|
+
"deleteViewClick": "deleteViewClick";
|
|
1133
|
+
"imported": "imported";
|
|
1134
|
+
"selectionChange": "selectionChange";
|
|
1135
|
+
"tabChange": "tabChange";
|
|
1136
|
+
"bulkAction": "bulkAction";
|
|
1137
|
+
"bulkPanelClick": "bulkPanelClick";
|
|
1138
|
+
"loaded": "loaded";
|
|
1139
|
+
"rowDeleted": "rowDeleted";
|
|
1140
|
+
"rowReorder": "rowReorder";
|
|
1141
|
+
}, never, never, true, never>;
|
|
1142
|
+
}
|
|
1143
|
+
/**
|
|
1144
|
+
* Column-filter values travel as ONE comma-joined request parameter (`?section=Roofing,Siding`). A value that itself contains a comma
|
|
1145
|
+
* ("Roofing, Inc.") would be read as two. These helpers keep the wire format backward compatible and make such values unambiguous:
|
|
1146
|
+
*
|
|
1147
|
+
* - a value is sent AS IS unless joining it would be ambiguous: it contains a comma, a doubled backslash, or ends with a backslash;
|
|
1148
|
+
* - such a value is escaped: `\` becomes `\\` and `,` becomes `\,`;
|
|
1149
|
+
* - the reader splits on commas that are not escaped and unescapes `\,` and `\\`; any other backslash is an ordinary character.
|
|
1150
|
+
*
|
|
1151
|
+
* So every value that worked before (no comma, no doubled / trailing backslash) is byte-for-byte unchanged, and a backend that does not know the
|
|
1152
|
+
* escaping keeps working for them. Backends that parse filter values should split with the same rules (`splitFilterList` in the contractor
|
|
1153
|
+
* backend, `decodeFilterValues` here).
|
|
1154
|
+
*/
|
|
1155
|
+
/** One value as it is written into the comma-joined parameter. */
|
|
1156
|
+
export declare function encodeFilterValue(value: string): string;
|
|
1157
|
+
/** The comma-joined parameter for a list of filter values (`['Roofing, Inc.', 'Siding']` -> `Roofing\, Inc.,Siding`). */
|
|
1158
|
+
export declare function encodeFilterValues(values: readonly string[]): string;
|
|
1159
|
+
/**
|
|
1160
|
+
* The values of a comma-joined parameter, the inverse of {@link encodeFilterValues}: split on unescaped commas, unescape `\,` and `\\`,
|
|
1161
|
+
* trim each value and drop the empty ones (the same as the plain split it replaces).
|
|
1162
|
+
*/
|
|
1163
|
+
export declare function decodeFilterValues(raw: string): string[];
|
|
1164
|
+
/**
|
|
1165
|
+
* The grid of source cards ("Follow Up Boss", "kvCORE", "Custom CSV" ...) of the import wizard's first step. Used inside the import window and
|
|
1166
|
+
* on its own (the setup wizard shows it inline so the user picks a source without opening the window first).
|
|
1167
|
+
*
|
|
1168
|
+
* <ui-import-source-grid [sources]="sources" [selected]="picked" ariaLabel="Select your Contact source" (sourceSelect)="picked = $event" />
|
|
1169
|
+
*/
|
|
1170
|
+
export declare class ImportSourceGridComponent {
|
|
1171
|
+
protected readonly labels: UiLabelsService;
|
|
1172
|
+
readonly sources: import("@angular/core").InputSignal<ImportSource[]>;
|
|
1173
|
+
/** The `value` of the picked source (highlighted). `tile` only: the `card` appearance does not keep a selection. */
|
|
1174
|
+
readonly selected: import("@angular/core").InputSignal<string>;
|
|
1175
|
+
/** `tile`: the compact buttons of the import window. `card`: one `ui-detail-card` per source with its own select button (used on a page). */
|
|
1176
|
+
readonly appearance: import("@angular/core").InputSignal<"tile" | "card">;
|
|
1177
|
+
/** `card`: disables every card's button (for example while the page is saving). */
|
|
1178
|
+
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
1179
|
+
/** `card`: the text of each card's button. */
|
|
1180
|
+
readonly actionLabelInput: import("@angular/core").InputSignal<string | null>;
|
|
1181
|
+
readonly actionLabel: import("@angular/core").Signal<string>;
|
|
1182
|
+
/** Accessible name of the list. */
|
|
1183
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
1184
|
+
/** Emits the `value` of the clicked source. */
|
|
1185
|
+
readonly sourceSelect: import("@angular/core").OutputEmitterRef<string>;
|
|
1186
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImportSourceGridComponent, never>;
|
|
1187
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImportSourceGridComponent, "ui-import-source-grid", never, {
|
|
1188
|
+
"sources": {
|
|
1189
|
+
"alias": "sources";
|
|
1190
|
+
"required": true;
|
|
1191
|
+
"isSignal": true;
|
|
1192
|
+
};
|
|
1193
|
+
"selected": {
|
|
1194
|
+
"alias": "selected";
|
|
1195
|
+
"required": false;
|
|
1196
|
+
"isSignal": true;
|
|
1197
|
+
};
|
|
1198
|
+
"appearance": {
|
|
1199
|
+
"alias": "appearance";
|
|
1200
|
+
"required": false;
|
|
1201
|
+
"isSignal": true;
|
|
1202
|
+
};
|
|
1203
|
+
"disabled": {
|
|
1204
|
+
"alias": "disabled";
|
|
1205
|
+
"required": false;
|
|
1206
|
+
"isSignal": true;
|
|
1207
|
+
};
|
|
1208
|
+
"actionLabelInput": {
|
|
1209
|
+
"alias": "actionLabel";
|
|
1210
|
+
"required": false;
|
|
1211
|
+
"isSignal": true;
|
|
1212
|
+
};
|
|
1213
|
+
"ariaLabel": {
|
|
1214
|
+
"alias": "ariaLabel";
|
|
1215
|
+
"required": false;
|
|
1216
|
+
"isSignal": true;
|
|
1217
|
+
};
|
|
1218
|
+
}, {
|
|
1219
|
+
"sourceSelect": "sourceSelect";
|
|
1220
|
+
}, never, never, true, never>;
|
|
1221
|
+
}
|