@forgeroute/ui 0.5.16 → 0.5.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/forgeroute-ui-action-bar.mjs +190 -0
- package/fesm2022/forgeroute-ui-action-bar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-address-input.mjs +1164 -0
- package/fesm2022/forgeroute-ui-address-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-alert.mjs +223 -0
- package/fesm2022/forgeroute-ui-alert.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-avatar.mjs +320 -0
- package/fesm2022/forgeroute-ui-avatar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-badge.mjs +158 -0
- package/fesm2022/forgeroute-ui-badge.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-bar-row.mjs +255 -0
- package/fesm2022/forgeroute-ui-bar-row.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-boards.mjs +2201 -0
- package/fesm2022/forgeroute-ui-boards.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-bulk-eligible.mjs +172 -0
- package/fesm2022/forgeroute-ui-bulk-eligible.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-business-hours.mjs +771 -0
- package/fesm2022/forgeroute-ui-business-hours.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-calendar.mjs +2006 -0
- package/fesm2022/forgeroute-ui-calendar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-card-list-item.mjs +556 -0
- package/fesm2022/forgeroute-ui-card-list-item.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-charts.mjs +1 -1
- package/fesm2022/forgeroute-ui-charts.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-checkbox.mjs +815 -0
- package/fesm2022/forgeroute-ui-checkbox.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-chip.mjs +379 -0
- package/fesm2022/forgeroute-ui-chip.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-color-input.mjs +492 -0
- package/fesm2022/forgeroute-ui-color-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-column-filter.mjs +645 -0
- package/fesm2022/forgeroute-ui-column-filter.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-columns.mjs +351 -0
- package/fesm2022/forgeroute-ui-columns.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-combobox.mjs +772 -0
- package/fesm2022/forgeroute-ui-combobox.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-confirm.mjs +48 -0
- package/fesm2022/forgeroute-ui-confirm.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-contact-picker.mjs +865 -0
- package/fesm2022/forgeroute-ui-contact-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-conversations.mjs +3627 -0
- package/fesm2022/forgeroute-ui-conversations.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-copy-field.mjs +378 -0
- package/fesm2022/forgeroute-ui-copy-field.mjs.map +1 -0
- package/fesm2022/{forgeroute-ui-core-ui-labels.es-Dzj_XJJM.mjs → forgeroute-ui-core-ui-labels.es-Woi3az70.mjs} +186 -2
- package/fesm2022/{forgeroute-ui-core-ui-labels.es-Dzj_XJJM.mjs.map → forgeroute-ui-core-ui-labels.es-Woi3az70.mjs.map} +1 -1
- package/fesm2022/forgeroute-ui-core.mjs +186 -2
- package/fesm2022/forgeroute-ui-core.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-data-table-core.mjs +6150 -0
- package/fesm2022/forgeroute-ui-data-table-core.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-date-input.mjs +384 -0
- package/fesm2022/forgeroute-ui-date-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-date-range-picker.mjs +453 -0
- package/fesm2022/forgeroute-ui-date-range-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-datetime-input.mjs +375 -0
- package/fesm2022/forgeroute-ui-datetime-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-detail-card.mjs +655 -0
- package/fesm2022/forgeroute-ui-detail-card.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-discount-selector.mjs +259 -0
- package/fesm2022/forgeroute-ui-discount-selector.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-divider.mjs +111 -0
- package/fesm2022/forgeroute-ui-divider.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-dropdown.mjs +550 -0
- package/fesm2022/forgeroute-ui-dropdown.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-editor.mjs +4545 -0
- package/fesm2022/forgeroute-ui-editor.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-empty-state.mjs +231 -0
- package/fesm2022/forgeroute-ui-empty-state.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-error-state.mjs +195 -0
- package/fesm2022/forgeroute-ui-error-state.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-error.mjs +93 -0
- package/fesm2022/forgeroute-ui-error.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-fade.mjs +117 -0
- package/fesm2022/forgeroute-ui-fade.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-file-input.mjs +999 -0
- package/fesm2022/forgeroute-ui-file-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-fixed-footer.mjs +115 -0
- package/fesm2022/forgeroute-ui-fixed-footer.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-form-row.mjs +126 -0
- package/fesm2022/forgeroute-ui-form-row.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-form-section.mjs +93 -0
- package/fesm2022/forgeroute-ui-form-section.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-form.mjs +139 -0
- package/fesm2022/forgeroute-ui-form.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-hint.mjs +47 -0
- package/fesm2022/forgeroute-ui-hint.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-icon-picker.mjs +424 -0
- package/fesm2022/forgeroute-ui-icon-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-icon.mjs +311 -0
- package/fesm2022/forgeroute-ui-icon.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-image-preview.mjs +237 -0
- package/fesm2022/forgeroute-ui-image-preview.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-keypad.mjs +278 -0
- package/fesm2022/forgeroute-ui-keypad.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-kpi-card.mjs +490 -0
- package/fesm2022/forgeroute-ui-kpi-card.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-language-switcher.mjs +134 -0
- package/fesm2022/forgeroute-ui-language-switcher.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-layout.mjs +18 -0
- package/fesm2022/forgeroute-ui-layout.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-list-item.mjs +620 -0
- package/fesm2022/forgeroute-ui-list-item.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-list.mjs +866 -0
- package/fesm2022/forgeroute-ui-list.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-live-region.mjs +118 -0
- package/fesm2022/forgeroute-ui-live-region.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-map.mjs +5 -1
- package/fesm2022/forgeroute-ui-map.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-maps.mjs +2 -1
- package/fesm2022/forgeroute-ui-maps.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-media.mjs +4615 -0
- package/fesm2022/forgeroute-ui-media.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-messaging.mjs +20 -1
- package/fesm2022/forgeroute-ui-messaging.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-more-menu.mjs +418 -0
- package/fesm2022/forgeroute-ui-more-menu.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-multi-select.mjs +532 -0
- package/fesm2022/forgeroute-ui-multi-select.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-notes.mjs +768 -0
- package/fesm2022/forgeroute-ui-notes.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-notification-bell.mjs +587 -0
- package/fesm2022/forgeroute-ui-notification-bell.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-offline-banner.mjs +156 -0
- package/fesm2022/forgeroute-ui-offline-banner.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-option-card.mjs +379 -0
- package/fesm2022/forgeroute-ui-option-card.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-page.mjs +317 -0
- package/fesm2022/forgeroute-ui-page.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-pagination.mjs +225 -0
- package/fesm2022/forgeroute-ui-pagination.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-panel-info-list.mjs +422 -0
- package/fesm2022/forgeroute-ui-panel-info-list.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-password-requirements.mjs +237 -0
- package/fesm2022/forgeroute-ui-password-requirements.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-payments.mjs +6258 -0
- package/fesm2022/forgeroute-ui-payments.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-pdf.mjs +9 -1
- package/fesm2022/forgeroute-ui-pdf.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-phone-number-picker.mjs +840 -0
- package/fesm2022/forgeroute-ui-phone-number-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-pill-tabs.mjs +546 -0
- package/fesm2022/forgeroute-ui-pill-tabs.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-print.mjs +76 -0
- package/fesm2022/forgeroute-ui-print.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-progress-bar.mjs +252 -0
- package/fesm2022/forgeroute-ui-progress-bar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-progress-ring.mjs +277 -0
- package/fesm2022/forgeroute-ui-progress-ring.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-quick-filter-tabs.mjs +301 -0
- package/fesm2022/forgeroute-ui-quick-filter-tabs.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-quickbooks.mjs +18 -1
- package/fesm2022/forgeroute-ui-quickbooks.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-radio-matrix.mjs +471 -0
- package/fesm2022/forgeroute-ui-radio-matrix.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-radio.mjs +911 -0
- package/fesm2022/forgeroute-ui-radio.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-read-only-mode.mjs +15 -0
- package/fesm2022/forgeroute-ui-read-only-mode.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-readonly-fieldset.mjs +146 -0
- package/fesm2022/forgeroute-ui-readonly-fieldset.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-reminder-alerts.mjs +249 -0
- package/fesm2022/forgeroute-ui-reminder-alerts.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-search-input.mjs +373 -0
- package/fesm2022/forgeroute-ui-search-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-section-header.mjs +296 -0
- package/fesm2022/forgeroute-ui-section-header.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-select.mjs +498 -0
- package/fesm2022/forgeroute-ui-select.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-setup.mjs +4649 -0
- package/fesm2022/forgeroute-ui-setup.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-share-menu.mjs +461 -0
- package/fesm2022/forgeroute-ui-share-menu.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-shell.mjs +981 -0
- package/fesm2022/forgeroute-ui-shell.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-show.mjs +129 -0
- package/fesm2022/forgeroute-ui-show.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-sidebar-layout.mjs +355 -0
- package/fesm2022/forgeroute-ui-sidebar-layout.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-skeleton.mjs +152 -0
- package/fesm2022/forgeroute-ui-skeleton.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-skip-link.mjs +129 -0
- package/fesm2022/forgeroute-ui-skip-link.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-snackbar.mjs +200 -0
- package/fesm2022/forgeroute-ui-snackbar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-square.mjs +15 -1
- package/fesm2022/forgeroute-ui-square.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-stack.mjs +233 -0
- package/fesm2022/forgeroute-ui-stack.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stacked-bar.mjs +200 -0
- package/fesm2022/forgeroute-ui-stacked-bar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stacking-plan.mjs +365 -0
- package/fesm2022/forgeroute-ui-stacking-plan.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-star-rating.mjs +498 -0
- package/fesm2022/forgeroute-ui-star-rating.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-star.mjs +184 -0
- package/fesm2022/forgeroute-ui-star.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stepper.mjs +615 -0
- package/fesm2022/forgeroute-ui-stepper.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stripe.mjs +6254 -1188
- package/fesm2022/forgeroute-ui-stripe.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-swatch-picker.mjs +416 -0
- package/fesm2022/forgeroute-ui-swatch-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-table-toolbar.mjs +770 -0
- package/fesm2022/forgeroute-ui-table-toolbar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-table-types.mjs +277 -0
- package/fesm2022/forgeroute-ui-table-types.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-text-input.mjs +1003 -0
- package/fesm2022/forgeroute-ui-text-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-text-template-picker.mjs +356 -0
- package/fesm2022/forgeroute-ui-text-template-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-text.mjs +195 -0
- package/fesm2022/forgeroute-ui-text.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-textarea-input.mjs +542 -0
- package/fesm2022/forgeroute-ui-textarea-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-time-input.mjs +401 -0
- package/fesm2022/forgeroute-ui-time-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-timeline.mjs +549 -0
- package/fesm2022/forgeroute-ui-timeline.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-toast.mjs +507 -0
- package/fesm2022/forgeroute-ui-toast.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-toggle-badge.mjs +177 -0
- package/fesm2022/forgeroute-ui-toggle-badge.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-toggle.mjs +275 -0
- package/fesm2022/forgeroute-ui-toggle.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-tooltip.mjs +155 -0
- package/fesm2022/forgeroute-ui-tooltip.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-utils.mjs +1071 -0
- package/fesm2022/forgeroute-ui-utils.mjs.map +1 -0
- package/fesm2022/forgeroute-ui.mjs +105 -70663
- package/package.json +422 -2
- package/types/forgeroute-ui-action-bar.d.ts +74 -0
- package/types/forgeroute-ui-address-input.d.ts +354 -0
- package/types/forgeroute-ui-alert.d.ts +89 -0
- package/types/forgeroute-ui-avatar.d.ts +85 -0
- package/types/forgeroute-ui-badge.d.ts +45 -0
- package/types/forgeroute-ui-bar-row.d.ts +90 -0
- package/types/forgeroute-ui-boards.d.ts +575 -0
- package/types/forgeroute-ui-bulk-eligible.d.ts +53 -0
- package/types/forgeroute-ui-business-hours.d.ts +191 -0
- package/types/forgeroute-ui-calendar.d.ts +544 -0
- package/types/forgeroute-ui-card-list-item.d.ts +186 -0
- package/types/forgeroute-ui-charts.d.ts +1 -1
- package/types/forgeroute-ui-checkbox.d.ts +270 -0
- package/types/forgeroute-ui-chip.d.ts +125 -0
- package/types/forgeroute-ui-color-input.d.ts +160 -0
- package/types/forgeroute-ui-column-filter.d.ts +130 -0
- package/types/forgeroute-ui-columns.d.ts +150 -0
- package/types/forgeroute-ui-combobox.d.ts +252 -0
- package/types/forgeroute-ui-confirm.d.ts +34 -0
- package/types/forgeroute-ui-contact-picker.d.ts +173 -0
- package/types/forgeroute-ui-conversations.d.ts +993 -0
- package/types/forgeroute-ui-copy-field.d.ts +122 -0
- package/types/forgeroute-ui-core.d.ts +188 -4
- package/types/forgeroute-ui-data-table-core.d.ts +1221 -0
- package/types/forgeroute-ui-date-input.d.ts +101 -0
- package/types/forgeroute-ui-date-range-picker.d.ts +109 -0
- package/types/forgeroute-ui-datetime-input.d.ts +97 -0
- package/types/forgeroute-ui-detail-card.d.ts +252 -0
- package/types/forgeroute-ui-discount-selector.d.ts +57 -0
- package/types/forgeroute-ui-divider.d.ts +40 -0
- package/types/forgeroute-ui-dropdown.d.ts +156 -0
- package/types/forgeroute-ui-editor.d.ts +873 -0
- package/types/forgeroute-ui-empty-state.d.ts +29 -0
- package/types/forgeroute-ui-error-state.d.ts +38 -0
- package/types/forgeroute-ui-error.d.ts +29 -0
- package/types/forgeroute-ui-fade.d.ts +39 -0
- package/types/forgeroute-ui-file-input.d.ts +337 -0
- package/types/forgeroute-ui-fixed-footer.d.ts +53 -0
- package/types/forgeroute-ui-form-row.d.ts +30 -0
- package/types/forgeroute-ui-form-section.d.ts +18 -0
- package/types/forgeroute-ui-form.d.ts +68 -0
- package/types/forgeroute-ui-hint.d.ts +10 -0
- package/types/forgeroute-ui-icon-picker.d.ts +122 -0
- package/types/forgeroute-ui-icon.d.ts +95 -0
- package/types/forgeroute-ui-image-preview.d.ts +88 -0
- package/types/forgeroute-ui-keypad.d.ts +73 -0
- package/types/forgeroute-ui-kpi-card.d.ts +161 -0
- package/types/forgeroute-ui-language-switcher.d.ts +41 -0
- package/types/forgeroute-ui-layout.d.ts +13 -0
- package/types/forgeroute-ui-list-item.d.ts +253 -0
- package/types/forgeroute-ui-list.d.ts +282 -0
- package/types/forgeroute-ui-live-region.d.ts +49 -0
- package/types/forgeroute-ui-map.d.ts +1 -1
- package/types/forgeroute-ui-maps.d.ts +1 -1
- package/types/forgeroute-ui-media.d.ts +1221 -0
- package/types/forgeroute-ui-messaging.d.ts +11 -6
- package/types/forgeroute-ui-more-menu.d.ts +91 -0
- package/types/forgeroute-ui-multi-select.d.ts +119 -0
- package/types/forgeroute-ui-notes.d.ts +172 -0
- package/types/forgeroute-ui-notification-bell.d.ts +135 -0
- package/types/forgeroute-ui-offline-banner.d.ts +44 -0
- package/types/forgeroute-ui-option-card.d.ts +106 -0
- package/types/forgeroute-ui-page.d.ts +115 -0
- package/types/forgeroute-ui-pagination.d.ts +55 -0
- package/types/forgeroute-ui-panel-info-list.d.ts +147 -0
- package/types/forgeroute-ui-password-requirements.d.ts +89 -0
- package/types/forgeroute-ui-payments.d.ts +1826 -0
- package/types/forgeroute-ui-pdf.d.ts +1 -1
- package/types/forgeroute-ui-phone-number-picker.d.ts +199 -0
- package/types/forgeroute-ui-pill-tabs.d.ts +208 -0
- package/types/forgeroute-ui-print.d.ts +40 -0
- package/types/forgeroute-ui-progress-bar.d.ts +88 -0
- package/types/forgeroute-ui-progress-ring.d.ts +102 -0
- package/types/forgeroute-ui-quick-filter-tabs.d.ts +51 -0
- package/types/forgeroute-ui-quickbooks.d.ts +6 -3
- package/types/forgeroute-ui-radio-matrix.d.ts +131 -0
- package/types/forgeroute-ui-radio.d.ts +311 -0
- package/types/forgeroute-ui-read-only-mode.d.ts +26 -0
- package/types/forgeroute-ui-readonly-fieldset.d.ts +62 -0
- package/types/forgeroute-ui-reminder-alerts.d.ts +71 -0
- package/types/forgeroute-ui-search-input.d.ts +93 -0
- package/types/forgeroute-ui-section-header.d.ts +149 -0
- package/types/forgeroute-ui-select.d.ts +183 -0
- package/types/forgeroute-ui-setup.d.ts +775 -0
- package/types/forgeroute-ui-share-menu.d.ts +99 -0
- package/types/forgeroute-ui-shell.d.ts +173 -0
- package/types/forgeroute-ui-show.d.ts +40 -0
- package/types/forgeroute-ui-sidebar-layout.d.ts +161 -0
- package/types/forgeroute-ui-skeleton.d.ts +51 -0
- package/types/forgeroute-ui-skip-link.d.ts +51 -0
- package/types/forgeroute-ui-snackbar.d.ts +50 -0
- package/types/forgeroute-ui-square.d.ts +5 -3
- package/types/forgeroute-ui-stack.d.ts +99 -0
- package/types/forgeroute-ui-stacked-bar.d.ts +84 -0
- package/types/forgeroute-ui-stacking-plan.d.ts +116 -0
- package/types/forgeroute-ui-star-rating.d.ts +151 -0
- package/types/forgeroute-ui-star.d.ts +46 -0
- package/types/forgeroute-ui-stepper.d.ts +273 -0
- package/types/forgeroute-ui-stripe.d.ts +1458 -3
- package/types/forgeroute-ui-swatch-picker.d.ts +118 -0
- package/types/forgeroute-ui-table-toolbar.d.ts +116 -0
- package/types/forgeroute-ui-table-types.d.ts +624 -0
- package/types/forgeroute-ui-text-input.d.ts +359 -0
- package/types/forgeroute-ui-text-template-picker.d.ts +100 -0
- package/types/forgeroute-ui-text.d.ts +76 -0
- package/types/forgeroute-ui-textarea-input.d.ts +174 -0
- package/types/forgeroute-ui-time-input.d.ts +105 -0
- package/types/forgeroute-ui-timeline.d.ts +196 -0
- package/types/forgeroute-ui-toast.d.ts +131 -0
- package/types/forgeroute-ui-toggle-badge.d.ts +64 -0
- package/types/forgeroute-ui-toggle.d.ts +92 -0
- package/types/forgeroute-ui-tooltip.d.ts +36 -0
- package/types/forgeroute-ui-utils.d.ts +210 -0
- package/types/forgeroute-ui.d.ts +106 -19539
- package/fesm2022/forgeroute-ui.mjs.map +0 -1
|
@@ -0,0 +1,3627 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, ElementRef, Injector, ViewEncapsulation, afterNextRender, computed, effect, inject, input, model, output, signal, untracked, viewChild } from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/forms";
|
|
4
|
+
import { FormsModule } from "@angular/forms";
|
|
5
|
+
import { ButtonComponent, ModalComponent, SidePanelComponent, UiLabelsService, defaultLabel, safeLocale, uiText } from "@forgeroute/ui/core";
|
|
6
|
+
import { ToggleBadgeComponent } from "@forgeroute/ui/toggle-badge";
|
|
7
|
+
import { TextInputComponent } from "@forgeroute/ui/text-input";
|
|
8
|
+
import { TextareaInputComponent } from "@forgeroute/ui/textarea-input";
|
|
9
|
+
import { RichTextEditorComponent, plainTextToHtml, sanitizeRichTextHtml } from "@forgeroute/ui/editor";
|
|
10
|
+
import { AlertComponent } from "@forgeroute/ui/alert";
|
|
11
|
+
import { AvatarComponent } from "@forgeroute/ui/avatar";
|
|
12
|
+
import { BadgeComponent } from "@forgeroute/ui/badge";
|
|
13
|
+
import { EmptyStateComponent } from "@forgeroute/ui/empty-state";
|
|
14
|
+
import { FileInputComponent } from "@forgeroute/ui/file-input";
|
|
15
|
+
import { ListComponent } from "@forgeroute/ui/list";
|
|
16
|
+
import { PaginationComponent } from "@forgeroute/ui/pagination";
|
|
17
|
+
import { QuickFilterTabsComponent } from "@forgeroute/ui/quick-filter-tabs";
|
|
18
|
+
import { SearchInputComponent } from "@forgeroute/ui/search-input";
|
|
19
|
+
import { SkeletonComponent } from "@forgeroute/ui/skeleton";
|
|
20
|
+
import { TooltipDirective } from "@forgeroute/ui/tooltip";
|
|
21
|
+
var BulkMessagePanelComponent = class BulkMessagePanelComponent {
|
|
22
|
+
get subject() {
|
|
23
|
+
return this._subject();
|
|
24
|
+
}
|
|
25
|
+
set subject(v) {
|
|
26
|
+
this._subject.set(v);
|
|
27
|
+
}
|
|
28
|
+
get body() {
|
|
29
|
+
return this._body();
|
|
30
|
+
}
|
|
31
|
+
set body(v) {
|
|
32
|
+
this._body.set(v);
|
|
33
|
+
}
|
|
34
|
+
constructor() {
|
|
35
|
+
this.labels = inject(UiLabelsService);
|
|
36
|
+
this.open = input(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
37
|
+
this.contacts = input([], ...ngDevMode ? [{ debugName: "contacts" }] : /* istanbul ignore next */ []);
|
|
38
|
+
this.textEnabled = input(false, ...ngDevMode ? [{ debugName: "textEnabled" }] : /* istanbul ignore next */ []);
|
|
39
|
+
this.sending = input(false, ...ngDevMode ? [{ debugName: "sending" }] : /* istanbul ignore next */ []);
|
|
40
|
+
this.closed = output();
|
|
41
|
+
this.send = output();
|
|
42
|
+
this.channel = signal("email", ...ngDevMode ? [{ debugName: "channel" }] : /* istanbul ignore next */ []);
|
|
43
|
+
this._subject = signal("", ...ngDevMode ? [{ debugName: "_subject" }] : /* istanbul ignore next */ []);
|
|
44
|
+
this._body = signal("", ...ngDevMode ? [{ debugName: "_body" }] : /* istanbul ignore next */ []);
|
|
45
|
+
this.emailContacts = computed(() => this.contacts().filter((c) => !!c.email), ...ngDevMode ? [{ debugName: "emailContacts" }] : /* istanbul ignore next */ []);
|
|
46
|
+
this.textContacts = computed(() => this.contacts().filter((c) => !!c.phone), ...ngDevMode ? [{ debugName: "textContacts" }] : /* istanbul ignore next */ []);
|
|
47
|
+
this.activeContacts = computed(() => this.channel() === "email" ? this.emailContacts() : this.textContacts(), ...ngDevMode ? [{ debugName: "activeContacts" }] : /* istanbul ignore next */ []);
|
|
48
|
+
this.skippedCount = computed(() => this.contacts().length - this.activeContacts().length, ...ngDevMode ? [{ debugName: "skippedCount" }] : /* istanbul ignore next */ []);
|
|
49
|
+
this.canSend = computed(() => {
|
|
50
|
+
if (this.activeContacts().length === 0) return false;
|
|
51
|
+
if (this.channel() === "email") return !!this._subject().trim() && !!this._body().trim();
|
|
52
|
+
return !!this._body().trim();
|
|
53
|
+
}, ...ngDevMode ? [{ debugName: "canSend" }] : /* istanbul ignore next */ []);
|
|
54
|
+
this.primaryLabel = computed(() => {
|
|
55
|
+
const n = this.activeContacts().length;
|
|
56
|
+
return this.labels.t(n === 1 ? "bulkMessagePanel.sendToN_one" : "bulkMessagePanel.sendToN_other", { count: n });
|
|
57
|
+
}, ...ngDevMode ? [{ debugName: "primaryLabel" }] : /* istanbul ignore next */ []);
|
|
58
|
+
this._prevOpen = false;
|
|
59
|
+
effect(() => {
|
|
60
|
+
const isOpen = this.open();
|
|
61
|
+
const openedNow = isOpen && !this._prevOpen;
|
|
62
|
+
this._prevOpen = isOpen;
|
|
63
|
+
if (openedNow) untracked(() => {
|
|
64
|
+
const hasEmail = this.contacts().some((c) => !!c.email);
|
|
65
|
+
this.channel.set(hasEmail ? "email" : "text");
|
|
66
|
+
this._subject.set("");
|
|
67
|
+
this._body.set("");
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
onChannelChange(ch) {
|
|
72
|
+
this.channel.set(ch);
|
|
73
|
+
}
|
|
74
|
+
onSend() {
|
|
75
|
+
if (!this.canSend() || this.sending()) return;
|
|
76
|
+
this.send.emit({
|
|
77
|
+
channel: this.channel(),
|
|
78
|
+
subject: this._subject(),
|
|
79
|
+
body: this._body(),
|
|
80
|
+
contacts: this.activeContacts()
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
static {
|
|
84
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
85
|
+
minVersion: "12.0.0",
|
|
86
|
+
version: "22.2.2",
|
|
87
|
+
ngImport: i0,
|
|
88
|
+
type: BulkMessagePanelComponent,
|
|
89
|
+
deps: [],
|
|
90
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
static {
|
|
94
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
95
|
+
minVersion: "17.0.0",
|
|
96
|
+
version: "22.2.2",
|
|
97
|
+
type: BulkMessagePanelComponent,
|
|
98
|
+
isStandalone: true,
|
|
99
|
+
selector: "ui-bulk-message-panel",
|
|
100
|
+
inputs: {
|
|
101
|
+
open: {
|
|
102
|
+
classPropertyName: "open",
|
|
103
|
+
publicName: "open",
|
|
104
|
+
isSignal: true,
|
|
105
|
+
isRequired: false,
|
|
106
|
+
transformFunction: null
|
|
107
|
+
},
|
|
108
|
+
contacts: {
|
|
109
|
+
classPropertyName: "contacts",
|
|
110
|
+
publicName: "contacts",
|
|
111
|
+
isSignal: true,
|
|
112
|
+
isRequired: false,
|
|
113
|
+
transformFunction: null
|
|
114
|
+
},
|
|
115
|
+
textEnabled: {
|
|
116
|
+
classPropertyName: "textEnabled",
|
|
117
|
+
publicName: "textEnabled",
|
|
118
|
+
isSignal: true,
|
|
119
|
+
isRequired: false,
|
|
120
|
+
transformFunction: null
|
|
121
|
+
},
|
|
122
|
+
sending: {
|
|
123
|
+
classPropertyName: "sending",
|
|
124
|
+
publicName: "sending",
|
|
125
|
+
isSignal: true,
|
|
126
|
+
isRequired: false,
|
|
127
|
+
transformFunction: null
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
outputs: {
|
|
131
|
+
closed: "closed",
|
|
132
|
+
send: "send"
|
|
133
|
+
},
|
|
134
|
+
ngImport: i0,
|
|
135
|
+
template: `
|
|
136
|
+
<ui-side-panel
|
|
137
|
+
[open]="open()"
|
|
138
|
+
[title]="labels.t('bulkMessagePanel.sendBulkMessage')"
|
|
139
|
+
[primaryLabel]="primaryLabel()"
|
|
140
|
+
primaryVariant="warning"
|
|
141
|
+
[primaryLoading]="sending()"
|
|
142
|
+
[primaryDisabled]="!canSend()"
|
|
143
|
+
(closed)="closed.emit()"
|
|
144
|
+
(primaryClick)="onSend()">
|
|
145
|
+
|
|
146
|
+
<div class="msg-channel-row">
|
|
147
|
+
<label class="form-label">{{ labels.t('bulkMessagePanel.sendVia') }}</label>
|
|
148
|
+
<div class="msg-via-tabs">
|
|
149
|
+
<ui-toggle-badge [active]="channel() === 'email'" (toggle)="onChannelChange('email')">
|
|
150
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><rect x="2" y="4" width="20" height="16" rx="2"/><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"/></svg>{{ labels.t('common.email') }}</ui-toggle-badge>
|
|
151
|
+
@if (textEnabled()) {
|
|
152
|
+
<ui-toggle-badge [active]="channel() === 'text'" (toggle)="onChannelChange('text')">
|
|
153
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>{{ labels.t('common.text') }}</ui-toggle-badge>
|
|
154
|
+
}
|
|
155
|
+
</div>
|
|
156
|
+
</div>
|
|
157
|
+
|
|
158
|
+
<p class="bulk-msg-recipients">{{ labels.t('bulkMessagePanel.sendingTo') }} <strong>{{ activeContacts().length }}</strong> {{ labels.t(activeContacts().length === 1 ? 'bulkMessagePanel.contactWord_one' : 'bulkMessagePanel.contactWord_other') }}
|
|
159
|
+
@if (skippedCount() > 0) {
|
|
160
|
+
<span class="bulk-msg-skipped">— {{ labels.t(skippedCount() === 1 ? 'bulkMessagePanel.skippedNo_one' : 'bulkMessagePanel.skippedNo_other', { count: skippedCount(), what: labels.t(channel() === 'email' ? 'bulkMessagePanel.noEmailWord' : 'bulkMessagePanel.noPhoneWord') }) }}</span>
|
|
161
|
+
}
|
|
162
|
+
</p>
|
|
163
|
+
|
|
164
|
+
@if (channel() === 'email') {
|
|
165
|
+
<ui-text-input [label]="labels.t('common.subject')" [(ngModel)]="subject" [placeholder]="labels.t('bulkMessagePanel.subjectLine')" />
|
|
166
|
+
}
|
|
167
|
+
<ui-textarea-input [label]="labels.t('common.message')" [rows]="6" [(ngModel)]="body" [placeholder]="labels.t('bulkMessagePanel.writeYourMessage')" />
|
|
168
|
+
|
|
169
|
+
</ui-side-panel>
|
|
170
|
+
`,
|
|
171
|
+
isInline: true,
|
|
172
|
+
styles: [".msg-channel-row{display:flex;align-items:center;gap:10px;margin-bottom:16px;flex-wrap:wrap}.msg-via-tabs{display:flex;gap:6px;flex-wrap:wrap}.form-label{font-size:.75rem;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}.bulk-msg-recipients{font-size:.9375rem;color:#334155;margin:0 0 16px}.bulk-msg-skipped{color:#94a3b8;font-size:.875rem}\n"],
|
|
173
|
+
dependencies: [
|
|
174
|
+
{
|
|
175
|
+
kind: "ngmodule",
|
|
176
|
+
type: FormsModule
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
kind: "directive",
|
|
180
|
+
type: i1.NgControlStatus,
|
|
181
|
+
selector: "[formControlName],[ngModel],[formControl]"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
kind: "directive",
|
|
185
|
+
type: i1.NgModel,
|
|
186
|
+
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
187
|
+
inputs: [
|
|
188
|
+
"name",
|
|
189
|
+
"disabled",
|
|
190
|
+
"ngModel",
|
|
191
|
+
"ngModelOptions"
|
|
192
|
+
],
|
|
193
|
+
outputs: ["ngModelChange"],
|
|
194
|
+
exportAs: ["ngModel"]
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
kind: "component",
|
|
198
|
+
type: SidePanelComponent,
|
|
199
|
+
selector: "ui-side-panel",
|
|
200
|
+
inputs: [
|
|
201
|
+
"open",
|
|
202
|
+
"title",
|
|
203
|
+
"subtitle",
|
|
204
|
+
"wide",
|
|
205
|
+
"extraWide",
|
|
206
|
+
"cancelLabel",
|
|
207
|
+
"primaryLabel",
|
|
208
|
+
"primaryVariant",
|
|
209
|
+
"primaryLoading",
|
|
210
|
+
"primaryDisabled",
|
|
211
|
+
"cancelTestId",
|
|
212
|
+
"primaryTestId",
|
|
213
|
+
"returnFocusTo"
|
|
214
|
+
],
|
|
215
|
+
outputs: ["closed", "primaryClick"]
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
kind: "component",
|
|
219
|
+
type: ToggleBadgeComponent,
|
|
220
|
+
selector: "ui-toggle-badge",
|
|
221
|
+
inputs: [
|
|
222
|
+
"label",
|
|
223
|
+
"active",
|
|
224
|
+
"actions",
|
|
225
|
+
"tooltip"
|
|
226
|
+
],
|
|
227
|
+
outputs: ["toggle", "action"]
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
kind: "component",
|
|
231
|
+
type: TextInputComponent,
|
|
232
|
+
selector: "ui-text-input",
|
|
233
|
+
inputs: [
|
|
234
|
+
"label",
|
|
235
|
+
"ariaLabel",
|
|
236
|
+
"inputTestId",
|
|
237
|
+
"inputName",
|
|
238
|
+
"placeholder",
|
|
239
|
+
"prefix",
|
|
240
|
+
"leadingIcon",
|
|
241
|
+
"revealable",
|
|
242
|
+
"passwordRequirements",
|
|
243
|
+
"passwordRules",
|
|
244
|
+
"type",
|
|
245
|
+
"maxlength",
|
|
246
|
+
"required",
|
|
247
|
+
"autocomplete",
|
|
248
|
+
"inputmode",
|
|
249
|
+
"readonly",
|
|
250
|
+
"hint",
|
|
251
|
+
"ariaDescribedBy",
|
|
252
|
+
"ariaInvalid",
|
|
253
|
+
"error",
|
|
254
|
+
"phoneFormat",
|
|
255
|
+
"min",
|
|
256
|
+
"max",
|
|
257
|
+
"maxDecimals",
|
|
258
|
+
"step",
|
|
259
|
+
"valueType",
|
|
260
|
+
"formatter",
|
|
261
|
+
"integer",
|
|
262
|
+
"showErrors",
|
|
263
|
+
"disabled"
|
|
264
|
+
],
|
|
265
|
+
outputs: [
|
|
266
|
+
"valueChange",
|
|
267
|
+
"focused",
|
|
268
|
+
"blurred",
|
|
269
|
+
"invalidChange"
|
|
270
|
+
]
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
kind: "component",
|
|
274
|
+
type: TextareaInputComponent,
|
|
275
|
+
selector: "ui-textarea-input",
|
|
276
|
+
inputs: [
|
|
277
|
+
"label",
|
|
278
|
+
"ariaLabel",
|
|
279
|
+
"placeholder",
|
|
280
|
+
"rows",
|
|
281
|
+
"maxlength",
|
|
282
|
+
"required",
|
|
283
|
+
"readonly",
|
|
284
|
+
"hint",
|
|
285
|
+
"ariaDescribedBy",
|
|
286
|
+
"hintAsDescription",
|
|
287
|
+
"error",
|
|
288
|
+
"monospace",
|
|
289
|
+
"showErrors",
|
|
290
|
+
"disabled"
|
|
291
|
+
],
|
|
292
|
+
outputs: [
|
|
293
|
+
"invalidChange",
|
|
294
|
+
"focused",
|
|
295
|
+
"blurred"
|
|
296
|
+
]
|
|
297
|
+
}
|
|
298
|
+
],
|
|
299
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
};
|
|
303
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
304
|
+
minVersion: "12.0.0",
|
|
305
|
+
version: "22.2.2",
|
|
306
|
+
ngImport: i0,
|
|
307
|
+
type: BulkMessagePanelComponent,
|
|
308
|
+
decorators: [{
|
|
309
|
+
type: Component,
|
|
310
|
+
args: [{
|
|
311
|
+
selector: "ui-bulk-message-panel",
|
|
312
|
+
standalone: true,
|
|
313
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
314
|
+
imports: [
|
|
315
|
+
FormsModule,
|
|
316
|
+
SidePanelComponent,
|
|
317
|
+
ToggleBadgeComponent,
|
|
318
|
+
TextInputComponent,
|
|
319
|
+
TextareaInputComponent
|
|
320
|
+
],
|
|
321
|
+
template: `
|
|
322
|
+
<ui-side-panel
|
|
323
|
+
[open]="open()"
|
|
324
|
+
[title]="labels.t('bulkMessagePanel.sendBulkMessage')"
|
|
325
|
+
[primaryLabel]="primaryLabel()"
|
|
326
|
+
primaryVariant="warning"
|
|
327
|
+
[primaryLoading]="sending()"
|
|
328
|
+
[primaryDisabled]="!canSend()"
|
|
329
|
+
(closed)="closed.emit()"
|
|
330
|
+
(primaryClick)="onSend()">
|
|
331
|
+
|
|
332
|
+
<div class="msg-channel-row">
|
|
333
|
+
<label class="form-label">{{ labels.t('bulkMessagePanel.sendVia') }}</label>
|
|
334
|
+
<div class="msg-via-tabs">
|
|
335
|
+
<ui-toggle-badge [active]="channel() === 'email'" (toggle)="onChannelChange('email')">
|
|
336
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><rect x="2" y="4" width="20" height="16" rx="2"/><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"/></svg>{{ labels.t('common.email') }}</ui-toggle-badge>
|
|
337
|
+
@if (textEnabled()) {
|
|
338
|
+
<ui-toggle-badge [active]="channel() === 'text'" (toggle)="onChannelChange('text')">
|
|
339
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>{{ labels.t('common.text') }}</ui-toggle-badge>
|
|
340
|
+
}
|
|
341
|
+
</div>
|
|
342
|
+
</div>
|
|
343
|
+
|
|
344
|
+
<p class="bulk-msg-recipients">{{ labels.t('bulkMessagePanel.sendingTo') }} <strong>{{ activeContacts().length }}</strong> {{ labels.t(activeContacts().length === 1 ? 'bulkMessagePanel.contactWord_one' : 'bulkMessagePanel.contactWord_other') }}
|
|
345
|
+
@if (skippedCount() > 0) {
|
|
346
|
+
<span class="bulk-msg-skipped">— {{ labels.t(skippedCount() === 1 ? 'bulkMessagePanel.skippedNo_one' : 'bulkMessagePanel.skippedNo_other', { count: skippedCount(), what: labels.t(channel() === 'email' ? 'bulkMessagePanel.noEmailWord' : 'bulkMessagePanel.noPhoneWord') }) }}</span>
|
|
347
|
+
}
|
|
348
|
+
</p>
|
|
349
|
+
|
|
350
|
+
@if (channel() === 'email') {
|
|
351
|
+
<ui-text-input [label]="labels.t('common.subject')" [(ngModel)]="subject" [placeholder]="labels.t('bulkMessagePanel.subjectLine')" />
|
|
352
|
+
}
|
|
353
|
+
<ui-textarea-input [label]="labels.t('common.message')" [rows]="6" [(ngModel)]="body" [placeholder]="labels.t('bulkMessagePanel.writeYourMessage')" />
|
|
354
|
+
|
|
355
|
+
</ui-side-panel>
|
|
356
|
+
`,
|
|
357
|
+
styles: [".msg-channel-row{display:flex;align-items:center;gap:10px;margin-bottom:16px;flex-wrap:wrap}.msg-via-tabs{display:flex;gap:6px;flex-wrap:wrap}.form-label{font-size:.75rem;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}.bulk-msg-recipients{font-size:.9375rem;color:#334155;margin:0 0 16px}.bulk-msg-skipped{color:#94a3b8;font-size:.875rem}\n"]
|
|
358
|
+
}]
|
|
359
|
+
}],
|
|
360
|
+
ctorParameters: () => [],
|
|
361
|
+
propDecorators: {
|
|
362
|
+
open: [{
|
|
363
|
+
type: i0.Input,
|
|
364
|
+
args: [{
|
|
365
|
+
isSignal: true,
|
|
366
|
+
alias: "open",
|
|
367
|
+
required: false
|
|
368
|
+
}]
|
|
369
|
+
}],
|
|
370
|
+
contacts: [{
|
|
371
|
+
type: i0.Input,
|
|
372
|
+
args: [{
|
|
373
|
+
isSignal: true,
|
|
374
|
+
alias: "contacts",
|
|
375
|
+
required: false
|
|
376
|
+
}]
|
|
377
|
+
}],
|
|
378
|
+
textEnabled: [{
|
|
379
|
+
type: i0.Input,
|
|
380
|
+
args: [{
|
|
381
|
+
isSignal: true,
|
|
382
|
+
alias: "textEnabled",
|
|
383
|
+
required: false
|
|
384
|
+
}]
|
|
385
|
+
}],
|
|
386
|
+
sending: [{
|
|
387
|
+
type: i0.Input,
|
|
388
|
+
args: [{
|
|
389
|
+
isSignal: true,
|
|
390
|
+
alias: "sending",
|
|
391
|
+
required: false
|
|
392
|
+
}]
|
|
393
|
+
}],
|
|
394
|
+
closed: [{
|
|
395
|
+
type: i0.Output,
|
|
396
|
+
args: ["closed"]
|
|
397
|
+
}],
|
|
398
|
+
send: [{
|
|
399
|
+
type: i0.Output,
|
|
400
|
+
args: ["send"]
|
|
401
|
+
}]
|
|
402
|
+
}
|
|
403
|
+
});
|
|
404
|
+
function formatConversationPhone(phone) {
|
|
405
|
+
if (!phone) return "";
|
|
406
|
+
const digits = phone.replace(/\D/g, "");
|
|
407
|
+
if (digits.length === 10) return `(${digits.slice(0, 3)}) ${digits.slice(3, 6)}-${digits.slice(6)}`;
|
|
408
|
+
if (digits.length === 11 && digits.startsWith("1")) return `+1 (${digits.slice(1, 4)}) ${digits.slice(4, 7)}-${digits.slice(7)}`;
|
|
409
|
+
return phone;
|
|
410
|
+
}
|
|
411
|
+
function truncateConversationText(text, len) {
|
|
412
|
+
if (!text) return "";
|
|
413
|
+
return text.length > len ? text.substring(0, len) + "..." : text;
|
|
414
|
+
}
|
|
415
|
+
function formatConversationTime(iso, now = /* @__PURE__ */ new Date(), ui) {
|
|
416
|
+
const text = (key, params) => ui ? ui.t(key, params) : defaultLabel(key, params);
|
|
417
|
+
if (!iso) return "";
|
|
418
|
+
const d = new Date(iso);
|
|
419
|
+
if (Number.isNaN(d.getTime())) return "";
|
|
420
|
+
const mins = Math.floor((now.getTime() - d.getTime()) / 6e4);
|
|
421
|
+
if (mins < 1) return text("time.now");
|
|
422
|
+
if (mins < 60) return text("time.minutesShort", { n: mins });
|
|
423
|
+
const hrs = Math.floor(mins / 60);
|
|
424
|
+
if (hrs < 24) return text("time.hoursShort", { n: hrs });
|
|
425
|
+
const days = Math.floor(hrs / 24);
|
|
426
|
+
if (days < 7) return text("time.daysShort", { n: days });
|
|
427
|
+
return d.toLocaleDateString(safeLocale(ui?.locale()), {
|
|
428
|
+
month: "short",
|
|
429
|
+
day: "numeric"
|
|
430
|
+
});
|
|
431
|
+
}
|
|
432
|
+
function formatMessageTime(iso, ui) {
|
|
433
|
+
const d = new Date(iso);
|
|
434
|
+
return Number.isNaN(d.getTime()) ? "" : d.toLocaleTimeString(safeLocale(ui?.locale()), {
|
|
435
|
+
hour: "numeric",
|
|
436
|
+
minute: "2-digit"
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
function conversationDateLabel(iso, now = /* @__PURE__ */ new Date(), ui) {
|
|
440
|
+
const d = new Date(iso);
|
|
441
|
+
if (Number.isNaN(d.getTime())) return "";
|
|
442
|
+
const yesterday = new Date(now);
|
|
443
|
+
yesterday.setDate(yesterday.getDate() - 1);
|
|
444
|
+
if (d.toDateString() === now.toDateString()) return ui ? ui.t("time.today") : defaultLabel("time.today");
|
|
445
|
+
if (d.toDateString() === yesterday.toDateString()) return ui ? ui.t("time.yesterday") : defaultLabel("time.yesterday");
|
|
446
|
+
return d.toLocaleDateString(safeLocale(ui?.locale()), {
|
|
447
|
+
month: "short",
|
|
448
|
+
day: "numeric",
|
|
449
|
+
year: "numeric"
|
|
450
|
+
});
|
|
451
|
+
}
|
|
452
|
+
function conversationInitial(name) {
|
|
453
|
+
return (name ?? "").trim().charAt(0).toUpperCase() || "?";
|
|
454
|
+
}
|
|
455
|
+
function groupMessagesByDay(messages, now = /* @__PURE__ */ new Date(), ui) {
|
|
456
|
+
return messages.map((message, i) => {
|
|
457
|
+
const label = conversationDateLabel(message.sentAt, now, ui);
|
|
458
|
+
return {
|
|
459
|
+
message,
|
|
460
|
+
separator: i === 0 || conversationDateLabel(messages[i - 1].sentAt, now, ui) !== label ? label : ""
|
|
461
|
+
};
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
function conversationMessageStatusLabel(status) {
|
|
465
|
+
switch (status) {
|
|
466
|
+
case "delivered": return uiText("conversations.status.delivered");
|
|
467
|
+
case "sent": return uiText("conversations.status.sent");
|
|
468
|
+
case "failed": return uiText("conversations.status.failed");
|
|
469
|
+
case "scheduled": return uiText("conversations.status.scheduled");
|
|
470
|
+
default: return "";
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
function conversationMessageStatusMark(status) {
|
|
474
|
+
if (status === "delivered") return "✓✓";
|
|
475
|
+
if (status === "sent") return "✓";
|
|
476
|
+
return conversationMessageStatusLabel(status);
|
|
477
|
+
}
|
|
478
|
+
function conversationHtmlToText(html) {
|
|
479
|
+
if (!html) return "";
|
|
480
|
+
const doc = new DOMParser().parseFromString(`<body>${html}</body>`, "text/html");
|
|
481
|
+
const out = [];
|
|
482
|
+
const walk = (node) => {
|
|
483
|
+
node.childNodes.forEach((child) => {
|
|
484
|
+
if (child.nodeType === Node.TEXT_NODE) {
|
|
485
|
+
out.push(child.nodeValue ?? "");
|
|
486
|
+
return;
|
|
487
|
+
}
|
|
488
|
+
if (child.nodeType !== Node.ELEMENT_NODE) return;
|
|
489
|
+
const el = child;
|
|
490
|
+
if (el.tagName === "BR") {
|
|
491
|
+
out.push("\n");
|
|
492
|
+
return;
|
|
493
|
+
}
|
|
494
|
+
if (/^(SCRIPT|STYLE|NOSCRIPT|TEMPLATE)$/.test(el.tagName)) return;
|
|
495
|
+
const block = /^(P|DIV|LI|UL|OL|BLOCKQUOTE|H[1-6])$/.test(el.tagName);
|
|
496
|
+
if (block && out.length && !/\n$/.test(out[out.length - 1])) out.push("\n");
|
|
497
|
+
walk(el);
|
|
498
|
+
if (block && !/\n$/.test(out[out.length - 1] ?? "")) out.push("\n");
|
|
499
|
+
});
|
|
500
|
+
};
|
|
501
|
+
walk(doc.body);
|
|
502
|
+
return out.join("").replace(/\u00a0/g, " ").replace(/\n{3,}/g, "\n\n").trim();
|
|
503
|
+
}
|
|
504
|
+
var ConversationRichBodyComponent = class ConversationRichBodyComponent {
|
|
505
|
+
constructor() {
|
|
506
|
+
this.html = input("", ...ngDevMode ? [{ debugName: "html" }] : /* istanbul ignore next */ []);
|
|
507
|
+
this.safe = computed(() => sanitizeRichTextHtml(this.html(), { mode: "paste" }), ...ngDevMode ? [{ debugName: "safe" }] : /* istanbul ignore next */ []);
|
|
508
|
+
}
|
|
509
|
+
static {
|
|
510
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
511
|
+
minVersion: "12.0.0",
|
|
512
|
+
version: "22.2.2",
|
|
513
|
+
ngImport: i0,
|
|
514
|
+
type: ConversationRichBodyComponent,
|
|
515
|
+
deps: [],
|
|
516
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
static {
|
|
520
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
521
|
+
minVersion: "17.1.0",
|
|
522
|
+
version: "22.2.2",
|
|
523
|
+
type: ConversationRichBodyComponent,
|
|
524
|
+
isStandalone: true,
|
|
525
|
+
selector: "ui-conversation-rich-body",
|
|
526
|
+
inputs: { html: {
|
|
527
|
+
classPropertyName: "html",
|
|
528
|
+
publicName: "html",
|
|
529
|
+
isSignal: true,
|
|
530
|
+
isRequired: false,
|
|
531
|
+
transformFunction: null
|
|
532
|
+
} },
|
|
533
|
+
host: {
|
|
534
|
+
properties: { "innerHTML": "safe()" },
|
|
535
|
+
classAttribute: "cv-rich"
|
|
536
|
+
},
|
|
537
|
+
ngImport: i0,
|
|
538
|
+
template: "",
|
|
539
|
+
isInline: true,
|
|
540
|
+
styles: [".cv-rich{display:block;font-size:.875rem;line-height:1.45;word-break:break-word}.cv-rich p,.cv-rich div{margin:0}.cv-rich ul,.cv-rich ol{margin:0;padding-inline-start:1.25rem}.cv-rich a{color:inherit;text-decoration:underline;text-underline-offset:2px}.cv-rich strong,.cv-rich b{font-weight:700}.cv-rich blockquote{margin:4px 0;padding-inline-start:10px;border-inline-start:3px solid currentColor;opacity:.9}.cv-rich h1,.cv-rich h2,.cv-rich h3,.cv-rich h4{margin:0;font-size:1rem;font-weight:700;line-height:1.35}.cv-rich hr{border:0;border-top:1px solid currentColor;opacity:.4;margin:6px 0}\n"],
|
|
541
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
542
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
543
|
+
});
|
|
544
|
+
}
|
|
545
|
+
};
|
|
546
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
547
|
+
minVersion: "12.0.0",
|
|
548
|
+
version: "22.2.2",
|
|
549
|
+
ngImport: i0,
|
|
550
|
+
type: ConversationRichBodyComponent,
|
|
551
|
+
decorators: [{
|
|
552
|
+
type: Component,
|
|
553
|
+
args: [{
|
|
554
|
+
selector: "ui-conversation-rich-body",
|
|
555
|
+
standalone: true,
|
|
556
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
557
|
+
encapsulation: ViewEncapsulation.None,
|
|
558
|
+
host: {
|
|
559
|
+
class: "cv-rich",
|
|
560
|
+
"[innerHTML]": "safe()"
|
|
561
|
+
},
|
|
562
|
+
template: "",
|
|
563
|
+
styles: [".cv-rich{display:block;font-size:.875rem;line-height:1.45;word-break:break-word}.cv-rich p,.cv-rich div{margin:0}.cv-rich ul,.cv-rich ol{margin:0;padding-inline-start:1.25rem}.cv-rich a{color:inherit;text-decoration:underline;text-underline-offset:2px}.cv-rich strong,.cv-rich b{font-weight:700}.cv-rich blockquote{margin:4px 0;padding-inline-start:10px;border-inline-start:3px solid currentColor;opacity:.9}.cv-rich h1,.cv-rich h2,.cv-rich h3,.cv-rich h4{margin:0;font-size:1rem;font-weight:700;line-height:1.35}.cv-rich hr{border:0;border-top:1px solid currentColor;opacity:.4;margin:6px 0}\n"]
|
|
564
|
+
}]
|
|
565
|
+
}],
|
|
566
|
+
propDecorators: { html: [{
|
|
567
|
+
type: i0.Input,
|
|
568
|
+
args: [{
|
|
569
|
+
isSignal: true,
|
|
570
|
+
alias: "html",
|
|
571
|
+
required: false
|
|
572
|
+
}]
|
|
573
|
+
}] }
|
|
574
|
+
});
|
|
575
|
+
const RICH_COMPOSER_HIDE = [
|
|
576
|
+
"strikethrough",
|
|
577
|
+
"heading",
|
|
578
|
+
"fontSize",
|
|
579
|
+
"fontFamily",
|
|
580
|
+
"textColor",
|
|
581
|
+
"highlight",
|
|
582
|
+
"align",
|
|
583
|
+
"indent",
|
|
584
|
+
"outdent",
|
|
585
|
+
"clearFormat"
|
|
586
|
+
];
|
|
587
|
+
const SINGLE_COLUMN_QUERY = "(max-width: 768px)";
|
|
588
|
+
const NEAR_BOTTOM_PX = 120;
|
|
589
|
+
const PREVIEW_LENGTH = 60;
|
|
590
|
+
let nextId = 0;
|
|
591
|
+
var ConversationsComponent = class ConversationsComponent {
|
|
592
|
+
constructor() {
|
|
593
|
+
this.labels = inject(UiLabelsService);
|
|
594
|
+
this.conversations = input([], ...ngDevMode ? [{ debugName: "conversations" }] : /* istanbul ignore next */ []);
|
|
595
|
+
this.selected = input(null, ...ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []);
|
|
596
|
+
this.titleInput = input(null, {
|
|
597
|
+
...ngDevMode ? { debugName: "titleInput" } : /* istanbul ignore next */ {},
|
|
598
|
+
alias: "title"
|
|
599
|
+
});
|
|
600
|
+
this.title = computed(() => this.titleInput() ?? this.labels.t("conversations.title"), ...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
|
|
601
|
+
this.loading = input(false, ...ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []);
|
|
602
|
+
this.error = input(null, ...ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []);
|
|
603
|
+
this.searchText = model("", ...ngDevMode ? [{ debugName: "searchText" }] : /* istanbul ignore next */ []);
|
|
604
|
+
this.searchPlaceholderInput = input(null, {
|
|
605
|
+
...ngDevMode ? { debugName: "searchPlaceholderInput" } : /* istanbul ignore next */ {},
|
|
606
|
+
alias: "searchPlaceholder"
|
|
607
|
+
});
|
|
608
|
+
this.searchPlaceholder = computed(() => this.searchPlaceholderInput() ?? this.labels.t("conversations.searchPlaceholder"), ...ngDevMode ? [{ debugName: "searchPlaceholder" }] : /* istanbul ignore next */ []);
|
|
609
|
+
this.searchAriaLabelInput = input(null, {
|
|
610
|
+
...ngDevMode ? { debugName: "searchAriaLabelInput" } : /* istanbul ignore next */ {},
|
|
611
|
+
alias: "searchAriaLabel"
|
|
612
|
+
});
|
|
613
|
+
this.searchAriaLabel = computed(() => this.searchAriaLabelInput() ?? this.labels.t("conversations.searchAriaLabel"), ...ngDevMode ? [{ debugName: "searchAriaLabel" }] : /* istanbul ignore next */ []);
|
|
614
|
+
this.showFilters = input(true, ...ngDevMode ? [{ debugName: "showFilters" }] : /* istanbul ignore next */ []);
|
|
615
|
+
this.filterTabs = input([], ...ngDevMode ? [{ debugName: "filterTabs" }] : /* istanbul ignore next */ []);
|
|
616
|
+
this.filterCounts = input({}, ...ngDevMode ? [{ debugName: "filterCounts" }] : /* istanbul ignore next */ []);
|
|
617
|
+
this.activeFilter = input("", ...ngDevMode ? [{ debugName: "activeFilter" }] : /* istanbul ignore next */ []);
|
|
618
|
+
this.filterAriaLabelInput = input(null, {
|
|
619
|
+
...ngDevMode ? { debugName: "filterAriaLabelInput" } : /* istanbul ignore next */ {},
|
|
620
|
+
alias: "filterAriaLabel"
|
|
621
|
+
});
|
|
622
|
+
this.filterAriaLabel = computed(() => this.filterAriaLabelInput() ?? this.labels.t("conversations.filterAriaLabel"), ...ngDevMode ? [{ debugName: "filterAriaLabel" }] : /* istanbul ignore next */ []);
|
|
623
|
+
this.page = input(1, ...ngDevMode ? [{ debugName: "page" }] : /* istanbul ignore next */ []);
|
|
624
|
+
this.pageSize = input(25, ...ngDevMode ? [{ debugName: "pageSize" }] : /* istanbul ignore next */ []);
|
|
625
|
+
this.totalItems = input(0, ...ngDevMode ? [{ debugName: "totalItems" }] : /* istanbul ignore next */ []);
|
|
626
|
+
this.paginationAriaLabelInput = input(null, {
|
|
627
|
+
...ngDevMode ? { debugName: "paginationAriaLabelInput" } : /* istanbul ignore next */ {},
|
|
628
|
+
alias: "paginationAriaLabel"
|
|
629
|
+
});
|
|
630
|
+
this.paginationAriaLabel = computed(() => this.paginationAriaLabelInput() ?? this.labels.t("conversations.paginationAriaLabel"), ...ngDevMode ? [{ debugName: "paginationAriaLabel" }] : /* istanbul ignore next */ []);
|
|
631
|
+
this.listAriaLabelInput = input(null, {
|
|
632
|
+
...ngDevMode ? { debugName: "listAriaLabelInput" } : /* istanbul ignore next */ {},
|
|
633
|
+
alias: "listAriaLabel"
|
|
634
|
+
});
|
|
635
|
+
this.listAriaLabel = computed(() => this.listAriaLabelInput() ?? this.labels.t("conversations.listAriaLabel"), ...ngDevMode ? [{ debugName: "listAriaLabel" }] : /* istanbul ignore next */ []);
|
|
636
|
+
this.loadingLabelInput = input(null, {
|
|
637
|
+
...ngDevMode ? { debugName: "loadingLabelInput" } : /* istanbul ignore next */ {},
|
|
638
|
+
alias: "loadingLabel"
|
|
639
|
+
});
|
|
640
|
+
this.loadingLabel = computed(() => this.loadingLabelInput() ?? this.labels.t("conversations.loadingLabel"), ...ngDevMode ? [{ debugName: "loadingLabel" }] : /* istanbul ignore next */ []);
|
|
641
|
+
this.emptyTitleInput = input(null, {
|
|
642
|
+
...ngDevMode ? { debugName: "emptyTitleInput" } : /* istanbul ignore next */ {},
|
|
643
|
+
alias: "emptyTitle"
|
|
644
|
+
});
|
|
645
|
+
this.emptyTitle = computed(() => this.emptyTitleInput() ?? this.labels.t("conversations.emptyTitle"), ...ngDevMode ? [{ debugName: "emptyTitle" }] : /* istanbul ignore next */ []);
|
|
646
|
+
this.emptyMessageInput = input(null, {
|
|
647
|
+
...ngDevMode ? { debugName: "emptyMessageInput" } : /* istanbul ignore next */ {},
|
|
648
|
+
alias: "emptyMessage"
|
|
649
|
+
});
|
|
650
|
+
this.emptyMessage = computed(() => this.emptyMessageInput() ?? this.labels.t("conversations.emptyMessage"), ...ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []);
|
|
651
|
+
this.emptyReadOnlyMessageInput = input(null, {
|
|
652
|
+
...ngDevMode ? { debugName: "emptyReadOnlyMessageInput" } : /* istanbul ignore next */ {},
|
|
653
|
+
alias: "emptyReadOnlyMessage"
|
|
654
|
+
});
|
|
655
|
+
this.emptyReadOnlyMessage = computed(() => this.emptyReadOnlyMessageInput() ?? this.labels.t("conversations.emptyReadOnlyMessage"), ...ngDevMode ? [{ debugName: "emptyReadOnlyMessage" }] : /* istanbul ignore next */ []);
|
|
656
|
+
this.filteredEmptyTitleInput = input(null, {
|
|
657
|
+
...ngDevMode ? { debugName: "filteredEmptyTitleInput" } : /* istanbul ignore next */ {},
|
|
658
|
+
alias: "filteredEmptyTitle"
|
|
659
|
+
});
|
|
660
|
+
this.filteredEmptyTitle = computed(() => this.filteredEmptyTitleInput() ?? this.labels.t("conversations.filteredEmptyTitle"), ...ngDevMode ? [{ debugName: "filteredEmptyTitle" }] : /* istanbul ignore next */ []);
|
|
661
|
+
this.filteredEmptyMessageInput = input(null, {
|
|
662
|
+
...ngDevMode ? { debugName: "filteredEmptyMessageInput" } : /* istanbul ignore next */ {},
|
|
663
|
+
alias: "filteredEmptyMessage"
|
|
664
|
+
});
|
|
665
|
+
this.filteredEmptyMessage = computed(() => this.filteredEmptyMessageInput() ?? this.labels.t("conversations.filteredEmptyMessage"), ...ngDevMode ? [{ debugName: "filteredEmptyMessage" }] : /* istanbul ignore next */ []);
|
|
666
|
+
this.noMessagesTextInput = input(null, {
|
|
667
|
+
...ngDevMode ? { debugName: "noMessagesTextInput" } : /* istanbul ignore next */ {},
|
|
668
|
+
alias: "noMessagesText"
|
|
669
|
+
});
|
|
670
|
+
this.noMessagesText = computed(() => this.noMessagesTextInput() ?? this.labels.t("conversations.noMessagesText"), ...ngDevMode ? [{ debugName: "noMessagesText" }] : /* istanbul ignore next */ []);
|
|
671
|
+
this.allowNew = input(true, ...ngDevMode ? [{ debugName: "allowNew" }] : /* istanbul ignore next */ []);
|
|
672
|
+
this.allowDelete = input(true, ...ngDevMode ? [{ debugName: "allowDelete" }] : /* istanbul ignore next */ []);
|
|
673
|
+
this.showRowArrow = input(false, ...ngDevMode ? [{ debugName: "showRowArrow" }] : /* istanbul ignore next */ []);
|
|
674
|
+
this.selectable = input(true, ...ngDevMode ? [{ debugName: "selectable" }] : /* istanbul ignore next */ []);
|
|
675
|
+
this.newLabelInput = input(null, {
|
|
676
|
+
...ngDevMode ? { debugName: "newLabelInput" } : /* istanbul ignore next */ {},
|
|
677
|
+
alias: "newLabel"
|
|
678
|
+
});
|
|
679
|
+
this.newLabel = computed(() => this.newLabelInput() ?? this.labels.t("conversations.newLabel"), ...ngDevMode ? [{ debugName: "newLabel" }] : /* istanbul ignore next */ []);
|
|
680
|
+
this.newTooltipInput = input(null, {
|
|
681
|
+
...ngDevMode ? { debugName: "newTooltipInput" } : /* istanbul ignore next */ {},
|
|
682
|
+
alias: "newTooltip"
|
|
683
|
+
});
|
|
684
|
+
this.newTooltip = computed(() => this.newTooltipInput() ?? this.labels.t("conversations.newTooltip"), ...ngDevMode ? [{ debugName: "newTooltip" }] : /* istanbul ignore next */ []);
|
|
685
|
+
this.deleteRowLabelInput = input(null, {
|
|
686
|
+
...ngDevMode ? { debugName: "deleteRowLabelInput" } : /* istanbul ignore next */ {},
|
|
687
|
+
alias: "deleteRowLabel"
|
|
688
|
+
});
|
|
689
|
+
this.deleteRowLabel = computed(() => this.deleteRowLabelInput() ?? this.labels.t("conversations.deleteRowLabel"), ...ngDevMode ? [{ debugName: "deleteRowLabel" }] : /* istanbul ignore next */ []);
|
|
690
|
+
this.messages = input([], ...ngDevMode ? [{ debugName: "messages" }] : /* istanbul ignore next */ []);
|
|
691
|
+
this.messagesLoading = input(false, ...ngDevMode ? [{ debugName: "messagesLoading" }] : /* istanbul ignore next */ []);
|
|
692
|
+
this.messagesError = input(null, ...ngDevMode ? [{ debugName: "messagesError" }] : /* istanbul ignore next */ []);
|
|
693
|
+
this.hasEarlier = input(false, ...ngDevMode ? [{ debugName: "hasEarlier" }] : /* istanbul ignore next */ []);
|
|
694
|
+
this.loadingEarlier = input(false, ...ngDevMode ? [{ debugName: "loadingEarlier" }] : /* istanbul ignore next */ []);
|
|
695
|
+
this.loadEarlierLabelInput = input(null, {
|
|
696
|
+
...ngDevMode ? { debugName: "loadEarlierLabelInput" } : /* istanbul ignore next */ {},
|
|
697
|
+
alias: "loadEarlierLabel"
|
|
698
|
+
});
|
|
699
|
+
this.loadEarlierLabel = computed(() => this.loadEarlierLabelInput() ?? this.labels.t("conversations.loadEarlierLabel"), ...ngDevMode ? [{ debugName: "loadEarlierLabel" }] : /* istanbul ignore next */ []);
|
|
700
|
+
this.statusActionLabel = input(null, ...ngDevMode ? [{ debugName: "statusActionLabel" }] : /* istanbul ignore next */ []);
|
|
701
|
+
this.statusActionIcon = input("close", ...ngDevMode ? [{ debugName: "statusActionIcon" }] : /* istanbul ignore next */ []);
|
|
702
|
+
this.statusChanging = input(false, ...ngDevMode ? [{ debugName: "statusChanging" }] : /* istanbul ignore next */ []);
|
|
703
|
+
this.templatesEnabled = input(false, ...ngDevMode ? [{ debugName: "templatesEnabled" }] : /* istanbul ignore next */ []);
|
|
704
|
+
this.templateLabelInput = input(null, {
|
|
705
|
+
...ngDevMode ? { debugName: "templateLabelInput" } : /* istanbul ignore next */ {},
|
|
706
|
+
alias: "templateLabel"
|
|
707
|
+
});
|
|
708
|
+
this.templateLabel = computed(() => this.templateLabelInput() ?? this.labels.t("conversations.templateLabel"), ...ngDevMode ? [{ debugName: "templateLabel" }] : /* istanbul ignore next */ []);
|
|
709
|
+
this.deleteThreadLabelInput = input(null, {
|
|
710
|
+
...ngDevMode ? { debugName: "deleteThreadLabelInput" } : /* istanbul ignore next */ {},
|
|
711
|
+
alias: "deleteThreadLabel"
|
|
712
|
+
});
|
|
713
|
+
this.deleteThreadLabel = computed(() => this.deleteThreadLabelInput() ?? this.labels.t("conversations.deleteThreadLabel"), ...ngDevMode ? [{ debugName: "deleteThreadLabel" }] : /* istanbul ignore next */ []);
|
|
714
|
+
this.backLabelInput = input(null, {
|
|
715
|
+
...ngDevMode ? { debugName: "backLabelInput" } : /* istanbul ignore next */ {},
|
|
716
|
+
alias: "backLabel"
|
|
717
|
+
});
|
|
718
|
+
this.backLabel = computed(() => this.backLabelInput() ?? this.labels.t("conversations.backLabel"), ...ngDevMode ? [{ debugName: "backLabel" }] : /* istanbul ignore next */ []);
|
|
719
|
+
this.threadAriaLabelInput = input(null, {
|
|
720
|
+
...ngDevMode ? { debugName: "threadAriaLabelInput" } : /* istanbul ignore next */ {},
|
|
721
|
+
alias: "threadAriaLabel"
|
|
722
|
+
});
|
|
723
|
+
this.threadAriaLabel = computed(() => this.threadAriaLabelInput() ?? this.labels.t("conversations.threadAriaLabel"), ...ngDevMode ? [{ debugName: "threadAriaLabel" }] : /* istanbul ignore next */ []);
|
|
724
|
+
this.messagesAriaLabelInput = input(null, {
|
|
725
|
+
...ngDevMode ? { debugName: "messagesAriaLabelInput" } : /* istanbul ignore next */ {},
|
|
726
|
+
alias: "messagesAriaLabel"
|
|
727
|
+
});
|
|
728
|
+
this.messagesAriaLabel = computed(() => this.messagesAriaLabelInput() ?? this.labels.t("conversations.messagesAriaLabel"), ...ngDevMode ? [{ debugName: "messagesAriaLabel" }] : /* istanbul ignore next */ []);
|
|
729
|
+
this.threadEmptyTitleInput = input(null, {
|
|
730
|
+
...ngDevMode ? { debugName: "threadEmptyTitleInput" } : /* istanbul ignore next */ {},
|
|
731
|
+
alias: "threadEmptyTitle"
|
|
732
|
+
});
|
|
733
|
+
this.threadEmptyTitle = computed(() => this.threadEmptyTitleInput() ?? this.labels.t("conversations.threadEmptyTitle"), ...ngDevMode ? [{ debugName: "threadEmptyTitle" }] : /* istanbul ignore next */ []);
|
|
734
|
+
this.threadEmptyMessageInput = input(null, {
|
|
735
|
+
...ngDevMode ? { debugName: "threadEmptyMessageInput" } : /* istanbul ignore next */ {},
|
|
736
|
+
alias: "threadEmptyMessage"
|
|
737
|
+
});
|
|
738
|
+
this.threadEmptyMessage = computed(() => this.threadEmptyMessageInput() ?? this.labels.t("conversations.threadEmptyMessage"), ...ngDevMode ? [{ debugName: "threadEmptyMessage" }] : /* istanbul ignore next */ []);
|
|
739
|
+
this.noMessagesWriteTextInput = input(null, {
|
|
740
|
+
...ngDevMode ? { debugName: "noMessagesWriteTextInput" } : /* istanbul ignore next */ {},
|
|
741
|
+
alias: "noMessagesWriteText"
|
|
742
|
+
});
|
|
743
|
+
this.noMessagesWriteText = computed(() => this.noMessagesWriteTextInput() ?? this.labels.t("conversations.noMessagesWriteText"), ...ngDevMode ? [{ debugName: "noMessagesWriteText" }] : /* istanbul ignore next */ []);
|
|
744
|
+
this.noMessagesReadTextInput = input(null, {
|
|
745
|
+
...ngDevMode ? { debugName: "noMessagesReadTextInput" } : /* istanbul ignore next */ {},
|
|
746
|
+
alias: "noMessagesReadText"
|
|
747
|
+
});
|
|
748
|
+
this.noMessagesReadText = computed(() => this.noMessagesReadTextInput() ?? this.labels.t("conversations.noMessagesReadText"), ...ngDevMode ? [{ debugName: "noMessagesReadText" }] : /* istanbul ignore next */ []);
|
|
749
|
+
this.youLabelInput = input(null, {
|
|
750
|
+
...ngDevMode ? { debugName: "youLabelInput" } : /* istanbul ignore next */ {},
|
|
751
|
+
alias: "youLabel"
|
|
752
|
+
});
|
|
753
|
+
this.youLabel = computed(() => this.youLabelInput() ?? this.labels.t("conversations.youLabel"), ...ngDevMode ? [{ debugName: "youLabel" }] : /* istanbul ignore next */ []);
|
|
754
|
+
this.openMediaLabelInput = input(null, {
|
|
755
|
+
...ngDevMode ? { debugName: "openMediaLabelInput" } : /* istanbul ignore next */ {},
|
|
756
|
+
alias: "openMediaLabel"
|
|
757
|
+
});
|
|
758
|
+
this.openMediaLabel = computed(() => this.openMediaLabelInput() ?? this.labels.t("conversations.openMediaLabel"), ...ngDevMode ? [{ debugName: "openMediaLabel" }] : /* istanbul ignore next */ []);
|
|
759
|
+
this.imageFallbackNameInput = input(null, {
|
|
760
|
+
...ngDevMode ? { debugName: "imageFallbackNameInput" } : /* istanbul ignore next */ {},
|
|
761
|
+
alias: "imageFallbackName"
|
|
762
|
+
});
|
|
763
|
+
this.imageFallbackName = computed(() => this.imageFallbackNameInput() ?? this.labels.t("conversations.imageFallbackName"), ...ngDevMode ? [{ debugName: "imageFallbackName" }] : /* istanbul ignore next */ []);
|
|
764
|
+
this.fileFallbackNameInput = input(null, {
|
|
765
|
+
...ngDevMode ? { debugName: "fileFallbackNameInput" } : /* istanbul ignore next */ {},
|
|
766
|
+
alias: "fileFallbackName"
|
|
767
|
+
});
|
|
768
|
+
this.fileFallbackName = computed(() => this.fileFallbackNameInput() ?? this.labels.t("conversations.fileFallbackName"), ...ngDevMode ? [{ debugName: "fileFallbackName" }] : /* istanbul ignore next */ []);
|
|
769
|
+
this.hasContext = input(false, ...ngDevMode ? [{ debugName: "hasContext" }] : /* istanbul ignore next */ []);
|
|
770
|
+
this.contextOpen = model(false, ...ngDevMode ? [{ debugName: "contextOpen" }] : /* istanbul ignore next */ []);
|
|
771
|
+
this.contextTitleInput = input(null, {
|
|
772
|
+
...ngDevMode ? { debugName: "contextTitleInput" } : /* istanbul ignore next */ {},
|
|
773
|
+
alias: "contextTitle"
|
|
774
|
+
});
|
|
775
|
+
this.contextTitle = computed(() => this.contextTitleInput() ?? this.labels.t("conversations.contextTitle"), ...ngDevMode ? [{ debugName: "contextTitle" }] : /* istanbul ignore next */ []);
|
|
776
|
+
this.showContextLabelInput = input(null, {
|
|
777
|
+
...ngDevMode ? { debugName: "showContextLabelInput" } : /* istanbul ignore next */ {},
|
|
778
|
+
alias: "showContextLabel"
|
|
779
|
+
});
|
|
780
|
+
this.showContextLabel = computed(() => this.showContextLabelInput() ?? this.labels.t("conversations.showContextLabel"), ...ngDevMode ? [{ debugName: "showContextLabel" }] : /* istanbul ignore next */ []);
|
|
781
|
+
this.hideContextLabelInput = input(null, {
|
|
782
|
+
...ngDevMode ? { debugName: "hideContextLabelInput" } : /* istanbul ignore next */ {},
|
|
783
|
+
alias: "hideContextLabel"
|
|
784
|
+
});
|
|
785
|
+
this.hideContextLabel = computed(() => this.hideContextLabelInput() ?? this.labels.t("conversations.hideContextLabel"), ...ngDevMode ? [{ debugName: "hideContextLabel" }] : /* istanbul ignore next */ []);
|
|
786
|
+
this.closeContextLabelInput = input(null, {
|
|
787
|
+
...ngDevMode ? { debugName: "closeContextLabelInput" } : /* istanbul ignore next */ {},
|
|
788
|
+
alias: "closeContextLabel"
|
|
789
|
+
});
|
|
790
|
+
this.closeContextLabel = computed(() => this.closeContextLabelInput() ?? this.labels.t("conversations.closeContextLabel"), ...ngDevMode ? [{ debugName: "closeContextLabel" }] : /* istanbul ignore next */ []);
|
|
791
|
+
this.canWrite = input(true, ...ngDevMode ? [{ debugName: "canWrite" }] : /* istanbul ignore next */ []);
|
|
792
|
+
this.draft = model("", ...ngDevMode ? [{ debugName: "draft" }] : /* istanbul ignore next */ []);
|
|
793
|
+
this.sending = input(false, ...ngDevMode ? [{ debugName: "sending" }] : /* istanbul ignore next */ []);
|
|
794
|
+
this.composerDisabled = input(false, ...ngDevMode ? [{ debugName: "composerDisabled" }] : /* istanbul ignore next */ []);
|
|
795
|
+
this.sendBlocked = input(false, ...ngDevMode ? [{ debugName: "sendBlocked" }] : /* istanbul ignore next */ []);
|
|
796
|
+
this.composerNotice = input("", ...ngDevMode ? [{ debugName: "composerNotice" }] : /* istanbul ignore next */ []);
|
|
797
|
+
this.composerStatus = input("", ...ngDevMode ? [{ debugName: "composerStatus" }] : /* istanbul ignore next */ []);
|
|
798
|
+
this.composerError = input("", ...ngDevMode ? [{ debugName: "composerError" }] : /* istanbul ignore next */ []);
|
|
799
|
+
this.maxLength = input(1600, ...ngDevMode ? [{ debugName: "maxLength" }] : /* istanbul ignore next */ []);
|
|
800
|
+
this.richText = input(false, ...ngDevMode ? [{ debugName: "richText" }] : /* istanbul ignore next */ []);
|
|
801
|
+
this.attachment = input(null, ...ngDevMode ? [{ debugName: "attachment" }] : /* istanbul ignore next */ []);
|
|
802
|
+
this.uploading = input(false, ...ngDevMode ? [{ debugName: "uploading" }] : /* istanbul ignore next */ []);
|
|
803
|
+
this.attachEnabled = input(true, ...ngDevMode ? [{ debugName: "attachEnabled" }] : /* istanbul ignore next */ []);
|
|
804
|
+
this.acceptedFiles = input("image/*,video/*", ...ngDevMode ? [{ debugName: "acceptedFiles" }] : /* istanbul ignore next */ []);
|
|
805
|
+
this.maxFileSize = input(null, ...ngDevMode ? [{ debugName: "maxFileSize" }] : /* istanbul ignore next */ []);
|
|
806
|
+
this.typeMessageInput = input(null, {
|
|
807
|
+
...ngDevMode ? { debugName: "typeMessageInput" } : /* istanbul ignore next */ {},
|
|
808
|
+
alias: "typeMessage"
|
|
809
|
+
});
|
|
810
|
+
this.typeMessage = computed(() => this.typeMessageInput() ?? this.labels.t("conversations.typeMessage"), ...ngDevMode ? [{ debugName: "typeMessage" }] : /* istanbul ignore next */ []);
|
|
811
|
+
this.sizeMessageInput = input(null, {
|
|
812
|
+
...ngDevMode ? { debugName: "sizeMessageInput" } : /* istanbul ignore next */ {},
|
|
813
|
+
alias: "sizeMessage"
|
|
814
|
+
});
|
|
815
|
+
this.sizeMessage = computed(() => this.sizeMessageInput() ?? this.labels.t("conversations.sizeMessage"), ...ngDevMode ? [{ debugName: "sizeMessage" }] : /* istanbul ignore next */ []);
|
|
816
|
+
this.composeLabelInput = input(null, {
|
|
817
|
+
...ngDevMode ? { debugName: "composeLabelInput" } : /* istanbul ignore next */ {},
|
|
818
|
+
alias: "composeLabel"
|
|
819
|
+
});
|
|
820
|
+
this.composeLabel = computed(() => this.composeLabelInput() ?? this.labels.t("conversations.composeLabel"), ...ngDevMode ? [{ debugName: "composeLabel" }] : /* istanbul ignore next */ []);
|
|
821
|
+
this.composePlaceholderInput = input(null, {
|
|
822
|
+
...ngDevMode ? { debugName: "composePlaceholderInput" } : /* istanbul ignore next */ {},
|
|
823
|
+
alias: "composePlaceholder"
|
|
824
|
+
});
|
|
825
|
+
this.composePlaceholder = computed(() => this.composePlaceholderInput() ?? this.labels.t("conversations.composePlaceholder"), ...ngDevMode ? [{ debugName: "composePlaceholder" }] : /* istanbul ignore next */ []);
|
|
826
|
+
this.sendLabelInput = input(null, {
|
|
827
|
+
...ngDevMode ? { debugName: "sendLabelInput" } : /* istanbul ignore next */ {},
|
|
828
|
+
alias: "sendLabel"
|
|
829
|
+
});
|
|
830
|
+
this.sendLabel = computed(() => this.sendLabelInput() ?? this.labels.t("conversations.sendLabel"), ...ngDevMode ? [{ debugName: "sendLabel" }] : /* istanbul ignore next */ []);
|
|
831
|
+
this.attachLabelInput = input(null, {
|
|
832
|
+
...ngDevMode ? { debugName: "attachLabelInput" } : /* istanbul ignore next */ {},
|
|
833
|
+
alias: "attachLabel"
|
|
834
|
+
});
|
|
835
|
+
this.attachLabel = computed(() => this.attachLabelInput() ?? this.labels.t("conversations.attachLabel"), ...ngDevMode ? [{ debugName: "attachLabel" }] : /* istanbul ignore next */ []);
|
|
836
|
+
this.removeAttachmentLabelInput = input(null, {
|
|
837
|
+
...ngDevMode ? { debugName: "removeAttachmentLabelInput" } : /* istanbul ignore next */ {},
|
|
838
|
+
alias: "removeAttachmentLabel"
|
|
839
|
+
});
|
|
840
|
+
this.removeAttachmentLabel = computed(() => this.removeAttachmentLabelInput() ?? this.labels.t("conversations.removeAttachmentLabel"), ...ngDevMode ? [{ debugName: "removeAttachmentLabel" }] : /* istanbul ignore next */ []);
|
|
841
|
+
this.attachmentPreviewLabelInput = input(null, {
|
|
842
|
+
...ngDevMode ? { debugName: "attachmentPreviewLabelInput" } : /* istanbul ignore next */ {},
|
|
843
|
+
alias: "attachmentPreviewLabel"
|
|
844
|
+
});
|
|
845
|
+
this.attachmentPreviewLabel = computed(() => this.attachmentPreviewLabelInput() ?? this.labels.t("conversations.attachmentPreviewLabel"), ...ngDevMode ? [{ debugName: "attachmentPreviewLabel" }] : /* istanbul ignore next */ []);
|
|
846
|
+
this.now = input(null, ...ngDevMode ? [{ debugName: "now" }] : /* istanbul ignore next */ []);
|
|
847
|
+
this.searchChange = output();
|
|
848
|
+
this.filterChange = output();
|
|
849
|
+
this.pageChange = output();
|
|
850
|
+
this.selectConversation = output();
|
|
851
|
+
this.back = output();
|
|
852
|
+
this.newConversation = output();
|
|
853
|
+
this.retry = output();
|
|
854
|
+
this.deleteConversation = output();
|
|
855
|
+
this.statusChange = output();
|
|
856
|
+
this.templateRequest = output();
|
|
857
|
+
this.send = output();
|
|
858
|
+
this.filesSelected = output();
|
|
859
|
+
this.attachmentRemove = output();
|
|
860
|
+
this.linkGroups = input(null, ...ngDevMode ? [{ debugName: "linkGroups" }] : /* istanbul ignore next */ []);
|
|
861
|
+
this.linkLoading = input(false, ...ngDevMode ? [{ debugName: "linkLoading" }] : /* istanbul ignore next */ []);
|
|
862
|
+
this.link = model(null, ...ngDevMode ? [{ debugName: "link" }] : /* istanbul ignore next */ []);
|
|
863
|
+
this.linkLabelInput = input(null, {
|
|
864
|
+
...ngDevMode ? { debugName: "linkLabelInput" } : /* istanbul ignore next */ {},
|
|
865
|
+
alias: "linkLabel"
|
|
866
|
+
});
|
|
867
|
+
this.linkLabel = computed(() => this.linkLabelInput() ?? this.labels.t("conversations.linkLabel"), ...ngDevMode ? [{ debugName: "linkLabel" }] : /* istanbul ignore next */ []);
|
|
868
|
+
this.linkPickerTitleInput = input(null, {
|
|
869
|
+
...ngDevMode ? { debugName: "linkPickerTitleInput" } : /* istanbul ignore next */ {},
|
|
870
|
+
alias: "linkPickerTitle"
|
|
871
|
+
});
|
|
872
|
+
this.linkPickerTitle = computed(() => this.linkPickerTitleInput() ?? this.labels.t("conversations.linkPickerTitle"), ...ngDevMode ? [{ debugName: "linkPickerTitle" }] : /* istanbul ignore next */ []);
|
|
873
|
+
this.linkSearchPlaceholderInput = input(null, {
|
|
874
|
+
...ngDevMode ? { debugName: "linkSearchPlaceholderInput" } : /* istanbul ignore next */ {},
|
|
875
|
+
alias: "linkSearchPlaceholder"
|
|
876
|
+
});
|
|
877
|
+
this.linkSearchPlaceholder = computed(() => this.linkSearchPlaceholderInput() ?? this.labels.t("conversations.linkSearchPlaceholder"), ...ngDevMode ? [{ debugName: "linkSearchPlaceholder" }] : /* istanbul ignore next */ []);
|
|
878
|
+
this.linkSearchLabelInput = input(null, {
|
|
879
|
+
...ngDevMode ? { debugName: "linkSearchLabelInput" } : /* istanbul ignore next */ {},
|
|
880
|
+
alias: "linkSearchLabel"
|
|
881
|
+
});
|
|
882
|
+
this.linkSearchLabel = computed(() => this.linkSearchLabelInput() ?? this.labels.t("conversations.linkSearchLabel"), ...ngDevMode ? [{ debugName: "linkSearchLabel" }] : /* istanbul ignore next */ []);
|
|
883
|
+
this.linkEmptyTextInput = input(null, {
|
|
884
|
+
...ngDevMode ? { debugName: "linkEmptyTextInput" } : /* istanbul ignore next */ {},
|
|
885
|
+
alias: "linkEmptyText"
|
|
886
|
+
});
|
|
887
|
+
this.linkEmptyText = computed(() => this.linkEmptyTextInput() ?? this.labels.t("conversations.linkEmptyText"), ...ngDevMode ? [{ debugName: "linkEmptyText" }] : /* istanbul ignore next */ []);
|
|
888
|
+
this.linkLoadingTextInput = input(null, {
|
|
889
|
+
...ngDevMode ? { debugName: "linkLoadingTextInput" } : /* istanbul ignore next */ {},
|
|
890
|
+
alias: "linkLoadingText"
|
|
891
|
+
});
|
|
892
|
+
this.linkLoadingText = computed(() => this.linkLoadingTextInput() ?? this.labels.t("conversations.linkLoadingText"), ...ngDevMode ? [{ debugName: "linkLoadingText" }] : /* istanbul ignore next */ []);
|
|
893
|
+
this.removeLinkLabelInput = input(null, {
|
|
894
|
+
...ngDevMode ? { debugName: "removeLinkLabelInput" } : /* istanbul ignore next */ {},
|
|
895
|
+
alias: "removeLinkLabel"
|
|
896
|
+
});
|
|
897
|
+
this.removeLinkLabel = computed(() => this.removeLinkLabelInput() ?? this.labels.t("conversations.removeLinkLabel"), ...ngDevMode ? [{ debugName: "removeLinkLabel" }] : /* istanbul ignore next */ []);
|
|
898
|
+
this.linkPickerOpened = output();
|
|
899
|
+
this.mediaOpen = output();
|
|
900
|
+
this.messageAction = output();
|
|
901
|
+
this.loadEarlier = output();
|
|
902
|
+
this.messagesRetry = output();
|
|
903
|
+
this.titleId = `cv-title-${nextId++}`;
|
|
904
|
+
this.skeletonRows = [
|
|
905
|
+
1,
|
|
906
|
+
2,
|
|
907
|
+
3,
|
|
908
|
+
4,
|
|
909
|
+
5
|
|
910
|
+
];
|
|
911
|
+
this.skeletonBubbles = [
|
|
912
|
+
0,
|
|
913
|
+
1,
|
|
914
|
+
2
|
|
915
|
+
];
|
|
916
|
+
this.trackConversation = (c) => c.id;
|
|
917
|
+
this.initial = conversationInitial;
|
|
918
|
+
this.statusLabel = conversationMessageStatusLabel;
|
|
919
|
+
this.statusMark = conversationMessageStatusMark;
|
|
920
|
+
this.injector = inject(Injector);
|
|
921
|
+
this.host = inject(ElementRef);
|
|
922
|
+
this.threadHeading = viewChild("threadHeading", ...ngDevMode ? [{ debugName: "threadHeading" }] : /* istanbul ignore next */ []);
|
|
923
|
+
this.messagesEl = viewChild("messagesEl", ...ngDevMode ? [{ debugName: "messagesEl" }] : /* istanbul ignore next */ []);
|
|
924
|
+
this.contextPanel = viewChild("contextPanel", ...ngDevMode ? [{ debugName: "contextPanel" }] : /* istanbul ignore next */ []);
|
|
925
|
+
this.fileInput = viewChild(FileInputComponent, ...ngDevMode ? [{ debugName: "fileInput" }] : /* istanbul ignore next */ []);
|
|
926
|
+
this.atBottom = true;
|
|
927
|
+
this.lastThreadId = null;
|
|
928
|
+
this.filtering = computed(() => !!this.searchText().trim() || this.activeFilter() !== "", ...ngDevMode ? [{ debugName: "filtering" }] : /* istanbul ignore next */ []);
|
|
929
|
+
this.emptyText = computed(() => this.filtering() ? this.filteredEmptyMessage() : this.canWrite() ? this.emptyMessage() : this.emptyReadOnlyMessage(), ...ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ []);
|
|
930
|
+
this.messageRows = computed(() => groupMessagesByDay(this.messages(), this.clock(), this.labels), ...ngDevMode ? [{ debugName: "messageRows" }] : /* istanbul ignore next */ []);
|
|
931
|
+
this.contextVisible = computed(() => this.hasContext() && this.contextOpen() && !!this.selected(), ...ngDevMode ? [{ debugName: "contextVisible" }] : /* istanbul ignore next */ []);
|
|
932
|
+
this.canSend = computed(() => !this.composerDisabled() && !this.sendBlocked() && !this.sending() && (this.draft().trim().length > 0 || !!this.attachment() || !!this.link()) && this.draft().trim().length <= this.maxLength(), ...ngDevMode ? [{ debugName: "canSend" }] : /* istanbul ignore next */ []);
|
|
933
|
+
this.pickerOpen = signal(false, ...ngDevMode ? [{ debugName: "pickerOpen" }] : /* istanbul ignore next */ []);
|
|
934
|
+
this.linkQuery = signal("", ...ngDevMode ? [{ debugName: "linkQuery" }] : /* istanbul ignore next */ []);
|
|
935
|
+
this.visibleLinkGroups = computed(() => {
|
|
936
|
+
const q = this.linkQuery().trim().toLowerCase();
|
|
937
|
+
const groups = this.linkGroups() ?? [];
|
|
938
|
+
if (!q) return groups.filter((g) => g.items.length > 0);
|
|
939
|
+
return groups.map((g) => ({
|
|
940
|
+
...g,
|
|
941
|
+
items: g.items.filter((i) => i.label.toLowerCase().includes(q))
|
|
942
|
+
})).filter((g) => g.items.length > 0);
|
|
943
|
+
}, ...ngDevMode ? [{ debugName: "visibleLinkGroups" }] : /* istanbul ignore next */ []);
|
|
944
|
+
this.editorHtml = signal("", ...ngDevMode ? [{ debugName: "editorHtml" }] : /* istanbul ignore next */ []);
|
|
945
|
+
this.richHide = RICH_COMPOSER_HIDE;
|
|
946
|
+
effect(() => {
|
|
947
|
+
const text = this.draft();
|
|
948
|
+
if (!this.richText()) return;
|
|
949
|
+
untracked(() => {
|
|
950
|
+
if (text !== conversationHtmlToText(this.editorHtml())) this.editorHtml.set(plainTextToHtml(text));
|
|
951
|
+
});
|
|
952
|
+
});
|
|
953
|
+
effect(() => {
|
|
954
|
+
const id = this.selected()?.id ?? null;
|
|
955
|
+
const count = this.messages().length;
|
|
956
|
+
untracked(() => {
|
|
957
|
+
const switched = id !== this.lastThreadId;
|
|
958
|
+
this.lastThreadId = id;
|
|
959
|
+
if (switched) this.atBottom = true;
|
|
960
|
+
if (count > 0 && this.atBottom) this.scrollToBottom();
|
|
961
|
+
});
|
|
962
|
+
});
|
|
963
|
+
effect(() => {
|
|
964
|
+
if (!this.selected() && this.contextOpen()) untracked(() => this.contextOpen.set(false));
|
|
965
|
+
});
|
|
966
|
+
}
|
|
967
|
+
relativeTime(iso) {
|
|
968
|
+
return formatConversationTime(iso, this.clock(), this.labels);
|
|
969
|
+
}
|
|
970
|
+
preview(text) {
|
|
971
|
+
return truncateConversationText(text, PREVIEW_LENGTH);
|
|
972
|
+
}
|
|
973
|
+
time(message) {
|
|
974
|
+
return formatMessageTime(message.sentAt, this.labels);
|
|
975
|
+
}
|
|
976
|
+
onRowOpen(conv) {
|
|
977
|
+
this.selectConversation.emit(conv);
|
|
978
|
+
if (this.singleColumn()) afterNextRender(() => this.threadHeading()?.nativeElement.focus(), { injector: this.injector });
|
|
979
|
+
}
|
|
980
|
+
onBack() {
|
|
981
|
+
const id = this.selected()?.id;
|
|
982
|
+
this.back.emit();
|
|
983
|
+
afterNextRender(() => {
|
|
984
|
+
const rows = Array.from(this.host.nativeElement.querySelectorAll("[data-testid=\"conv-item\"]"));
|
|
985
|
+
(rows.find((r) => r.dataset["conversationId"] === id) ?? rows[0])?.closest("li")?.focus();
|
|
986
|
+
}, { injector: this.injector });
|
|
987
|
+
}
|
|
988
|
+
onMessagesScroll() {
|
|
989
|
+
const el = this.messagesEl()?.nativeElement;
|
|
990
|
+
if (el) this.atBottom = el.scrollHeight - el.scrollTop - el.clientHeight < NEAR_BOTTOM_PX;
|
|
991
|
+
}
|
|
992
|
+
toggleContext() {
|
|
993
|
+
if (this.contextOpen()) {
|
|
994
|
+
this.closeContext(true);
|
|
995
|
+
return;
|
|
996
|
+
}
|
|
997
|
+
this.contextOpen.set(true);
|
|
998
|
+
afterNextRender(() => this.contextPanel()?.nativeElement.focus(), { injector: this.injector });
|
|
999
|
+
}
|
|
1000
|
+
closeContext(restoreFocus = false) {
|
|
1001
|
+
this.contextOpen.set(false);
|
|
1002
|
+
if (restoreFocus) afterNextRender(() => this.host.nativeElement.querySelector("[data-testid=\"context-toggle\"] button")?.focus(), { injector: this.injector });
|
|
1003
|
+
}
|
|
1004
|
+
openFilePicker() {
|
|
1005
|
+
this.fileInput()?.open();
|
|
1006
|
+
}
|
|
1007
|
+
onComposeKeydown(event) {
|
|
1008
|
+
if (event.key !== "Enter" || event.isComposing) return;
|
|
1009
|
+
if (this.richText() ? event.ctrlKey || event.metaKey : !event.shiftKey) {
|
|
1010
|
+
event.preventDefault();
|
|
1011
|
+
this.sendMessage();
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
onEditorChange(html) {
|
|
1015
|
+
this.editorHtml.set(html);
|
|
1016
|
+
this.draft.set(conversationHtmlToText(html));
|
|
1017
|
+
}
|
|
1018
|
+
sendMessage() {
|
|
1019
|
+
if (!this.canSend()) return;
|
|
1020
|
+
const link = this.link();
|
|
1021
|
+
const base = this.richText() ? {
|
|
1022
|
+
text: this.draft().trim(),
|
|
1023
|
+
html: sanitizeRichTextHtml(this.editorHtml(), { mode: "paste" })
|
|
1024
|
+
} : { text: this.draft().trim() };
|
|
1025
|
+
this.send.emit(link ? {
|
|
1026
|
+
...base,
|
|
1027
|
+
link
|
|
1028
|
+
} : base);
|
|
1029
|
+
}
|
|
1030
|
+
openLinkPicker() {
|
|
1031
|
+
this.linkQuery.set("");
|
|
1032
|
+
this.pickerOpen.set(true);
|
|
1033
|
+
this.linkPickerOpened.emit();
|
|
1034
|
+
}
|
|
1035
|
+
closeLinkPicker() {
|
|
1036
|
+
this.pickerOpen.set(false);
|
|
1037
|
+
}
|
|
1038
|
+
pickLink(group, item) {
|
|
1039
|
+
this.link.set({
|
|
1040
|
+
type: group.type,
|
|
1041
|
+
id: item.id,
|
|
1042
|
+
label: item.label
|
|
1043
|
+
});
|
|
1044
|
+
this.pickerOpen.set(false);
|
|
1045
|
+
}
|
|
1046
|
+
clock() {
|
|
1047
|
+
return this.now() ?? /* @__PURE__ */ new Date();
|
|
1048
|
+
}
|
|
1049
|
+
singleColumn() {
|
|
1050
|
+
return typeof window !== "undefined" && typeof window.matchMedia === "function" && window.matchMedia(SINGLE_COLUMN_QUERY).matches;
|
|
1051
|
+
}
|
|
1052
|
+
scrollToBottom() {
|
|
1053
|
+
afterNextRender(() => {
|
|
1054
|
+
const el = this.messagesEl()?.nativeElement;
|
|
1055
|
+
if (el) el.scrollTop = el.scrollHeight;
|
|
1056
|
+
}, { injector: this.injector });
|
|
1057
|
+
}
|
|
1058
|
+
static {
|
|
1059
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1060
|
+
minVersion: "12.0.0",
|
|
1061
|
+
version: "22.2.2",
|
|
1062
|
+
ngImport: i0,
|
|
1063
|
+
type: ConversationsComponent,
|
|
1064
|
+
deps: [],
|
|
1065
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
1066
|
+
});
|
|
1067
|
+
}
|
|
1068
|
+
static {
|
|
1069
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1070
|
+
minVersion: "17.0.0",
|
|
1071
|
+
version: "22.2.2",
|
|
1072
|
+
type: ConversationsComponent,
|
|
1073
|
+
isStandalone: true,
|
|
1074
|
+
selector: "ui-conversations",
|
|
1075
|
+
inputs: {
|
|
1076
|
+
conversations: {
|
|
1077
|
+
classPropertyName: "conversations",
|
|
1078
|
+
publicName: "conversations",
|
|
1079
|
+
isSignal: true,
|
|
1080
|
+
isRequired: false,
|
|
1081
|
+
transformFunction: null
|
|
1082
|
+
},
|
|
1083
|
+
selected: {
|
|
1084
|
+
classPropertyName: "selected",
|
|
1085
|
+
publicName: "selected",
|
|
1086
|
+
isSignal: true,
|
|
1087
|
+
isRequired: false,
|
|
1088
|
+
transformFunction: null
|
|
1089
|
+
},
|
|
1090
|
+
titleInput: {
|
|
1091
|
+
classPropertyName: "titleInput",
|
|
1092
|
+
publicName: "title",
|
|
1093
|
+
isSignal: true,
|
|
1094
|
+
isRequired: false,
|
|
1095
|
+
transformFunction: null
|
|
1096
|
+
},
|
|
1097
|
+
loading: {
|
|
1098
|
+
classPropertyName: "loading",
|
|
1099
|
+
publicName: "loading",
|
|
1100
|
+
isSignal: true,
|
|
1101
|
+
isRequired: false,
|
|
1102
|
+
transformFunction: null
|
|
1103
|
+
},
|
|
1104
|
+
error: {
|
|
1105
|
+
classPropertyName: "error",
|
|
1106
|
+
publicName: "error",
|
|
1107
|
+
isSignal: true,
|
|
1108
|
+
isRequired: false,
|
|
1109
|
+
transformFunction: null
|
|
1110
|
+
},
|
|
1111
|
+
searchText: {
|
|
1112
|
+
classPropertyName: "searchText",
|
|
1113
|
+
publicName: "searchText",
|
|
1114
|
+
isSignal: true,
|
|
1115
|
+
isRequired: false,
|
|
1116
|
+
transformFunction: null
|
|
1117
|
+
},
|
|
1118
|
+
searchPlaceholderInput: {
|
|
1119
|
+
classPropertyName: "searchPlaceholderInput",
|
|
1120
|
+
publicName: "searchPlaceholder",
|
|
1121
|
+
isSignal: true,
|
|
1122
|
+
isRequired: false,
|
|
1123
|
+
transformFunction: null
|
|
1124
|
+
},
|
|
1125
|
+
searchAriaLabelInput: {
|
|
1126
|
+
classPropertyName: "searchAriaLabelInput",
|
|
1127
|
+
publicName: "searchAriaLabel",
|
|
1128
|
+
isSignal: true,
|
|
1129
|
+
isRequired: false,
|
|
1130
|
+
transformFunction: null
|
|
1131
|
+
},
|
|
1132
|
+
showFilters: {
|
|
1133
|
+
classPropertyName: "showFilters",
|
|
1134
|
+
publicName: "showFilters",
|
|
1135
|
+
isSignal: true,
|
|
1136
|
+
isRequired: false,
|
|
1137
|
+
transformFunction: null
|
|
1138
|
+
},
|
|
1139
|
+
filterTabs: {
|
|
1140
|
+
classPropertyName: "filterTabs",
|
|
1141
|
+
publicName: "filterTabs",
|
|
1142
|
+
isSignal: true,
|
|
1143
|
+
isRequired: false,
|
|
1144
|
+
transformFunction: null
|
|
1145
|
+
},
|
|
1146
|
+
filterCounts: {
|
|
1147
|
+
classPropertyName: "filterCounts",
|
|
1148
|
+
publicName: "filterCounts",
|
|
1149
|
+
isSignal: true,
|
|
1150
|
+
isRequired: false,
|
|
1151
|
+
transformFunction: null
|
|
1152
|
+
},
|
|
1153
|
+
activeFilter: {
|
|
1154
|
+
classPropertyName: "activeFilter",
|
|
1155
|
+
publicName: "activeFilter",
|
|
1156
|
+
isSignal: true,
|
|
1157
|
+
isRequired: false,
|
|
1158
|
+
transformFunction: null
|
|
1159
|
+
},
|
|
1160
|
+
filterAriaLabelInput: {
|
|
1161
|
+
classPropertyName: "filterAriaLabelInput",
|
|
1162
|
+
publicName: "filterAriaLabel",
|
|
1163
|
+
isSignal: true,
|
|
1164
|
+
isRequired: false,
|
|
1165
|
+
transformFunction: null
|
|
1166
|
+
},
|
|
1167
|
+
page: {
|
|
1168
|
+
classPropertyName: "page",
|
|
1169
|
+
publicName: "page",
|
|
1170
|
+
isSignal: true,
|
|
1171
|
+
isRequired: false,
|
|
1172
|
+
transformFunction: null
|
|
1173
|
+
},
|
|
1174
|
+
pageSize: {
|
|
1175
|
+
classPropertyName: "pageSize",
|
|
1176
|
+
publicName: "pageSize",
|
|
1177
|
+
isSignal: true,
|
|
1178
|
+
isRequired: false,
|
|
1179
|
+
transformFunction: null
|
|
1180
|
+
},
|
|
1181
|
+
totalItems: {
|
|
1182
|
+
classPropertyName: "totalItems",
|
|
1183
|
+
publicName: "totalItems",
|
|
1184
|
+
isSignal: true,
|
|
1185
|
+
isRequired: false,
|
|
1186
|
+
transformFunction: null
|
|
1187
|
+
},
|
|
1188
|
+
paginationAriaLabelInput: {
|
|
1189
|
+
classPropertyName: "paginationAriaLabelInput",
|
|
1190
|
+
publicName: "paginationAriaLabel",
|
|
1191
|
+
isSignal: true,
|
|
1192
|
+
isRequired: false,
|
|
1193
|
+
transformFunction: null
|
|
1194
|
+
},
|
|
1195
|
+
listAriaLabelInput: {
|
|
1196
|
+
classPropertyName: "listAriaLabelInput",
|
|
1197
|
+
publicName: "listAriaLabel",
|
|
1198
|
+
isSignal: true,
|
|
1199
|
+
isRequired: false,
|
|
1200
|
+
transformFunction: null
|
|
1201
|
+
},
|
|
1202
|
+
loadingLabelInput: {
|
|
1203
|
+
classPropertyName: "loadingLabelInput",
|
|
1204
|
+
publicName: "loadingLabel",
|
|
1205
|
+
isSignal: true,
|
|
1206
|
+
isRequired: false,
|
|
1207
|
+
transformFunction: null
|
|
1208
|
+
},
|
|
1209
|
+
emptyTitleInput: {
|
|
1210
|
+
classPropertyName: "emptyTitleInput",
|
|
1211
|
+
publicName: "emptyTitle",
|
|
1212
|
+
isSignal: true,
|
|
1213
|
+
isRequired: false,
|
|
1214
|
+
transformFunction: null
|
|
1215
|
+
},
|
|
1216
|
+
emptyMessageInput: {
|
|
1217
|
+
classPropertyName: "emptyMessageInput",
|
|
1218
|
+
publicName: "emptyMessage",
|
|
1219
|
+
isSignal: true,
|
|
1220
|
+
isRequired: false,
|
|
1221
|
+
transformFunction: null
|
|
1222
|
+
},
|
|
1223
|
+
emptyReadOnlyMessageInput: {
|
|
1224
|
+
classPropertyName: "emptyReadOnlyMessageInput",
|
|
1225
|
+
publicName: "emptyReadOnlyMessage",
|
|
1226
|
+
isSignal: true,
|
|
1227
|
+
isRequired: false,
|
|
1228
|
+
transformFunction: null
|
|
1229
|
+
},
|
|
1230
|
+
filteredEmptyTitleInput: {
|
|
1231
|
+
classPropertyName: "filteredEmptyTitleInput",
|
|
1232
|
+
publicName: "filteredEmptyTitle",
|
|
1233
|
+
isSignal: true,
|
|
1234
|
+
isRequired: false,
|
|
1235
|
+
transformFunction: null
|
|
1236
|
+
},
|
|
1237
|
+
filteredEmptyMessageInput: {
|
|
1238
|
+
classPropertyName: "filteredEmptyMessageInput",
|
|
1239
|
+
publicName: "filteredEmptyMessage",
|
|
1240
|
+
isSignal: true,
|
|
1241
|
+
isRequired: false,
|
|
1242
|
+
transformFunction: null
|
|
1243
|
+
},
|
|
1244
|
+
noMessagesTextInput: {
|
|
1245
|
+
classPropertyName: "noMessagesTextInput",
|
|
1246
|
+
publicName: "noMessagesText",
|
|
1247
|
+
isSignal: true,
|
|
1248
|
+
isRequired: false,
|
|
1249
|
+
transformFunction: null
|
|
1250
|
+
},
|
|
1251
|
+
allowNew: {
|
|
1252
|
+
classPropertyName: "allowNew",
|
|
1253
|
+
publicName: "allowNew",
|
|
1254
|
+
isSignal: true,
|
|
1255
|
+
isRequired: false,
|
|
1256
|
+
transformFunction: null
|
|
1257
|
+
},
|
|
1258
|
+
allowDelete: {
|
|
1259
|
+
classPropertyName: "allowDelete",
|
|
1260
|
+
publicName: "allowDelete",
|
|
1261
|
+
isSignal: true,
|
|
1262
|
+
isRequired: false,
|
|
1263
|
+
transformFunction: null
|
|
1264
|
+
},
|
|
1265
|
+
showRowArrow: {
|
|
1266
|
+
classPropertyName: "showRowArrow",
|
|
1267
|
+
publicName: "showRowArrow",
|
|
1268
|
+
isSignal: true,
|
|
1269
|
+
isRequired: false,
|
|
1270
|
+
transformFunction: null
|
|
1271
|
+
},
|
|
1272
|
+
selectable: {
|
|
1273
|
+
classPropertyName: "selectable",
|
|
1274
|
+
publicName: "selectable",
|
|
1275
|
+
isSignal: true,
|
|
1276
|
+
isRequired: false,
|
|
1277
|
+
transformFunction: null
|
|
1278
|
+
},
|
|
1279
|
+
newLabelInput: {
|
|
1280
|
+
classPropertyName: "newLabelInput",
|
|
1281
|
+
publicName: "newLabel",
|
|
1282
|
+
isSignal: true,
|
|
1283
|
+
isRequired: false,
|
|
1284
|
+
transformFunction: null
|
|
1285
|
+
},
|
|
1286
|
+
newTooltipInput: {
|
|
1287
|
+
classPropertyName: "newTooltipInput",
|
|
1288
|
+
publicName: "newTooltip",
|
|
1289
|
+
isSignal: true,
|
|
1290
|
+
isRequired: false,
|
|
1291
|
+
transformFunction: null
|
|
1292
|
+
},
|
|
1293
|
+
deleteRowLabelInput: {
|
|
1294
|
+
classPropertyName: "deleteRowLabelInput",
|
|
1295
|
+
publicName: "deleteRowLabel",
|
|
1296
|
+
isSignal: true,
|
|
1297
|
+
isRequired: false,
|
|
1298
|
+
transformFunction: null
|
|
1299
|
+
},
|
|
1300
|
+
messages: {
|
|
1301
|
+
classPropertyName: "messages",
|
|
1302
|
+
publicName: "messages",
|
|
1303
|
+
isSignal: true,
|
|
1304
|
+
isRequired: false,
|
|
1305
|
+
transformFunction: null
|
|
1306
|
+
},
|
|
1307
|
+
messagesLoading: {
|
|
1308
|
+
classPropertyName: "messagesLoading",
|
|
1309
|
+
publicName: "messagesLoading",
|
|
1310
|
+
isSignal: true,
|
|
1311
|
+
isRequired: false,
|
|
1312
|
+
transformFunction: null
|
|
1313
|
+
},
|
|
1314
|
+
messagesError: {
|
|
1315
|
+
classPropertyName: "messagesError",
|
|
1316
|
+
publicName: "messagesError",
|
|
1317
|
+
isSignal: true,
|
|
1318
|
+
isRequired: false,
|
|
1319
|
+
transformFunction: null
|
|
1320
|
+
},
|
|
1321
|
+
hasEarlier: {
|
|
1322
|
+
classPropertyName: "hasEarlier",
|
|
1323
|
+
publicName: "hasEarlier",
|
|
1324
|
+
isSignal: true,
|
|
1325
|
+
isRequired: false,
|
|
1326
|
+
transformFunction: null
|
|
1327
|
+
},
|
|
1328
|
+
loadingEarlier: {
|
|
1329
|
+
classPropertyName: "loadingEarlier",
|
|
1330
|
+
publicName: "loadingEarlier",
|
|
1331
|
+
isSignal: true,
|
|
1332
|
+
isRequired: false,
|
|
1333
|
+
transformFunction: null
|
|
1334
|
+
},
|
|
1335
|
+
loadEarlierLabelInput: {
|
|
1336
|
+
classPropertyName: "loadEarlierLabelInput",
|
|
1337
|
+
publicName: "loadEarlierLabel",
|
|
1338
|
+
isSignal: true,
|
|
1339
|
+
isRequired: false,
|
|
1340
|
+
transformFunction: null
|
|
1341
|
+
},
|
|
1342
|
+
statusActionLabel: {
|
|
1343
|
+
classPropertyName: "statusActionLabel",
|
|
1344
|
+
publicName: "statusActionLabel",
|
|
1345
|
+
isSignal: true,
|
|
1346
|
+
isRequired: false,
|
|
1347
|
+
transformFunction: null
|
|
1348
|
+
},
|
|
1349
|
+
statusActionIcon: {
|
|
1350
|
+
classPropertyName: "statusActionIcon",
|
|
1351
|
+
publicName: "statusActionIcon",
|
|
1352
|
+
isSignal: true,
|
|
1353
|
+
isRequired: false,
|
|
1354
|
+
transformFunction: null
|
|
1355
|
+
},
|
|
1356
|
+
statusChanging: {
|
|
1357
|
+
classPropertyName: "statusChanging",
|
|
1358
|
+
publicName: "statusChanging",
|
|
1359
|
+
isSignal: true,
|
|
1360
|
+
isRequired: false,
|
|
1361
|
+
transformFunction: null
|
|
1362
|
+
},
|
|
1363
|
+
templatesEnabled: {
|
|
1364
|
+
classPropertyName: "templatesEnabled",
|
|
1365
|
+
publicName: "templatesEnabled",
|
|
1366
|
+
isSignal: true,
|
|
1367
|
+
isRequired: false,
|
|
1368
|
+
transformFunction: null
|
|
1369
|
+
},
|
|
1370
|
+
templateLabelInput: {
|
|
1371
|
+
classPropertyName: "templateLabelInput",
|
|
1372
|
+
publicName: "templateLabel",
|
|
1373
|
+
isSignal: true,
|
|
1374
|
+
isRequired: false,
|
|
1375
|
+
transformFunction: null
|
|
1376
|
+
},
|
|
1377
|
+
deleteThreadLabelInput: {
|
|
1378
|
+
classPropertyName: "deleteThreadLabelInput",
|
|
1379
|
+
publicName: "deleteThreadLabel",
|
|
1380
|
+
isSignal: true,
|
|
1381
|
+
isRequired: false,
|
|
1382
|
+
transformFunction: null
|
|
1383
|
+
},
|
|
1384
|
+
backLabelInput: {
|
|
1385
|
+
classPropertyName: "backLabelInput",
|
|
1386
|
+
publicName: "backLabel",
|
|
1387
|
+
isSignal: true,
|
|
1388
|
+
isRequired: false,
|
|
1389
|
+
transformFunction: null
|
|
1390
|
+
},
|
|
1391
|
+
threadAriaLabelInput: {
|
|
1392
|
+
classPropertyName: "threadAriaLabelInput",
|
|
1393
|
+
publicName: "threadAriaLabel",
|
|
1394
|
+
isSignal: true,
|
|
1395
|
+
isRequired: false,
|
|
1396
|
+
transformFunction: null
|
|
1397
|
+
},
|
|
1398
|
+
messagesAriaLabelInput: {
|
|
1399
|
+
classPropertyName: "messagesAriaLabelInput",
|
|
1400
|
+
publicName: "messagesAriaLabel",
|
|
1401
|
+
isSignal: true,
|
|
1402
|
+
isRequired: false,
|
|
1403
|
+
transformFunction: null
|
|
1404
|
+
},
|
|
1405
|
+
threadEmptyTitleInput: {
|
|
1406
|
+
classPropertyName: "threadEmptyTitleInput",
|
|
1407
|
+
publicName: "threadEmptyTitle",
|
|
1408
|
+
isSignal: true,
|
|
1409
|
+
isRequired: false,
|
|
1410
|
+
transformFunction: null
|
|
1411
|
+
},
|
|
1412
|
+
threadEmptyMessageInput: {
|
|
1413
|
+
classPropertyName: "threadEmptyMessageInput",
|
|
1414
|
+
publicName: "threadEmptyMessage",
|
|
1415
|
+
isSignal: true,
|
|
1416
|
+
isRequired: false,
|
|
1417
|
+
transformFunction: null
|
|
1418
|
+
},
|
|
1419
|
+
noMessagesWriteTextInput: {
|
|
1420
|
+
classPropertyName: "noMessagesWriteTextInput",
|
|
1421
|
+
publicName: "noMessagesWriteText",
|
|
1422
|
+
isSignal: true,
|
|
1423
|
+
isRequired: false,
|
|
1424
|
+
transformFunction: null
|
|
1425
|
+
},
|
|
1426
|
+
noMessagesReadTextInput: {
|
|
1427
|
+
classPropertyName: "noMessagesReadTextInput",
|
|
1428
|
+
publicName: "noMessagesReadText",
|
|
1429
|
+
isSignal: true,
|
|
1430
|
+
isRequired: false,
|
|
1431
|
+
transformFunction: null
|
|
1432
|
+
},
|
|
1433
|
+
youLabelInput: {
|
|
1434
|
+
classPropertyName: "youLabelInput",
|
|
1435
|
+
publicName: "youLabel",
|
|
1436
|
+
isSignal: true,
|
|
1437
|
+
isRequired: false,
|
|
1438
|
+
transformFunction: null
|
|
1439
|
+
},
|
|
1440
|
+
openMediaLabelInput: {
|
|
1441
|
+
classPropertyName: "openMediaLabelInput",
|
|
1442
|
+
publicName: "openMediaLabel",
|
|
1443
|
+
isSignal: true,
|
|
1444
|
+
isRequired: false,
|
|
1445
|
+
transformFunction: null
|
|
1446
|
+
},
|
|
1447
|
+
imageFallbackNameInput: {
|
|
1448
|
+
classPropertyName: "imageFallbackNameInput",
|
|
1449
|
+
publicName: "imageFallbackName",
|
|
1450
|
+
isSignal: true,
|
|
1451
|
+
isRequired: false,
|
|
1452
|
+
transformFunction: null
|
|
1453
|
+
},
|
|
1454
|
+
fileFallbackNameInput: {
|
|
1455
|
+
classPropertyName: "fileFallbackNameInput",
|
|
1456
|
+
publicName: "fileFallbackName",
|
|
1457
|
+
isSignal: true,
|
|
1458
|
+
isRequired: false,
|
|
1459
|
+
transformFunction: null
|
|
1460
|
+
},
|
|
1461
|
+
hasContext: {
|
|
1462
|
+
classPropertyName: "hasContext",
|
|
1463
|
+
publicName: "hasContext",
|
|
1464
|
+
isSignal: true,
|
|
1465
|
+
isRequired: false,
|
|
1466
|
+
transformFunction: null
|
|
1467
|
+
},
|
|
1468
|
+
contextOpen: {
|
|
1469
|
+
classPropertyName: "contextOpen",
|
|
1470
|
+
publicName: "contextOpen",
|
|
1471
|
+
isSignal: true,
|
|
1472
|
+
isRequired: false,
|
|
1473
|
+
transformFunction: null
|
|
1474
|
+
},
|
|
1475
|
+
contextTitleInput: {
|
|
1476
|
+
classPropertyName: "contextTitleInput",
|
|
1477
|
+
publicName: "contextTitle",
|
|
1478
|
+
isSignal: true,
|
|
1479
|
+
isRequired: false,
|
|
1480
|
+
transformFunction: null
|
|
1481
|
+
},
|
|
1482
|
+
showContextLabelInput: {
|
|
1483
|
+
classPropertyName: "showContextLabelInput",
|
|
1484
|
+
publicName: "showContextLabel",
|
|
1485
|
+
isSignal: true,
|
|
1486
|
+
isRequired: false,
|
|
1487
|
+
transformFunction: null
|
|
1488
|
+
},
|
|
1489
|
+
hideContextLabelInput: {
|
|
1490
|
+
classPropertyName: "hideContextLabelInput",
|
|
1491
|
+
publicName: "hideContextLabel",
|
|
1492
|
+
isSignal: true,
|
|
1493
|
+
isRequired: false,
|
|
1494
|
+
transformFunction: null
|
|
1495
|
+
},
|
|
1496
|
+
closeContextLabelInput: {
|
|
1497
|
+
classPropertyName: "closeContextLabelInput",
|
|
1498
|
+
publicName: "closeContextLabel",
|
|
1499
|
+
isSignal: true,
|
|
1500
|
+
isRequired: false,
|
|
1501
|
+
transformFunction: null
|
|
1502
|
+
},
|
|
1503
|
+
canWrite: {
|
|
1504
|
+
classPropertyName: "canWrite",
|
|
1505
|
+
publicName: "canWrite",
|
|
1506
|
+
isSignal: true,
|
|
1507
|
+
isRequired: false,
|
|
1508
|
+
transformFunction: null
|
|
1509
|
+
},
|
|
1510
|
+
draft: {
|
|
1511
|
+
classPropertyName: "draft",
|
|
1512
|
+
publicName: "draft",
|
|
1513
|
+
isSignal: true,
|
|
1514
|
+
isRequired: false,
|
|
1515
|
+
transformFunction: null
|
|
1516
|
+
},
|
|
1517
|
+
sending: {
|
|
1518
|
+
classPropertyName: "sending",
|
|
1519
|
+
publicName: "sending",
|
|
1520
|
+
isSignal: true,
|
|
1521
|
+
isRequired: false,
|
|
1522
|
+
transformFunction: null
|
|
1523
|
+
},
|
|
1524
|
+
composerDisabled: {
|
|
1525
|
+
classPropertyName: "composerDisabled",
|
|
1526
|
+
publicName: "composerDisabled",
|
|
1527
|
+
isSignal: true,
|
|
1528
|
+
isRequired: false,
|
|
1529
|
+
transformFunction: null
|
|
1530
|
+
},
|
|
1531
|
+
sendBlocked: {
|
|
1532
|
+
classPropertyName: "sendBlocked",
|
|
1533
|
+
publicName: "sendBlocked",
|
|
1534
|
+
isSignal: true,
|
|
1535
|
+
isRequired: false,
|
|
1536
|
+
transformFunction: null
|
|
1537
|
+
},
|
|
1538
|
+
composerNotice: {
|
|
1539
|
+
classPropertyName: "composerNotice",
|
|
1540
|
+
publicName: "composerNotice",
|
|
1541
|
+
isSignal: true,
|
|
1542
|
+
isRequired: false,
|
|
1543
|
+
transformFunction: null
|
|
1544
|
+
},
|
|
1545
|
+
composerStatus: {
|
|
1546
|
+
classPropertyName: "composerStatus",
|
|
1547
|
+
publicName: "composerStatus",
|
|
1548
|
+
isSignal: true,
|
|
1549
|
+
isRequired: false,
|
|
1550
|
+
transformFunction: null
|
|
1551
|
+
},
|
|
1552
|
+
composerError: {
|
|
1553
|
+
classPropertyName: "composerError",
|
|
1554
|
+
publicName: "composerError",
|
|
1555
|
+
isSignal: true,
|
|
1556
|
+
isRequired: false,
|
|
1557
|
+
transformFunction: null
|
|
1558
|
+
},
|
|
1559
|
+
maxLength: {
|
|
1560
|
+
classPropertyName: "maxLength",
|
|
1561
|
+
publicName: "maxLength",
|
|
1562
|
+
isSignal: true,
|
|
1563
|
+
isRequired: false,
|
|
1564
|
+
transformFunction: null
|
|
1565
|
+
},
|
|
1566
|
+
richText: {
|
|
1567
|
+
classPropertyName: "richText",
|
|
1568
|
+
publicName: "richText",
|
|
1569
|
+
isSignal: true,
|
|
1570
|
+
isRequired: false,
|
|
1571
|
+
transformFunction: null
|
|
1572
|
+
},
|
|
1573
|
+
attachment: {
|
|
1574
|
+
classPropertyName: "attachment",
|
|
1575
|
+
publicName: "attachment",
|
|
1576
|
+
isSignal: true,
|
|
1577
|
+
isRequired: false,
|
|
1578
|
+
transformFunction: null
|
|
1579
|
+
},
|
|
1580
|
+
uploading: {
|
|
1581
|
+
classPropertyName: "uploading",
|
|
1582
|
+
publicName: "uploading",
|
|
1583
|
+
isSignal: true,
|
|
1584
|
+
isRequired: false,
|
|
1585
|
+
transformFunction: null
|
|
1586
|
+
},
|
|
1587
|
+
attachEnabled: {
|
|
1588
|
+
classPropertyName: "attachEnabled",
|
|
1589
|
+
publicName: "attachEnabled",
|
|
1590
|
+
isSignal: true,
|
|
1591
|
+
isRequired: false,
|
|
1592
|
+
transformFunction: null
|
|
1593
|
+
},
|
|
1594
|
+
acceptedFiles: {
|
|
1595
|
+
classPropertyName: "acceptedFiles",
|
|
1596
|
+
publicName: "acceptedFiles",
|
|
1597
|
+
isSignal: true,
|
|
1598
|
+
isRequired: false,
|
|
1599
|
+
transformFunction: null
|
|
1600
|
+
},
|
|
1601
|
+
maxFileSize: {
|
|
1602
|
+
classPropertyName: "maxFileSize",
|
|
1603
|
+
publicName: "maxFileSize",
|
|
1604
|
+
isSignal: true,
|
|
1605
|
+
isRequired: false,
|
|
1606
|
+
transformFunction: null
|
|
1607
|
+
},
|
|
1608
|
+
typeMessageInput: {
|
|
1609
|
+
classPropertyName: "typeMessageInput",
|
|
1610
|
+
publicName: "typeMessage",
|
|
1611
|
+
isSignal: true,
|
|
1612
|
+
isRequired: false,
|
|
1613
|
+
transformFunction: null
|
|
1614
|
+
},
|
|
1615
|
+
sizeMessageInput: {
|
|
1616
|
+
classPropertyName: "sizeMessageInput",
|
|
1617
|
+
publicName: "sizeMessage",
|
|
1618
|
+
isSignal: true,
|
|
1619
|
+
isRequired: false,
|
|
1620
|
+
transformFunction: null
|
|
1621
|
+
},
|
|
1622
|
+
composeLabelInput: {
|
|
1623
|
+
classPropertyName: "composeLabelInput",
|
|
1624
|
+
publicName: "composeLabel",
|
|
1625
|
+
isSignal: true,
|
|
1626
|
+
isRequired: false,
|
|
1627
|
+
transformFunction: null
|
|
1628
|
+
},
|
|
1629
|
+
composePlaceholderInput: {
|
|
1630
|
+
classPropertyName: "composePlaceholderInput",
|
|
1631
|
+
publicName: "composePlaceholder",
|
|
1632
|
+
isSignal: true,
|
|
1633
|
+
isRequired: false,
|
|
1634
|
+
transformFunction: null
|
|
1635
|
+
},
|
|
1636
|
+
sendLabelInput: {
|
|
1637
|
+
classPropertyName: "sendLabelInput",
|
|
1638
|
+
publicName: "sendLabel",
|
|
1639
|
+
isSignal: true,
|
|
1640
|
+
isRequired: false,
|
|
1641
|
+
transformFunction: null
|
|
1642
|
+
},
|
|
1643
|
+
attachLabelInput: {
|
|
1644
|
+
classPropertyName: "attachLabelInput",
|
|
1645
|
+
publicName: "attachLabel",
|
|
1646
|
+
isSignal: true,
|
|
1647
|
+
isRequired: false,
|
|
1648
|
+
transformFunction: null
|
|
1649
|
+
},
|
|
1650
|
+
removeAttachmentLabelInput: {
|
|
1651
|
+
classPropertyName: "removeAttachmentLabelInput",
|
|
1652
|
+
publicName: "removeAttachmentLabel",
|
|
1653
|
+
isSignal: true,
|
|
1654
|
+
isRequired: false,
|
|
1655
|
+
transformFunction: null
|
|
1656
|
+
},
|
|
1657
|
+
attachmentPreviewLabelInput: {
|
|
1658
|
+
classPropertyName: "attachmentPreviewLabelInput",
|
|
1659
|
+
publicName: "attachmentPreviewLabel",
|
|
1660
|
+
isSignal: true,
|
|
1661
|
+
isRequired: false,
|
|
1662
|
+
transformFunction: null
|
|
1663
|
+
},
|
|
1664
|
+
now: {
|
|
1665
|
+
classPropertyName: "now",
|
|
1666
|
+
publicName: "now",
|
|
1667
|
+
isSignal: true,
|
|
1668
|
+
isRequired: false,
|
|
1669
|
+
transformFunction: null
|
|
1670
|
+
},
|
|
1671
|
+
linkGroups: {
|
|
1672
|
+
classPropertyName: "linkGroups",
|
|
1673
|
+
publicName: "linkGroups",
|
|
1674
|
+
isSignal: true,
|
|
1675
|
+
isRequired: false,
|
|
1676
|
+
transformFunction: null
|
|
1677
|
+
},
|
|
1678
|
+
linkLoading: {
|
|
1679
|
+
classPropertyName: "linkLoading",
|
|
1680
|
+
publicName: "linkLoading",
|
|
1681
|
+
isSignal: true,
|
|
1682
|
+
isRequired: false,
|
|
1683
|
+
transformFunction: null
|
|
1684
|
+
},
|
|
1685
|
+
link: {
|
|
1686
|
+
classPropertyName: "link",
|
|
1687
|
+
publicName: "link",
|
|
1688
|
+
isSignal: true,
|
|
1689
|
+
isRequired: false,
|
|
1690
|
+
transformFunction: null
|
|
1691
|
+
},
|
|
1692
|
+
linkLabelInput: {
|
|
1693
|
+
classPropertyName: "linkLabelInput",
|
|
1694
|
+
publicName: "linkLabel",
|
|
1695
|
+
isSignal: true,
|
|
1696
|
+
isRequired: false,
|
|
1697
|
+
transformFunction: null
|
|
1698
|
+
},
|
|
1699
|
+
linkPickerTitleInput: {
|
|
1700
|
+
classPropertyName: "linkPickerTitleInput",
|
|
1701
|
+
publicName: "linkPickerTitle",
|
|
1702
|
+
isSignal: true,
|
|
1703
|
+
isRequired: false,
|
|
1704
|
+
transformFunction: null
|
|
1705
|
+
},
|
|
1706
|
+
linkSearchPlaceholderInput: {
|
|
1707
|
+
classPropertyName: "linkSearchPlaceholderInput",
|
|
1708
|
+
publicName: "linkSearchPlaceholder",
|
|
1709
|
+
isSignal: true,
|
|
1710
|
+
isRequired: false,
|
|
1711
|
+
transformFunction: null
|
|
1712
|
+
},
|
|
1713
|
+
linkSearchLabelInput: {
|
|
1714
|
+
classPropertyName: "linkSearchLabelInput",
|
|
1715
|
+
publicName: "linkSearchLabel",
|
|
1716
|
+
isSignal: true,
|
|
1717
|
+
isRequired: false,
|
|
1718
|
+
transformFunction: null
|
|
1719
|
+
},
|
|
1720
|
+
linkEmptyTextInput: {
|
|
1721
|
+
classPropertyName: "linkEmptyTextInput",
|
|
1722
|
+
publicName: "linkEmptyText",
|
|
1723
|
+
isSignal: true,
|
|
1724
|
+
isRequired: false,
|
|
1725
|
+
transformFunction: null
|
|
1726
|
+
},
|
|
1727
|
+
linkLoadingTextInput: {
|
|
1728
|
+
classPropertyName: "linkLoadingTextInput",
|
|
1729
|
+
publicName: "linkLoadingText",
|
|
1730
|
+
isSignal: true,
|
|
1731
|
+
isRequired: false,
|
|
1732
|
+
transformFunction: null
|
|
1733
|
+
},
|
|
1734
|
+
removeLinkLabelInput: {
|
|
1735
|
+
classPropertyName: "removeLinkLabelInput",
|
|
1736
|
+
publicName: "removeLinkLabel",
|
|
1737
|
+
isSignal: true,
|
|
1738
|
+
isRequired: false,
|
|
1739
|
+
transformFunction: null
|
|
1740
|
+
}
|
|
1741
|
+
},
|
|
1742
|
+
outputs: {
|
|
1743
|
+
searchText: "searchTextChange",
|
|
1744
|
+
contextOpen: "contextOpenChange",
|
|
1745
|
+
draft: "draftChange",
|
|
1746
|
+
searchChange: "searchChange",
|
|
1747
|
+
filterChange: "filterChange",
|
|
1748
|
+
pageChange: "pageChange",
|
|
1749
|
+
selectConversation: "selectConversation",
|
|
1750
|
+
back: "back",
|
|
1751
|
+
newConversation: "newConversation",
|
|
1752
|
+
retry: "retry",
|
|
1753
|
+
deleteConversation: "deleteConversation",
|
|
1754
|
+
statusChange: "statusChange",
|
|
1755
|
+
templateRequest: "templateRequest",
|
|
1756
|
+
send: "send",
|
|
1757
|
+
filesSelected: "filesSelected",
|
|
1758
|
+
attachmentRemove: "attachmentRemove",
|
|
1759
|
+
link: "linkChange",
|
|
1760
|
+
linkPickerOpened: "linkPickerOpened",
|
|
1761
|
+
mediaOpen: "mediaOpen",
|
|
1762
|
+
messageAction: "messageAction",
|
|
1763
|
+
loadEarlier: "loadEarlier",
|
|
1764
|
+
messagesRetry: "messagesRetry"
|
|
1765
|
+
},
|
|
1766
|
+
viewQueries: [
|
|
1767
|
+
{
|
|
1768
|
+
propertyName: "threadHeading",
|
|
1769
|
+
first: true,
|
|
1770
|
+
predicate: ["threadHeading"],
|
|
1771
|
+
descendants: true,
|
|
1772
|
+
isSignal: true
|
|
1773
|
+
},
|
|
1774
|
+
{
|
|
1775
|
+
propertyName: "messagesEl",
|
|
1776
|
+
first: true,
|
|
1777
|
+
predicate: ["messagesEl"],
|
|
1778
|
+
descendants: true,
|
|
1779
|
+
isSignal: true
|
|
1780
|
+
},
|
|
1781
|
+
{
|
|
1782
|
+
propertyName: "contextPanel",
|
|
1783
|
+
first: true,
|
|
1784
|
+
predicate: ["contextPanel"],
|
|
1785
|
+
descendants: true,
|
|
1786
|
+
isSignal: true
|
|
1787
|
+
},
|
|
1788
|
+
{
|
|
1789
|
+
propertyName: "fileInput",
|
|
1790
|
+
first: true,
|
|
1791
|
+
predicate: FileInputComponent,
|
|
1792
|
+
descendants: true,
|
|
1793
|
+
isSignal: true
|
|
1794
|
+
}
|
|
1795
|
+
],
|
|
1796
|
+
ngImport: i0,
|
|
1797
|
+
template: `
|
|
1798
|
+
<div class="cv-layout" [class.has-context]="contextVisible()" data-testid="conversations">
|
|
1799
|
+
@if (contextVisible()) {
|
|
1800
|
+
<div class="cv-context-backdrop" (click)="closeContext()" aria-hidden="true"></div>
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
<!-- LEFT: conversation list -->
|
|
1804
|
+
<section class="cv-list-panel" [class.cv-hidden-mobile]="!!selected()" [attr.aria-labelledby]="titleId">
|
|
1805
|
+
<div class="cv-list-header">
|
|
1806
|
+
<h2 class="cv-list-title" [id]="titleId">{{ title() }}</h2>
|
|
1807
|
+
@if (canWrite() && allowNew()) {
|
|
1808
|
+
<ui-button class="cv-new-btn" variant="primary" size="sm" [ariaLabel]="newLabel()" [uiTooltip]="newTooltip()" tooltipPosition="bottom" (click)="newConversation.emit()" data-testid="new-message-btn">
|
|
1809
|
+
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/><line x1="12" y1="8" x2="12" y2="16"/><line x1="8" y1="12" x2="16" y2="12"/></svg>
|
|
1810
|
+
</ui-button>
|
|
1811
|
+
}
|
|
1812
|
+
</div>
|
|
1813
|
+
|
|
1814
|
+
@if (showFilters()) {
|
|
1815
|
+
<div class="cv-search">
|
|
1816
|
+
<ui-search-input [placeholder]="searchPlaceholder()" [ariaLabel]="searchAriaLabel()" [(value)]="searchText" (searchChange)="searchChange.emit($event)" data-testid="conv-search" />
|
|
1817
|
+
</div>
|
|
1818
|
+
@if (filterTabs().length) {
|
|
1819
|
+
<div class="cv-filters">
|
|
1820
|
+
<ui-quick-filter-tabs [ariaLabel]="filterAriaLabel()" [tabs]="filterTabs()" [counts]="filterCounts()" [activeValue]="activeFilter()" (tabChange)="filterChange.emit($event)" data-testid="conv-filters" />
|
|
1821
|
+
</div>
|
|
1822
|
+
}
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
@if (loading()) {
|
|
1826
|
+
<div class="cv-loading" aria-busy="true" [attr.aria-label]="loadingLabel()" data-testid="conv-loading">
|
|
1827
|
+
@for (i of skeletonRows; track i) {
|
|
1828
|
+
<div class="cv-skeleton">
|
|
1829
|
+
<ui-skeleton [height]="40" width="40px" [radius]="20" />
|
|
1830
|
+
<div class="cv-skel-content">
|
|
1831
|
+
<div class="cv-skel-row">
|
|
1832
|
+
<ui-skeleton width="55%" [height]="12" />
|
|
1833
|
+
<ui-skeleton width="48px" [height]="10" />
|
|
1834
|
+
</div>
|
|
1835
|
+
<ui-skeleton width="30%" [height]="10" [mb]="2" />
|
|
1836
|
+
<ui-skeleton width="85%" [height]="10" />
|
|
1837
|
+
</div>
|
|
1838
|
+
</div>
|
|
1839
|
+
}
|
|
1840
|
+
</div>
|
|
1841
|
+
} @else if (error()) {
|
|
1842
|
+
<div class="cv-error" data-testid="conv-error">
|
|
1843
|
+
<ui-alert variant="danger">{{ error() }}</ui-alert>
|
|
1844
|
+
<ui-button variant="secondary" size="sm" (click)="retry.emit()" data-testid="conv-retry">{{ labels.t('common.retry') }}</ui-button>
|
|
1845
|
+
</div>
|
|
1846
|
+
} @else if (conversations().length === 0) {
|
|
1847
|
+
<ui-empty-state iconType="message" data-testid="conv-empty" [title]="filtering() ? filteredEmptyTitle() : emptyTitle()" [message]="emptyText()" />
|
|
1848
|
+
} @else {
|
|
1849
|
+
<div class="cv-list">
|
|
1850
|
+
<ui-list [ariaLabel]="listAriaLabel()" [items]="conversations()" [trackBy]="trackConversation" [navigable]="selectable()" [arrow]="false" (itemClick)="onRowOpen($event)">
|
|
1851
|
+
<ng-template let-conv>
|
|
1852
|
+
<div class="cv-item" data-testid="conv-item" [attr.data-conversation-id]="conv.id"
|
|
1853
|
+
[class.selected]="selected()?.id === conv.id" [class.unread]="(conv.unreadCount ?? 0) > 0">
|
|
1854
|
+
<ui-avatar [initials]="initial(conv.name)" [name]="conv.name" [size]="40" />
|
|
1855
|
+
<div class="cv-item-info">
|
|
1856
|
+
<div class="cv-item-top">
|
|
1857
|
+
<span class="cv-name">{{ conv.name }}</span>@if (selected()?.id === conv.id) {<span class="cv-sr-only">, {{ labels.t('conversations.openSr') }}</span>}
|
|
1858
|
+
<span class="cv-time">{{ relativeTime(conv.lastMessageAt) }}</span>
|
|
1859
|
+
</div>
|
|
1860
|
+
@if (conv.subtitle) { <span class="cv-subtitle">{{ conv.subtitle }}</span> }
|
|
1861
|
+
<div class="cv-item-bottom">
|
|
1862
|
+
<p class="cv-preview">{{ preview(conv.preview) || noMessagesText() }}</p>
|
|
1863
|
+
<div class="cv-item-right">
|
|
1864
|
+
@if (conv.statusLabel) { <ui-badge [label]="conv.statusLabel" variant="gray" /> }
|
|
1865
|
+
@if ((conv.unreadCount ?? 0) > 0) {
|
|
1866
|
+
<ui-badge class="cv-unread-badge" [label]="'' + conv.unreadCount" variant="blue" data-testid="conv-unread" />
|
|
1867
|
+
<span class="cv-sr-only">{{ labels.t('conversations.unread') }}</span>
|
|
1868
|
+
}
|
|
1869
|
+
@if (canWrite() && allowDelete()) {
|
|
1870
|
+
<ui-button class="cv-delete-btn" variant="icon-danger" [ariaLabel]="deleteRowLabel() + ' ' + conv.name" (click)="$event.stopPropagation(); deleteConversation.emit(conv)" data-testid="conv-delete-btn">
|
|
1871
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/></svg>
|
|
1872
|
+
</ui-button>
|
|
1873
|
+
}
|
|
1874
|
+
</div>
|
|
1875
|
+
</div>
|
|
1876
|
+
</div>
|
|
1877
|
+
@if (showRowArrow()) {
|
|
1878
|
+
<svg class="cv-row-arrow" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" data-testid="conv-arrow"><path d="M9 18l6-6-6-6"/></svg>
|
|
1879
|
+
}
|
|
1880
|
+
</div>
|
|
1881
|
+
</ng-template>
|
|
1882
|
+
</ui-list>
|
|
1883
|
+
<ui-pagination [ariaLabel]="paginationAriaLabel()" [page]="page()" [pageSize]="pageSize()" [totalItems]="totalItems()" (pageChange)="pageChange.emit($event)" />
|
|
1884
|
+
</div>
|
|
1885
|
+
}
|
|
1886
|
+
</section>
|
|
1887
|
+
|
|
1888
|
+
<!-- CENTER: message thread -->
|
|
1889
|
+
<section class="cv-thread-panel" [class.cv-hidden-mobile]="!selected()" [attr.aria-label]="threadAriaLabel()">
|
|
1890
|
+
@if (selected(); as conv) {
|
|
1891
|
+
<div class="cv-thread-header">
|
|
1892
|
+
@if (selectable()) {
|
|
1893
|
+
<ui-button class="cv-back-btn" variant="secondary" size="sm" [ariaLabel]="backLabel()" (click)="onBack()" data-testid="back-to-list">
|
|
1894
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><polyline points="15 18 9 12 15 6"/></svg>
|
|
1895
|
+
</ui-button>
|
|
1896
|
+
}
|
|
1897
|
+
<div class="cv-thread-header-info">
|
|
1898
|
+
<ui-avatar [initials]="initial(conv.name)" [name]="conv.name" [size]="40" />
|
|
1899
|
+
<div class="cv-thread-header-text">
|
|
1900
|
+
<h3 class="cv-thread-name" #threadHeading tabindex="-1" data-testid="thread-name">{{ conv.name }}</h3>
|
|
1901
|
+
@if (conv.subtitle) { <span class="cv-thread-subtitle" data-testid="thread-phone">{{ conv.subtitle }}</span> }
|
|
1902
|
+
</div>
|
|
1903
|
+
</div>
|
|
1904
|
+
<div class="cv-thread-actions">
|
|
1905
|
+
@if (canWrite() && templatesEnabled()) {
|
|
1906
|
+
<ui-button class="cv-thread-action" variant="secondary" size="sm" [ariaLabel]="templateLabel()" [uiTooltip]="templateLabel()" tooltipPosition="bottom" [disabled]="composerDisabled()" (click)="templateRequest.emit()" data-testid="use-template-btn">
|
|
1907
|
+
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/></svg>
|
|
1908
|
+
</ui-button>
|
|
1909
|
+
}
|
|
1910
|
+
@if (hasContext()) {
|
|
1911
|
+
<ui-button #contextToggle class="cv-thread-action" [variant]="contextOpen() ? 'primary' : 'secondary'" size="sm" [ariaLabel]="contextOpen() ? hideContextLabel() : showContextLabel()" [uiTooltip]="contextOpen() ? hideContextLabel() : contextTitle()" tooltipPosition="bottom" (click)="toggleContext()" data-testid="context-toggle">
|
|
1912
|
+
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>
|
|
1913
|
+
</ui-button>
|
|
1914
|
+
}
|
|
1915
|
+
@if (canWrite() && statusActionLabel()) {
|
|
1916
|
+
<ui-button class="cv-thread-action" variant="secondary" size="sm" [ariaLabel]="statusActionLabel() ?? ''" [uiTooltip]="statusActionLabel()" tooltipPosition="bottom" [disabled]="statusChanging()" (click)="statusChange.emit(conv)" data-testid="status-btn">
|
|
1917
|
+
@if (statusActionIcon() === 'reopen') {
|
|
1918
|
+
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><polyline points="1 4 1 10 7 10"/><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"/></svg>
|
|
1919
|
+
} @else {
|
|
1920
|
+
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/></svg>
|
|
1921
|
+
}
|
|
1922
|
+
</ui-button>
|
|
1923
|
+
}
|
|
1924
|
+
@if (canWrite() && allowDelete()) {
|
|
1925
|
+
<ui-button class="cv-thread-action" variant="danger" size="sm" [ariaLabel]="deleteThreadLabel()" [uiTooltip]="deleteThreadLabel()" tooltipPosition="bottom" (click)="deleteConversation.emit(conv)" data-testid="thread-delete-btn">
|
|
1926
|
+
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/></svg>
|
|
1927
|
+
</ui-button>
|
|
1928
|
+
}
|
|
1929
|
+
</div>
|
|
1930
|
+
</div>
|
|
1931
|
+
|
|
1932
|
+
<div class="cv-messages" #messagesEl role="log" aria-live="polite" aria-relevant="additions" tabindex="0"
|
|
1933
|
+
[attr.aria-label]="messagesAriaLabel() + ' ' + conv.name" [attr.aria-busy]="messagesLoading()" (scroll)="onMessagesScroll()" data-testid="messages">
|
|
1934
|
+
@if (messagesLoading()) {
|
|
1935
|
+
<div class="cv-messages-loading" data-testid="messages-loading">
|
|
1936
|
+
@for (i of skeletonBubbles; track i) {
|
|
1937
|
+
<div class="cv-msg-skeleton" [class.outbound]="i % 2 === 0">
|
|
1938
|
+
<ui-skeleton [height]="48" [width]="i % 2 === 0 ? '60%' : '55%'" [radius]="16" />
|
|
1939
|
+
</div>
|
|
1940
|
+
}
|
|
1941
|
+
</div>
|
|
1942
|
+
} @else if (messagesError()) {
|
|
1943
|
+
<div class="cv-messages-error" data-testid="thread-error">
|
|
1944
|
+
<ui-alert variant="danger">{{ messagesError() }}</ui-alert>
|
|
1945
|
+
<ui-button variant="secondary" size="sm" (click)="messagesRetry.emit()" data-testid="thread-retry">{{ labels.t('common.retry') }}</ui-button>
|
|
1946
|
+
</div>
|
|
1947
|
+
} @else if (messages().length === 0) {
|
|
1948
|
+
<div class="cv-messages-empty" data-testid="messages-empty">
|
|
1949
|
+
<p>{{ canWrite() ? noMessagesWriteText() : noMessagesReadText() }}</p>
|
|
1950
|
+
</div>
|
|
1951
|
+
} @else {
|
|
1952
|
+
@if (hasEarlier()) {
|
|
1953
|
+
<div class="cv-load-earlier">
|
|
1954
|
+
<ui-button variant="secondary" size="sm" [loading]="loadingEarlier()" (click)="loadEarlier.emit()" data-testid="load-earlier">{{ loadEarlierLabel() }}</ui-button>
|
|
1955
|
+
</div>
|
|
1956
|
+
}
|
|
1957
|
+
@for (row of messageRows(); track row.message.id) {
|
|
1958
|
+
@if (row.separator) { <div class="cv-date-separator"><span>{{ row.separator }}</span></div> }
|
|
1959
|
+
<div class="cv-bubble" data-testid="message" [class.outbound]="row.message.direction === 'outbound'" [class.inbound]="row.message.direction === 'inbound'">
|
|
1960
|
+
<span class="cv-sr-only">{{ row.message.direction === 'outbound' ? youLabel() : conv.name }}:</span>
|
|
1961
|
+
@if (row.message.media; as media) {
|
|
1962
|
+
<div class="cv-media">
|
|
1963
|
+
@if (media.type?.startsWith('image/')) {
|
|
1964
|
+
<button type="button" class="cv-image-btn" (click)="mediaOpen.emit(media.url)" [attr.aria-label]="openMediaLabel() + ' ' + (media.fileName || imageFallbackName())">
|
|
1965
|
+
<img [src]="media.url" [alt]="media.fileName || imageFallbackName()" class="cv-image" loading="lazy" />
|
|
1966
|
+
</button>
|
|
1967
|
+
} @else if (media.type?.startsWith('video/')) {
|
|
1968
|
+
<video [src]="media.url" class="cv-video" controls preload="metadata"></video>
|
|
1969
|
+
} @else {
|
|
1970
|
+
<a [href]="media.url" target="_blank" rel="noopener noreferrer" class="cv-file-link">{{ media.fileName || fileFallbackName() }}</a>
|
|
1971
|
+
}
|
|
1972
|
+
</div>
|
|
1973
|
+
}
|
|
1974
|
+
@if (row.message.bodyHtml) { <ui-conversation-rich-body [html]="row.message.bodyHtml" data-testid="msg-rich-body" /> }
|
|
1975
|
+
@else if (row.message.body) { <p class="cv-body">{{ row.message.body }}</p> }
|
|
1976
|
+
@if (row.message.link; as msgLink) {
|
|
1977
|
+
@if (msgLink.url) {
|
|
1978
|
+
<a class="cv-link-chip" [href]="msgLink.url" data-testid="msg-link"><svg class="cv-link-icon" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M10 13a5 5 0 0 0 7.07 0l3-3a5 5 0 0 0-7.07-7.07l-1.5 1.5"/><path d="M14 11a5 5 0 0 0-7.07 0l-3 3a5 5 0 0 0 7.07 7.07l1.5-1.5"/></svg><span class="cv-link-label">{{ msgLink.label }}</span></a>
|
|
1979
|
+
} @else {
|
|
1980
|
+
<span class="cv-link-chip" data-testid="msg-link"><svg class="cv-link-icon" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M10 13a5 5 0 0 0 7.07 0l3-3a5 5 0 0 0-7.07-7.07l-1.5 1.5"/><path d="M14 11a5 5 0 0 0-7.07 0l-3 3a5 5 0 0 0 7.07 7.07l1.5-1.5"/></svg><span class="cv-link-label">{{ msgLink.label }}</span></span>
|
|
1981
|
+
}
|
|
1982
|
+
}
|
|
1983
|
+
<span class="cv-meta">
|
|
1984
|
+
@if (row.message.sender) { <span class="cv-sender" data-testid="msg-sender">{{ row.message.sender }}</span> }
|
|
1985
|
+
{{ time(row.message) }}
|
|
1986
|
+
@if (row.message.action; as action) {
|
|
1987
|
+
<button type="button" class="cv-msg-action" data-testid="msg-action" (click)="messageAction.emit(row.message)">{{ action.label }}</button>
|
|
1988
|
+
}
|
|
1989
|
+
@if (row.message.direction === 'outbound' && statusLabel(row.message.status)) {
|
|
1990
|
+
<span class="cv-status" [class.failed]="row.message.status === 'failed'" data-testid="msg-status">
|
|
1991
|
+
<span aria-hidden="true">{{ statusMark(row.message.status) }}</span>
|
|
1992
|
+
<span class="cv-sr-only">{{ statusLabel(row.message.status) }}</span>
|
|
1993
|
+
</span>
|
|
1994
|
+
}
|
|
1995
|
+
</span>
|
|
1996
|
+
</div>
|
|
1997
|
+
}
|
|
1998
|
+
}
|
|
1999
|
+
</div>
|
|
2000
|
+
|
|
2001
|
+
@if (canWrite()) {
|
|
2002
|
+
<div class="cv-compose">
|
|
2003
|
+
@if (attachment(); as file) {
|
|
2004
|
+
<div class="cv-attachment" data-testid="attachment-preview">
|
|
2005
|
+
@if (file.previewUrl) {
|
|
2006
|
+
<img [src]="file.previewUrl" [alt]="attachmentPreviewLabel()" class="cv-attachment-thumb" />
|
|
2007
|
+
} @else {
|
|
2008
|
+
<span class="cv-attachment-name">{{ file.fileName }}</span>
|
|
2009
|
+
}
|
|
2010
|
+
<ui-button class="cv-attachment-remove" variant="icon-danger" [ariaLabel]="removeAttachmentLabel()" (click)="attachmentRemove.emit()" data-testid="attachment-remove">
|
|
2011
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
|
|
2012
|
+
</ui-button>
|
|
2013
|
+
</div>
|
|
2014
|
+
}
|
|
2015
|
+
@if (link(); as chosen) {
|
|
2016
|
+
<div class="cv-link-preview" data-testid="link-preview">
|
|
2017
|
+
<span class="cv-link-chip cv-link-chip-compose"><svg class="cv-link-icon" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M10 13a5 5 0 0 0 7.07 0l3-3a5 5 0 0 0-7.07-7.07l-1.5 1.5"/><path d="M14 11a5 5 0 0 0-7.07 0l-3 3a5 5 0 0 0 7.07 7.07l1.5-1.5"/></svg><span class="cv-link-label" data-testid="link-preview-label">{{ chosen.label }}</span></span>
|
|
2018
|
+
<ui-button class="cv-link-remove" variant="icon-danger" [ariaLabel]="removeLinkLabel()" [disabled]="sending()" (click)="link.set(null)" data-testid="link-remove">
|
|
2019
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
|
|
2020
|
+
</ui-button>
|
|
2021
|
+
</div>
|
|
2022
|
+
}
|
|
2023
|
+
<div class="cv-compose-row">
|
|
2024
|
+
@if (linkGroups() !== null) {
|
|
2025
|
+
<ui-button class="cv-link-btn" variant="icon" [ariaLabel]="linkLabel()" [uiTooltip]="linkLabel()" [disabled]="sending() || composerDisabled()" (click)="openLinkPicker()" data-testid="link-btn">
|
|
2026
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M10 13a5 5 0 0 0 7.07 0l3-3a5 5 0 0 0-7.07-7.07l-1.5 1.5"/><path d="M14 11a5 5 0 0 0-7.07 0l-3 3a5 5 0 0 0 7.07 7.07l1.5-1.5"/></svg>
|
|
2027
|
+
</ui-button>
|
|
2028
|
+
}
|
|
2029
|
+
@if (attachEnabled()) {
|
|
2030
|
+
<ui-button class="cv-attach-btn" variant="icon" [ariaLabel]="attachLabel()" [disabled]="uploading() || composerDisabled()" [loading]="uploading()" (click)="openFilePicker()" data-testid="attach-btn">
|
|
2031
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"/></svg>
|
|
2032
|
+
</ui-button>
|
|
2033
|
+
<ui-file-input [showField]="false" [accept]="acceptedFiles()" [maxSize]="maxFileSize()" [toastOnReject]="true"
|
|
2034
|
+
[typeMessage]="typeMessage()" [sizeMessage]="sizeMessage()" (filesSelected)="filesSelected.emit($event)" data-testid="attach-input" />
|
|
2035
|
+
}
|
|
2036
|
+
@if (richText()) {
|
|
2037
|
+
<ui-rich-text-editor class="cv-compose-input cv-compose-rich" [ariaLabel]="composeLabel()" [placeholder]="composePlaceholder()" [hide]="richHide"
|
|
2038
|
+
[minHeight]="44" [maxHeight]="160" [ngModel]="editorHtml()" (ngModelChange)="onEditorChange($event)" [disabled]="composerDisabled()" [error]="composerError()" [showErrors]="composerError() !== ''"
|
|
2039
|
+
(keydown)="onComposeKeydown($event)" data-testid="compose-input" />
|
|
2040
|
+
} @else {
|
|
2041
|
+
<ui-textarea-input class="cv-compose-input" [ariaLabel]="composeLabel()" [placeholder]="composePlaceholder()" [rows]="1" [maxlength]="maxLength()"
|
|
2042
|
+
[ngModel]="draft()" (ngModelChange)="draft.set($event)" [disabled]="composerDisabled()" [error]="composerError()" [showErrors]="composerError() !== ''"
|
|
2043
|
+
(keydown)="onComposeKeydown($event)" data-testid="compose-input" />
|
|
2044
|
+
}
|
|
2045
|
+
<ui-button class="cv-send-btn" variant="primary" [ariaLabel]="sendLabel()" [disabled]="!canSend()" [loading]="sending()" (click)="sendMessage()" data-testid="send-btn">
|
|
2046
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><line x1="22" y1="2" x2="11" y2="13"/><polygon points="22 2 15 22 11 13 2 9 22 2"/></svg>
|
|
2047
|
+
</ui-button>
|
|
2048
|
+
</div>
|
|
2049
|
+
@if (composerNotice()) {
|
|
2050
|
+
<ui-alert variant="warning" data-testid="compose-opted-out">{{ composerNotice() }}</ui-alert>
|
|
2051
|
+
}
|
|
2052
|
+
<!-- Always in the page (a live region that appears together with its text is often not announced): only its text comes and goes. -->
|
|
2053
|
+
<p class="cv-compose-status" role="status" data-testid="compose-loading-contact">{{ composerStatus() }}</p>
|
|
2054
|
+
</div>
|
|
2055
|
+
}
|
|
2056
|
+
} @else {
|
|
2057
|
+
<ui-empty-state iconType="message" [title]="threadEmptyTitle()" [message]="threadEmptyMessage()" data-testid="thread-empty" />
|
|
2058
|
+
}
|
|
2059
|
+
</section>
|
|
2060
|
+
|
|
2061
|
+
@if (linkGroups() !== null) {
|
|
2062
|
+
<ui-modal [open]="pickerOpen()" [title]="linkPickerTitle()" maxWidth="480px" bodyOverflow="hidden" dialogTestId="link-picker" (close)="closeLinkPicker()">
|
|
2063
|
+
<ui-search-input [placeholder]="linkSearchPlaceholder()" [ariaLabel]="linkSearchLabel()" [(value)]="linkQuery" data-testid="link-search" />
|
|
2064
|
+
<div class="cv-link-list" data-testid="link-list">
|
|
2065
|
+
@if (linkLoading()) {
|
|
2066
|
+
<p class="cv-link-note" role="status" data-testid="link-loading">{{ linkLoadingText() }}</p>
|
|
2067
|
+
} @else if (visibleLinkGroups().length === 0) {
|
|
2068
|
+
<p class="cv-link-note" data-testid="link-empty">{{ linkEmptyText() }}</p>
|
|
2069
|
+
} @else {
|
|
2070
|
+
@for (group of visibleLinkGroups(); track group.type) {
|
|
2071
|
+
<div class="cv-link-section" role="group" [attr.aria-label]="group.label" data-testid="link-section">
|
|
2072
|
+
<div class="cv-link-section-label" aria-hidden="true">{{ group.label }}</div>
|
|
2073
|
+
@for (item of group.items; track item.id) {
|
|
2074
|
+
<button type="button" class="cv-link-item" data-testid="link-item" (click)="pickLink(group, item)">{{ item.label }}</button>
|
|
2075
|
+
}
|
|
2076
|
+
</div>
|
|
2077
|
+
}
|
|
2078
|
+
}
|
|
2079
|
+
</div>
|
|
2080
|
+
</ui-modal>
|
|
2081
|
+
}
|
|
2082
|
+
|
|
2083
|
+
<!-- RIGHT: contact panel (the host's content) -->
|
|
2084
|
+
@if (contextVisible()) {
|
|
2085
|
+
<aside class="cv-context" #contextPanel tabindex="-1" [attr.aria-label]="contextTitle()" (keydown.escape)="closeContext(true)" data-testid="context-panel">
|
|
2086
|
+
<div class="cv-context-header">
|
|
2087
|
+
<h3>{{ contextTitle() }}</h3>
|
|
2088
|
+
<ui-button variant="icon" [ariaLabel]="closeContextLabel()" (click)="closeContext(true)" data-testid="context-close">
|
|
2089
|
+
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
|
|
2090
|
+
</ui-button>
|
|
2091
|
+
</div>
|
|
2092
|
+
<div class="cv-context-body"><ng-content select="[uiConversationsContext]" /></div>
|
|
2093
|
+
</aside>
|
|
2094
|
+
}
|
|
2095
|
+
</div>
|
|
2096
|
+
`,
|
|
2097
|
+
isInline: true,
|
|
2098
|
+
styles: [":host{display:flex;flex:1;min-height:0;min-width:0}.cv-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.cv-layout{display:grid;grid-template-columns:340px 1fr;flex:1;min-height:0;min-width:0;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 1px 3px #0000000f;border:1px solid #e2e8f0}.cv-layout.has-context{grid-template-columns:340px 1fr 280px}.cv-list-panel{display:flex;flex-direction:column;min-height:0;border-right:1px solid #e2e8f0;background:#f8fafc;overflow:hidden}.cv-list-header{display:flex;align-items:center;justify-content:space-between;padding:20px 20px 12px}.cv-list-title{margin:0;font-size:1.125rem;font-weight:700;color:#1e293b}.cv-search,.cv-filters{padding:0 16px 12px}.cv-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}.cv-item{display:flex;gap:12px;padding:14px 16px;border-bottom:1px solid #f1f5f9;transition:background .15s}.cv-item.unread{background:#fffbeb}.cv-item.selected{background:#eff6ff;box-shadow:inset 3px 0 #2563eb}.cv-item-info{flex:1;min-width:0}.cv-row-arrow{flex:0 0 auto;align-self:center;color:#94a3b8}.cv-item-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.cv-name{font-size:.875rem;font-weight:600;color:#1e293b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cv-time{font-size:.6875rem;color:#64748b;flex-shrink:0;margin-left:8px}.cv-subtitle{font-size:.6875rem;color:#64748b;display:block;margin-bottom:2px}.cv-item-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px}.cv-preview{margin:0;font-size:.8125rem;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.cv-item-right{display:flex;align-items:center;gap:6px;flex-shrink:0}.cv-delete-btn{opacity:0;transition:opacity .15s}.cv-item:hover .cv-delete-btn,.cv-item:focus-within .cv-delete-btn,.cv-delete-btn:focus-within{opacity:1}@media(hover:none){.cv-delete-btn{opacity:1}}.cv-loading{padding:8px 0}.cv-skeleton{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-bottom:1px solid #f1f5f9}.cv-skel-content{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px;padding-top:2px}.cv-skel-row{display:flex;justify-content:space-between;gap:8px}.cv-error{display:flex;flex-direction:column;align-items:center;gap:12px;padding:24px 16px;text-align:center}.cv-thread-panel{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:#fff}.cv-thread-header{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid #e2e8f0;background:#fff}.cv-back-btn{display:none}.cv-thread-header-info{display:flex;align-items:center;gap:12px;flex:1;min-width:0}.cv-thread-header-text{min-width:0;display:flex;flex-direction:column}.cv-thread-name{margin:0;font-size:.9375rem;font-weight:600;color:#1e293b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cv-thread-name:focus{outline:none}.cv-thread-name:focus-visible{outline:2px solid #2563eb;outline-offset:2px;border-radius:4px}.cv-thread-subtitle{font-size:.75rem;color:#64748b}.cv-thread-actions{display:flex;align-items:center;gap:8px}.cv-messages{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:20px 24px;display:flex;flex-direction:column;gap:4px;background:#f8fafc}.cv-messages:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}.cv-messages-loading{display:flex;flex-direction:column;gap:12px;padding:20px 0}.cv-msg-skeleton{display:flex}.cv-msg-skeleton.outbound{justify-content:flex-end}.cv-messages-error{display:flex;flex-direction:column;align-items:center;gap:12px;padding:24px 16px;text-align:center}.cv-load-earlier{display:flex;justify-content:center;padding:4px 0 12px}.cv-sender{font-weight:600}.cv-link-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;margin-top:6px;padding:3px 10px;border-radius:999px;border:1px solid transparent;font-size:.8rem;font-weight:600;text-decoration:none}.cv-link-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.cv-link-icon{flex:none}.cv-bubble.inbound .cv-link-chip{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}.cv-bubble.outbound .cv-link-chip{background:#ffffff2e;border-color:#ffffff73;color:#fff}.cv-link-chip:is(a):hover{filter:brightness(.96);text-decoration:underline}.cv-link-chip:is(a):focus-visible{outline:2px solid currentColor;outline-offset:2px}.cv-link-preview{display:flex;align-items:center;gap:4px;margin-bottom:8px}.cv-link-chip-compose{margin-top:0;background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}.cv-link-list{display:flex;flex-direction:column;gap:4px;margin-top:12px;max-height:320px;overflow-y:auto}.cv-link-section-label{padding:8px 4px 4px;font-size:.7rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#64748b}.cv-link-item{display:block;width:100%;padding:10px 12px;border:0;border-radius:8px;background:none;text-align:start;font:inherit;font-size:.875rem;color:#1e293b;cursor:pointer}.cv-link-item:hover{background:#f1f5f9}.cv-link-item:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}.cv-link-note{margin:16px 0;text-align:center;font-size:.875rem;color:#64748b}@media(pointer:coarse),(max-width:480px){.cv-link-item{min-height:44px}}.cv-msg-action{padding:0;border:0;background:none;color:inherit;font:inherit;text-decoration:underline;cursor:pointer}.cv-msg-action:focus-visible{outline:2px solid currentColor;outline-offset:2px;border-radius:2px}.cv-messages-empty{display:flex;align-items:center;justify-content:center;flex:1}.cv-messages-empty p{margin:0;font-size:.875rem;color:#64748b;text-align:center}.cv-date-separator{display:flex;align-items:center;justify-content:center;padding:16px 0 8px}.cv-date-separator span{padding:4px 14px;border-radius:12px;background:#e2e8f0;font-size:.6875rem;font-weight:600;color:#475569;text-transform:uppercase;letter-spacing:.3px}.cv-bubble{max-width:70%;padding:10px 14px;border-radius:16px;position:relative;word-break:break-word;overflow-wrap:break-word}.cv-bubble.inbound{align-self:flex-start;background:#fff;border:1px solid #e2e8f0;border-bottom-left-radius:4px}.cv-bubble.inbound .cv-body,.cv-bubble.inbound .cv-rich{color:#1e293b}.cv-bubble.inbound .cv-meta{color:#64748b}.cv-bubble.outbound{align-self:flex-end;background:#2563eb;border-bottom-right-radius:4px}.cv-bubble.outbound .cv-body,.cv-bubble.outbound .cv-rich,.cv-bubble.outbound .cv-meta{color:#fff}@media(prefers-reduced-motion:no-preference){.cv-bubble{animation:cv-appear .2s ease}.cv-context{animation:cv-slide-in .25s ease}}.cv-body{margin:0;font-size:.875rem;line-height:1.45;word-break:break-word;white-space:pre-wrap}.cv-media{margin-bottom:6px}.cv-image-btn{display:block;padding:0;border:0;background:none;cursor:pointer;border-radius:8px}.cv-image-btn:focus-visible{outline:2px solid #fff;outline-offset:2px;box-shadow:0 0 0 4px #2563eb}.cv-image{display:block;max-width:240px;max-height:240px;border-radius:8px;object-fit:cover}.cv-video{max-width:240px;max-height:200px;border-radius:8px}.cv-file-link{font-size:.8125rem;color:#fff;text-decoration:underline}.cv-bubble.inbound .cv-file-link{color:#2563eb}.cv-meta{display:flex;align-items:center;gap:6px;justify-content:flex-end;font-size:.6875rem;margin-top:4px}.cv-status{font-weight:500}.cv-status.failed{color:#fff;font-weight:700}.cv-bubble.inbound .cv-status.failed{color:#dc2626}.cv-compose{display:flex;flex-direction:column;padding:12px 20px 16px;padding-bottom:calc(16px + env(safe-area-inset-bottom,0px));border-top:1px solid #e2e8f0;background:#fff}.cv-compose-row{display:flex;align-items:flex-end;gap:10px}.cv-compose-input{flex:1;min-width:0}.cv-attach-btn,.cv-send-btn{flex-shrink:0}.cv-attachment{display:flex;align-items:center;gap:8px;padding:8px 12px;margin-bottom:8px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px}.cv-attachment-thumb{width:48px;height:48px;object-fit:cover;border-radius:6px}.cv-attachment-name{font-size:.8125rem;color:#475569;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cv-attachment-remove{flex-shrink:0}.cv-compose-status{margin:4px 0 0;font-size:.8125rem;color:#64748b}.cv-compose-status:empty{margin:0}.cv-context-backdrop{display:none}.cv-context{width:100%;min-width:0;border-left:1px solid #e2e8f0;background:#fff;display:flex;flex-direction:column;overflow-y:auto}.cv-context-header{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid #e2e8f0}.cv-context-header h3{margin:0;font-size:.875rem;font-weight:700;color:#1e293b}.cv-context-body{padding:20px;display:flex;flex-direction:column;gap:16px}@keyframes cv-appear{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes cv-slide-in{0%{transform:translate(100%)}to{transform:translate(0)}}@media(max-width:1100px){.cv-layout.has-context{grid-template-columns:280px 1fr 240px}}@media(max-width:768px){.cv-layout,.cv-layout.has-context{grid-template-columns:1fr;height:100%}.cv-hidden-mobile{display:none!important}.cv-back-btn{display:inline-flex}.cv-context-backdrop{display:block;position:fixed;inset:0;background:#00000059;z-index:99}.cv-context{position:fixed;top:0;right:0;bottom:0;width:300px;max-width:85vw;z-index:100;box-shadow:-4px 0 20px #0000001a}.cv-bubble{max-width:85%}.cv-messages,.cv-thread-header{padding:12px 16px}}@media(max-width:480px){.cv-thread-subtitle{display:none}.cv-compose{padding:8px 12px 12px;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}.cv-compose-row{flex-wrap:wrap}.cv-compose-input{order:-1;flex:1 1 100%}.cv-send-btn{margin-inline-start:auto}.cv-list-header{padding:12px 16px 10px}.cv-context{width:100%;max-width:100vw}}\n"],
|
|
2099
|
+
dependencies: [
|
|
2100
|
+
{
|
|
2101
|
+
kind: "ngmodule",
|
|
2102
|
+
type: FormsModule
|
|
2103
|
+
},
|
|
2104
|
+
{
|
|
2105
|
+
kind: "directive",
|
|
2106
|
+
type: i1.NgControlStatus,
|
|
2107
|
+
selector: "[formControlName],[ngModel],[formControl]"
|
|
2108
|
+
},
|
|
2109
|
+
{
|
|
2110
|
+
kind: "directive",
|
|
2111
|
+
type: i1.MaxLengthValidator,
|
|
2112
|
+
selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",
|
|
2113
|
+
inputs: ["maxlength"]
|
|
2114
|
+
},
|
|
2115
|
+
{
|
|
2116
|
+
kind: "directive",
|
|
2117
|
+
type: i1.NgModel,
|
|
2118
|
+
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
2119
|
+
inputs: [
|
|
2120
|
+
"name",
|
|
2121
|
+
"disabled",
|
|
2122
|
+
"ngModel",
|
|
2123
|
+
"ngModelOptions"
|
|
2124
|
+
],
|
|
2125
|
+
outputs: ["ngModelChange"],
|
|
2126
|
+
exportAs: ["ngModel"]
|
|
2127
|
+
},
|
|
2128
|
+
{
|
|
2129
|
+
kind: "component",
|
|
2130
|
+
type: AlertComponent,
|
|
2131
|
+
selector: "ui-alert",
|
|
2132
|
+
inputs: [
|
|
2133
|
+
"variant",
|
|
2134
|
+
"title",
|
|
2135
|
+
"dismissible",
|
|
2136
|
+
"dismissAriaLabel",
|
|
2137
|
+
"quiet",
|
|
2138
|
+
"compact",
|
|
2139
|
+
"inline",
|
|
2140
|
+
"fill"
|
|
2141
|
+
],
|
|
2142
|
+
outputs: ["dismissed"]
|
|
2143
|
+
},
|
|
2144
|
+
{
|
|
2145
|
+
kind: "component",
|
|
2146
|
+
type: AvatarComponent,
|
|
2147
|
+
selector: "ui-avatar",
|
|
2148
|
+
inputs: [
|
|
2149
|
+
"initials",
|
|
2150
|
+
"name",
|
|
2151
|
+
"size",
|
|
2152
|
+
"imageUrl",
|
|
2153
|
+
"editable",
|
|
2154
|
+
"editLabel",
|
|
2155
|
+
"busy"
|
|
2156
|
+
],
|
|
2157
|
+
outputs: ["editClick", "imageError"]
|
|
2158
|
+
},
|
|
2159
|
+
{
|
|
2160
|
+
kind: "component",
|
|
2161
|
+
type: BadgeComponent,
|
|
2162
|
+
selector: "ui-badge",
|
|
2163
|
+
inputs: [
|
|
2164
|
+
"label",
|
|
2165
|
+
"variant",
|
|
2166
|
+
"color"
|
|
2167
|
+
]
|
|
2168
|
+
},
|
|
2169
|
+
{
|
|
2170
|
+
kind: "component",
|
|
2171
|
+
type: ButtonComponent,
|
|
2172
|
+
selector: "ui-button",
|
|
2173
|
+
inputs: [
|
|
2174
|
+
"variant",
|
|
2175
|
+
"routerLink",
|
|
2176
|
+
"queryParams",
|
|
2177
|
+
"fragment",
|
|
2178
|
+
"state",
|
|
2179
|
+
"href",
|
|
2180
|
+
"target",
|
|
2181
|
+
"rel",
|
|
2182
|
+
"shortLabel",
|
|
2183
|
+
"shortBelow",
|
|
2184
|
+
"color",
|
|
2185
|
+
"active",
|
|
2186
|
+
"size",
|
|
2187
|
+
"type",
|
|
2188
|
+
"disabled",
|
|
2189
|
+
"loading",
|
|
2190
|
+
"fullWidth",
|
|
2191
|
+
"ariaLabel",
|
|
2192
|
+
"ariaExpanded",
|
|
2193
|
+
"ariaPressed",
|
|
2194
|
+
"ariaDescribedBy",
|
|
2195
|
+
"modal-footer-left",
|
|
2196
|
+
"modal-footer-right"
|
|
2197
|
+
]
|
|
2198
|
+
},
|
|
2199
|
+
{
|
|
2200
|
+
kind: "component",
|
|
2201
|
+
type: EmptyStateComponent,
|
|
2202
|
+
selector: "ui-empty-state",
|
|
2203
|
+
inputs: [
|
|
2204
|
+
"message",
|
|
2205
|
+
"title",
|
|
2206
|
+
"iconType"
|
|
2207
|
+
]
|
|
2208
|
+
},
|
|
2209
|
+
{
|
|
2210
|
+
kind: "component",
|
|
2211
|
+
type: FileInputComponent,
|
|
2212
|
+
selector: "ui-file-input",
|
|
2213
|
+
inputs: [
|
|
2214
|
+
"label",
|
|
2215
|
+
"ariaLabel",
|
|
2216
|
+
"placeholder",
|
|
2217
|
+
"buttonLabel",
|
|
2218
|
+
"accept",
|
|
2219
|
+
"multiple",
|
|
2220
|
+
"required",
|
|
2221
|
+
"hint",
|
|
2222
|
+
"error",
|
|
2223
|
+
"showField",
|
|
2224
|
+
"showErrors",
|
|
2225
|
+
"toastOnReject",
|
|
2226
|
+
"listRejections",
|
|
2227
|
+
"ariaDescribedBy",
|
|
2228
|
+
"clearable",
|
|
2229
|
+
"removeLabel",
|
|
2230
|
+
"maxSize",
|
|
2231
|
+
"enforceAccept",
|
|
2232
|
+
"typeMessage",
|
|
2233
|
+
"sizeMessage",
|
|
2234
|
+
"rejectEmpty",
|
|
2235
|
+
"emptyMessage",
|
|
2236
|
+
"minSize",
|
|
2237
|
+
"minSizeMessage",
|
|
2238
|
+
"dropzone",
|
|
2239
|
+
"showDetails",
|
|
2240
|
+
"preview",
|
|
2241
|
+
"loading",
|
|
2242
|
+
"loadingText",
|
|
2243
|
+
"disabled"
|
|
2244
|
+
],
|
|
2245
|
+
outputs: [
|
|
2246
|
+
"filesSelected",
|
|
2247
|
+
"fileRejected",
|
|
2248
|
+
"filesRejected",
|
|
2249
|
+
"fileRemoved",
|
|
2250
|
+
"invalidChange"
|
|
2251
|
+
]
|
|
2252
|
+
},
|
|
2253
|
+
{
|
|
2254
|
+
kind: "component",
|
|
2255
|
+
type: ListComponent,
|
|
2256
|
+
selector: "ui-list",
|
|
2257
|
+
inputs: [
|
|
2258
|
+
"items",
|
|
2259
|
+
"ordered",
|
|
2260
|
+
"bulleted",
|
|
2261
|
+
"layout",
|
|
2262
|
+
"gridMin",
|
|
2263
|
+
"gap",
|
|
2264
|
+
"reorderable",
|
|
2265
|
+
"disabled",
|
|
2266
|
+
"moveControls",
|
|
2267
|
+
"dragDrop",
|
|
2268
|
+
"ariaLabel",
|
|
2269
|
+
"ariaLabelledby",
|
|
2270
|
+
"itemLabelFn",
|
|
2271
|
+
"trackBy",
|
|
2272
|
+
"moveEarlierLabel",
|
|
2273
|
+
"moveLaterLabel",
|
|
2274
|
+
"helpText",
|
|
2275
|
+
"moveAnnouncement",
|
|
2276
|
+
"navigable",
|
|
2277
|
+
"arrow"
|
|
2278
|
+
],
|
|
2279
|
+
outputs: [
|
|
2280
|
+
"itemClick",
|
|
2281
|
+
"itemsChange",
|
|
2282
|
+
"reorder"
|
|
2283
|
+
]
|
|
2284
|
+
},
|
|
2285
|
+
{
|
|
2286
|
+
kind: "component",
|
|
2287
|
+
type: PaginationComponent,
|
|
2288
|
+
selector: "ui-pagination",
|
|
2289
|
+
inputs: [
|
|
2290
|
+
"page",
|
|
2291
|
+
"pageSize",
|
|
2292
|
+
"totalItems",
|
|
2293
|
+
"detached",
|
|
2294
|
+
"embedded",
|
|
2295
|
+
"ariaLabel"
|
|
2296
|
+
],
|
|
2297
|
+
outputs: ["pageChange"]
|
|
2298
|
+
},
|
|
2299
|
+
{
|
|
2300
|
+
kind: "component",
|
|
2301
|
+
type: QuickFilterTabsComponent,
|
|
2302
|
+
selector: "ui-quick-filter-tabs",
|
|
2303
|
+
inputs: [
|
|
2304
|
+
"tabs",
|
|
2305
|
+
"counts",
|
|
2306
|
+
"activeValue",
|
|
2307
|
+
"ariaLabel"
|
|
2308
|
+
],
|
|
2309
|
+
outputs: ["tabChange"]
|
|
2310
|
+
},
|
|
2311
|
+
{
|
|
2312
|
+
kind: "component",
|
|
2313
|
+
type: RichTextEditorComponent,
|
|
2314
|
+
selector: "ui-rich-text-editor",
|
|
2315
|
+
inputs: [
|
|
2316
|
+
"label",
|
|
2317
|
+
"ariaLabel",
|
|
2318
|
+
"placeholder",
|
|
2319
|
+
"required",
|
|
2320
|
+
"readonly",
|
|
2321
|
+
"hint",
|
|
2322
|
+
"error",
|
|
2323
|
+
"showErrors",
|
|
2324
|
+
"minHeight",
|
|
2325
|
+
"maxHeight",
|
|
2326
|
+
"hide",
|
|
2327
|
+
"disabled"
|
|
2328
|
+
]
|
|
2329
|
+
},
|
|
2330
|
+
{
|
|
2331
|
+
kind: "component",
|
|
2332
|
+
type: SearchInputComponent,
|
|
2333
|
+
selector: "ui-search-input",
|
|
2334
|
+
inputs: [
|
|
2335
|
+
"placeholder",
|
|
2336
|
+
"ariaLabel",
|
|
2337
|
+
"value",
|
|
2338
|
+
"maxlength",
|
|
2339
|
+
"endpoint",
|
|
2340
|
+
"loading",
|
|
2341
|
+
"collapseAt",
|
|
2342
|
+
"expanded"
|
|
2343
|
+
],
|
|
2344
|
+
outputs: [
|
|
2345
|
+
"valueChange",
|
|
2346
|
+
"expandedChange",
|
|
2347
|
+
"searchChange",
|
|
2348
|
+
"filteredData"
|
|
2349
|
+
]
|
|
2350
|
+
},
|
|
2351
|
+
{
|
|
2352
|
+
kind: "component",
|
|
2353
|
+
type: SkeletonComponent,
|
|
2354
|
+
selector: "ui-skeleton",
|
|
2355
|
+
inputs: [
|
|
2356
|
+
"height",
|
|
2357
|
+
"width",
|
|
2358
|
+
"radius",
|
|
2359
|
+
"mb",
|
|
2360
|
+
"ariaLabel"
|
|
2361
|
+
]
|
|
2362
|
+
},
|
|
2363
|
+
{
|
|
2364
|
+
kind: "component",
|
|
2365
|
+
type: TextareaInputComponent,
|
|
2366
|
+
selector: "ui-textarea-input",
|
|
2367
|
+
inputs: [
|
|
2368
|
+
"label",
|
|
2369
|
+
"ariaLabel",
|
|
2370
|
+
"placeholder",
|
|
2371
|
+
"rows",
|
|
2372
|
+
"maxlength",
|
|
2373
|
+
"required",
|
|
2374
|
+
"readonly",
|
|
2375
|
+
"hint",
|
|
2376
|
+
"ariaDescribedBy",
|
|
2377
|
+
"hintAsDescription",
|
|
2378
|
+
"error",
|
|
2379
|
+
"monospace",
|
|
2380
|
+
"showErrors",
|
|
2381
|
+
"disabled"
|
|
2382
|
+
],
|
|
2383
|
+
outputs: [
|
|
2384
|
+
"invalidChange",
|
|
2385
|
+
"focused",
|
|
2386
|
+
"blurred"
|
|
2387
|
+
]
|
|
2388
|
+
},
|
|
2389
|
+
{
|
|
2390
|
+
kind: "directive",
|
|
2391
|
+
type: TooltipDirective,
|
|
2392
|
+
selector: "[uiTooltip]",
|
|
2393
|
+
inputs: ["uiTooltip", "tooltipPosition"]
|
|
2394
|
+
},
|
|
2395
|
+
{
|
|
2396
|
+
kind: "component",
|
|
2397
|
+
type: ConversationRichBodyComponent,
|
|
2398
|
+
selector: "ui-conversation-rich-body",
|
|
2399
|
+
inputs: ["html"]
|
|
2400
|
+
},
|
|
2401
|
+
{
|
|
2402
|
+
kind: "component",
|
|
2403
|
+
type: ModalComponent,
|
|
2404
|
+
selector: "ui-modal",
|
|
2405
|
+
inputs: [
|
|
2406
|
+
"open",
|
|
2407
|
+
"title",
|
|
2408
|
+
"description",
|
|
2409
|
+
"describedBy",
|
|
2410
|
+
"maxWidth",
|
|
2411
|
+
"bodyOverflow",
|
|
2412
|
+
"dialogTestId",
|
|
2413
|
+
"hideClose",
|
|
2414
|
+
"closable",
|
|
2415
|
+
"layout",
|
|
2416
|
+
"closeOnBackdrop",
|
|
2417
|
+
"closeOnEscape",
|
|
2418
|
+
"busy",
|
|
2419
|
+
"returnFocusTo"
|
|
2420
|
+
],
|
|
2421
|
+
outputs: ["close"]
|
|
2422
|
+
}
|
|
2423
|
+
],
|
|
2424
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
2425
|
+
});
|
|
2426
|
+
}
|
|
2427
|
+
};
|
|
2428
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
2429
|
+
minVersion: "12.0.0",
|
|
2430
|
+
version: "22.2.2",
|
|
2431
|
+
ngImport: i0,
|
|
2432
|
+
type: ConversationsComponent,
|
|
2433
|
+
decorators: [{
|
|
2434
|
+
type: Component,
|
|
2435
|
+
args: [{
|
|
2436
|
+
selector: "ui-conversations",
|
|
2437
|
+
standalone: true,
|
|
2438
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2439
|
+
imports: [
|
|
2440
|
+
FormsModule,
|
|
2441
|
+
AlertComponent,
|
|
2442
|
+
AvatarComponent,
|
|
2443
|
+
BadgeComponent,
|
|
2444
|
+
ButtonComponent,
|
|
2445
|
+
EmptyStateComponent,
|
|
2446
|
+
FileInputComponent,
|
|
2447
|
+
ListComponent,
|
|
2448
|
+
PaginationComponent,
|
|
2449
|
+
QuickFilterTabsComponent,
|
|
2450
|
+
RichTextEditorComponent,
|
|
2451
|
+
SearchInputComponent,
|
|
2452
|
+
SkeletonComponent,
|
|
2453
|
+
TextareaInputComponent,
|
|
2454
|
+
TooltipDirective,
|
|
2455
|
+
ConversationRichBodyComponent,
|
|
2456
|
+
ModalComponent
|
|
2457
|
+
],
|
|
2458
|
+
template: `
|
|
2459
|
+
<div class="cv-layout" [class.has-context]="contextVisible()" data-testid="conversations">
|
|
2460
|
+
@if (contextVisible()) {
|
|
2461
|
+
<div class="cv-context-backdrop" (click)="closeContext()" aria-hidden="true"></div>
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2464
|
+
<!-- LEFT: conversation list -->
|
|
2465
|
+
<section class="cv-list-panel" [class.cv-hidden-mobile]="!!selected()" [attr.aria-labelledby]="titleId">
|
|
2466
|
+
<div class="cv-list-header">
|
|
2467
|
+
<h2 class="cv-list-title" [id]="titleId">{{ title() }}</h2>
|
|
2468
|
+
@if (canWrite() && allowNew()) {
|
|
2469
|
+
<ui-button class="cv-new-btn" variant="primary" size="sm" [ariaLabel]="newLabel()" [uiTooltip]="newTooltip()" tooltipPosition="bottom" (click)="newConversation.emit()" data-testid="new-message-btn">
|
|
2470
|
+
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/><line x1="12" y1="8" x2="12" y2="16"/><line x1="8" y1="12" x2="16" y2="12"/></svg>
|
|
2471
|
+
</ui-button>
|
|
2472
|
+
}
|
|
2473
|
+
</div>
|
|
2474
|
+
|
|
2475
|
+
@if (showFilters()) {
|
|
2476
|
+
<div class="cv-search">
|
|
2477
|
+
<ui-search-input [placeholder]="searchPlaceholder()" [ariaLabel]="searchAriaLabel()" [(value)]="searchText" (searchChange)="searchChange.emit($event)" data-testid="conv-search" />
|
|
2478
|
+
</div>
|
|
2479
|
+
@if (filterTabs().length) {
|
|
2480
|
+
<div class="cv-filters">
|
|
2481
|
+
<ui-quick-filter-tabs [ariaLabel]="filterAriaLabel()" [tabs]="filterTabs()" [counts]="filterCounts()" [activeValue]="activeFilter()" (tabChange)="filterChange.emit($event)" data-testid="conv-filters" />
|
|
2482
|
+
</div>
|
|
2483
|
+
}
|
|
2484
|
+
}
|
|
2485
|
+
|
|
2486
|
+
@if (loading()) {
|
|
2487
|
+
<div class="cv-loading" aria-busy="true" [attr.aria-label]="loadingLabel()" data-testid="conv-loading">
|
|
2488
|
+
@for (i of skeletonRows; track i) {
|
|
2489
|
+
<div class="cv-skeleton">
|
|
2490
|
+
<ui-skeleton [height]="40" width="40px" [radius]="20" />
|
|
2491
|
+
<div class="cv-skel-content">
|
|
2492
|
+
<div class="cv-skel-row">
|
|
2493
|
+
<ui-skeleton width="55%" [height]="12" />
|
|
2494
|
+
<ui-skeleton width="48px" [height]="10" />
|
|
2495
|
+
</div>
|
|
2496
|
+
<ui-skeleton width="30%" [height]="10" [mb]="2" />
|
|
2497
|
+
<ui-skeleton width="85%" [height]="10" />
|
|
2498
|
+
</div>
|
|
2499
|
+
</div>
|
|
2500
|
+
}
|
|
2501
|
+
</div>
|
|
2502
|
+
} @else if (error()) {
|
|
2503
|
+
<div class="cv-error" data-testid="conv-error">
|
|
2504
|
+
<ui-alert variant="danger">{{ error() }}</ui-alert>
|
|
2505
|
+
<ui-button variant="secondary" size="sm" (click)="retry.emit()" data-testid="conv-retry">{{ labels.t('common.retry') }}</ui-button>
|
|
2506
|
+
</div>
|
|
2507
|
+
} @else if (conversations().length === 0) {
|
|
2508
|
+
<ui-empty-state iconType="message" data-testid="conv-empty" [title]="filtering() ? filteredEmptyTitle() : emptyTitle()" [message]="emptyText()" />
|
|
2509
|
+
} @else {
|
|
2510
|
+
<div class="cv-list">
|
|
2511
|
+
<ui-list [ariaLabel]="listAriaLabel()" [items]="conversations()" [trackBy]="trackConversation" [navigable]="selectable()" [arrow]="false" (itemClick)="onRowOpen($event)">
|
|
2512
|
+
<ng-template let-conv>
|
|
2513
|
+
<div class="cv-item" data-testid="conv-item" [attr.data-conversation-id]="conv.id"
|
|
2514
|
+
[class.selected]="selected()?.id === conv.id" [class.unread]="(conv.unreadCount ?? 0) > 0">
|
|
2515
|
+
<ui-avatar [initials]="initial(conv.name)" [name]="conv.name" [size]="40" />
|
|
2516
|
+
<div class="cv-item-info">
|
|
2517
|
+
<div class="cv-item-top">
|
|
2518
|
+
<span class="cv-name">{{ conv.name }}</span>@if (selected()?.id === conv.id) {<span class="cv-sr-only">, {{ labels.t('conversations.openSr') }}</span>}
|
|
2519
|
+
<span class="cv-time">{{ relativeTime(conv.lastMessageAt) }}</span>
|
|
2520
|
+
</div>
|
|
2521
|
+
@if (conv.subtitle) { <span class="cv-subtitle">{{ conv.subtitle }}</span> }
|
|
2522
|
+
<div class="cv-item-bottom">
|
|
2523
|
+
<p class="cv-preview">{{ preview(conv.preview) || noMessagesText() }}</p>
|
|
2524
|
+
<div class="cv-item-right">
|
|
2525
|
+
@if (conv.statusLabel) { <ui-badge [label]="conv.statusLabel" variant="gray" /> }
|
|
2526
|
+
@if ((conv.unreadCount ?? 0) > 0) {
|
|
2527
|
+
<ui-badge class="cv-unread-badge" [label]="'' + conv.unreadCount" variant="blue" data-testid="conv-unread" />
|
|
2528
|
+
<span class="cv-sr-only">{{ labels.t('conversations.unread') }}</span>
|
|
2529
|
+
}
|
|
2530
|
+
@if (canWrite() && allowDelete()) {
|
|
2531
|
+
<ui-button class="cv-delete-btn" variant="icon-danger" [ariaLabel]="deleteRowLabel() + ' ' + conv.name" (click)="$event.stopPropagation(); deleteConversation.emit(conv)" data-testid="conv-delete-btn">
|
|
2532
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/></svg>
|
|
2533
|
+
</ui-button>
|
|
2534
|
+
}
|
|
2535
|
+
</div>
|
|
2536
|
+
</div>
|
|
2537
|
+
</div>
|
|
2538
|
+
@if (showRowArrow()) {
|
|
2539
|
+
<svg class="cv-row-arrow" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" data-testid="conv-arrow"><path d="M9 18l6-6-6-6"/></svg>
|
|
2540
|
+
}
|
|
2541
|
+
</div>
|
|
2542
|
+
</ng-template>
|
|
2543
|
+
</ui-list>
|
|
2544
|
+
<ui-pagination [ariaLabel]="paginationAriaLabel()" [page]="page()" [pageSize]="pageSize()" [totalItems]="totalItems()" (pageChange)="pageChange.emit($event)" />
|
|
2545
|
+
</div>
|
|
2546
|
+
}
|
|
2547
|
+
</section>
|
|
2548
|
+
|
|
2549
|
+
<!-- CENTER: message thread -->
|
|
2550
|
+
<section class="cv-thread-panel" [class.cv-hidden-mobile]="!selected()" [attr.aria-label]="threadAriaLabel()">
|
|
2551
|
+
@if (selected(); as conv) {
|
|
2552
|
+
<div class="cv-thread-header">
|
|
2553
|
+
@if (selectable()) {
|
|
2554
|
+
<ui-button class="cv-back-btn" variant="secondary" size="sm" [ariaLabel]="backLabel()" (click)="onBack()" data-testid="back-to-list">
|
|
2555
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><polyline points="15 18 9 12 15 6"/></svg>
|
|
2556
|
+
</ui-button>
|
|
2557
|
+
}
|
|
2558
|
+
<div class="cv-thread-header-info">
|
|
2559
|
+
<ui-avatar [initials]="initial(conv.name)" [name]="conv.name" [size]="40" />
|
|
2560
|
+
<div class="cv-thread-header-text">
|
|
2561
|
+
<h3 class="cv-thread-name" #threadHeading tabindex="-1" data-testid="thread-name">{{ conv.name }}</h3>
|
|
2562
|
+
@if (conv.subtitle) { <span class="cv-thread-subtitle" data-testid="thread-phone">{{ conv.subtitle }}</span> }
|
|
2563
|
+
</div>
|
|
2564
|
+
</div>
|
|
2565
|
+
<div class="cv-thread-actions">
|
|
2566
|
+
@if (canWrite() && templatesEnabled()) {
|
|
2567
|
+
<ui-button class="cv-thread-action" variant="secondary" size="sm" [ariaLabel]="templateLabel()" [uiTooltip]="templateLabel()" tooltipPosition="bottom" [disabled]="composerDisabled()" (click)="templateRequest.emit()" data-testid="use-template-btn">
|
|
2568
|
+
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/></svg>
|
|
2569
|
+
</ui-button>
|
|
2570
|
+
}
|
|
2571
|
+
@if (hasContext()) {
|
|
2572
|
+
<ui-button #contextToggle class="cv-thread-action" [variant]="contextOpen() ? 'primary' : 'secondary'" size="sm" [ariaLabel]="contextOpen() ? hideContextLabel() : showContextLabel()" [uiTooltip]="contextOpen() ? hideContextLabel() : contextTitle()" tooltipPosition="bottom" (click)="toggleContext()" data-testid="context-toggle">
|
|
2573
|
+
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>
|
|
2574
|
+
</ui-button>
|
|
2575
|
+
}
|
|
2576
|
+
@if (canWrite() && statusActionLabel()) {
|
|
2577
|
+
<ui-button class="cv-thread-action" variant="secondary" size="sm" [ariaLabel]="statusActionLabel() ?? ''" [uiTooltip]="statusActionLabel()" tooltipPosition="bottom" [disabled]="statusChanging()" (click)="statusChange.emit(conv)" data-testid="status-btn">
|
|
2578
|
+
@if (statusActionIcon() === 'reopen') {
|
|
2579
|
+
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><polyline points="1 4 1 10 7 10"/><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"/></svg>
|
|
2580
|
+
} @else {
|
|
2581
|
+
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/></svg>
|
|
2582
|
+
}
|
|
2583
|
+
</ui-button>
|
|
2584
|
+
}
|
|
2585
|
+
@if (canWrite() && allowDelete()) {
|
|
2586
|
+
<ui-button class="cv-thread-action" variant="danger" size="sm" [ariaLabel]="deleteThreadLabel()" [uiTooltip]="deleteThreadLabel()" tooltipPosition="bottom" (click)="deleteConversation.emit(conv)" data-testid="thread-delete-btn">
|
|
2587
|
+
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/></svg>
|
|
2588
|
+
</ui-button>
|
|
2589
|
+
}
|
|
2590
|
+
</div>
|
|
2591
|
+
</div>
|
|
2592
|
+
|
|
2593
|
+
<div class="cv-messages" #messagesEl role="log" aria-live="polite" aria-relevant="additions" tabindex="0"
|
|
2594
|
+
[attr.aria-label]="messagesAriaLabel() + ' ' + conv.name" [attr.aria-busy]="messagesLoading()" (scroll)="onMessagesScroll()" data-testid="messages">
|
|
2595
|
+
@if (messagesLoading()) {
|
|
2596
|
+
<div class="cv-messages-loading" data-testid="messages-loading">
|
|
2597
|
+
@for (i of skeletonBubbles; track i) {
|
|
2598
|
+
<div class="cv-msg-skeleton" [class.outbound]="i % 2 === 0">
|
|
2599
|
+
<ui-skeleton [height]="48" [width]="i % 2 === 0 ? '60%' : '55%'" [radius]="16" />
|
|
2600
|
+
</div>
|
|
2601
|
+
}
|
|
2602
|
+
</div>
|
|
2603
|
+
} @else if (messagesError()) {
|
|
2604
|
+
<div class="cv-messages-error" data-testid="thread-error">
|
|
2605
|
+
<ui-alert variant="danger">{{ messagesError() }}</ui-alert>
|
|
2606
|
+
<ui-button variant="secondary" size="sm" (click)="messagesRetry.emit()" data-testid="thread-retry">{{ labels.t('common.retry') }}</ui-button>
|
|
2607
|
+
</div>
|
|
2608
|
+
} @else if (messages().length === 0) {
|
|
2609
|
+
<div class="cv-messages-empty" data-testid="messages-empty">
|
|
2610
|
+
<p>{{ canWrite() ? noMessagesWriteText() : noMessagesReadText() }}</p>
|
|
2611
|
+
</div>
|
|
2612
|
+
} @else {
|
|
2613
|
+
@if (hasEarlier()) {
|
|
2614
|
+
<div class="cv-load-earlier">
|
|
2615
|
+
<ui-button variant="secondary" size="sm" [loading]="loadingEarlier()" (click)="loadEarlier.emit()" data-testid="load-earlier">{{ loadEarlierLabel() }}</ui-button>
|
|
2616
|
+
</div>
|
|
2617
|
+
}
|
|
2618
|
+
@for (row of messageRows(); track row.message.id) {
|
|
2619
|
+
@if (row.separator) { <div class="cv-date-separator"><span>{{ row.separator }}</span></div> }
|
|
2620
|
+
<div class="cv-bubble" data-testid="message" [class.outbound]="row.message.direction === 'outbound'" [class.inbound]="row.message.direction === 'inbound'">
|
|
2621
|
+
<span class="cv-sr-only">{{ row.message.direction === 'outbound' ? youLabel() : conv.name }}:</span>
|
|
2622
|
+
@if (row.message.media; as media) {
|
|
2623
|
+
<div class="cv-media">
|
|
2624
|
+
@if (media.type?.startsWith('image/')) {
|
|
2625
|
+
<button type="button" class="cv-image-btn" (click)="mediaOpen.emit(media.url)" [attr.aria-label]="openMediaLabel() + ' ' + (media.fileName || imageFallbackName())">
|
|
2626
|
+
<img [src]="media.url" [alt]="media.fileName || imageFallbackName()" class="cv-image" loading="lazy" />
|
|
2627
|
+
</button>
|
|
2628
|
+
} @else if (media.type?.startsWith('video/')) {
|
|
2629
|
+
<video [src]="media.url" class="cv-video" controls preload="metadata"></video>
|
|
2630
|
+
} @else {
|
|
2631
|
+
<a [href]="media.url" target="_blank" rel="noopener noreferrer" class="cv-file-link">{{ media.fileName || fileFallbackName() }}</a>
|
|
2632
|
+
}
|
|
2633
|
+
</div>
|
|
2634
|
+
}
|
|
2635
|
+
@if (row.message.bodyHtml) { <ui-conversation-rich-body [html]="row.message.bodyHtml" data-testid="msg-rich-body" /> }
|
|
2636
|
+
@else if (row.message.body) { <p class="cv-body">{{ row.message.body }}</p> }
|
|
2637
|
+
@if (row.message.link; as msgLink) {
|
|
2638
|
+
@if (msgLink.url) {
|
|
2639
|
+
<a class="cv-link-chip" [href]="msgLink.url" data-testid="msg-link"><svg class="cv-link-icon" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M10 13a5 5 0 0 0 7.07 0l3-3a5 5 0 0 0-7.07-7.07l-1.5 1.5"/><path d="M14 11a5 5 0 0 0-7.07 0l-3 3a5 5 0 0 0 7.07 7.07l1.5-1.5"/></svg><span class="cv-link-label">{{ msgLink.label }}</span></a>
|
|
2640
|
+
} @else {
|
|
2641
|
+
<span class="cv-link-chip" data-testid="msg-link"><svg class="cv-link-icon" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M10 13a5 5 0 0 0 7.07 0l3-3a5 5 0 0 0-7.07-7.07l-1.5 1.5"/><path d="M14 11a5 5 0 0 0-7.07 0l-3 3a5 5 0 0 0 7.07 7.07l1.5-1.5"/></svg><span class="cv-link-label">{{ msgLink.label }}</span></span>
|
|
2642
|
+
}
|
|
2643
|
+
}
|
|
2644
|
+
<span class="cv-meta">
|
|
2645
|
+
@if (row.message.sender) { <span class="cv-sender" data-testid="msg-sender">{{ row.message.sender }}</span> }
|
|
2646
|
+
{{ time(row.message) }}
|
|
2647
|
+
@if (row.message.action; as action) {
|
|
2648
|
+
<button type="button" class="cv-msg-action" data-testid="msg-action" (click)="messageAction.emit(row.message)">{{ action.label }}</button>
|
|
2649
|
+
}
|
|
2650
|
+
@if (row.message.direction === 'outbound' && statusLabel(row.message.status)) {
|
|
2651
|
+
<span class="cv-status" [class.failed]="row.message.status === 'failed'" data-testid="msg-status">
|
|
2652
|
+
<span aria-hidden="true">{{ statusMark(row.message.status) }}</span>
|
|
2653
|
+
<span class="cv-sr-only">{{ statusLabel(row.message.status) }}</span>
|
|
2654
|
+
</span>
|
|
2655
|
+
}
|
|
2656
|
+
</span>
|
|
2657
|
+
</div>
|
|
2658
|
+
}
|
|
2659
|
+
}
|
|
2660
|
+
</div>
|
|
2661
|
+
|
|
2662
|
+
@if (canWrite()) {
|
|
2663
|
+
<div class="cv-compose">
|
|
2664
|
+
@if (attachment(); as file) {
|
|
2665
|
+
<div class="cv-attachment" data-testid="attachment-preview">
|
|
2666
|
+
@if (file.previewUrl) {
|
|
2667
|
+
<img [src]="file.previewUrl" [alt]="attachmentPreviewLabel()" class="cv-attachment-thumb" />
|
|
2668
|
+
} @else {
|
|
2669
|
+
<span class="cv-attachment-name">{{ file.fileName }}</span>
|
|
2670
|
+
}
|
|
2671
|
+
<ui-button class="cv-attachment-remove" variant="icon-danger" [ariaLabel]="removeAttachmentLabel()" (click)="attachmentRemove.emit()" data-testid="attachment-remove">
|
|
2672
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
|
|
2673
|
+
</ui-button>
|
|
2674
|
+
</div>
|
|
2675
|
+
}
|
|
2676
|
+
@if (link(); as chosen) {
|
|
2677
|
+
<div class="cv-link-preview" data-testid="link-preview">
|
|
2678
|
+
<span class="cv-link-chip cv-link-chip-compose"><svg class="cv-link-icon" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M10 13a5 5 0 0 0 7.07 0l3-3a5 5 0 0 0-7.07-7.07l-1.5 1.5"/><path d="M14 11a5 5 0 0 0-7.07 0l-3 3a5 5 0 0 0 7.07 7.07l1.5-1.5"/></svg><span class="cv-link-label" data-testid="link-preview-label">{{ chosen.label }}</span></span>
|
|
2679
|
+
<ui-button class="cv-link-remove" variant="icon-danger" [ariaLabel]="removeLinkLabel()" [disabled]="sending()" (click)="link.set(null)" data-testid="link-remove">
|
|
2680
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
|
|
2681
|
+
</ui-button>
|
|
2682
|
+
</div>
|
|
2683
|
+
}
|
|
2684
|
+
<div class="cv-compose-row">
|
|
2685
|
+
@if (linkGroups() !== null) {
|
|
2686
|
+
<ui-button class="cv-link-btn" variant="icon" [ariaLabel]="linkLabel()" [uiTooltip]="linkLabel()" [disabled]="sending() || composerDisabled()" (click)="openLinkPicker()" data-testid="link-btn">
|
|
2687
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M10 13a5 5 0 0 0 7.07 0l3-3a5 5 0 0 0-7.07-7.07l-1.5 1.5"/><path d="M14 11a5 5 0 0 0-7.07 0l-3 3a5 5 0 0 0 7.07 7.07l1.5-1.5"/></svg>
|
|
2688
|
+
</ui-button>
|
|
2689
|
+
}
|
|
2690
|
+
@if (attachEnabled()) {
|
|
2691
|
+
<ui-button class="cv-attach-btn" variant="icon" [ariaLabel]="attachLabel()" [disabled]="uploading() || composerDisabled()" [loading]="uploading()" (click)="openFilePicker()" data-testid="attach-btn">
|
|
2692
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"/></svg>
|
|
2693
|
+
</ui-button>
|
|
2694
|
+
<ui-file-input [showField]="false" [accept]="acceptedFiles()" [maxSize]="maxFileSize()" [toastOnReject]="true"
|
|
2695
|
+
[typeMessage]="typeMessage()" [sizeMessage]="sizeMessage()" (filesSelected)="filesSelected.emit($event)" data-testid="attach-input" />
|
|
2696
|
+
}
|
|
2697
|
+
@if (richText()) {
|
|
2698
|
+
<ui-rich-text-editor class="cv-compose-input cv-compose-rich" [ariaLabel]="composeLabel()" [placeholder]="composePlaceholder()" [hide]="richHide"
|
|
2699
|
+
[minHeight]="44" [maxHeight]="160" [ngModel]="editorHtml()" (ngModelChange)="onEditorChange($event)" [disabled]="composerDisabled()" [error]="composerError()" [showErrors]="composerError() !== ''"
|
|
2700
|
+
(keydown)="onComposeKeydown($event)" data-testid="compose-input" />
|
|
2701
|
+
} @else {
|
|
2702
|
+
<ui-textarea-input class="cv-compose-input" [ariaLabel]="composeLabel()" [placeholder]="composePlaceholder()" [rows]="1" [maxlength]="maxLength()"
|
|
2703
|
+
[ngModel]="draft()" (ngModelChange)="draft.set($event)" [disabled]="composerDisabled()" [error]="composerError()" [showErrors]="composerError() !== ''"
|
|
2704
|
+
(keydown)="onComposeKeydown($event)" data-testid="compose-input" />
|
|
2705
|
+
}
|
|
2706
|
+
<ui-button class="cv-send-btn" variant="primary" [ariaLabel]="sendLabel()" [disabled]="!canSend()" [loading]="sending()" (click)="sendMessage()" data-testid="send-btn">
|
|
2707
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><line x1="22" y1="2" x2="11" y2="13"/><polygon points="22 2 15 22 11 13 2 9 22 2"/></svg>
|
|
2708
|
+
</ui-button>
|
|
2709
|
+
</div>
|
|
2710
|
+
@if (composerNotice()) {
|
|
2711
|
+
<ui-alert variant="warning" data-testid="compose-opted-out">{{ composerNotice() }}</ui-alert>
|
|
2712
|
+
}
|
|
2713
|
+
<!-- Always in the page (a live region that appears together with its text is often not announced): only its text comes and goes. -->
|
|
2714
|
+
<p class="cv-compose-status" role="status" data-testid="compose-loading-contact">{{ composerStatus() }}</p>
|
|
2715
|
+
</div>
|
|
2716
|
+
}
|
|
2717
|
+
} @else {
|
|
2718
|
+
<ui-empty-state iconType="message" [title]="threadEmptyTitle()" [message]="threadEmptyMessage()" data-testid="thread-empty" />
|
|
2719
|
+
}
|
|
2720
|
+
</section>
|
|
2721
|
+
|
|
2722
|
+
@if (linkGroups() !== null) {
|
|
2723
|
+
<ui-modal [open]="pickerOpen()" [title]="linkPickerTitle()" maxWidth="480px" bodyOverflow="hidden" dialogTestId="link-picker" (close)="closeLinkPicker()">
|
|
2724
|
+
<ui-search-input [placeholder]="linkSearchPlaceholder()" [ariaLabel]="linkSearchLabel()" [(value)]="linkQuery" data-testid="link-search" />
|
|
2725
|
+
<div class="cv-link-list" data-testid="link-list">
|
|
2726
|
+
@if (linkLoading()) {
|
|
2727
|
+
<p class="cv-link-note" role="status" data-testid="link-loading">{{ linkLoadingText() }}</p>
|
|
2728
|
+
} @else if (visibleLinkGroups().length === 0) {
|
|
2729
|
+
<p class="cv-link-note" data-testid="link-empty">{{ linkEmptyText() }}</p>
|
|
2730
|
+
} @else {
|
|
2731
|
+
@for (group of visibleLinkGroups(); track group.type) {
|
|
2732
|
+
<div class="cv-link-section" role="group" [attr.aria-label]="group.label" data-testid="link-section">
|
|
2733
|
+
<div class="cv-link-section-label" aria-hidden="true">{{ group.label }}</div>
|
|
2734
|
+
@for (item of group.items; track item.id) {
|
|
2735
|
+
<button type="button" class="cv-link-item" data-testid="link-item" (click)="pickLink(group, item)">{{ item.label }}</button>
|
|
2736
|
+
}
|
|
2737
|
+
</div>
|
|
2738
|
+
}
|
|
2739
|
+
}
|
|
2740
|
+
</div>
|
|
2741
|
+
</ui-modal>
|
|
2742
|
+
}
|
|
2743
|
+
|
|
2744
|
+
<!-- RIGHT: contact panel (the host's content) -->
|
|
2745
|
+
@if (contextVisible()) {
|
|
2746
|
+
<aside class="cv-context" #contextPanel tabindex="-1" [attr.aria-label]="contextTitle()" (keydown.escape)="closeContext(true)" data-testid="context-panel">
|
|
2747
|
+
<div class="cv-context-header">
|
|
2748
|
+
<h3>{{ contextTitle() }}</h3>
|
|
2749
|
+
<ui-button variant="icon" [ariaLabel]="closeContextLabel()" (click)="closeContext(true)" data-testid="context-close">
|
|
2750
|
+
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
|
|
2751
|
+
</ui-button>
|
|
2752
|
+
</div>
|
|
2753
|
+
<div class="cv-context-body"><ng-content select="[uiConversationsContext]" /></div>
|
|
2754
|
+
</aside>
|
|
2755
|
+
}
|
|
2756
|
+
</div>
|
|
2757
|
+
`,
|
|
2758
|
+
styles: [":host{display:flex;flex:1;min-height:0;min-width:0}.cv-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.cv-layout{display:grid;grid-template-columns:340px 1fr;flex:1;min-height:0;min-width:0;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 1px 3px #0000000f;border:1px solid #e2e8f0}.cv-layout.has-context{grid-template-columns:340px 1fr 280px}.cv-list-panel{display:flex;flex-direction:column;min-height:0;border-right:1px solid #e2e8f0;background:#f8fafc;overflow:hidden}.cv-list-header{display:flex;align-items:center;justify-content:space-between;padding:20px 20px 12px}.cv-list-title{margin:0;font-size:1.125rem;font-weight:700;color:#1e293b}.cv-search,.cv-filters{padding:0 16px 12px}.cv-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}.cv-item{display:flex;gap:12px;padding:14px 16px;border-bottom:1px solid #f1f5f9;transition:background .15s}.cv-item.unread{background:#fffbeb}.cv-item.selected{background:#eff6ff;box-shadow:inset 3px 0 #2563eb}.cv-item-info{flex:1;min-width:0}.cv-row-arrow{flex:0 0 auto;align-self:center;color:#94a3b8}.cv-item-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.cv-name{font-size:.875rem;font-weight:600;color:#1e293b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cv-time{font-size:.6875rem;color:#64748b;flex-shrink:0;margin-left:8px}.cv-subtitle{font-size:.6875rem;color:#64748b;display:block;margin-bottom:2px}.cv-item-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px}.cv-preview{margin:0;font-size:.8125rem;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.cv-item-right{display:flex;align-items:center;gap:6px;flex-shrink:0}.cv-delete-btn{opacity:0;transition:opacity .15s}.cv-item:hover .cv-delete-btn,.cv-item:focus-within .cv-delete-btn,.cv-delete-btn:focus-within{opacity:1}@media(hover:none){.cv-delete-btn{opacity:1}}.cv-loading{padding:8px 0}.cv-skeleton{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-bottom:1px solid #f1f5f9}.cv-skel-content{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px;padding-top:2px}.cv-skel-row{display:flex;justify-content:space-between;gap:8px}.cv-error{display:flex;flex-direction:column;align-items:center;gap:12px;padding:24px 16px;text-align:center}.cv-thread-panel{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:#fff}.cv-thread-header{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid #e2e8f0;background:#fff}.cv-back-btn{display:none}.cv-thread-header-info{display:flex;align-items:center;gap:12px;flex:1;min-width:0}.cv-thread-header-text{min-width:0;display:flex;flex-direction:column}.cv-thread-name{margin:0;font-size:.9375rem;font-weight:600;color:#1e293b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cv-thread-name:focus{outline:none}.cv-thread-name:focus-visible{outline:2px solid #2563eb;outline-offset:2px;border-radius:4px}.cv-thread-subtitle{font-size:.75rem;color:#64748b}.cv-thread-actions{display:flex;align-items:center;gap:8px}.cv-messages{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:20px 24px;display:flex;flex-direction:column;gap:4px;background:#f8fafc}.cv-messages:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}.cv-messages-loading{display:flex;flex-direction:column;gap:12px;padding:20px 0}.cv-msg-skeleton{display:flex}.cv-msg-skeleton.outbound{justify-content:flex-end}.cv-messages-error{display:flex;flex-direction:column;align-items:center;gap:12px;padding:24px 16px;text-align:center}.cv-load-earlier{display:flex;justify-content:center;padding:4px 0 12px}.cv-sender{font-weight:600}.cv-link-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;margin-top:6px;padding:3px 10px;border-radius:999px;border:1px solid transparent;font-size:.8rem;font-weight:600;text-decoration:none}.cv-link-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.cv-link-icon{flex:none}.cv-bubble.inbound .cv-link-chip{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}.cv-bubble.outbound .cv-link-chip{background:#ffffff2e;border-color:#ffffff73;color:#fff}.cv-link-chip:is(a):hover{filter:brightness(.96);text-decoration:underline}.cv-link-chip:is(a):focus-visible{outline:2px solid currentColor;outline-offset:2px}.cv-link-preview{display:flex;align-items:center;gap:4px;margin-bottom:8px}.cv-link-chip-compose{margin-top:0;background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}.cv-link-list{display:flex;flex-direction:column;gap:4px;margin-top:12px;max-height:320px;overflow-y:auto}.cv-link-section-label{padding:8px 4px 4px;font-size:.7rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#64748b}.cv-link-item{display:block;width:100%;padding:10px 12px;border:0;border-radius:8px;background:none;text-align:start;font:inherit;font-size:.875rem;color:#1e293b;cursor:pointer}.cv-link-item:hover{background:#f1f5f9}.cv-link-item:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}.cv-link-note{margin:16px 0;text-align:center;font-size:.875rem;color:#64748b}@media(pointer:coarse),(max-width:480px){.cv-link-item{min-height:44px}}.cv-msg-action{padding:0;border:0;background:none;color:inherit;font:inherit;text-decoration:underline;cursor:pointer}.cv-msg-action:focus-visible{outline:2px solid currentColor;outline-offset:2px;border-radius:2px}.cv-messages-empty{display:flex;align-items:center;justify-content:center;flex:1}.cv-messages-empty p{margin:0;font-size:.875rem;color:#64748b;text-align:center}.cv-date-separator{display:flex;align-items:center;justify-content:center;padding:16px 0 8px}.cv-date-separator span{padding:4px 14px;border-radius:12px;background:#e2e8f0;font-size:.6875rem;font-weight:600;color:#475569;text-transform:uppercase;letter-spacing:.3px}.cv-bubble{max-width:70%;padding:10px 14px;border-radius:16px;position:relative;word-break:break-word;overflow-wrap:break-word}.cv-bubble.inbound{align-self:flex-start;background:#fff;border:1px solid #e2e8f0;border-bottom-left-radius:4px}.cv-bubble.inbound .cv-body,.cv-bubble.inbound .cv-rich{color:#1e293b}.cv-bubble.inbound .cv-meta{color:#64748b}.cv-bubble.outbound{align-self:flex-end;background:#2563eb;border-bottom-right-radius:4px}.cv-bubble.outbound .cv-body,.cv-bubble.outbound .cv-rich,.cv-bubble.outbound .cv-meta{color:#fff}@media(prefers-reduced-motion:no-preference){.cv-bubble{animation:cv-appear .2s ease}.cv-context{animation:cv-slide-in .25s ease}}.cv-body{margin:0;font-size:.875rem;line-height:1.45;word-break:break-word;white-space:pre-wrap}.cv-media{margin-bottom:6px}.cv-image-btn{display:block;padding:0;border:0;background:none;cursor:pointer;border-radius:8px}.cv-image-btn:focus-visible{outline:2px solid #fff;outline-offset:2px;box-shadow:0 0 0 4px #2563eb}.cv-image{display:block;max-width:240px;max-height:240px;border-radius:8px;object-fit:cover}.cv-video{max-width:240px;max-height:200px;border-radius:8px}.cv-file-link{font-size:.8125rem;color:#fff;text-decoration:underline}.cv-bubble.inbound .cv-file-link{color:#2563eb}.cv-meta{display:flex;align-items:center;gap:6px;justify-content:flex-end;font-size:.6875rem;margin-top:4px}.cv-status{font-weight:500}.cv-status.failed{color:#fff;font-weight:700}.cv-bubble.inbound .cv-status.failed{color:#dc2626}.cv-compose{display:flex;flex-direction:column;padding:12px 20px 16px;padding-bottom:calc(16px + env(safe-area-inset-bottom,0px));border-top:1px solid #e2e8f0;background:#fff}.cv-compose-row{display:flex;align-items:flex-end;gap:10px}.cv-compose-input{flex:1;min-width:0}.cv-attach-btn,.cv-send-btn{flex-shrink:0}.cv-attachment{display:flex;align-items:center;gap:8px;padding:8px 12px;margin-bottom:8px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px}.cv-attachment-thumb{width:48px;height:48px;object-fit:cover;border-radius:6px}.cv-attachment-name{font-size:.8125rem;color:#475569;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cv-attachment-remove{flex-shrink:0}.cv-compose-status{margin:4px 0 0;font-size:.8125rem;color:#64748b}.cv-compose-status:empty{margin:0}.cv-context-backdrop{display:none}.cv-context{width:100%;min-width:0;border-left:1px solid #e2e8f0;background:#fff;display:flex;flex-direction:column;overflow-y:auto}.cv-context-header{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid #e2e8f0}.cv-context-header h3{margin:0;font-size:.875rem;font-weight:700;color:#1e293b}.cv-context-body{padding:20px;display:flex;flex-direction:column;gap:16px}@keyframes cv-appear{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes cv-slide-in{0%{transform:translate(100%)}to{transform:translate(0)}}@media(max-width:1100px){.cv-layout.has-context{grid-template-columns:280px 1fr 240px}}@media(max-width:768px){.cv-layout,.cv-layout.has-context{grid-template-columns:1fr;height:100%}.cv-hidden-mobile{display:none!important}.cv-back-btn{display:inline-flex}.cv-context-backdrop{display:block;position:fixed;inset:0;background:#00000059;z-index:99}.cv-context{position:fixed;top:0;right:0;bottom:0;width:300px;max-width:85vw;z-index:100;box-shadow:-4px 0 20px #0000001a}.cv-bubble{max-width:85%}.cv-messages,.cv-thread-header{padding:12px 16px}}@media(max-width:480px){.cv-thread-subtitle{display:none}.cv-compose{padding:8px 12px 12px;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}.cv-compose-row{flex-wrap:wrap}.cv-compose-input{order:-1;flex:1 1 100%}.cv-send-btn{margin-inline-start:auto}.cv-list-header{padding:12px 16px 10px}.cv-context{width:100%;max-width:100vw}}\n"]
|
|
2759
|
+
}]
|
|
2760
|
+
}],
|
|
2761
|
+
ctorParameters: () => [],
|
|
2762
|
+
propDecorators: {
|
|
2763
|
+
conversations: [{
|
|
2764
|
+
type: i0.Input,
|
|
2765
|
+
args: [{
|
|
2766
|
+
isSignal: true,
|
|
2767
|
+
alias: "conversations",
|
|
2768
|
+
required: false
|
|
2769
|
+
}]
|
|
2770
|
+
}],
|
|
2771
|
+
selected: [{
|
|
2772
|
+
type: i0.Input,
|
|
2773
|
+
args: [{
|
|
2774
|
+
isSignal: true,
|
|
2775
|
+
alias: "selected",
|
|
2776
|
+
required: false
|
|
2777
|
+
}]
|
|
2778
|
+
}],
|
|
2779
|
+
titleInput: [{
|
|
2780
|
+
type: i0.Input,
|
|
2781
|
+
args: [{
|
|
2782
|
+
isSignal: true,
|
|
2783
|
+
alias: "title",
|
|
2784
|
+
required: false
|
|
2785
|
+
}]
|
|
2786
|
+
}],
|
|
2787
|
+
loading: [{
|
|
2788
|
+
type: i0.Input,
|
|
2789
|
+
args: [{
|
|
2790
|
+
isSignal: true,
|
|
2791
|
+
alias: "loading",
|
|
2792
|
+
required: false
|
|
2793
|
+
}]
|
|
2794
|
+
}],
|
|
2795
|
+
error: [{
|
|
2796
|
+
type: i0.Input,
|
|
2797
|
+
args: [{
|
|
2798
|
+
isSignal: true,
|
|
2799
|
+
alias: "error",
|
|
2800
|
+
required: false
|
|
2801
|
+
}]
|
|
2802
|
+
}],
|
|
2803
|
+
searchText: [{
|
|
2804
|
+
type: i0.Input,
|
|
2805
|
+
args: [{
|
|
2806
|
+
isSignal: true,
|
|
2807
|
+
alias: "searchText",
|
|
2808
|
+
required: false
|
|
2809
|
+
}]
|
|
2810
|
+
}, {
|
|
2811
|
+
type: i0.Output,
|
|
2812
|
+
args: ["searchTextChange"]
|
|
2813
|
+
}],
|
|
2814
|
+
searchPlaceholderInput: [{
|
|
2815
|
+
type: i0.Input,
|
|
2816
|
+
args: [{
|
|
2817
|
+
isSignal: true,
|
|
2818
|
+
alias: "searchPlaceholder",
|
|
2819
|
+
required: false
|
|
2820
|
+
}]
|
|
2821
|
+
}],
|
|
2822
|
+
searchAriaLabelInput: [{
|
|
2823
|
+
type: i0.Input,
|
|
2824
|
+
args: [{
|
|
2825
|
+
isSignal: true,
|
|
2826
|
+
alias: "searchAriaLabel",
|
|
2827
|
+
required: false
|
|
2828
|
+
}]
|
|
2829
|
+
}],
|
|
2830
|
+
showFilters: [{
|
|
2831
|
+
type: i0.Input,
|
|
2832
|
+
args: [{
|
|
2833
|
+
isSignal: true,
|
|
2834
|
+
alias: "showFilters",
|
|
2835
|
+
required: false
|
|
2836
|
+
}]
|
|
2837
|
+
}],
|
|
2838
|
+
filterTabs: [{
|
|
2839
|
+
type: i0.Input,
|
|
2840
|
+
args: [{
|
|
2841
|
+
isSignal: true,
|
|
2842
|
+
alias: "filterTabs",
|
|
2843
|
+
required: false
|
|
2844
|
+
}]
|
|
2845
|
+
}],
|
|
2846
|
+
filterCounts: [{
|
|
2847
|
+
type: i0.Input,
|
|
2848
|
+
args: [{
|
|
2849
|
+
isSignal: true,
|
|
2850
|
+
alias: "filterCounts",
|
|
2851
|
+
required: false
|
|
2852
|
+
}]
|
|
2853
|
+
}],
|
|
2854
|
+
activeFilter: [{
|
|
2855
|
+
type: i0.Input,
|
|
2856
|
+
args: [{
|
|
2857
|
+
isSignal: true,
|
|
2858
|
+
alias: "activeFilter",
|
|
2859
|
+
required: false
|
|
2860
|
+
}]
|
|
2861
|
+
}],
|
|
2862
|
+
filterAriaLabelInput: [{
|
|
2863
|
+
type: i0.Input,
|
|
2864
|
+
args: [{
|
|
2865
|
+
isSignal: true,
|
|
2866
|
+
alias: "filterAriaLabel",
|
|
2867
|
+
required: false
|
|
2868
|
+
}]
|
|
2869
|
+
}],
|
|
2870
|
+
page: [{
|
|
2871
|
+
type: i0.Input,
|
|
2872
|
+
args: [{
|
|
2873
|
+
isSignal: true,
|
|
2874
|
+
alias: "page",
|
|
2875
|
+
required: false
|
|
2876
|
+
}]
|
|
2877
|
+
}],
|
|
2878
|
+
pageSize: [{
|
|
2879
|
+
type: i0.Input,
|
|
2880
|
+
args: [{
|
|
2881
|
+
isSignal: true,
|
|
2882
|
+
alias: "pageSize",
|
|
2883
|
+
required: false
|
|
2884
|
+
}]
|
|
2885
|
+
}],
|
|
2886
|
+
totalItems: [{
|
|
2887
|
+
type: i0.Input,
|
|
2888
|
+
args: [{
|
|
2889
|
+
isSignal: true,
|
|
2890
|
+
alias: "totalItems",
|
|
2891
|
+
required: false
|
|
2892
|
+
}]
|
|
2893
|
+
}],
|
|
2894
|
+
paginationAriaLabelInput: [{
|
|
2895
|
+
type: i0.Input,
|
|
2896
|
+
args: [{
|
|
2897
|
+
isSignal: true,
|
|
2898
|
+
alias: "paginationAriaLabel",
|
|
2899
|
+
required: false
|
|
2900
|
+
}]
|
|
2901
|
+
}],
|
|
2902
|
+
listAriaLabelInput: [{
|
|
2903
|
+
type: i0.Input,
|
|
2904
|
+
args: [{
|
|
2905
|
+
isSignal: true,
|
|
2906
|
+
alias: "listAriaLabel",
|
|
2907
|
+
required: false
|
|
2908
|
+
}]
|
|
2909
|
+
}],
|
|
2910
|
+
loadingLabelInput: [{
|
|
2911
|
+
type: i0.Input,
|
|
2912
|
+
args: [{
|
|
2913
|
+
isSignal: true,
|
|
2914
|
+
alias: "loadingLabel",
|
|
2915
|
+
required: false
|
|
2916
|
+
}]
|
|
2917
|
+
}],
|
|
2918
|
+
emptyTitleInput: [{
|
|
2919
|
+
type: i0.Input,
|
|
2920
|
+
args: [{
|
|
2921
|
+
isSignal: true,
|
|
2922
|
+
alias: "emptyTitle",
|
|
2923
|
+
required: false
|
|
2924
|
+
}]
|
|
2925
|
+
}],
|
|
2926
|
+
emptyMessageInput: [{
|
|
2927
|
+
type: i0.Input,
|
|
2928
|
+
args: [{
|
|
2929
|
+
isSignal: true,
|
|
2930
|
+
alias: "emptyMessage",
|
|
2931
|
+
required: false
|
|
2932
|
+
}]
|
|
2933
|
+
}],
|
|
2934
|
+
emptyReadOnlyMessageInput: [{
|
|
2935
|
+
type: i0.Input,
|
|
2936
|
+
args: [{
|
|
2937
|
+
isSignal: true,
|
|
2938
|
+
alias: "emptyReadOnlyMessage",
|
|
2939
|
+
required: false
|
|
2940
|
+
}]
|
|
2941
|
+
}],
|
|
2942
|
+
filteredEmptyTitleInput: [{
|
|
2943
|
+
type: i0.Input,
|
|
2944
|
+
args: [{
|
|
2945
|
+
isSignal: true,
|
|
2946
|
+
alias: "filteredEmptyTitle",
|
|
2947
|
+
required: false
|
|
2948
|
+
}]
|
|
2949
|
+
}],
|
|
2950
|
+
filteredEmptyMessageInput: [{
|
|
2951
|
+
type: i0.Input,
|
|
2952
|
+
args: [{
|
|
2953
|
+
isSignal: true,
|
|
2954
|
+
alias: "filteredEmptyMessage",
|
|
2955
|
+
required: false
|
|
2956
|
+
}]
|
|
2957
|
+
}],
|
|
2958
|
+
noMessagesTextInput: [{
|
|
2959
|
+
type: i0.Input,
|
|
2960
|
+
args: [{
|
|
2961
|
+
isSignal: true,
|
|
2962
|
+
alias: "noMessagesText",
|
|
2963
|
+
required: false
|
|
2964
|
+
}]
|
|
2965
|
+
}],
|
|
2966
|
+
allowNew: [{
|
|
2967
|
+
type: i0.Input,
|
|
2968
|
+
args: [{
|
|
2969
|
+
isSignal: true,
|
|
2970
|
+
alias: "allowNew",
|
|
2971
|
+
required: false
|
|
2972
|
+
}]
|
|
2973
|
+
}],
|
|
2974
|
+
allowDelete: [{
|
|
2975
|
+
type: i0.Input,
|
|
2976
|
+
args: [{
|
|
2977
|
+
isSignal: true,
|
|
2978
|
+
alias: "allowDelete",
|
|
2979
|
+
required: false
|
|
2980
|
+
}]
|
|
2981
|
+
}],
|
|
2982
|
+
showRowArrow: [{
|
|
2983
|
+
type: i0.Input,
|
|
2984
|
+
args: [{
|
|
2985
|
+
isSignal: true,
|
|
2986
|
+
alias: "showRowArrow",
|
|
2987
|
+
required: false
|
|
2988
|
+
}]
|
|
2989
|
+
}],
|
|
2990
|
+
selectable: [{
|
|
2991
|
+
type: i0.Input,
|
|
2992
|
+
args: [{
|
|
2993
|
+
isSignal: true,
|
|
2994
|
+
alias: "selectable",
|
|
2995
|
+
required: false
|
|
2996
|
+
}]
|
|
2997
|
+
}],
|
|
2998
|
+
newLabelInput: [{
|
|
2999
|
+
type: i0.Input,
|
|
3000
|
+
args: [{
|
|
3001
|
+
isSignal: true,
|
|
3002
|
+
alias: "newLabel",
|
|
3003
|
+
required: false
|
|
3004
|
+
}]
|
|
3005
|
+
}],
|
|
3006
|
+
newTooltipInput: [{
|
|
3007
|
+
type: i0.Input,
|
|
3008
|
+
args: [{
|
|
3009
|
+
isSignal: true,
|
|
3010
|
+
alias: "newTooltip",
|
|
3011
|
+
required: false
|
|
3012
|
+
}]
|
|
3013
|
+
}],
|
|
3014
|
+
deleteRowLabelInput: [{
|
|
3015
|
+
type: i0.Input,
|
|
3016
|
+
args: [{
|
|
3017
|
+
isSignal: true,
|
|
3018
|
+
alias: "deleteRowLabel",
|
|
3019
|
+
required: false
|
|
3020
|
+
}]
|
|
3021
|
+
}],
|
|
3022
|
+
messages: [{
|
|
3023
|
+
type: i0.Input,
|
|
3024
|
+
args: [{
|
|
3025
|
+
isSignal: true,
|
|
3026
|
+
alias: "messages",
|
|
3027
|
+
required: false
|
|
3028
|
+
}]
|
|
3029
|
+
}],
|
|
3030
|
+
messagesLoading: [{
|
|
3031
|
+
type: i0.Input,
|
|
3032
|
+
args: [{
|
|
3033
|
+
isSignal: true,
|
|
3034
|
+
alias: "messagesLoading",
|
|
3035
|
+
required: false
|
|
3036
|
+
}]
|
|
3037
|
+
}],
|
|
3038
|
+
messagesError: [{
|
|
3039
|
+
type: i0.Input,
|
|
3040
|
+
args: [{
|
|
3041
|
+
isSignal: true,
|
|
3042
|
+
alias: "messagesError",
|
|
3043
|
+
required: false
|
|
3044
|
+
}]
|
|
3045
|
+
}],
|
|
3046
|
+
hasEarlier: [{
|
|
3047
|
+
type: i0.Input,
|
|
3048
|
+
args: [{
|
|
3049
|
+
isSignal: true,
|
|
3050
|
+
alias: "hasEarlier",
|
|
3051
|
+
required: false
|
|
3052
|
+
}]
|
|
3053
|
+
}],
|
|
3054
|
+
loadingEarlier: [{
|
|
3055
|
+
type: i0.Input,
|
|
3056
|
+
args: [{
|
|
3057
|
+
isSignal: true,
|
|
3058
|
+
alias: "loadingEarlier",
|
|
3059
|
+
required: false
|
|
3060
|
+
}]
|
|
3061
|
+
}],
|
|
3062
|
+
loadEarlierLabelInput: [{
|
|
3063
|
+
type: i0.Input,
|
|
3064
|
+
args: [{
|
|
3065
|
+
isSignal: true,
|
|
3066
|
+
alias: "loadEarlierLabel",
|
|
3067
|
+
required: false
|
|
3068
|
+
}]
|
|
3069
|
+
}],
|
|
3070
|
+
statusActionLabel: [{
|
|
3071
|
+
type: i0.Input,
|
|
3072
|
+
args: [{
|
|
3073
|
+
isSignal: true,
|
|
3074
|
+
alias: "statusActionLabel",
|
|
3075
|
+
required: false
|
|
3076
|
+
}]
|
|
3077
|
+
}],
|
|
3078
|
+
statusActionIcon: [{
|
|
3079
|
+
type: i0.Input,
|
|
3080
|
+
args: [{
|
|
3081
|
+
isSignal: true,
|
|
3082
|
+
alias: "statusActionIcon",
|
|
3083
|
+
required: false
|
|
3084
|
+
}]
|
|
3085
|
+
}],
|
|
3086
|
+
statusChanging: [{
|
|
3087
|
+
type: i0.Input,
|
|
3088
|
+
args: [{
|
|
3089
|
+
isSignal: true,
|
|
3090
|
+
alias: "statusChanging",
|
|
3091
|
+
required: false
|
|
3092
|
+
}]
|
|
3093
|
+
}],
|
|
3094
|
+
templatesEnabled: [{
|
|
3095
|
+
type: i0.Input,
|
|
3096
|
+
args: [{
|
|
3097
|
+
isSignal: true,
|
|
3098
|
+
alias: "templatesEnabled",
|
|
3099
|
+
required: false
|
|
3100
|
+
}]
|
|
3101
|
+
}],
|
|
3102
|
+
templateLabelInput: [{
|
|
3103
|
+
type: i0.Input,
|
|
3104
|
+
args: [{
|
|
3105
|
+
isSignal: true,
|
|
3106
|
+
alias: "templateLabel",
|
|
3107
|
+
required: false
|
|
3108
|
+
}]
|
|
3109
|
+
}],
|
|
3110
|
+
deleteThreadLabelInput: [{
|
|
3111
|
+
type: i0.Input,
|
|
3112
|
+
args: [{
|
|
3113
|
+
isSignal: true,
|
|
3114
|
+
alias: "deleteThreadLabel",
|
|
3115
|
+
required: false
|
|
3116
|
+
}]
|
|
3117
|
+
}],
|
|
3118
|
+
backLabelInput: [{
|
|
3119
|
+
type: i0.Input,
|
|
3120
|
+
args: [{
|
|
3121
|
+
isSignal: true,
|
|
3122
|
+
alias: "backLabel",
|
|
3123
|
+
required: false
|
|
3124
|
+
}]
|
|
3125
|
+
}],
|
|
3126
|
+
threadAriaLabelInput: [{
|
|
3127
|
+
type: i0.Input,
|
|
3128
|
+
args: [{
|
|
3129
|
+
isSignal: true,
|
|
3130
|
+
alias: "threadAriaLabel",
|
|
3131
|
+
required: false
|
|
3132
|
+
}]
|
|
3133
|
+
}],
|
|
3134
|
+
messagesAriaLabelInput: [{
|
|
3135
|
+
type: i0.Input,
|
|
3136
|
+
args: [{
|
|
3137
|
+
isSignal: true,
|
|
3138
|
+
alias: "messagesAriaLabel",
|
|
3139
|
+
required: false
|
|
3140
|
+
}]
|
|
3141
|
+
}],
|
|
3142
|
+
threadEmptyTitleInput: [{
|
|
3143
|
+
type: i0.Input,
|
|
3144
|
+
args: [{
|
|
3145
|
+
isSignal: true,
|
|
3146
|
+
alias: "threadEmptyTitle",
|
|
3147
|
+
required: false
|
|
3148
|
+
}]
|
|
3149
|
+
}],
|
|
3150
|
+
threadEmptyMessageInput: [{
|
|
3151
|
+
type: i0.Input,
|
|
3152
|
+
args: [{
|
|
3153
|
+
isSignal: true,
|
|
3154
|
+
alias: "threadEmptyMessage",
|
|
3155
|
+
required: false
|
|
3156
|
+
}]
|
|
3157
|
+
}],
|
|
3158
|
+
noMessagesWriteTextInput: [{
|
|
3159
|
+
type: i0.Input,
|
|
3160
|
+
args: [{
|
|
3161
|
+
isSignal: true,
|
|
3162
|
+
alias: "noMessagesWriteText",
|
|
3163
|
+
required: false
|
|
3164
|
+
}]
|
|
3165
|
+
}],
|
|
3166
|
+
noMessagesReadTextInput: [{
|
|
3167
|
+
type: i0.Input,
|
|
3168
|
+
args: [{
|
|
3169
|
+
isSignal: true,
|
|
3170
|
+
alias: "noMessagesReadText",
|
|
3171
|
+
required: false
|
|
3172
|
+
}]
|
|
3173
|
+
}],
|
|
3174
|
+
youLabelInput: [{
|
|
3175
|
+
type: i0.Input,
|
|
3176
|
+
args: [{
|
|
3177
|
+
isSignal: true,
|
|
3178
|
+
alias: "youLabel",
|
|
3179
|
+
required: false
|
|
3180
|
+
}]
|
|
3181
|
+
}],
|
|
3182
|
+
openMediaLabelInput: [{
|
|
3183
|
+
type: i0.Input,
|
|
3184
|
+
args: [{
|
|
3185
|
+
isSignal: true,
|
|
3186
|
+
alias: "openMediaLabel",
|
|
3187
|
+
required: false
|
|
3188
|
+
}]
|
|
3189
|
+
}],
|
|
3190
|
+
imageFallbackNameInput: [{
|
|
3191
|
+
type: i0.Input,
|
|
3192
|
+
args: [{
|
|
3193
|
+
isSignal: true,
|
|
3194
|
+
alias: "imageFallbackName",
|
|
3195
|
+
required: false
|
|
3196
|
+
}]
|
|
3197
|
+
}],
|
|
3198
|
+
fileFallbackNameInput: [{
|
|
3199
|
+
type: i0.Input,
|
|
3200
|
+
args: [{
|
|
3201
|
+
isSignal: true,
|
|
3202
|
+
alias: "fileFallbackName",
|
|
3203
|
+
required: false
|
|
3204
|
+
}]
|
|
3205
|
+
}],
|
|
3206
|
+
hasContext: [{
|
|
3207
|
+
type: i0.Input,
|
|
3208
|
+
args: [{
|
|
3209
|
+
isSignal: true,
|
|
3210
|
+
alias: "hasContext",
|
|
3211
|
+
required: false
|
|
3212
|
+
}]
|
|
3213
|
+
}],
|
|
3214
|
+
contextOpen: [{
|
|
3215
|
+
type: i0.Input,
|
|
3216
|
+
args: [{
|
|
3217
|
+
isSignal: true,
|
|
3218
|
+
alias: "contextOpen",
|
|
3219
|
+
required: false
|
|
3220
|
+
}]
|
|
3221
|
+
}, {
|
|
3222
|
+
type: i0.Output,
|
|
3223
|
+
args: ["contextOpenChange"]
|
|
3224
|
+
}],
|
|
3225
|
+
contextTitleInput: [{
|
|
3226
|
+
type: i0.Input,
|
|
3227
|
+
args: [{
|
|
3228
|
+
isSignal: true,
|
|
3229
|
+
alias: "contextTitle",
|
|
3230
|
+
required: false
|
|
3231
|
+
}]
|
|
3232
|
+
}],
|
|
3233
|
+
showContextLabelInput: [{
|
|
3234
|
+
type: i0.Input,
|
|
3235
|
+
args: [{
|
|
3236
|
+
isSignal: true,
|
|
3237
|
+
alias: "showContextLabel",
|
|
3238
|
+
required: false
|
|
3239
|
+
}]
|
|
3240
|
+
}],
|
|
3241
|
+
hideContextLabelInput: [{
|
|
3242
|
+
type: i0.Input,
|
|
3243
|
+
args: [{
|
|
3244
|
+
isSignal: true,
|
|
3245
|
+
alias: "hideContextLabel",
|
|
3246
|
+
required: false
|
|
3247
|
+
}]
|
|
3248
|
+
}],
|
|
3249
|
+
closeContextLabelInput: [{
|
|
3250
|
+
type: i0.Input,
|
|
3251
|
+
args: [{
|
|
3252
|
+
isSignal: true,
|
|
3253
|
+
alias: "closeContextLabel",
|
|
3254
|
+
required: false
|
|
3255
|
+
}]
|
|
3256
|
+
}],
|
|
3257
|
+
canWrite: [{
|
|
3258
|
+
type: i0.Input,
|
|
3259
|
+
args: [{
|
|
3260
|
+
isSignal: true,
|
|
3261
|
+
alias: "canWrite",
|
|
3262
|
+
required: false
|
|
3263
|
+
}]
|
|
3264
|
+
}],
|
|
3265
|
+
draft: [{
|
|
3266
|
+
type: i0.Input,
|
|
3267
|
+
args: [{
|
|
3268
|
+
isSignal: true,
|
|
3269
|
+
alias: "draft",
|
|
3270
|
+
required: false
|
|
3271
|
+
}]
|
|
3272
|
+
}, {
|
|
3273
|
+
type: i0.Output,
|
|
3274
|
+
args: ["draftChange"]
|
|
3275
|
+
}],
|
|
3276
|
+
sending: [{
|
|
3277
|
+
type: i0.Input,
|
|
3278
|
+
args: [{
|
|
3279
|
+
isSignal: true,
|
|
3280
|
+
alias: "sending",
|
|
3281
|
+
required: false
|
|
3282
|
+
}]
|
|
3283
|
+
}],
|
|
3284
|
+
composerDisabled: [{
|
|
3285
|
+
type: i0.Input,
|
|
3286
|
+
args: [{
|
|
3287
|
+
isSignal: true,
|
|
3288
|
+
alias: "composerDisabled",
|
|
3289
|
+
required: false
|
|
3290
|
+
}]
|
|
3291
|
+
}],
|
|
3292
|
+
sendBlocked: [{
|
|
3293
|
+
type: i0.Input,
|
|
3294
|
+
args: [{
|
|
3295
|
+
isSignal: true,
|
|
3296
|
+
alias: "sendBlocked",
|
|
3297
|
+
required: false
|
|
3298
|
+
}]
|
|
3299
|
+
}],
|
|
3300
|
+
composerNotice: [{
|
|
3301
|
+
type: i0.Input,
|
|
3302
|
+
args: [{
|
|
3303
|
+
isSignal: true,
|
|
3304
|
+
alias: "composerNotice",
|
|
3305
|
+
required: false
|
|
3306
|
+
}]
|
|
3307
|
+
}],
|
|
3308
|
+
composerStatus: [{
|
|
3309
|
+
type: i0.Input,
|
|
3310
|
+
args: [{
|
|
3311
|
+
isSignal: true,
|
|
3312
|
+
alias: "composerStatus",
|
|
3313
|
+
required: false
|
|
3314
|
+
}]
|
|
3315
|
+
}],
|
|
3316
|
+
composerError: [{
|
|
3317
|
+
type: i0.Input,
|
|
3318
|
+
args: [{
|
|
3319
|
+
isSignal: true,
|
|
3320
|
+
alias: "composerError",
|
|
3321
|
+
required: false
|
|
3322
|
+
}]
|
|
3323
|
+
}],
|
|
3324
|
+
maxLength: [{
|
|
3325
|
+
type: i0.Input,
|
|
3326
|
+
args: [{
|
|
3327
|
+
isSignal: true,
|
|
3328
|
+
alias: "maxLength",
|
|
3329
|
+
required: false
|
|
3330
|
+
}]
|
|
3331
|
+
}],
|
|
3332
|
+
richText: [{
|
|
3333
|
+
type: i0.Input,
|
|
3334
|
+
args: [{
|
|
3335
|
+
isSignal: true,
|
|
3336
|
+
alias: "richText",
|
|
3337
|
+
required: false
|
|
3338
|
+
}]
|
|
3339
|
+
}],
|
|
3340
|
+
attachment: [{
|
|
3341
|
+
type: i0.Input,
|
|
3342
|
+
args: [{
|
|
3343
|
+
isSignal: true,
|
|
3344
|
+
alias: "attachment",
|
|
3345
|
+
required: false
|
|
3346
|
+
}]
|
|
3347
|
+
}],
|
|
3348
|
+
uploading: [{
|
|
3349
|
+
type: i0.Input,
|
|
3350
|
+
args: [{
|
|
3351
|
+
isSignal: true,
|
|
3352
|
+
alias: "uploading",
|
|
3353
|
+
required: false
|
|
3354
|
+
}]
|
|
3355
|
+
}],
|
|
3356
|
+
attachEnabled: [{
|
|
3357
|
+
type: i0.Input,
|
|
3358
|
+
args: [{
|
|
3359
|
+
isSignal: true,
|
|
3360
|
+
alias: "attachEnabled",
|
|
3361
|
+
required: false
|
|
3362
|
+
}]
|
|
3363
|
+
}],
|
|
3364
|
+
acceptedFiles: [{
|
|
3365
|
+
type: i0.Input,
|
|
3366
|
+
args: [{
|
|
3367
|
+
isSignal: true,
|
|
3368
|
+
alias: "acceptedFiles",
|
|
3369
|
+
required: false
|
|
3370
|
+
}]
|
|
3371
|
+
}],
|
|
3372
|
+
maxFileSize: [{
|
|
3373
|
+
type: i0.Input,
|
|
3374
|
+
args: [{
|
|
3375
|
+
isSignal: true,
|
|
3376
|
+
alias: "maxFileSize",
|
|
3377
|
+
required: false
|
|
3378
|
+
}]
|
|
3379
|
+
}],
|
|
3380
|
+
typeMessageInput: [{
|
|
3381
|
+
type: i0.Input,
|
|
3382
|
+
args: [{
|
|
3383
|
+
isSignal: true,
|
|
3384
|
+
alias: "typeMessage",
|
|
3385
|
+
required: false
|
|
3386
|
+
}]
|
|
3387
|
+
}],
|
|
3388
|
+
sizeMessageInput: [{
|
|
3389
|
+
type: i0.Input,
|
|
3390
|
+
args: [{
|
|
3391
|
+
isSignal: true,
|
|
3392
|
+
alias: "sizeMessage",
|
|
3393
|
+
required: false
|
|
3394
|
+
}]
|
|
3395
|
+
}],
|
|
3396
|
+
composeLabelInput: [{
|
|
3397
|
+
type: i0.Input,
|
|
3398
|
+
args: [{
|
|
3399
|
+
isSignal: true,
|
|
3400
|
+
alias: "composeLabel",
|
|
3401
|
+
required: false
|
|
3402
|
+
}]
|
|
3403
|
+
}],
|
|
3404
|
+
composePlaceholderInput: [{
|
|
3405
|
+
type: i0.Input,
|
|
3406
|
+
args: [{
|
|
3407
|
+
isSignal: true,
|
|
3408
|
+
alias: "composePlaceholder",
|
|
3409
|
+
required: false
|
|
3410
|
+
}]
|
|
3411
|
+
}],
|
|
3412
|
+
sendLabelInput: [{
|
|
3413
|
+
type: i0.Input,
|
|
3414
|
+
args: [{
|
|
3415
|
+
isSignal: true,
|
|
3416
|
+
alias: "sendLabel",
|
|
3417
|
+
required: false
|
|
3418
|
+
}]
|
|
3419
|
+
}],
|
|
3420
|
+
attachLabelInput: [{
|
|
3421
|
+
type: i0.Input,
|
|
3422
|
+
args: [{
|
|
3423
|
+
isSignal: true,
|
|
3424
|
+
alias: "attachLabel",
|
|
3425
|
+
required: false
|
|
3426
|
+
}]
|
|
3427
|
+
}],
|
|
3428
|
+
removeAttachmentLabelInput: [{
|
|
3429
|
+
type: i0.Input,
|
|
3430
|
+
args: [{
|
|
3431
|
+
isSignal: true,
|
|
3432
|
+
alias: "removeAttachmentLabel",
|
|
3433
|
+
required: false
|
|
3434
|
+
}]
|
|
3435
|
+
}],
|
|
3436
|
+
attachmentPreviewLabelInput: [{
|
|
3437
|
+
type: i0.Input,
|
|
3438
|
+
args: [{
|
|
3439
|
+
isSignal: true,
|
|
3440
|
+
alias: "attachmentPreviewLabel",
|
|
3441
|
+
required: false
|
|
3442
|
+
}]
|
|
3443
|
+
}],
|
|
3444
|
+
now: [{
|
|
3445
|
+
type: i0.Input,
|
|
3446
|
+
args: [{
|
|
3447
|
+
isSignal: true,
|
|
3448
|
+
alias: "now",
|
|
3449
|
+
required: false
|
|
3450
|
+
}]
|
|
3451
|
+
}],
|
|
3452
|
+
searchChange: [{
|
|
3453
|
+
type: i0.Output,
|
|
3454
|
+
args: ["searchChange"]
|
|
3455
|
+
}],
|
|
3456
|
+
filterChange: [{
|
|
3457
|
+
type: i0.Output,
|
|
3458
|
+
args: ["filterChange"]
|
|
3459
|
+
}],
|
|
3460
|
+
pageChange: [{
|
|
3461
|
+
type: i0.Output,
|
|
3462
|
+
args: ["pageChange"]
|
|
3463
|
+
}],
|
|
3464
|
+
selectConversation: [{
|
|
3465
|
+
type: i0.Output,
|
|
3466
|
+
args: ["selectConversation"]
|
|
3467
|
+
}],
|
|
3468
|
+
back: [{
|
|
3469
|
+
type: i0.Output,
|
|
3470
|
+
args: ["back"]
|
|
3471
|
+
}],
|
|
3472
|
+
newConversation: [{
|
|
3473
|
+
type: i0.Output,
|
|
3474
|
+
args: ["newConversation"]
|
|
3475
|
+
}],
|
|
3476
|
+
retry: [{
|
|
3477
|
+
type: i0.Output,
|
|
3478
|
+
args: ["retry"]
|
|
3479
|
+
}],
|
|
3480
|
+
deleteConversation: [{
|
|
3481
|
+
type: i0.Output,
|
|
3482
|
+
args: ["deleteConversation"]
|
|
3483
|
+
}],
|
|
3484
|
+
statusChange: [{
|
|
3485
|
+
type: i0.Output,
|
|
3486
|
+
args: ["statusChange"]
|
|
3487
|
+
}],
|
|
3488
|
+
templateRequest: [{
|
|
3489
|
+
type: i0.Output,
|
|
3490
|
+
args: ["templateRequest"]
|
|
3491
|
+
}],
|
|
3492
|
+
send: [{
|
|
3493
|
+
type: i0.Output,
|
|
3494
|
+
args: ["send"]
|
|
3495
|
+
}],
|
|
3496
|
+
filesSelected: [{
|
|
3497
|
+
type: i0.Output,
|
|
3498
|
+
args: ["filesSelected"]
|
|
3499
|
+
}],
|
|
3500
|
+
attachmentRemove: [{
|
|
3501
|
+
type: i0.Output,
|
|
3502
|
+
args: ["attachmentRemove"]
|
|
3503
|
+
}],
|
|
3504
|
+
linkGroups: [{
|
|
3505
|
+
type: i0.Input,
|
|
3506
|
+
args: [{
|
|
3507
|
+
isSignal: true,
|
|
3508
|
+
alias: "linkGroups",
|
|
3509
|
+
required: false
|
|
3510
|
+
}]
|
|
3511
|
+
}],
|
|
3512
|
+
linkLoading: [{
|
|
3513
|
+
type: i0.Input,
|
|
3514
|
+
args: [{
|
|
3515
|
+
isSignal: true,
|
|
3516
|
+
alias: "linkLoading",
|
|
3517
|
+
required: false
|
|
3518
|
+
}]
|
|
3519
|
+
}],
|
|
3520
|
+
link: [{
|
|
3521
|
+
type: i0.Input,
|
|
3522
|
+
args: [{
|
|
3523
|
+
isSignal: true,
|
|
3524
|
+
alias: "link",
|
|
3525
|
+
required: false
|
|
3526
|
+
}]
|
|
3527
|
+
}, {
|
|
3528
|
+
type: i0.Output,
|
|
3529
|
+
args: ["linkChange"]
|
|
3530
|
+
}],
|
|
3531
|
+
linkLabelInput: [{
|
|
3532
|
+
type: i0.Input,
|
|
3533
|
+
args: [{
|
|
3534
|
+
isSignal: true,
|
|
3535
|
+
alias: "linkLabel",
|
|
3536
|
+
required: false
|
|
3537
|
+
}]
|
|
3538
|
+
}],
|
|
3539
|
+
linkPickerTitleInput: [{
|
|
3540
|
+
type: i0.Input,
|
|
3541
|
+
args: [{
|
|
3542
|
+
isSignal: true,
|
|
3543
|
+
alias: "linkPickerTitle",
|
|
3544
|
+
required: false
|
|
3545
|
+
}]
|
|
3546
|
+
}],
|
|
3547
|
+
linkSearchPlaceholderInput: [{
|
|
3548
|
+
type: i0.Input,
|
|
3549
|
+
args: [{
|
|
3550
|
+
isSignal: true,
|
|
3551
|
+
alias: "linkSearchPlaceholder",
|
|
3552
|
+
required: false
|
|
3553
|
+
}]
|
|
3554
|
+
}],
|
|
3555
|
+
linkSearchLabelInput: [{
|
|
3556
|
+
type: i0.Input,
|
|
3557
|
+
args: [{
|
|
3558
|
+
isSignal: true,
|
|
3559
|
+
alias: "linkSearchLabel",
|
|
3560
|
+
required: false
|
|
3561
|
+
}]
|
|
3562
|
+
}],
|
|
3563
|
+
linkEmptyTextInput: [{
|
|
3564
|
+
type: i0.Input,
|
|
3565
|
+
args: [{
|
|
3566
|
+
isSignal: true,
|
|
3567
|
+
alias: "linkEmptyText",
|
|
3568
|
+
required: false
|
|
3569
|
+
}]
|
|
3570
|
+
}],
|
|
3571
|
+
linkLoadingTextInput: [{
|
|
3572
|
+
type: i0.Input,
|
|
3573
|
+
args: [{
|
|
3574
|
+
isSignal: true,
|
|
3575
|
+
alias: "linkLoadingText",
|
|
3576
|
+
required: false
|
|
3577
|
+
}]
|
|
3578
|
+
}],
|
|
3579
|
+
removeLinkLabelInput: [{
|
|
3580
|
+
type: i0.Input,
|
|
3581
|
+
args: [{
|
|
3582
|
+
isSignal: true,
|
|
3583
|
+
alias: "removeLinkLabel",
|
|
3584
|
+
required: false
|
|
3585
|
+
}]
|
|
3586
|
+
}],
|
|
3587
|
+
linkPickerOpened: [{
|
|
3588
|
+
type: i0.Output,
|
|
3589
|
+
args: ["linkPickerOpened"]
|
|
3590
|
+
}],
|
|
3591
|
+
mediaOpen: [{
|
|
3592
|
+
type: i0.Output,
|
|
3593
|
+
args: ["mediaOpen"]
|
|
3594
|
+
}],
|
|
3595
|
+
messageAction: [{
|
|
3596
|
+
type: i0.Output,
|
|
3597
|
+
args: ["messageAction"]
|
|
3598
|
+
}],
|
|
3599
|
+
loadEarlier: [{
|
|
3600
|
+
type: i0.Output,
|
|
3601
|
+
args: ["loadEarlier"]
|
|
3602
|
+
}],
|
|
3603
|
+
messagesRetry: [{
|
|
3604
|
+
type: i0.Output,
|
|
3605
|
+
args: ["messagesRetry"]
|
|
3606
|
+
}],
|
|
3607
|
+
threadHeading: [{
|
|
3608
|
+
type: i0.ViewChild,
|
|
3609
|
+
args: ["threadHeading", { isSignal: true }]
|
|
3610
|
+
}],
|
|
3611
|
+
messagesEl: [{
|
|
3612
|
+
type: i0.ViewChild,
|
|
3613
|
+
args: ["messagesEl", { isSignal: true }]
|
|
3614
|
+
}],
|
|
3615
|
+
contextPanel: [{
|
|
3616
|
+
type: i0.ViewChild,
|
|
3617
|
+
args: ["contextPanel", { isSignal: true }]
|
|
3618
|
+
}],
|
|
3619
|
+
fileInput: [{
|
|
3620
|
+
type: i0.ViewChild,
|
|
3621
|
+
args: [i0.forwardRef(() => FileInputComponent), { isSignal: true }]
|
|
3622
|
+
}]
|
|
3623
|
+
}
|
|
3624
|
+
});
|
|
3625
|
+
export { BulkMessagePanelComponent, ConversationRichBodyComponent, ConversationsComponent, conversationDateLabel, conversationHtmlToText, conversationInitial, conversationMessageStatusLabel, conversationMessageStatusMark, formatConversationPhone, formatConversationTime, formatMessageTime, groupMessagesByDay, truncateConversationText };
|
|
3626
|
+
|
|
3627
|
+
//# sourceMappingURL=forgeroute-ui-conversations.mjs.map
|