@acorex/components 22.1.0-next.31 → 22.1.0-next.32
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/emoji/README.md +3 -0
- package/emojipicker/README.md +3 -0
- package/fesm2022/acorex-components-accordion.mjs +13 -13
- package/fesm2022/acorex-components-accordion.mjs.map +1 -1
- package/fesm2022/acorex-components-action-sheet.mjs +13 -13
- package/fesm2022/acorex-components-alert.mjs +7 -7
- package/fesm2022/acorex-components-aspect-ratio.mjs +3 -3
- package/fesm2022/acorex-components-audio-wave.mjs +295 -271
- package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
- package/fesm2022/acorex-components-autocomplete.mjs +7 -7
- package/fesm2022/acorex-components-avatar.mjs +10 -10
- package/fesm2022/acorex-components-badge.mjs +7 -7
- package/fesm2022/acorex-components-bottom-navigation.mjs +10 -10
- package/fesm2022/acorex-components-breadcrumbs.mjs +10 -10
- package/fesm2022/acorex-components-bubble.mjs +71 -0
- package/fesm2022/acorex-components-bubble.mjs.map +1 -0
- package/fesm2022/acorex-components-button-group.mjs +22 -15
- package/fesm2022/acorex-components-button-group.mjs.map +1 -1
- package/fesm2022/acorex-components-button.mjs +14 -14
- package/fesm2022/acorex-components-button.mjs.map +1 -1
- package/fesm2022/acorex-components-calendar.mjs +332 -130
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-check-box.mjs +7 -7
- package/fesm2022/acorex-components-chips.mjs +7 -7
- package/fesm2022/acorex-components-circular-progress.mjs +7 -7
- package/fesm2022/acorex-components-code-editor.mjs +44 -19
- package/fesm2022/acorex-components-code-editor.mjs.map +1 -1
- package/fesm2022/acorex-components-color-box.mjs +7 -7
- package/fesm2022/acorex-components-color-palette.mjs +28 -28
- package/fesm2022/acorex-components-combo-box.mjs +244 -54
- package/fesm2022/acorex-components-combo-box.mjs.map +1 -1
- package/fesm2022/acorex-components-command.mjs +7 -7
- package/fesm2022/acorex-components-comment.mjs +28 -28
- package/fesm2022/acorex-components-conversation-acorex-components-conversation-BBWe3tfe.mjs +19099 -0
- package/fesm2022/acorex-components-conversation-acorex-components-conversation-BBWe3tfe.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-composer-action-choice-dialog.component-F5fLD_SK.mjs +50 -0
- package/fesm2022/acorex-components-conversation-composer-action-choice-dialog.component-F5fLD_SK.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-image-picker-editor-dialog.component-Bk3ixvt2.mjs +87 -0
- package/fesm2022/acorex-components-conversation-image-picker-editor-dialog.component-Bk3ixvt2.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-picker-rename-file-dialog.component-OAHRGH_G.mjs +65 -0
- package/fesm2022/acorex-components-conversation-picker-rename-file-dialog.component-OAHRGH_G.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation.mjs +1 -15470
- package/fesm2022/acorex-components-conversation.mjs.map +1 -1
- package/fesm2022/acorex-components-cron-job.mjs +47 -47
- package/fesm2022/acorex-components-cron-job.mjs.map +1 -1
- package/fesm2022/acorex-components-data-list.mjs +3 -3
- package/fesm2022/acorex-components-data-pager.mjs +35 -35
- package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +734 -165
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-box.mjs +7 -7
- package/fesm2022/acorex-components-datetime-input.mjs +7 -7
- package/fesm2022/acorex-components-datetime-picker.mjs +8 -8
- package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-decorators.mjs +60 -30
- package/fesm2022/acorex-components-decorators.mjs.map +1 -1
- package/fesm2022/acorex-components-dialog.mjs +11 -11
- package/fesm2022/acorex-components-dialog.mjs.map +1 -1
- package/fesm2022/acorex-components-drawer.mjs +10 -10
- package/fesm2022/acorex-components-dropdown-button.mjs +8 -8
- package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -1
- package/fesm2022/acorex-components-dropdown.mjs +14 -14
- package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
- package/fesm2022/acorex-components-editor.mjs +15 -14
- package/fesm2022/acorex-components-editor.mjs.map +1 -1
- package/fesm2022/acorex-components-emoji.mjs +74 -0
- package/fesm2022/acorex-components-emoji.mjs.map +1 -0
- package/fesm2022/acorex-components-emojipicker.mjs +425 -0
- package/fesm2022/acorex-components-emojipicker.mjs.map +1 -0
- package/fesm2022/acorex-components-fab.mjs +6 -6
- package/fesm2022/acorex-components-fab.mjs.map +1 -1
- package/fesm2022/acorex-components-file-viewer.mjs +372 -122
- package/fesm2022/acorex-components-file-viewer.mjs.map +1 -1
- package/fesm2022/acorex-components-form.mjs +17 -17
- package/fesm2022/acorex-components-form.mjs.map +1 -1
- package/fesm2022/acorex-components-grid-layout-builder.mjs +10 -10
- package/fesm2022/acorex-components-highlight.mjs +80 -0
- package/fesm2022/acorex-components-highlight.mjs.map +1 -0
- package/fesm2022/acorex-components-image-editor.mjs +780 -451
- package/fesm2022/acorex-components-image-editor.mjs.map +1 -1
- package/fesm2022/acorex-components-image.mjs +7 -7
- package/fesm2022/acorex-components-inline-reaction.mjs +111 -0
- package/fesm2022/acorex-components-inline-reaction.mjs.map +1 -0
- package/fesm2022/acorex-components-json-viewer.mjs +7 -7
- package/fesm2022/acorex-components-kanban.mjs +3 -3
- package/fesm2022/acorex-components-kanban.mjs.map +1 -1
- package/fesm2022/acorex-components-kbd.mjs +6 -6
- package/fesm2022/acorex-components-label.mjs +7 -7
- package/fesm2022/acorex-components-list.mjs +28 -9
- package/fesm2022/acorex-components-list.mjs.map +1 -1
- package/fesm2022/acorex-components-loading-dialog.mjs +10 -10
- package/fesm2022/acorex-components-loading-dialog.mjs.map +1 -1
- package/fesm2022/acorex-components-loading.mjs +16 -16
- package/fesm2022/acorex-components-lookup.mjs +764 -156
- package/fesm2022/acorex-components-lookup.mjs.map +1 -1
- package/fesm2022/acorex-components-map.mjs +20 -13
- package/fesm2022/acorex-components-map.mjs.map +1 -1
- package/fesm2022/acorex-components-media-viewer.mjs +215 -218
- package/fesm2022/acorex-components-media-viewer.mjs.map +1 -1
- package/fesm2022/acorex-components-menu.mjs +146 -45
- package/fesm2022/acorex-components-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-message-status.mjs +71 -0
- package/fesm2022/acorex-components-message-status.mjs.map +1 -0
- package/fesm2022/acorex-components-message-time.mjs +36 -0
- package/fesm2022/acorex-components-message-time.mjs.map +1 -0
- package/fesm2022/acorex-components-message.mjs +120 -0
- package/fesm2022/acorex-components-message.mjs.map +1 -0
- package/fesm2022/acorex-components-navbar.mjs +7 -7
- package/fesm2022/acorex-components-notification.mjs +11 -11
- package/fesm2022/acorex-components-notification.mjs.map +1 -1
- package/fesm2022/acorex-components-number-box.mjs +7 -7
- package/fesm2022/acorex-components-otp.mjs +7 -7
- package/fesm2022/acorex-components-page.mjs +10 -10
- package/fesm2022/acorex-components-paint.mjs +25 -25
- package/fesm2022/acorex-components-paint.mjs.map +1 -1
- package/fesm2022/acorex-components-password-box.mjs +10 -10
- package/fesm2022/acorex-components-password-box.mjs.map +1 -1
- package/fesm2022/acorex-components-pdf-reader.mjs +7 -7
- package/fesm2022/acorex-components-phone-box.mjs +7 -7
- package/fesm2022/acorex-components-picker.mjs +13 -13
- package/fesm2022/acorex-components-popover.mjs +33 -15
- package/fesm2022/acorex-components-popover.mjs.map +1 -1
- package/fesm2022/acorex-components-popup.mjs +67 -56
- package/fesm2022/acorex-components-popup.mjs.map +1 -1
- package/fesm2022/acorex-components-progress-bar.mjs +7 -7
- package/fesm2022/acorex-components-qrcode.mjs +7 -7
- package/fesm2022/acorex-components-radio.mjs +7 -7
- package/fesm2022/acorex-components-rail-navigation.mjs +14 -14
- package/fesm2022/acorex-components-rail-navigation.mjs.map +1 -1
- package/fesm2022/acorex-components-range-slider.mjs +9 -9
- package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
- package/fesm2022/acorex-components-rate-picker.mjs +7 -7
- package/fesm2022/acorex-components-reaction.mjs +144 -0
- package/fesm2022/acorex-components-reaction.mjs.map +1 -0
- package/fesm2022/acorex-components-rest-api-generator.mjs +22 -22
- package/fesm2022/acorex-components-rest-api-generator.mjs.map +1 -1
- package/fesm2022/acorex-components-result.mjs +7 -7
- package/fesm2022/acorex-components-routing-progress.mjs +7 -7
- package/fesm2022/acorex-components-rrule.mjs +9 -9
- package/fesm2022/acorex-components-rrule.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler-picker.mjs +56 -56
- package/fesm2022/acorex-components-scheduler-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler.mjs +34 -34
- package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
- package/fesm2022/acorex-components-search-box.mjs +7 -7
- package/fesm2022/acorex-components-select-box.mjs +7 -7
- package/fesm2022/acorex-components-selection-list.mjs +7 -8
- package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
- package/fesm2022/acorex-components-side-menu.mjs +55 -42
- package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-sidebar.mjs +28 -28
- package/fesm2022/acorex-components-skeleton.mjs +7 -7
- package/fesm2022/acorex-components-slider.mjs +7 -7
- package/fesm2022/acorex-components-sliding-item.mjs +13 -13
- package/fesm2022/acorex-components-step-wizard.mjs +16 -18
- package/fesm2022/acorex-components-step-wizard.mjs.map +1 -1
- package/fesm2022/acorex-components-switch.mjs +10 -10
- package/fesm2022/acorex-components-tabs.mjs +529 -78
- package/fesm2022/acorex-components-tabs.mjs.map +1 -1
- package/fesm2022/acorex-components-tag-box.mjs +7 -7
- package/fesm2022/acorex-components-tag.mjs +7 -7
- package/fesm2022/acorex-components-text-area.mjs +7 -7
- package/fesm2022/acorex-components-text-box.mjs +7 -7
- package/fesm2022/acorex-components-time-duration.mjs +7 -7
- package/fesm2022/acorex-components-time-line.mjs +10 -10
- package/fesm2022/acorex-components-toast.mjs +10 -10
- package/fesm2022/acorex-components-toolbar.mjs +7 -7
- package/fesm2022/acorex-components-tooltip.mjs +10 -10
- package/fesm2022/acorex-components-tree-view.mjs +58 -15
- package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
- package/fesm2022/acorex-components-uploader.mjs +13 -13
- package/fesm2022/acorex-components-video-player.mjs +7 -7
- package/fesm2022/acorex-components-wysiwyg.mjs +109 -39
- package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
- package/highlight/README.md +13 -0
- package/inline-reaction/README.md +3 -0
- package/lookup/README.md +1 -1
- package/message/README.md +3 -0
- package/message-status/README.md +3 -0
- package/message-time/README.md +3 -0
- package/package.json +42 -12
- package/reaction/README.md +3 -0
- package/types/acorex-components-action-sheet.d.ts +1 -1
- package/types/acorex-components-audio-wave.d.ts +132 -73
- package/types/acorex-components-bubble.d.ts +31 -0
- package/types/acorex-components-button-group.d.ts +4 -0
- package/types/acorex-components-button.d.ts +1 -1
- package/types/acorex-components-calendar.d.ts +43 -12
- package/types/acorex-components-check-box.d.ts +1 -1
- package/types/acorex-components-code-editor.d.ts +4 -1
- package/types/acorex-components-color-box.d.ts +1 -1
- package/types/acorex-components-color-palette.d.ts +2 -2
- package/types/acorex-components-combo-box.d.ts +34 -4
- package/types/acorex-components-command.d.ts +1 -1
- package/types/acorex-components-conversation.d.ts +1771 -1342
- package/types/acorex-components-cron-job.d.ts +6 -6
- package/types/acorex-components-data-pager.d.ts +2 -2
- package/types/acorex-components-data-table.d.ts +194 -21
- package/types/acorex-components-datetime-box.d.ts +1 -1
- package/types/acorex-components-datetime-picker.d.ts +1 -1
- package/types/acorex-components-decorators.d.ts +13 -1
- package/types/acorex-components-dialog.d.ts +1 -1
- package/types/acorex-components-dropdown.d.ts +1 -1
- package/types/acorex-components-editor.d.ts +1 -1
- package/types/acorex-components-emoji.d.ts +42 -0
- package/types/acorex-components-emojipicker.d.ts +146 -0
- package/types/acorex-components-file-viewer.d.ts +50 -6
- package/types/acorex-components-highlight.d.ts +31 -0
- package/types/acorex-components-image-editor.d.ts +72 -50
- package/types/acorex-components-inline-reaction.d.ts +52 -0
- package/types/acorex-components-list.d.ts +12 -0
- package/types/acorex-components-loading-dialog.d.ts +1 -1
- package/types/acorex-components-loading.d.ts +1 -1
- package/types/acorex-components-lookup.d.ts +213 -82
- package/types/acorex-components-map.d.ts +7 -2
- package/types/acorex-components-media-viewer.d.ts +4 -3
- package/types/acorex-components-menu.d.ts +17 -5
- package/types/acorex-components-message-status.d.ts +23 -0
- package/types/acorex-components-message-time.d.ts +19 -0
- package/types/acorex-components-message.d.ts +59 -0
- package/types/acorex-components-notification.d.ts +1 -1
- package/types/acorex-components-number-box.d.ts +1 -1
- package/types/acorex-components-otp.d.ts +1 -1
- package/types/acorex-components-page.d.ts +2 -2
- package/types/acorex-components-paint.d.ts +2 -2
- package/types/acorex-components-password-box.d.ts +1 -1
- package/types/acorex-components-phone-box.d.ts +1 -1
- package/types/acorex-components-popover.d.ts +10 -4
- package/types/acorex-components-popup.d.ts +20 -10
- package/types/acorex-components-rail-navigation.d.ts +1 -1
- package/types/acorex-components-range-slider.d.ts +1 -1
- package/types/acorex-components-reaction.d.ts +85 -0
- package/types/acorex-components-rest-api-generator.d.ts +1 -1
- package/types/acorex-components-rrule.d.ts +1 -1
- package/types/acorex-components-scheduler-picker.d.ts +1 -1
- package/types/acorex-components-scheduler.d.ts +1 -1
- package/types/acorex-components-search-box.d.ts +1 -1
- package/types/acorex-components-selection-list.d.ts +1 -1
- package/types/acorex-components-side-menu.d.ts +6 -8
- package/types/acorex-components-slider.d.ts +1 -1
- package/types/acorex-components-step-wizard.d.ts +4 -4
- package/types/acorex-components-switch.d.ts +1 -1
- package/types/acorex-components-tabs.d.ts +150 -19
- package/types/acorex-components-tag-box.d.ts +2 -2
- package/types/acorex-components-text-area.d.ts +1 -1
- package/types/acorex-components-text-box.d.ts +1 -1
- package/types/acorex-components-time-duration.d.ts +1 -1
- package/types/acorex-components-toast.d.ts +1 -1
- package/types/acorex-components-tree-view.d.ts +32 -3
- package/types/acorex-components-wysiwyg.d.ts +15 -2
- package/fesm2022/acorex-components-conversation-composer-action-choice-dialog.component-DCcRJYfF.mjs +0 -50
- package/fesm2022/acorex-components-conversation-composer-action-choice-dialog.component-DCcRJYfF.mjs.map +0 -1
- package/fesm2022/acorex-components-conversation-open-composer-picker-for-files-DnSW908R.mjs +0 -210
- package/fesm2022/acorex-components-conversation-open-composer-picker-for-files-DnSW908R.mjs.map +0 -1
- package/fesm2022/acorex-components-flow-chart.mjs +0 -735
- package/fesm2022/acorex-components-flow-chart.mjs.map +0 -1
- package/fesm2022/acorex-components-query-builder.mjs +0 -267
- package/fesm2022/acorex-components-query-builder.mjs.map +0 -1
- package/flow-chart/README.md +0 -3
- package/query-builder/README.md +0 -3
- package/types/acorex-components-flow-chart.d.ts +0 -187
- package/types/acorex-components-query-builder.d.ts +0 -52
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as _acorex_components_conversation from '@acorex/components/conversation';
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
|
-
import { OnDestroy, ViewContainerRef, Type, InputSignal, WritableSignal, Signal, Provider,
|
|
3
|
+
import { OnDestroy, ViewContainerRef, Type, InputSignal, WritableSignal, Signal, Provider, EventEmitter, TemplateRef, InjectionToken, ElementRef, ModuleWithProviders } from '@angular/core';
|
|
4
4
|
import { AXComponentCloseEvent, AXHtmlEvent, AXClickEvent, AXDataSource, AXPlacement } from '@acorex/cdk/common';
|
|
5
|
+
import { AXTranslationService } from '@acorex/core/translation';
|
|
5
6
|
import * as _acorex_components_action_sheet from '@acorex/components/action-sheet';
|
|
6
7
|
import { AXActionSheetRef } from '@acorex/components/action-sheet';
|
|
7
8
|
import * as _acorex_components_popup from '@acorex/components/popup';
|
|
@@ -15,11 +16,12 @@ import { AXContextMenuOpeningEvent, AXContextMenuItemsClickEvent } from '@acorex
|
|
|
15
16
|
import { AXTabLocation } from '@acorex/components/tabs';
|
|
16
17
|
import { AXBasePageComponent } from '@acorex/components/page';
|
|
17
18
|
import * as _acorex_core_file from '@acorex/core/file';
|
|
18
|
-
import {
|
|
19
|
-
import { AXTranslationService } from '@acorex/core/translation';
|
|
19
|
+
import { AXFileTypeRegistryService, AXFileTypeExtensionHint, AXFileTypeOpenContext, AXFileTypeInfoProvider, AXFileType, AXFileService } from '@acorex/core/file';
|
|
20
20
|
import { AXToastService } from '@acorex/components/toast';
|
|
21
21
|
import { AXValidationRuleResult } from '@acorex/core/validation';
|
|
22
22
|
import { AXMapMarker } from '@acorex/components/map';
|
|
23
|
+
import { AXWaveConfig, AXAudioWaveChangeEvent } from '@acorex/components/audio-wave';
|
|
24
|
+
import { AXRangeSliderValue } from '@acorex/components/range-slider';
|
|
23
25
|
import { SafeHtml } from '@angular/platform-browser';
|
|
24
26
|
import * as i1 from '@angular/common';
|
|
25
27
|
import * as i2 from '@angular/forms';
|
|
@@ -183,6 +185,7 @@ interface AXConversationFileMediaItem extends AXConversationMediaItemFields {
|
|
|
183
185
|
mimeType: string;
|
|
184
186
|
thumbnailUrl?: string;
|
|
185
187
|
extension?: string;
|
|
188
|
+
duration?: number;
|
|
186
189
|
}
|
|
187
190
|
interface AXConversationFilePayload {
|
|
188
191
|
type: 'file';
|
|
@@ -447,6 +450,11 @@ interface AXConversationParticipant {
|
|
|
447
450
|
icon?: string;
|
|
448
451
|
/** Role in the conversation (for groups/channels) */
|
|
449
452
|
role?: AXConversationParticipantRole;
|
|
453
|
+
/**
|
|
454
|
+
* When this user joined the conversation.
|
|
455
|
+
* Used for admin succession when the creator leaves a group or channel.
|
|
456
|
+
*/
|
|
457
|
+
joinedAt?: Date;
|
|
450
458
|
/** Custom metadata */
|
|
451
459
|
metadata?: Record<string, unknown>;
|
|
452
460
|
}
|
|
@@ -526,6 +534,12 @@ interface AXConversation {
|
|
|
526
534
|
pinned?: boolean;
|
|
527
535
|
/** Whether conversation is archived */
|
|
528
536
|
archived?: boolean;
|
|
537
|
+
/**
|
|
538
|
+
* Viewer-scoped history cursor (Telegram-style).
|
|
539
|
+
* Messages at or before this timestamp are omitted for the current user only.
|
|
540
|
+
* Filled by the conversation/message APIs; never leak another user's cutoff.
|
|
541
|
+
*/
|
|
542
|
+
historyClearedAt?: Date;
|
|
529
543
|
/** Custom metadata */
|
|
530
544
|
metadata?: AXConversationMetadata;
|
|
531
545
|
}
|
|
@@ -687,8 +701,6 @@ declare class AXConversationComposerService {
|
|
|
687
701
|
private readonly generationState;
|
|
688
702
|
private readonly translation;
|
|
689
703
|
private readonly popupService;
|
|
690
|
-
private readonly actionSheetService;
|
|
691
|
-
private readonly platform;
|
|
692
704
|
private readonly config;
|
|
693
705
|
private readonly _activeActionOverlay;
|
|
694
706
|
private get registry();
|
|
@@ -781,7 +793,7 @@ declare class AXConversationComposerService {
|
|
|
781
793
|
*/
|
|
782
794
|
clearDraft(conversationId: string): void;
|
|
783
795
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationComposerService, never>;
|
|
784
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
796
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
785
797
|
}
|
|
786
798
|
|
|
787
799
|
/**
|
|
@@ -958,7 +970,7 @@ declare class AXConversationComposerActionRegistry {
|
|
|
958
970
|
*/
|
|
959
971
|
clear(): void;
|
|
960
972
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationComposerActionRegistry, never>;
|
|
961
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
973
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
962
974
|
}
|
|
963
975
|
|
|
964
976
|
/**
|
|
@@ -1019,7 +1031,7 @@ declare class AXConversationComposerTabRegistry {
|
|
|
1019
1031
|
*/
|
|
1020
1032
|
clear(): void;
|
|
1021
1033
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationComposerTabRegistry, never>;
|
|
1022
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
1034
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
1023
1035
|
}
|
|
1024
1036
|
|
|
1025
1037
|
/**
|
|
@@ -1093,7 +1105,7 @@ declare class AXConversationItemActionRegistry extends AXConversationBaseRegistr
|
|
|
1093
1105
|
getActionTooltip(action: AXConversationItemAction, conversation: AXConversation): string | undefined;
|
|
1094
1106
|
executeAction(actionId: string, context: AXConversationItemActionContext): Promise<void>;
|
|
1095
1107
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationItemActionRegistry, never>;
|
|
1096
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
1108
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
1097
1109
|
}
|
|
1098
1110
|
|
|
1099
1111
|
/**
|
|
@@ -1160,9 +1172,27 @@ declare class AXConversationTabRegistry {
|
|
|
1160
1172
|
*/
|
|
1161
1173
|
clear(): void;
|
|
1162
1174
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationTabRegistry, never>;
|
|
1163
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
1175
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
1164
1176
|
}
|
|
1165
1177
|
|
|
1178
|
+
/** Visual chrome around a message body in the list. */
|
|
1179
|
+
type AXConversationMessageChrome = 'bubble' | 'plain';
|
|
1180
|
+
/** Max consecutive emoji graphemes that render as a jumbo (sticker-sized) text message. */
|
|
1181
|
+
declare const AX_CONVERSATION_JUMBO_EMOJI_MAX = 3;
|
|
1182
|
+
/**
|
|
1183
|
+
* Resolve registry chrome config to a concrete value.
|
|
1184
|
+
* Default is {@link AXConversationMessageChrome bubble}.
|
|
1185
|
+
*/
|
|
1186
|
+
declare function resolveMessageChrome(chrome: AXConversationMessageChrome | ((message: AXConversationMessage) => AXConversationMessageChrome) | undefined, message: AXConversationMessage): AXConversationMessageChrome;
|
|
1187
|
+
/** Visible graphemes in trimmed text (whitespace between emojis is dropped). */
|
|
1188
|
+
declare function listTextGraphemes(text: string | null | undefined): string[];
|
|
1189
|
+
/** Count emoji graphemes in trimmed text; `0` when mixed with other characters. */
|
|
1190
|
+
declare function countLoneEmojis(text: string | null | undefined): number;
|
|
1191
|
+
declare function isJumboEmojiText(text: string | null | undefined): boolean;
|
|
1192
|
+
declare function isJumboEmojiTextMessage(message: AXConversationMessage): boolean;
|
|
1193
|
+
/** Types that never sit inside a bubble cluster with neighboring messages. */
|
|
1194
|
+
declare function isPlainChromeMessage(message: AXConversationMessage): boolean;
|
|
1195
|
+
|
|
1166
1196
|
/**
|
|
1167
1197
|
* Message Renderer Registry
|
|
1168
1198
|
* Register custom message renderers for different message types
|
|
@@ -1237,6 +1267,12 @@ interface AXConversationMessageRenderer {
|
|
|
1237
1267
|
canHandle: (message: AXConversationMessage) => boolean;
|
|
1238
1268
|
/** Renderer capabilities */
|
|
1239
1269
|
capabilities: AXConversationMessageRendererCapabilities;
|
|
1270
|
+
/**
|
|
1271
|
+
* List chrome for this message type.
|
|
1272
|
+
* `plain` removes bubble fill, padding, shadow, and tail. Default is `bubble`.
|
|
1273
|
+
* Pass a function when chrome depends on payload (e.g. jumbo emoji text).
|
|
1274
|
+
*/
|
|
1275
|
+
chrome?: AXConversationMessageChrome | ((message: AXConversationMessage) => AXConversationMessageChrome);
|
|
1240
1276
|
/** Display name */
|
|
1241
1277
|
displayName?: string;
|
|
1242
1278
|
/** Icon name/class */
|
|
@@ -1263,6 +1299,9 @@ declare class AXConversationMessageRendererRegistry {
|
|
|
1263
1299
|
readonly renderers: Signal<AXConversationMessageRenderer[]>;
|
|
1264
1300
|
/** Renderers sorted by priority (highest first) */
|
|
1265
1301
|
readonly sortedRenderers: Signal<AXConversationMessageRenderer[]>;
|
|
1302
|
+
/** O(1) lookup by message type. Rebuilt when the registry changes. */
|
|
1303
|
+
private readonly rendererByType;
|
|
1304
|
+
private readonly missingRendererTypesWarned;
|
|
1266
1305
|
/**
|
|
1267
1306
|
* Register a message renderer
|
|
1268
1307
|
*/
|
|
@@ -1272,13 +1311,15 @@ declare class AXConversationMessageRendererRegistry {
|
|
|
1272
1311
|
*/
|
|
1273
1312
|
unregister(type: string): void;
|
|
1274
1313
|
/**
|
|
1275
|
-
* Get renderer for a specific message
|
|
1314
|
+
* Get renderer for a specific message (exact type match).
|
|
1315
|
+
* Missing types are warned once; callers should fall back to the `fallback` renderer.
|
|
1276
1316
|
*/
|
|
1277
1317
|
getRenderer(message: AXConversationMessage): AXConversationMessageRenderer | undefined;
|
|
1278
1318
|
/**
|
|
1279
1319
|
* Get renderer by type
|
|
1280
1320
|
*/
|
|
1281
1321
|
getRendererByType(type: string): AXConversationMessageRenderer | undefined;
|
|
1322
|
+
private warnMissingRenderer;
|
|
1282
1323
|
/**
|
|
1283
1324
|
* Check if a message type is supported
|
|
1284
1325
|
*/
|
|
@@ -1292,7 +1333,7 @@ declare class AXConversationMessageRendererRegistry {
|
|
|
1292
1333
|
*/
|
|
1293
1334
|
clear(): void;
|
|
1294
1335
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationMessageRendererRegistry, never>;
|
|
1295
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
1336
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
1296
1337
|
}
|
|
1297
1338
|
|
|
1298
1339
|
/**
|
|
@@ -1411,7 +1452,7 @@ declare class AXConversationInfoBarService {
|
|
|
1411
1452
|
clearSearch(): void;
|
|
1412
1453
|
private _extractOnClose;
|
|
1413
1454
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationInfoBarService, never>;
|
|
1414
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
1455
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
1415
1456
|
}
|
|
1416
1457
|
|
|
1417
1458
|
/**
|
|
@@ -1527,7 +1568,7 @@ declare class AXConversationInfoBarActionRegistry extends AXConversationBaseRegi
|
|
|
1527
1568
|
*/
|
|
1528
1569
|
getActionTooltip(action: AXConversationInfoBarAction, conversation: AXConversation): string | undefined;
|
|
1529
1570
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationInfoBarActionRegistry, never>;
|
|
1530
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
1571
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
1531
1572
|
}
|
|
1532
1573
|
|
|
1533
1574
|
/**
|
|
@@ -1618,7 +1659,7 @@ declare class AXConversationMessageActionRegistry {
|
|
|
1618
1659
|
*/
|
|
1619
1660
|
clear(): void;
|
|
1620
1661
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationMessageActionRegistry, never>;
|
|
1621
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
1662
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
1622
1663
|
}
|
|
1623
1664
|
|
|
1624
1665
|
declare class AXConversationComposerComponent implements OnDestroy {
|
|
@@ -1626,7 +1667,13 @@ declare class AXConversationComposerComponent implements OnDestroy {
|
|
|
1626
1667
|
private readonly composerService;
|
|
1627
1668
|
private readonly messageListService;
|
|
1628
1669
|
private readonly config;
|
|
1629
|
-
|
|
1670
|
+
protected readonly translation: AXTranslationService;
|
|
1671
|
+
private readonly uploader;
|
|
1672
|
+
private readonly platform;
|
|
1673
|
+
private readonly fileService;
|
|
1674
|
+
private readonly toast;
|
|
1675
|
+
private readonly actionSheetService;
|
|
1676
|
+
private readonly hostRef;
|
|
1630
1677
|
/** Access registry through conversation service */
|
|
1631
1678
|
protected get composerActionRegistry(): _acorex_components_conversation.AXConversationComposerActionRegistry;
|
|
1632
1679
|
/** Composer text area reference */
|
|
@@ -1714,8 +1761,13 @@ declare class AXConversationComposerComponent implements OnDestroy {
|
|
|
1714
1761
|
onAttachMenuPanelMouseLeave(): void;
|
|
1715
1762
|
private scheduleAttachMenuClose;
|
|
1716
1763
|
private clearAttachMenuCloseTimer;
|
|
1717
|
-
/**
|
|
1764
|
+
/** Desktop: open an all-files chooser. Mobile: toggle the attachment dropdown. */
|
|
1718
1765
|
onAttachMenuClick(event: AXClickEvent): void;
|
|
1766
|
+
/** Open the OS file picker for any file, then route to the matching composer picker. */
|
|
1767
|
+
private openSmartAttachChooser;
|
|
1768
|
+
/** OS file paste (Ctrl+V) while the composer is focused. */
|
|
1769
|
+
onComposerPaste(event: ClipboardEvent): void;
|
|
1770
|
+
private composerPickerDeps;
|
|
1719
1771
|
/** Handle attachment menu action selection */
|
|
1720
1772
|
onAttachMenuAction(actionId: string): Promise<void>;
|
|
1721
1773
|
/** Handle primary button click (send / cancel / stopping / voice / locked). */
|
|
@@ -1788,6 +1840,8 @@ declare class AXConversationContainerComponent {
|
|
|
1788
1840
|
private readonly actionSheetService;
|
|
1789
1841
|
private readonly hostRef;
|
|
1790
1842
|
private readonly platformId;
|
|
1843
|
+
private readonly document;
|
|
1844
|
+
private readonly destroyRef;
|
|
1791
1845
|
protected readonly config: Required<_acorex_components_conversation.AXConversationConfig>;
|
|
1792
1846
|
constructor();
|
|
1793
1847
|
private get registry();
|
|
@@ -1802,11 +1856,7 @@ declare class AXConversationContainerComponent {
|
|
|
1802
1856
|
/** Container CSS classes */
|
|
1803
1857
|
readonly containerClasses: _angular_core.Signal<string>;
|
|
1804
1858
|
closeActiveConversation(): void;
|
|
1805
|
-
|
|
1806
|
-
* When the user pastes files copied from the OS (e.g. Ctrl+V after copying in Explorer),
|
|
1807
|
-
* open the same composer picker popup used for message-list drag-and-drop.
|
|
1808
|
-
*/
|
|
1809
|
-
onDocumentPaste(event: ClipboardEvent): Promise<void>;
|
|
1859
|
+
private openPastedFiles;
|
|
1810
1860
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationContainerComponent, never>;
|
|
1811
1861
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationContainerComponent, "ax-conversation-container", never, { "customClass": { "alias": "customClass"; "required": false; "isSignal": true; }; }, {}, never, ["ax-conversation-sidebar, [ax-conversation-sidebar]", "ax-conversation-info-bar, [ax-conversation-info-bar]", "ax-conversation-message-list, [ax-conversation-message-list]", "ax-conversation-composer, [ax-conversation-composer]", "ax-conversation-empty"], true, never>;
|
|
1812
1862
|
}
|
|
@@ -1817,6 +1867,8 @@ declare class AXConversationContainerDirective {
|
|
|
1817
1867
|
private readonly fileService;
|
|
1818
1868
|
private readonly hostRef;
|
|
1819
1869
|
private readonly platformId;
|
|
1870
|
+
private readonly document;
|
|
1871
|
+
private readonly destroyRef;
|
|
1820
1872
|
private readonly translation;
|
|
1821
1873
|
private readonly toast;
|
|
1822
1874
|
private readonly platform;
|
|
@@ -1831,7 +1883,7 @@ declare class AXConversationContainerDirective {
|
|
|
1831
1883
|
/** Error state */
|
|
1832
1884
|
readonly error: _angular_core.Signal<Error>;
|
|
1833
1885
|
closeActiveConversation(): void;
|
|
1834
|
-
|
|
1886
|
+
private openPastedFiles;
|
|
1835
1887
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationContainerDirective, never>;
|
|
1836
1888
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AXConversationContainerDirective, "[axConversationContainer]", never, {}, {}, never, never, true, never>;
|
|
1837
1889
|
}
|
|
@@ -1858,6 +1910,7 @@ declare class AXConversationInfoBarComponent {
|
|
|
1858
1910
|
readonly activeConversation: _angular_core.Signal<AXConversation>;
|
|
1859
1911
|
readonly activeComponent: _angular_core.Signal<_acorex_components_conversation.AXConversationInfoBarActiveComponent>;
|
|
1860
1912
|
readonly activeBanner: _angular_core.Signal<_acorex_components_conversation.AXConversationInfoBarActiveBanner>;
|
|
1913
|
+
readonly bannerInputs: _angular_core.Signal<{}>;
|
|
1861
1914
|
readonly membersPopoverTarget: _angular_core.WritableSignal<HTMLElement>;
|
|
1862
1915
|
readonly actionLoading: _angular_core.WritableSignal<boolean>;
|
|
1863
1916
|
readonly infoClick: _angular_core.OutputEmitterRef<void>;
|
|
@@ -1868,6 +1921,7 @@ declare class AXConversationInfoBarComponent {
|
|
|
1868
1921
|
readonly menuItems: _angular_core.Signal<AXConversationDropdownMenuItem[]>;
|
|
1869
1922
|
getStatus(conversation: AXConversation): _acorex_components_conversation.AXConversationPresenceStatus;
|
|
1870
1923
|
getSubtitle(conversation: AXConversation): string;
|
|
1924
|
+
isTyping(conversation: AXConversation): boolean;
|
|
1871
1925
|
onInfoLeftClick(): void;
|
|
1872
1926
|
onInlineActionClick(actionId: string): Promise<void>;
|
|
1873
1927
|
private activateAction;
|
|
@@ -1875,7 +1929,6 @@ declare class AXConversationInfoBarComponent {
|
|
|
1875
1929
|
getInlineComponentInputs(): Record<string, unknown>;
|
|
1876
1930
|
isActiveComponentFullWidth(): boolean;
|
|
1877
1931
|
onCloseComponent(): void;
|
|
1878
|
-
getBannerInputs(): Record<string, unknown>;
|
|
1879
1932
|
onCloseBanner(): void;
|
|
1880
1933
|
onMenuItemClick(item: AXConversationDropdownMenuItem): Promise<void>;
|
|
1881
1934
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationInfoBarComponent, never>;
|
|
@@ -1976,7 +2029,7 @@ declare class AXConversationApiLoggerService {
|
|
|
1976
2029
|
private readonly config;
|
|
1977
2030
|
log(entry: AXConversationApiLogEntry): void;
|
|
1978
2031
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationApiLoggerService, never>;
|
|
1979
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
2032
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
1980
2033
|
}
|
|
1981
2034
|
|
|
1982
2035
|
/**
|
|
@@ -2026,6 +2079,17 @@ interface AXConversationUpdateData {
|
|
|
2026
2079
|
/** Custom metadata */
|
|
2027
2080
|
metadata?: Record<string, unknown>;
|
|
2028
2081
|
}
|
|
2082
|
+
/**
|
|
2083
|
+
* Options for {@link AXConversationApi.deleteConversation}.
|
|
2084
|
+
*/
|
|
2085
|
+
interface AXConversationDeleteOptions {
|
|
2086
|
+
/**
|
|
2087
|
+
* Private: destroy the chat for every participant (Telegram "delete for both").
|
|
2088
|
+
* Group/channel: only valid for the creator — destroys the room for everyone.
|
|
2089
|
+
* Defaults to `false` (hide / clear history for the current user only).
|
|
2090
|
+
*/
|
|
2091
|
+
forEveryone?: boolean;
|
|
2092
|
+
}
|
|
2029
2093
|
/**
|
|
2030
2094
|
* Conversation filter options
|
|
2031
2095
|
*/
|
|
@@ -2116,12 +2180,14 @@ declare abstract class AXConversationApi {
|
|
|
2116
2180
|
*/
|
|
2117
2181
|
abstract updateConversation(conversationId: string, updates: AXConversationUpdateData): Promise<AXConversation>;
|
|
2118
2182
|
/**
|
|
2119
|
-
* Delete conversation
|
|
2183
|
+
* Delete or hide a conversation for the current user.
|
|
2120
2184
|
*
|
|
2121
2185
|
* @param conversationId - Conversation ID
|
|
2186
|
+
* @param options - `forEveryone` destroys the room; omit/false hides it for the current user only
|
|
2187
|
+
* (private chats keep the peer's history). Group/channel leave should use {@link leaveConversation}.
|
|
2122
2188
|
* @throws {AXConversationApiError} If deletion fails
|
|
2123
2189
|
*/
|
|
2124
|
-
abstract deleteConversation(conversationId: string): Promise<boolean>;
|
|
2190
|
+
abstract deleteConversation(conversationId: string, options?: AXConversationDeleteOptions): Promise<boolean>;
|
|
2125
2191
|
/**
|
|
2126
2192
|
* Archive conversation
|
|
2127
2193
|
*
|
|
@@ -2984,7 +3050,7 @@ declare class AXConversationComposerGenerationStateService {
|
|
|
2984
3050
|
/** User requested cancel — enters `stopping` until {@link setGenerating}(false) is called. */
|
|
2985
3051
|
cancel(): void;
|
|
2986
3052
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationComposerGenerationStateService, never>;
|
|
2987
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
3053
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
2988
3054
|
}
|
|
2989
3055
|
|
|
2990
3056
|
/**
|
|
@@ -3014,7 +3080,7 @@ declare class AXConversationRegistryService {
|
|
|
3014
3080
|
*/
|
|
3015
3081
|
clearAll(): void;
|
|
3016
3082
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationRegistryService, never>;
|
|
3017
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
3083
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
3018
3084
|
}
|
|
3019
3085
|
|
|
3020
3086
|
/** Result of loading a message page (newest-first APIs, merged ascending in the store). */
|
|
@@ -3269,10 +3335,17 @@ declare class AXConversationService {
|
|
|
3269
3335
|
* Handle new message received
|
|
3270
3336
|
*/
|
|
3271
3337
|
private handleNewMessage;
|
|
3338
|
+
private applyIncomingMessage;
|
|
3272
3339
|
/**
|
|
3273
3340
|
* Handle message update
|
|
3274
3341
|
*/
|
|
3275
3342
|
private handleMessageUpdate;
|
|
3343
|
+
/**
|
|
3344
|
+
* After a local text edit, entity cache / status persist can echo the pre-edit payload.
|
|
3345
|
+
* Keep the newer local bubble until a strictly newer edit arrives.
|
|
3346
|
+
*/
|
|
3347
|
+
private preferLocalEditedPayload;
|
|
3348
|
+
private readTextPayload;
|
|
3276
3349
|
/**
|
|
3277
3350
|
* Bump reply/forward counts locally when realtime events arrive outside the active message list.
|
|
3278
3351
|
*/
|
|
@@ -3297,6 +3370,7 @@ declare class AXConversationService {
|
|
|
3297
3370
|
private handleConversationUpdate;
|
|
3298
3371
|
private handleConversationCreated;
|
|
3299
3372
|
private handleConversationDeleted;
|
|
3373
|
+
private removeConversationFromInbox;
|
|
3300
3374
|
private handleReadReceipt;
|
|
3301
3375
|
private handleMessageStatusChange;
|
|
3302
3376
|
/**
|
|
@@ -3367,9 +3441,8 @@ declare class AXConversationService {
|
|
|
3367
3441
|
*/
|
|
3368
3442
|
markConversationAsRead(conversationId: string): Promise<void>;
|
|
3369
3443
|
/**
|
|
3370
|
-
* Delete a conversation
|
|
3371
|
-
*
|
|
3372
|
-
* @param conversationId - Conversation ID
|
|
3444
|
+
* Delete, hide, or leave a conversation.
|
|
3445
|
+
* Opens a confirmation popup (checkbox for private/creator destroy), then updates the store.
|
|
3373
3446
|
*/
|
|
3374
3447
|
deleteConversation(conversationId: string): Promise<boolean>;
|
|
3375
3448
|
/**
|
|
@@ -3529,7 +3602,7 @@ declare class AXConversationService {
|
|
|
3529
3602
|
*/
|
|
3530
3603
|
private validateMessageContent;
|
|
3531
3604
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationService, never>;
|
|
3532
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
3605
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
3533
3606
|
}
|
|
3534
3607
|
|
|
3535
3608
|
/**
|
|
@@ -3644,12 +3717,16 @@ declare class AXConversationErrorHandlerService {
|
|
|
3644
3717
|
*/
|
|
3645
3718
|
private delay;
|
|
3646
3719
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationErrorHandlerService, never>;
|
|
3647
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
3720
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
3648
3721
|
}
|
|
3649
3722
|
|
|
3650
|
-
declare class AXConversationForwardMessageDialogComponent
|
|
3723
|
+
declare class AXConversationForwardMessageDialogComponent {
|
|
3651
3724
|
private readonly toastService;
|
|
3652
3725
|
private readonly translation;
|
|
3726
|
+
private readonly config;
|
|
3727
|
+
private readonly destroyRef;
|
|
3728
|
+
private searchDebounceTimer?;
|
|
3729
|
+
constructor();
|
|
3653
3730
|
/**
|
|
3654
3731
|
* Set by {@link AXPopupComponent} when opened via {@link AXPopupService} so the shell title can update.
|
|
3655
3732
|
*/
|
|
@@ -3662,20 +3739,26 @@ declare class AXConversationForwardMessageDialogComponent implements OnInit {
|
|
|
3662
3739
|
/** Assigned from `open(..., { data: { message } })`. */
|
|
3663
3740
|
message: AXConversationMessage;
|
|
3664
3741
|
readonly onClosed: EventEmitter<AXComponentCloseEvent>;
|
|
3665
|
-
readonly
|
|
3742
|
+
readonly availableUsers: _angular_core.WritableSignal<AXConversationParticipant[]>;
|
|
3666
3743
|
readonly forwardSearchQuery: _angular_core.WritableSignal<string>;
|
|
3667
|
-
readonly
|
|
3744
|
+
readonly selectedUserIds: _angular_core.WritableSignal<string[]>;
|
|
3668
3745
|
readonly forwardListEmptyTpl: _angular_core.Signal<TemplateRef<unknown>>;
|
|
3746
|
+
readonly forwardListLoadingTpl: _angular_core.Signal<TemplateRef<unknown>>;
|
|
3669
3747
|
readonly forwardList: _angular_core.Signal<AXListComponent>;
|
|
3670
3748
|
readonly forwardListDataSource: AXDataSource<unknown>;
|
|
3671
3749
|
readonly isForwarding: _angular_core.Signal<boolean>;
|
|
3672
3750
|
readonly canForward: _angular_core.Signal<boolean>;
|
|
3673
3751
|
private readonly _syncPopupTitleEffect;
|
|
3674
|
-
ngOnInit(): void;
|
|
3675
3752
|
onForwardSearchChange(value: string): void;
|
|
3676
|
-
|
|
3677
|
-
isSelected(
|
|
3678
|
-
private
|
|
3753
|
+
userFromItem(item: unknown): AXConversationParticipant | null;
|
|
3754
|
+
isSelected(userId: string): boolean;
|
|
3755
|
+
private mergeUsersCache;
|
|
3756
|
+
private seedUsersFromConversations;
|
|
3757
|
+
private loadUsersForForward;
|
|
3758
|
+
private getSortedUsersForForward;
|
|
3759
|
+
private isExcludedUser;
|
|
3760
|
+
private getExcludedUserIds;
|
|
3761
|
+
private resolveConversationIdForUser;
|
|
3679
3762
|
onCancel(): void;
|
|
3680
3763
|
onForward(): Promise<void>;
|
|
3681
3764
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationForwardMessageDialogComponent, never>;
|
|
@@ -3693,274 +3776,287 @@ declare class AXConversationMessageListNoActiveDefaultComponent {
|
|
|
3693
3776
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationMessageListNoActiveDefaultComponent, "ax-conversation-message-list-no-active-default", never, {}, {}, never, never, true, never>;
|
|
3694
3777
|
}
|
|
3695
3778
|
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3779
|
+
interface AXConversationAvatarDisplay {
|
|
3780
|
+
name: string;
|
|
3781
|
+
avatar?: string;
|
|
3782
|
+
icon?: string;
|
|
3783
|
+
}
|
|
3784
|
+
/** Conversation types that resolve a single peer participant for viewer-scoped avatar/title. */
|
|
3785
|
+
declare const AX_CONVERSATION_PEER_AVATAR_TYPES: ReadonlySet<AXConversationType>;
|
|
3786
|
+
/**
|
|
3787
|
+
* Other participant in a peer-scoped conversation (excludes the current viewer).
|
|
3788
|
+
* Applies to private 1:1 and bot assist chats with exactly one non-viewer participant.
|
|
3789
|
+
*/
|
|
3790
|
+
declare function resolveConversationPeerUserId(conversation: AXConversation, currentUserId?: string): string | undefined;
|
|
3791
|
+
/** Other participant in a private chat (excludes the current user). */
|
|
3792
|
+
declare function resolvePrivatePeerUserId(conversation: AXConversation, currentUserId?: string): string | undefined;
|
|
3793
|
+
/** Peer participant for private and bot conversations. */
|
|
3794
|
+
declare function resolveConversationPeerParticipant(conversation: AXConversation, currentUserId?: string): AXConversationParticipant | undefined;
|
|
3795
|
+
/** Whether `auto` kind should render a registered user avatar for this conversation. */
|
|
3796
|
+
declare function shouldUseUserAvatarForConversation(conversation: AXConversation, currentUserId?: string): boolean;
|
|
3797
|
+
declare function resolveUserAvatarDisplay(userId: string, conversation: AXConversation | undefined, message?: AXConversationMessage): AXConversationAvatarDisplay;
|
|
3798
|
+
declare function resolveConversationAvatarDisplay(conversation: AXConversation, currentUserId?: string): AXConversationAvatarDisplay;
|
|
3799
|
+
|
|
3800
|
+
interface AXConversationMessageListBackgroundPreset {
|
|
3801
|
+
id: string;
|
|
3802
|
+
value: AXConversationMessageListThemeBackground;
|
|
3803
|
+
}
|
|
3804
|
+
/** Library default when no per-conversation or global background is set (pattern-5 tile + gradient wash). */
|
|
3805
|
+
declare const AX_CONVERSATION_DEFAULT_MESSAGE_LIST_THEME_BACKGROUND: AXConversationMessageListThemeBackground;
|
|
3806
|
+
/** Predefined chat-area backgrounds for the info panel (light + dark variants). */
|
|
3807
|
+
declare const AX_CONVERSATION_MESSAGE_LIST_BACKGROUND_PRESETS: AXConversationMessageListBackgroundPreset[];
|
|
3808
|
+
declare const AX_CONVERSATION_DEFAULT_MESSAGE_LIST_BACKGROUND_PRESET_ID = "solid-default";
|
|
3809
|
+
|
|
3810
|
+
/** Subtle Telegram-style chat-area wash when `messageListBackground` is not set (theme-aware). */
|
|
3811
|
+
declare const AX_CONVERSATION_DEFAULT_MESSAGE_LIST_BACKGROUND: string;
|
|
3812
|
+
declare function isMessageListThemeBackground(value: unknown): value is AXConversationMessageListThemeBackground;
|
|
3813
|
+
/** Pick the raw CSS string for the active theme; `undefined` when unset. */
|
|
3814
|
+
declare function resolveMessageListBackgroundRaw(value: AXConversationMessageListBackground | undefined, isDark: boolean): string | undefined;
|
|
3815
|
+
/** Turn bare `https://...` or `/path` into valid CSS `background` for images. */
|
|
3816
|
+
declare function normalizeMessageListBackgroundValue(raw: string): string;
|
|
3817
|
+
/** Whether the built-in pattern-5 wallpaper (gradient + tiled SVG) should be used. */
|
|
3818
|
+
declare function usesDefaultMessageListWallpaper(value: AXConversationMessageListBackground | undefined): boolean;
|
|
3819
|
+
/** Resolve config/metadata background for the active theme, with library default fallback. */
|
|
3820
|
+
declare function resolveMessageListBackgroundStyle(value: AXConversationMessageListBackground | undefined, isDark: boolean): string;
|
|
3821
|
+
/** Whether two stored backgrounds represent the same preset (supports legacy string values). */
|
|
3822
|
+
declare function isSameMessageListBackground(a: AXConversationMessageListBackground | undefined, b: AXConversationMessageListThemeBackground, isDark: boolean): boolean;
|
|
3823
|
+
|
|
3824
|
+
interface AXConversationForwardUserSortEntry {
|
|
3825
|
+
user: AXConversationParticipant;
|
|
3826
|
+
conversation?: AXConversation;
|
|
3827
|
+
}
|
|
3828
|
+
/** Default Font Awesome icon for group conversations without a custom avatar image. */
|
|
3829
|
+
declare const AX_CONVERSATION_DEFAULT_GROUP_ICON = "fa-light fa-users";
|
|
3830
|
+
/** Default Font Awesome icon for private/bot conversations without a custom avatar image. */
|
|
3831
|
+
declare const AX_CONVERSATION_DEFAULT_USER_ICON = "fa-light fa-user";
|
|
3832
|
+
/** True when the stored title is a placeholder, not a user-defined name. */
|
|
3833
|
+
declare function isGenericPrivateConversationTitle(title: string | undefined): boolean;
|
|
3834
|
+
/**
|
|
3835
|
+
* Find an existing private 1:1 conversation between the current user and a peer.
|
|
3836
|
+
* Matches conversations with exactly those two participants.
|
|
3837
|
+
*/
|
|
3838
|
+
declare function findExistingPrivateConversation(conversations: AXConversation[], currentUserId: string, peerUserId: string): AXConversation | undefined;
|
|
3839
|
+
/**
|
|
3840
|
+
* Sort users for forward picker: existing private chats first (most recent on top), then others by name.
|
|
3841
|
+
*/
|
|
3842
|
+
declare function sortUsersForForward(users: AXConversationParticipant[], conversations: AXConversation[], currentUserId: string): AXConversationParticipant[];
|
|
3843
|
+
/** Other participant in a private 1v1 chat (excludes the current viewer). */
|
|
3844
|
+
declare function resolvePrivatePeerParticipant(conversation: AXConversation, currentUserId?: string): AXConversationParticipant | undefined;
|
|
3845
|
+
/**
|
|
3846
|
+
* Resolves the display title for the current viewer.
|
|
3847
|
+
* Private and bot peer-scoped chats show the other participant's name when no custom title is set.
|
|
3848
|
+
*/
|
|
3849
|
+
declare function resolveConversationTitleForViewer(conversation: AXConversation, currentUserId?: string): string;
|
|
3850
|
+
/**
|
|
3851
|
+
* Returns a viewer-scoped copy of a conversation with dynamic peer title/avatar/icon.
|
|
3852
|
+
* Does not mutate the source object.
|
|
3853
|
+
*/
|
|
3854
|
+
declare function resolveConversationForViewer(conversation: AXConversation, currentUserId?: string): AXConversation;
|
|
3855
|
+
/** Whether message reactions are enabled for a conversation. Defaults to `true` when omitted. */
|
|
3856
|
+
declare function isConversationReactionsEnabled(conversation?: AXConversation | null): boolean;
|
|
3857
|
+
|
|
3858
|
+
/** Group and channel rooms share join/leave and creator-destroy rules. */
|
|
3859
|
+
declare function isGroupLikeConversation(conversationOrType: AXConversation | AXConversationType | undefined): boolean;
|
|
3860
|
+
/** True when `userId` created this room (falls back to owner/admin if `creatorId` is missing). */
|
|
3861
|
+
declare function isConversationRoomCreator(conversation: AXConversation, userId?: string): boolean;
|
|
3862
|
+
/** Earliest joiner; stable tie-break by participant id. */
|
|
3863
|
+
declare function pickEarliestJoinedParticipant(participants: AXConversationParticipant[]): AXConversationParticipant | undefined;
|
|
3864
|
+
/**
|
|
3865
|
+
* Whether a message should appear for a viewer after a one-sided history clear.
|
|
3866
|
+
* Exclusive: the cutoff instant itself is hidden (cleared "up to now").
|
|
3867
|
+
*/
|
|
3868
|
+
declare function isMessageVisibleAfterHistoryCutoff(timestamp: Date | string | number, historyClearedAt?: Date | string | number | null): boolean;
|
|
3869
|
+
|
|
3870
|
+
/** Resolves typed `profile`, falling back to legacy `metadata.profile`. */
|
|
3871
|
+
declare function resolveParticipantProfile(participant?: AXConversationParticipant): AXConversationUserProfile;
|
|
3872
|
+
|
|
3873
|
+
type AXConversationDateSeparatorKind = 'today' | 'yesterday' | 'other';
|
|
3874
|
+
declare class AXConversationDateUtilsService {
|
|
3708
3875
|
/**
|
|
3709
|
-
*
|
|
3710
|
-
* Set `messageListBackground` to `transparent` or `none` for a flat look.
|
|
3711
|
-
* Supports `{ light, dark }` for theme-specific backgrounds.
|
|
3876
|
+
* Format relative time (e.g., "2m ago", "1h ago")
|
|
3712
3877
|
*/
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
resolvedEmptyStateComponent(): Type<AXConversationMessageListEmptyComponent>;
|
|
3717
|
-
/** Fallback when no conversation is active and no `ax-conversation-message-list-no-active` content is projected. */
|
|
3718
|
-
protected readonly noActiveFallbackComponent: typeof AXConversationMessageListNoActiveDefaultComponent;
|
|
3719
|
-
private readonly timeouts;
|
|
3720
|
-
readonly reactionPickerTarget: _angular_core.WritableSignal<string>;
|
|
3721
|
-
readonly reactionPickerElement: _angular_core.WritableSignal<HTMLElement>;
|
|
3722
|
-
readonly reactionPickerPlacement: _angular_core.WritableSignal<AXPlacement>;
|
|
3723
|
-
readonly reactionPopover: _angular_core.Signal<any>;
|
|
3724
|
-
/** Message id whose context menu is open (for active row styling). */
|
|
3725
|
-
readonly contextMenuMessageId: _angular_core.WritableSignal<string>;
|
|
3726
|
-
/** True while files are dragged over the message list drop zone. */
|
|
3727
|
-
readonly messageListDragging: _angular_core.WritableSignal<boolean>;
|
|
3728
|
-
/** True when the message list uses single-column adaptive layout (matches CSS container query). */
|
|
3729
|
-
readonly isAdaptiveWideLayout: _angular_core.WritableSignal<boolean>;
|
|
3730
|
-
/** While true, older history is being prepended — do not auto-scroll to the latest message. */
|
|
3731
|
-
private restoringScrollAfterPrepend;
|
|
3732
|
-
private adaptiveLayoutResizeObserver?;
|
|
3733
|
-
readonly availableReactions: _angular_core.WritableSignal<string[]>;
|
|
3734
|
-
private reactionsLoading;
|
|
3735
|
-
private get registry();
|
|
3736
|
-
/** Message list element reference */
|
|
3737
|
-
private readonly messageListRef;
|
|
3738
|
-
/** Messages container element reference */
|
|
3739
|
-
private readonly messagesContainerRef;
|
|
3740
|
-
/** Loading state - use service */
|
|
3741
|
-
readonly loading: _angular_core.Signal<boolean>;
|
|
3742
|
-
/** Loading more messages state - use service */
|
|
3743
|
-
readonly loadingMore: _angular_core.WritableSignal<boolean>;
|
|
3744
|
-
/** Whether older messages remain on the server */
|
|
3745
|
-
readonly hasMoreMessages: _angular_core.Signal<boolean>;
|
|
3746
|
-
/** Show scroll to bottom button - use service */
|
|
3747
|
-
readonly showScrollButton: _angular_core.WritableSignal<boolean>;
|
|
3748
|
-
/** Active conversation */
|
|
3749
|
-
readonly activeConversation: _angular_core.Signal<_acorex_components_conversation.AXConversation>;
|
|
3750
|
-
readonly isGroupConversation: _angular_core.Signal<boolean>;
|
|
3751
|
-
/** Placeholder indices for the initial message list skeleton. */
|
|
3752
|
-
protected readonly loadingSkeletonItems: readonly [0, 1, 2, 3, 4, 5];
|
|
3753
|
-
/** Whether the active conversation allows message reactions. */
|
|
3754
|
-
readonly reactionsEnabled: _angular_core.Signal<boolean>;
|
|
3755
|
-
/** Messages */
|
|
3756
|
-
readonly messages: _angular_core.Signal<AXConversationMessage[]>;
|
|
3757
|
-
/** Message action event */
|
|
3758
|
-
readonly messageAction: _angular_core.OutputEmitterRef<{
|
|
3759
|
-
message: AXConversationMessage;
|
|
3760
|
-
action: string;
|
|
3761
|
-
}>;
|
|
3762
|
-
/** Current user from service */
|
|
3763
|
-
readonly currentUser: _angular_core.Signal<_acorex_components_conversation.AXConversationUser>;
|
|
3764
|
-
/** Message grouped by date - use service */
|
|
3765
|
-
readonly messageGroups: _angular_core.Signal<{
|
|
3766
|
-
date: string;
|
|
3767
|
-
dateLabel: string;
|
|
3768
|
-
messages: AXConversationMessage[];
|
|
3769
|
-
}[]>;
|
|
3770
|
-
constructor();
|
|
3771
|
-
private intersectionObserver?;
|
|
3772
|
-
private readonly readIntersectionObserver;
|
|
3773
|
-
private readonly observedReadMessageIds;
|
|
3878
|
+
static formatRelativeTime(date: Date): string;
|
|
3879
|
+
/** Resolve whether a message date should show Today, Yesterday, or a formatted date. */
|
|
3880
|
+
static getDateSeparatorKind(date: Date): AXConversationDateSeparatorKind;
|
|
3774
3881
|
/**
|
|
3775
|
-
*
|
|
3882
|
+
* Format date label for non-relative separators (localized calendar date).
|
|
3776
3883
|
*/
|
|
3777
|
-
|
|
3884
|
+
static formatDateLabel(date: Date, locale?: string): string;
|
|
3778
3885
|
/**
|
|
3779
|
-
*
|
|
3886
|
+
* Check if two dates are the same day
|
|
3780
3887
|
*/
|
|
3781
|
-
|
|
3782
|
-
/** Get message CSS classes */
|
|
3783
|
-
getMessageClasses(message: AXConversationMessage): string;
|
|
3784
|
-
/** Get bubble CSS classes */
|
|
3785
|
-
getBubbleClasses(message: AXConversationMessage): string;
|
|
3786
|
-
/** Check if message is from current user */
|
|
3787
|
-
isOwnMessage(message: AXConversationMessage): boolean;
|
|
3788
|
-
/** Whether the avatar slot is rendered (visibility is CSS-controlled per layout mode). */
|
|
3789
|
-
shouldRenderAvatar(message: AXConversationMessage): boolean;
|
|
3790
|
-
/** Should show sender name */
|
|
3791
|
-
shouldShowSenderName(message: AXConversationMessage): boolean;
|
|
3792
|
-
/** Get sender name */
|
|
3793
|
-
getSenderName(message: AXConversationMessage): string;
|
|
3794
|
-
/** Get original sender name for forwarded messages */
|
|
3795
|
-
getOriginalSenderName(message: AXConversationMessage): string;
|
|
3796
|
-
/** Get forwarded text with sender and conversation info */
|
|
3797
|
-
getForwardedText(message: AXConversationMessage): string;
|
|
3798
|
-
/** Resolve renderer component for message */
|
|
3799
|
-
getRendererComponent(message: AXConversationMessage): Type<_acorex_components_conversation.AXConversationMessageRendererComponent>;
|
|
3800
|
-
/** Resolve lazy renderer loader for message */
|
|
3801
|
-
private static readonly fallbackRendererLoader;
|
|
3802
|
-
getRendererComponentLoader(message: AXConversationMessage): (() => Promise<Type<_acorex_components_conversation.AXConversationMessageRendererComponent>>) | (() => Promise<typeof _acorex_components_conversation.AXConversationFallbackRendererComponent>);
|
|
3803
|
-
/** Provide inputs for the dynamic renderer */
|
|
3804
|
-
getRendererInputs(message: AXConversationMessage): {
|
|
3805
|
-
message: AXConversationMessage;
|
|
3806
|
-
};
|
|
3807
|
-
/** Get status icon */
|
|
3808
|
-
getStatusIcon(message: AXConversationMessage): string;
|
|
3809
|
-
/** Get status icon CSS classes */
|
|
3810
|
-
getStatusIconClasses(message: AXConversationMessage): string;
|
|
3811
|
-
/** Get status tooltip text */
|
|
3812
|
-
getStatusTooltip(message: AXConversationMessage): string;
|
|
3813
|
-
/** Get first unread message ID */
|
|
3814
|
-
readonly firstUnreadMessageId: _angular_core.Signal<string>;
|
|
3815
|
-
/** Get grouped reactions */
|
|
3816
|
-
getGroupedReactions(message: AXConversationMessage): Array<{
|
|
3817
|
-
emoji: string;
|
|
3818
|
-
count: number;
|
|
3819
|
-
userIds: string[];
|
|
3820
|
-
hasReacted: boolean;
|
|
3821
|
-
}>;
|
|
3822
|
-
/** Get reaction tooltip text */
|
|
3823
|
-
getReactionTooltip(reaction: {
|
|
3824
|
-
emoji: string;
|
|
3825
|
-
count: number;
|
|
3826
|
-
userIds: string[];
|
|
3827
|
-
hasReacted: boolean;
|
|
3828
|
-
}): string;
|
|
3829
|
-
/** Whether reactions can be shown or added for a message in the active conversation. */
|
|
3830
|
-
messageSupportsReactions(message: AXConversationMessage): boolean;
|
|
3831
|
-
/** Toggle reaction picker */
|
|
3832
|
-
toggleReactionPicker(message: AXConversationMessage, event: MouseEvent): void;
|
|
3833
|
-
/** Close reaction picker */
|
|
3834
|
-
closeReactionPicker(): void;
|
|
3835
|
-
/** Check if current user has reacted with specific emoji */
|
|
3836
|
-
hasUserReacted(message: AXConversationMessage, emoji: string): boolean;
|
|
3837
|
-
/** Check if current user has reacted with specific emoji by message ID */
|
|
3838
|
-
hasUserReactedById(messageId: string, emoji: string): boolean;
|
|
3839
|
-
/** Handle reaction click by message ID */
|
|
3840
|
-
onReactionClickById(messageId: string, emoji: string): void;
|
|
3841
|
-
/** Get message by ID */
|
|
3842
|
-
getMessageById(messageId: string): AXConversationMessage | undefined;
|
|
3843
|
-
/** Load available reactions when the picker is opened (session-cached in service). */
|
|
3844
|
-
private ensureAvailableReactions;
|
|
3845
|
-
/** Get message actions from registry */
|
|
3846
|
-
getMessageActions(message: AXConversationMessage): _acorex_components_conversation.AXConversationMessageAction[];
|
|
3847
|
-
/** Handle reaction click */
|
|
3848
|
-
onReactionClick(message: AXConversationMessage, emoji: string): void;
|
|
3849
|
-
/** Handle message action */
|
|
3850
|
-
onMessageAction(message: AXConversationMessage, action: any): Promise<void>;
|
|
3851
|
-
/** Handle scroll events */
|
|
3852
|
-
onScroll(event: Event): void;
|
|
3853
|
-
/** Handle infinite scroll threshold */
|
|
3854
|
-
onScrollThreshold(edge: 'top' | 'bottom'): Promise<void>;
|
|
3855
|
-
/** Load older messages - delegate to service and preserve scroll anchor */
|
|
3856
|
-
private loadOlderMessages;
|
|
3888
|
+
static isSameDay(date1: Date, date2: Date): boolean;
|
|
3857
3889
|
/**
|
|
3858
|
-
*
|
|
3890
|
+
* Get date key for grouping (YYYY-MM-DD)
|
|
3859
3891
|
*/
|
|
3860
|
-
|
|
3861
|
-
/** Check if user is near bottom of scroll */
|
|
3862
|
-
private isUserNearBottom;
|
|
3892
|
+
static getDateKey(date: Date): string;
|
|
3863
3893
|
/**
|
|
3864
|
-
*
|
|
3865
|
-
* Poll with rAF until the feed exists, then scroll after double rAF so scrollHeight is stable.
|
|
3894
|
+
* Format time (HH:MM)
|
|
3866
3895
|
*/
|
|
3867
|
-
|
|
3868
|
-
/** Scroll to bottom */
|
|
3869
|
-
scrollToBottom(smooth?: boolean): void;
|
|
3870
|
-
/** Scroll to specific message */
|
|
3871
|
-
scrollToMessage(messageId: string): void;
|
|
3872
|
-
/** Cleanup timeouts and observers on destroy */
|
|
3873
|
-
ngOnDestroy(): void;
|
|
3874
|
-
/** Get message preview text for reply */
|
|
3875
|
-
getMessagePreviewText(message: AXConversationMessage): {
|
|
3876
|
-
value: string;
|
|
3877
|
-
type: string;
|
|
3878
|
-
icon: string;
|
|
3879
|
-
};
|
|
3880
|
-
/** Get ARIA label for message */
|
|
3881
|
-
getMessageAriaLabel(message: AXConversationMessage): string;
|
|
3882
|
-
getDateSeparatorAriaLabel(dateLabel: string): string;
|
|
3883
|
-
getReplyCount(message: AXConversationMessage): number;
|
|
3884
|
-
getForwardCount(message: AXConversationMessage): number;
|
|
3885
|
-
onMessageListDragEnter(): void;
|
|
3886
|
-
onMessageListDragLeave(): void;
|
|
3887
|
-
/** Open the matching composer picker popup when files are dropped on the message list. */
|
|
3888
|
-
onMessageListFilesDropped(event: AXUploaderFileChangeEvent): Promise<void>;
|
|
3889
|
-
private composerPickerDeps;
|
|
3890
|
-
/** Handle context menu opening for messages */
|
|
3891
|
-
handleMessageContextMenuOpening(event: AXContextMenuOpeningEvent, message: AXConversationMessage): void;
|
|
3892
|
-
/** Handle context menu item click for messages */
|
|
3893
|
-
handleMessageContextMenuItemClick(event: AXContextMenuItemsClickEvent, message: AXConversationMessage): void;
|
|
3894
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationMessageListComponent, never>;
|
|
3895
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationMessageListComponent, "ax-conversation-message-list", never, {}, { "messageAction": "messageAction"; }, never, ["ax-conversation-message-list-empty, [ax-conversation-message-list-empty]", "ax-conversation-message-list-no-active, [ax-conversation-message-list-no-active]"], true, never>;
|
|
3896
|
+
static formatTime(date: Date): string;
|
|
3896
3897
|
}
|
|
3897
3898
|
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3899
|
+
/**
|
|
3900
|
+
* Message Utilities Service
|
|
3901
|
+
* Helper functions for message formatting and display
|
|
3902
|
+
*/
|
|
3903
|
+
|
|
3904
|
+
/** Position of a message inside a consecutive same-sender cluster (Telegram grouping). */
|
|
3905
|
+
type AXConversationMessageClusterRole = 'single' | 'start' | 'middle' | 'end';
|
|
3906
|
+
declare class AXConversationMessageUtilsService {
|
|
3907
|
+
static getInitials(name: string): string;
|
|
3908
|
+
static getMessageText(message: AXConversationMessage): string;
|
|
3909
|
+
static getPreviewText(message: AXConversationMessage, maxLength?: number): {
|
|
3910
|
+
value: string;
|
|
3911
|
+
type: string;
|
|
3912
|
+
icon: string;
|
|
3913
|
+
};
|
|
3914
|
+
static isOwnMessage(message: AXConversationMessage, currentUserId: string): boolean;
|
|
3915
|
+
static getSenderName(message: AXConversationMessage, conversation: AXConversation): string;
|
|
3916
|
+
static getSenderAvatar(message: AXConversationMessage, conversation: AXConversation): string | undefined;
|
|
3917
|
+
static getSenderAvatarIcon(message: AXConversationMessage, conversation: AXConversation): string | undefined;
|
|
3918
|
+
static getConversationAvatar(conversation: AXConversation): string | undefined;
|
|
3919
|
+
static getConversationAvatarIcon(conversation: AXConversation): string | undefined;
|
|
3920
|
+
static getConversationStatus(conversation: AXConversation, presence?: AXConversationUserPresence): AXConversationPresenceStatus | undefined;
|
|
3921
|
+
/** Consecutive same-sender messages within this window share one Telegram-style cluster. */
|
|
3922
|
+
static readonly MESSAGE_CLUSTER_MAX_GAP_MS: number;
|
|
3923
|
+
/** Palette of existing theme tokens used to color group sender names (not bubble chrome). */
|
|
3924
|
+
private static readonly SENDER_NAME_COLORS;
|
|
3925
|
+
static toTimestampMs(value: Date | string | number): number;
|
|
3926
|
+
static shouldGroupMessages(message: AXConversationMessage, previousMessage?: AXConversationMessage): boolean;
|
|
3927
|
+
static getMessageClusterRole(message: AXConversationMessage, previousMessage?: AXConversationMessage, nextMessage?: AXConversationMessage): AXConversationMessageClusterRole;
|
|
3928
|
+
static getSenderNameColor(senderId: string): string;
|
|
3929
|
+
static getUserPresenceStatus(presence?: AXConversationUserPresence): AXConversationPresenceStatus | undefined;
|
|
3930
|
+
static getTypingText(conversation: AXConversation, typingUserIds: string[]): string;
|
|
3931
|
+
static formatLastSeen(date: Date): string;
|
|
3932
|
+
static getPrivateChatSubtitle(conversation: AXConversation, presence?: AXConversationUserPresence, currentUserId?: string): string;
|
|
3933
|
+
static getConversationSubtitle(conversation: AXConversation, options?: {
|
|
3934
|
+
typingUserIds?: string[];
|
|
3935
|
+
peerPresence?: AXConversationUserPresence;
|
|
3936
|
+
currentUserId?: string;
|
|
3937
|
+
}): string;
|
|
3938
|
+
}
|
|
3939
|
+
|
|
3940
|
+
/**
|
|
3941
|
+
* Conversation feature flags for configurable bundle size.
|
|
3942
|
+
*/
|
|
3943
|
+
type AXConversationComposerTabFeature = 'emoji' | 'sticker';
|
|
3944
|
+
interface AXConversationFeatures {
|
|
3945
|
+
/** Enabled built-in composer popup tabs (`emoji`, `sticker`). Defaults to none when omitted. */
|
|
3946
|
+
composerTabs?: AXConversationComposerTabFeature[];
|
|
3947
|
+
}
|
|
3948
|
+
declare function resolveConversationComposerTabs(features?: AXConversationFeatures): readonly AXConversationComposerTabFeature[];
|
|
3949
|
+
declare function isComposerTabEnabled(tab: AXConversationComposerTabFeature, features?: AXConversationFeatures): boolean;
|
|
3950
|
+
|
|
3951
|
+
/**
|
|
3952
|
+
* Conversation Configuration Interface
|
|
3953
|
+
* Centralized configuration values to avoid magic numbers
|
|
3954
|
+
*/
|
|
3955
|
+
/**
|
|
3956
|
+
* Sidebar conversation tabs layout.
|
|
3957
|
+
* - `vertical`: horizontal tab strip above the conversation list.
|
|
3958
|
+
* - `horizontal`: vertical tab strip at inline-start beside the list (`ax-tabs` location `start`).
|
|
3959
|
+
*/
|
|
3960
|
+
type AXConversationSidebarTabsOrientation = 'vertical' | 'horizontal';
|
|
3961
|
+
/**
|
|
3962
|
+
* Main configuration interface for the conversation component
|
|
3963
|
+
*/
|
|
3964
|
+
interface AXConversationConfig {
|
|
3965
|
+
/** Number of messages to load per page */
|
|
3966
|
+
messagePageSize?: number;
|
|
3967
|
+
/** Number of conversations to load per page */
|
|
3968
|
+
conversationPageSize?: number;
|
|
3969
|
+
/** Scroll threshold for detecting scroll events */
|
|
3970
|
+
scrollThreshold?: number;
|
|
3971
|
+
/** Infinite scroll threshold */
|
|
3972
|
+
infiniteScrollThreshold?: number;
|
|
3973
|
+
/** Typing indicator timeout in milliseconds */
|
|
3974
|
+
typingIndicatorTimeout?: number;
|
|
3975
|
+
/** Typing indicator emit throttle in milliseconds while composing (default: 3000) */
|
|
3976
|
+
typingIndicatorThrottle?: number;
|
|
3977
|
+
/** How long to show received typing indicators in the UI (default: 4000) */
|
|
3978
|
+
typingDisplayDuration?: number;
|
|
3979
|
+
/** Message highlight duration in milliseconds */
|
|
3980
|
+
messageHighlightDuration?: number;
|
|
3981
|
+
/** Search debounce delay in milliseconds */
|
|
3982
|
+
debounceSearch?: number;
|
|
3983
|
+
/** Maximum messages per conversation */
|
|
3984
|
+
maxMessagesPerConversation?: number;
|
|
3985
|
+
/** Maximum total messages in store */
|
|
3986
|
+
maxTotalMessages?: number;
|
|
3987
|
+
/** Maximum cached conversations */
|
|
3988
|
+
maxCachedConversations?: number;
|
|
3989
|
+
/** Minimum sidebar width in pixels */
|
|
3990
|
+
minSidebarWidth?: number;
|
|
3991
|
+
/** Maximum sidebar width in pixels */
|
|
3992
|
+
maxSidebarWidth?: number;
|
|
3993
|
+
/** Default sidebar width in pixels */
|
|
3994
|
+
defaultSidebarWidth?: number;
|
|
3920
3995
|
/**
|
|
3921
|
-
*
|
|
3996
|
+
* Sidebar conversation tabs layout.
|
|
3997
|
+
* `vertical` places a horizontal tab strip above the list; `horizontal` places a vertical tab strip at inline-start beside the list.
|
|
3922
3998
|
*/
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
}[]>;
|
|
3999
|
+
sidebarTabsOrientation?: AXConversationSidebarTabsOrientation;
|
|
4000
|
+
/** Maximum message length in characters */
|
|
4001
|
+
maxMessageLength?: number;
|
|
4002
|
+
/** Minimum message length in characters */
|
|
4003
|
+
minMessageLength?: number;
|
|
4004
|
+
/** Max attachments per message when a composer action omits `maxFiles`. */
|
|
4005
|
+
maxFilesPerMessage?: number;
|
|
4006
|
+
/** Threshold for marking messages as read (0.0 to 1.0, default: 0.3) */
|
|
4007
|
+
messageReadThreshold?: number;
|
|
4008
|
+
/** Debounce window (ms) before flushing batched read-receipt API calls (default: 3000) */
|
|
4009
|
+
messageReadDebounce?: number;
|
|
3935
4010
|
/**
|
|
3936
|
-
*
|
|
4011
|
+
* When true, marks the whole conversation as read once when it is selected (single API call).
|
|
4012
|
+
* Per-message intersection observer still handles new messages received while the chat is open.
|
|
3937
4013
|
*/
|
|
3938
|
-
|
|
4014
|
+
markConversationReadOnSelect?: boolean;
|
|
3939
4015
|
/**
|
|
3940
|
-
*
|
|
4016
|
+
* CSS `background` for the message list (`ax-conversation-message-list` area, all states: loading, empty, messages).
|
|
4017
|
+
* Use full shorthand, or a bare `https://...` / `/path/to.png` (wrapped as `url(...)` with `center/cover`).
|
|
4018
|
+
* Pass a string for the same value in both themes, or `{ light, dark }` for theme-specific backgrounds.
|
|
4019
|
+
* Empty string = Telegram-inspired theme-aware library default (`{ light, dark }`). `transparent` or `none` = flat background.
|
|
3941
4020
|
*/
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
requestScrollToBottom(): void;
|
|
3948
|
-
private buildCountMap;
|
|
3949
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationMessageListService, never>;
|
|
3950
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXConversationMessageListService>;
|
|
4021
|
+
messageListBackground?: AXConversationMessageListBackground;
|
|
4022
|
+
/** Optional feature flags to reduce bundle size per app. */
|
|
4023
|
+
features?: AXConversationFeatures;
|
|
4024
|
+
/** Log API calls made by AXConversationService to the console (default: false). */
|
|
4025
|
+
debugApiLogging?: boolean;
|
|
3951
4026
|
}
|
|
3952
4027
|
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
4028
|
+
/**
|
|
4029
|
+
* Default Configuration Values
|
|
4030
|
+
* Centralized defaults to avoid magic numbers throughout the codebase
|
|
4031
|
+
*/
|
|
4032
|
+
|
|
4033
|
+
/**
|
|
4034
|
+
* Default conversation configuration
|
|
4035
|
+
* All values are explicitly defined here for easy maintenance and documentation
|
|
4036
|
+
*/
|
|
4037
|
+
declare const AX_DEFAULT_CONVERSATION_CONFIG: Required<AXConversationConfig>;
|
|
4038
|
+
/**
|
|
4039
|
+
* Helper function to merge user config with defaults
|
|
4040
|
+
* Properly handles array merging to avoid reference issues
|
|
4041
|
+
* @param userConfig - User-provided configuration
|
|
4042
|
+
* @returns Merged configuration with all required fields
|
|
4043
|
+
*/
|
|
4044
|
+
declare function mergeWithDefaults(userConfig?: Partial<AXConversationConfig>): Required<AXConversationConfig>;
|
|
4045
|
+
|
|
4046
|
+
/**
|
|
4047
|
+
* Dependency Injection Tokens
|
|
4048
|
+
* InjectionTokens for configuration and dependencies
|
|
4049
|
+
*/
|
|
4050
|
+
|
|
4051
|
+
/**
|
|
4052
|
+
* Configuration token for conversation component
|
|
4053
|
+
* Uses centralized defaults from AX_DEFAULT_CONVERSATION_CONFIG
|
|
4054
|
+
*/
|
|
4055
|
+
declare const AX_CONVERSATION_CONFIG: InjectionToken<Required<AXConversationConfig>>;
|
|
4056
|
+
/**
|
|
4057
|
+
* Token for configuring AXConversationErrorHandlerService
|
|
4058
|
+
*/
|
|
4059
|
+
declare const AX_CONVERSATION_ERROR_HANDLER_CONFIG: InjectionToken<Partial<AXConversationErrorHandlerConfig>>;
|
|
3964
4060
|
|
|
3965
4061
|
/**
|
|
3966
4062
|
* Pluggable avatar components for the conversation UI.
|
|
@@ -3998,468 +4094,824 @@ interface AXConversationAvatarComponents {
|
|
|
3998
4094
|
conversation?: Type<AXConversationConversationAvatarComponent>;
|
|
3999
4095
|
}
|
|
4000
4096
|
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
readonly kind: _angular_core.InputSignal<AXConversationAvatarKind>;
|
|
4006
|
-
readonly userId: _angular_core.InputSignal<string>;
|
|
4007
|
-
readonly conversation: _angular_core.InputSignal<AXConversation>;
|
|
4008
|
-
readonly message: _angular_core.InputSignal<AXConversationMessage>;
|
|
4009
|
-
readonly size: _angular_core.InputSignal<number>;
|
|
4010
|
-
readonly showStatus: _angular_core.InputSignal<boolean>;
|
|
4011
|
-
readonly name: _angular_core.InputSignal<string>;
|
|
4012
|
-
readonly avatar: _angular_core.InputSignal<string>;
|
|
4013
|
-
readonly icon: _angular_core.InputSignal<string>;
|
|
4014
|
-
private readonly currentUserId;
|
|
4015
|
-
readonly resolvedKind: _angular_core.Signal<"user" | "conversation">;
|
|
4016
|
-
readonly resolvedUserId: _angular_core.Signal<string>;
|
|
4017
|
-
readonly customComponent: _angular_core.Signal<Type<unknown>>;
|
|
4018
|
-
readonly customInputs: _angular_core.Signal<Record<string, unknown>>;
|
|
4019
|
-
readonly filteredCustomInputs: _angular_core.Signal<Record<string, unknown>>;
|
|
4020
|
-
readonly fallbackDisplay: _angular_core.Signal<{
|
|
4021
|
-
name: string;
|
|
4022
|
-
avatar: string;
|
|
4023
|
-
icon: string;
|
|
4024
|
-
}>;
|
|
4025
|
-
readonly fallbackInitials: _angular_core.Signal<string>;
|
|
4026
|
-
readonly resolvedStatus: _angular_core.Signal<_acorex_components_conversation.AXConversationPresenceStatus>;
|
|
4027
|
-
readonly statusBadgePresence: _angular_core.Signal<"online" | "offline" | "away" | "busy">;
|
|
4028
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationAvatarComponent, never>;
|
|
4029
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationAvatarComponent, "ax-conversation-avatar", never, { "kind": { "alias": "kind"; "required": false; "isSignal": true; }; "userId": { "alias": "userId"; "required": false; "isSignal": true; }; "conversation": { "alias": "conversation"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showStatus": { "alias": "showStatus"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "avatar": { "alias": "avatar"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
4030
|
-
}
|
|
4031
|
-
|
|
4032
|
-
interface AXConversationRegistryComponentRef {
|
|
4033
|
-
component?: Type<unknown>;
|
|
4034
|
-
componentLoader?: () => Promise<Type<unknown>>;
|
|
4035
|
-
}
|
|
4036
|
-
declare class AXConversationRegistryComponentOutletComponent {
|
|
4037
|
-
readonly component: _angular_core.InputSignal<Type<unknown>>;
|
|
4038
|
-
readonly componentLoader: _angular_core.InputSignal<() => Promise<Type<unknown>>>;
|
|
4039
|
-
readonly inputs: _angular_core.InputSignal<Record<string, unknown>>;
|
|
4040
|
-
readonly resolvedComponent: _angular_core.WritableSignal<Type<unknown>>;
|
|
4041
|
-
/** Avoid re-loading when the parent re-binds the same lazy loader reference. */
|
|
4042
|
-
private activeLoader;
|
|
4043
|
-
constructor();
|
|
4044
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationRegistryComponentOutletComponent, never>;
|
|
4045
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationRegistryComponentOutletComponent, "ax-conversation-registry-component-outlet", never, { "component": { "alias": "component"; "required": false; "isSignal": true; }; "componentLoader": { "alias": "componentLoader"; "required": false; "isSignal": true; }; "inputs": { "alias": "inputs"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
4046
|
-
}
|
|
4047
|
-
/** Resolve a registry component reference, preferring lazy loaders when provided. */
|
|
4048
|
-
declare function hasRegistryComponent(ref?: AXConversationRegistryComponentRef): boolean;
|
|
4097
|
+
/**
|
|
4098
|
+
* Registry Configuration Tokens
|
|
4099
|
+
* Injection tokens for configuring default registry values
|
|
4100
|
+
*/
|
|
4049
4101
|
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
private readonly popupService;
|
|
4091
|
-
private readonly translation;
|
|
4092
|
-
private readonly ngZone;
|
|
4093
|
-
private readonly cdr;
|
|
4094
|
-
/** Conversation selected event */
|
|
4095
|
-
readonly conversationSelected: _angular_core.OutputEmitterRef<AXConversation>;
|
|
4096
|
-
/** Search debouncing */
|
|
4097
|
-
private readonly searchSubject;
|
|
4098
|
-
/** Derived state for template */
|
|
4099
|
-
readonly enabledTabs: _angular_core.Signal<_acorex_components_conversation.AXConversationTab[]>;
|
|
4100
|
-
readonly filteredConversations: _angular_core.Signal<AXConversation[]>;
|
|
4101
|
-
readonly loading: _angular_core.Signal<boolean>;
|
|
4102
|
-
readonly loadingMore: _angular_core.WritableSignal<boolean>;
|
|
4103
|
-
readonly hasMoreConversations: _angular_core.Signal<boolean>;
|
|
4104
|
-
readonly isSidebarTabsHorizontal: _angular_core.Signal<boolean>;
|
|
4105
|
-
readonly sidebarTabLocation: _angular_core.Signal<AXTabLocation>;
|
|
4106
|
-
constructor();
|
|
4107
|
-
/** Handle search input change with debouncing */
|
|
4108
|
-
onSearchChange(value: string): void;
|
|
4109
|
-
/** Handle tab change from ax-tabs */
|
|
4110
|
-
onTabChange(event: {
|
|
4111
|
-
tab?: {
|
|
4112
|
-
key?: string;
|
|
4113
|
-
};
|
|
4114
|
-
}): void;
|
|
4115
|
-
/** Select a conversation */
|
|
4116
|
-
selectConversation(conversation: AXConversation): void;
|
|
4117
|
-
/** Get badge value for tab */
|
|
4118
|
-
getBadgeValue(tabId: string): string | undefined;
|
|
4119
|
-
getTabLabel(tabId: string): string;
|
|
4120
|
-
openNewConversationPopup(): Promise<void>;
|
|
4121
|
-
/** Handle infinite scroll threshold - delegate to service */
|
|
4122
|
-
onScrollThreshold(edge: 'top' | 'bottom'): Promise<void>;
|
|
4123
|
-
/** Cleanup on destroy */
|
|
4124
|
-
ngOnDestroy(): void;
|
|
4125
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationSidebarComponent, never>;
|
|
4126
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationSidebarComponent, "ax-conversation-sidebar", never, {}, { "conversationSelected": "conversationSelected"; }, never, ["ax-suffix"], true, never>;
|
|
4127
|
-
}
|
|
4128
|
-
|
|
4129
|
-
type AXConversationNewWizardStep = 'selectUsers' | 'groupDetails';
|
|
4130
|
-
declare class AXConversationNewDialogComponent extends AXBasePageComponent {
|
|
4131
|
-
/**
|
|
4132
|
-
* Assigned by {@link AXPopupComponent} from `open(..., { data: { conversationService } })`.
|
|
4133
|
-
* Not injected: popup content is created on the root view container, so route-scoped providers
|
|
4134
|
-
* would not see the same `AXConversationService` instance as the conversation feature.
|
|
4135
|
-
*/
|
|
4136
|
-
conversationService: AXConversationService;
|
|
4137
|
-
private readonly toastService;
|
|
4138
|
-
private readonly translation;
|
|
4139
|
-
private readonly config;
|
|
4140
|
-
private readonly destroyRef;
|
|
4141
|
-
private searchDebounceTimer?;
|
|
4142
|
-
constructor();
|
|
4102
|
+
/**
|
|
4103
|
+
* Additional message renderers configuration
|
|
4104
|
+
* Provide this token to add custom message renderers in addition to built-in ones
|
|
4105
|
+
* Note: Built-in renderers (text, system, fallback) are registered by default; other types are provided via plugins/constants.
|
|
4106
|
+
*/
|
|
4107
|
+
declare const AX_CONVERSATION_DEFAULT_MESSAGE_RENDERERS: InjectionToken<AXConversationMessageRenderer[]>;
|
|
4108
|
+
/**
|
|
4109
|
+
* Default message actions configuration
|
|
4110
|
+
* Provide this token to override default message actions
|
|
4111
|
+
*/
|
|
4112
|
+
declare const AX_CONVERSATION_DEFAULT_MESSAGE_ACTIONS: InjectionToken<AXConversationMessageAction[]>;
|
|
4113
|
+
/**
|
|
4114
|
+
* Default composer tabs configuration
|
|
4115
|
+
* Provide this token to override default composer tabs (emoji, stickers, etc.)
|
|
4116
|
+
*/
|
|
4117
|
+
declare const AX_CONVERSATION_DEFAULT_COMPOSER_TABS: InjectionToken<AXConversationComposerTab[]>;
|
|
4118
|
+
/**
|
|
4119
|
+
* Default composer actions configuration
|
|
4120
|
+
* Provide this token to override default composer actions (attach, voice, etc.)
|
|
4121
|
+
*/
|
|
4122
|
+
declare const AX_CONVERSATION_DEFAULT_COMPOSER_ACTIONS: InjectionToken<AXConversationComposerAction[]>;
|
|
4123
|
+
/**
|
|
4124
|
+
* Default conversation tabs configuration
|
|
4125
|
+
* Provide this token to override default conversation tabs (all, private, groups, etc.)
|
|
4126
|
+
*/
|
|
4127
|
+
declare const AX_CONVERSATION_DEFAULT_CONVERSATION_TABS: InjectionToken<AXConversationTab[]>;
|
|
4128
|
+
/**
|
|
4129
|
+
* Default info bar actions configuration
|
|
4130
|
+
* Provide this token to override default info bar actions (mute, archive, block, etc.)
|
|
4131
|
+
*/
|
|
4132
|
+
declare const AX_CONVERSATION_DEFAULT_INFO_BAR_ACTIONS: InjectionToken<AXConversationInfoBarAction[]>;
|
|
4133
|
+
/**
|
|
4134
|
+
* Default conversation item actions configuration
|
|
4135
|
+
* Provide this token to override default conversation item actions (mute, delete, archive, etc.)
|
|
4136
|
+
*/
|
|
4137
|
+
declare const AX_CONVERSATION_DEFAULT_CONVERSATION_ITEM_ACTIONS: InjectionToken<AXConversationItemAction[]>;
|
|
4138
|
+
/**
|
|
4139
|
+
* Registry configuration interface
|
|
4140
|
+
*/
|
|
4141
|
+
interface AXConversationRegistryConfiguration {
|
|
4143
4142
|
/**
|
|
4144
|
-
*
|
|
4145
|
-
*
|
|
4143
|
+
* Additional message renderers to register (built-in renderers are automatic).
|
|
4144
|
+
* Each {@link AXConversationMessageRenderer} may include optional `composerActions` for co-located send UX.
|
|
4146
4145
|
*/
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
/**
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
readonly showCreateButton: _angular_core.Signal<boolean>;
|
|
4161
|
-
readonly canGoNextToGroupDetails: _angular_core.Signal<boolean>;
|
|
4162
|
-
readonly canCreate: _angular_core.Signal<boolean>;
|
|
4163
|
-
private readonly _resetWizardWhenSingleEffect;
|
|
4164
|
-
private readonly _syncPopupTitleEffect;
|
|
4165
|
-
readonly usersListEmptyTpl: _angular_core.Signal<TemplateRef<unknown>>;
|
|
4166
|
-
readonly usersListLoadingTpl: _angular_core.Signal<TemplateRef<unknown>>;
|
|
4167
|
-
readonly usersList: _angular_core.Signal<AXListComponent>;
|
|
4168
|
-
readonly usersListDataSource: AXDataSource<unknown>;
|
|
4169
|
-
onCancel(): void;
|
|
4170
|
-
onSelectedUsersChange(ids: string[]): void;
|
|
4171
|
-
onNextToGroupDetails(): void;
|
|
4172
|
-
onBackFromGroupDetails(): void;
|
|
4173
|
-
onSearchChange(value: string): void;
|
|
4174
|
-
isUserSelected(id: string): boolean;
|
|
4175
|
-
userFromItem(item: unknown): AXConversationParticipant | null;
|
|
4176
|
-
private mergeUsersCache;
|
|
4177
|
-
onCreateConversation(): Promise<void>;
|
|
4178
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationNewDialogComponent, never>;
|
|
4179
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationNewDialogComponent, "ax-conversation-new-dialog", never, { "__popup__": { "alias": "__popup__"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
4146
|
+
messageRenderers?: AXConversationMessageRenderer[];
|
|
4147
|
+
/** Message actions to register by default */
|
|
4148
|
+
messageActions?: AXConversationMessageAction[];
|
|
4149
|
+
/** Composer tabs to register by default */
|
|
4150
|
+
composerTabs?: AXConversationComposerTab[];
|
|
4151
|
+
/** Composer actions to register by default */
|
|
4152
|
+
composerActions?: AXConversationComposerAction[];
|
|
4153
|
+
/** Conversation tabs to register by default */
|
|
4154
|
+
conversationTabs?: AXConversationTab[];
|
|
4155
|
+
/** Info bar actions to register by default */
|
|
4156
|
+
infoBarActions?: AXConversationInfoBarAction[];
|
|
4157
|
+
/** Conversation item actions to register by default */
|
|
4158
|
+
conversationItemActions?: AXConversationItemAction[];
|
|
4180
4159
|
}
|
|
4160
|
+
/**
|
|
4161
|
+
* Complete registry configuration token
|
|
4162
|
+
* Provide this for comprehensive registry configuration
|
|
4163
|
+
*/
|
|
4164
|
+
declare const AX_CONVERSATION_REGISTRY_CONFIG: InjectionToken<AXConversationRegistryConfiguration>;
|
|
4181
4165
|
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
readonly threshold: _angular_core.InputSignal<number>;
|
|
4187
|
-
/** Which edge to watch: 'top', 'bottom', or 'both' */
|
|
4188
|
-
readonly edge: _angular_core.InputSignal<"top" | "bottom" | "both">;
|
|
4189
|
-
/** When true, scroll events are ignored (e.g. while a page is loading). */
|
|
4190
|
-
readonly scrollDisabled: _angular_core.InputSignal<boolean>;
|
|
4191
|
-
/** Minimum time between emissions (ms) to avoid duplicate API calls. */
|
|
4192
|
-
readonly cooldownMs: _angular_core.InputSignal<number>;
|
|
4193
|
-
/** Event emitted when scrolling reaches the threshold */
|
|
4194
|
-
readonly scrollThreshold: _angular_core.OutputEmitterRef<"top" | "bottom">;
|
|
4195
|
-
private lastScrollTop;
|
|
4196
|
-
private ticking;
|
|
4197
|
-
private lastEmitAt;
|
|
4198
|
-
private pendingEmit;
|
|
4199
|
-
constructor();
|
|
4200
|
-
private setupScrollListener;
|
|
4201
|
-
private handleScroll;
|
|
4202
|
-
private emitThreshold;
|
|
4203
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationInfiniteScrollDirective, never>;
|
|
4204
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AXConversationInfiniteScrollDirective, "[axInfiniteScroll]", never, { "threshold": { "alias": "threshold"; "required": false; "isSignal": true; }; "edge": { "alias": "edge"; "required": false; "isSignal": true; }; "scrollDisabled": { "alias": "scrollDisabled"; "required": false; "isSignal": true; }; "cooldownMs": { "alias": "cooldownMs"; "required": false; "isSignal": true; }; }, { "scrollThreshold": "scrollThreshold"; }, never, never, true, never>;
|
|
4205
|
-
}
|
|
4166
|
+
/**
|
|
4167
|
+
* Validation Utilities
|
|
4168
|
+
* Centralized validation functions for messages and user input
|
|
4169
|
+
*/
|
|
4206
4170
|
|
|
4207
4171
|
/**
|
|
4208
|
-
*
|
|
4172
|
+
* Validation result interface
|
|
4209
4173
|
*/
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4174
|
+
interface AXConversationValidationResult {
|
|
4175
|
+
/** Whether validation passed */
|
|
4176
|
+
valid: boolean;
|
|
4177
|
+
/** Error message if validation failed */
|
|
4178
|
+
error?: string;
|
|
4179
|
+
/** Error code for programmatic handling */
|
|
4180
|
+
errorCode?: string;
|
|
4214
4181
|
}
|
|
4215
|
-
declare function resolveConversationComposerTabs(features?: AXConversationFeatures): readonly AXConversationComposerTabFeature[];
|
|
4216
|
-
declare function isComposerTabEnabled(tab: AXConversationComposerTabFeature, features?: AXConversationFeatures): boolean;
|
|
4217
|
-
|
|
4218
4182
|
/**
|
|
4219
|
-
*
|
|
4220
|
-
*
|
|
4183
|
+
* Validate message text content
|
|
4184
|
+
* @param text - Text to validate
|
|
4185
|
+
* @param config - Configuration for validation rules
|
|
4186
|
+
* @returns Validation result
|
|
4221
4187
|
*/
|
|
4188
|
+
declare function validateMessageText(text: string | undefined, config: AXConversationConfig): AXConversationValidationResult;
|
|
4222
4189
|
/**
|
|
4223
|
-
*
|
|
4224
|
-
*
|
|
4225
|
-
*
|
|
4190
|
+
* Validate conversation ID
|
|
4191
|
+
* @param conversationId - Conversation ID to validate
|
|
4192
|
+
* @returns Validation result
|
|
4226
4193
|
*/
|
|
4227
|
-
|
|
4194
|
+
declare function validateConversationId(conversationId: string | undefined): AXConversationValidationResult;
|
|
4228
4195
|
/**
|
|
4229
|
-
*
|
|
4196
|
+
* Validate message type
|
|
4197
|
+
* @param type - Message type to validate
|
|
4198
|
+
* @returns Validation result
|
|
4230
4199
|
*/
|
|
4231
|
-
|
|
4232
|
-
/** Number of messages to load per page */
|
|
4233
|
-
messagePageSize?: number;
|
|
4234
|
-
/** Number of conversations to load per page */
|
|
4235
|
-
conversationPageSize?: number;
|
|
4236
|
-
/** Scroll threshold for detecting scroll events */
|
|
4237
|
-
scrollThreshold?: number;
|
|
4238
|
-
/** Infinite scroll threshold */
|
|
4239
|
-
infiniteScrollThreshold?: number;
|
|
4240
|
-
/** Typing indicator timeout in milliseconds */
|
|
4241
|
-
typingIndicatorTimeout?: number;
|
|
4242
|
-
/** Typing indicator emit throttle in milliseconds while composing (default: 3000) */
|
|
4243
|
-
typingIndicatorThrottle?: number;
|
|
4244
|
-
/** How long to show received typing indicators in the UI (default: 4000) */
|
|
4245
|
-
typingDisplayDuration?: number;
|
|
4246
|
-
/** Message highlight duration in milliseconds */
|
|
4247
|
-
messageHighlightDuration?: number;
|
|
4248
|
-
/** Search debounce delay in milliseconds */
|
|
4249
|
-
debounceSearch?: number;
|
|
4250
|
-
/** Maximum messages per conversation */
|
|
4251
|
-
maxMessagesPerConversation?: number;
|
|
4252
|
-
/** Maximum total messages in store */
|
|
4253
|
-
maxTotalMessages?: number;
|
|
4254
|
-
/** Maximum cached conversations */
|
|
4255
|
-
maxCachedConversations?: number;
|
|
4256
|
-
/** Minimum sidebar width in pixels */
|
|
4257
|
-
minSidebarWidth?: number;
|
|
4258
|
-
/** Maximum sidebar width in pixels */
|
|
4259
|
-
maxSidebarWidth?: number;
|
|
4260
|
-
/** Default sidebar width in pixels */
|
|
4261
|
-
defaultSidebarWidth?: number;
|
|
4262
|
-
/**
|
|
4263
|
-
* Sidebar conversation tabs layout.
|
|
4264
|
-
* `vertical` places a horizontal tab strip above the list; `horizontal` places a vertical tab strip at inline-start beside the list.
|
|
4265
|
-
*/
|
|
4266
|
-
sidebarTabsOrientation?: AXConversationSidebarTabsOrientation;
|
|
4267
|
-
/** Maximum message length in characters */
|
|
4268
|
-
maxMessageLength?: number;
|
|
4269
|
-
/** Minimum message length in characters */
|
|
4270
|
-
minMessageLength?: number;
|
|
4271
|
-
/** Max attachments per message when a composer action omits `maxFiles`. */
|
|
4272
|
-
maxFilesPerMessage?: number;
|
|
4273
|
-
/** Threshold for marking messages as read (0.0 to 1.0, default: 0.3) */
|
|
4274
|
-
messageReadThreshold?: number;
|
|
4275
|
-
/** Debounce window (ms) before flushing batched read-receipt API calls (default: 3000) */
|
|
4276
|
-
messageReadDebounce?: number;
|
|
4277
|
-
/**
|
|
4278
|
-
* When true, marks the whole conversation as read once when it is selected (single API call).
|
|
4279
|
-
* Per-message intersection observer still handles new messages received while the chat is open.
|
|
4280
|
-
*/
|
|
4281
|
-
markConversationReadOnSelect?: boolean;
|
|
4282
|
-
/**
|
|
4283
|
-
* CSS `background` for the message list (`ax-conversation-message-list` area, all states: loading, empty, messages).
|
|
4284
|
-
* Use full shorthand, or a bare `https://...` / `/path/to.png` (wrapped as `url(...)` with `center/cover`).
|
|
4285
|
-
* Pass a string for the same value in both themes, or `{ light, dark }` for theme-specific backgrounds.
|
|
4286
|
-
* Empty string = Telegram-inspired theme-aware library default (`{ light, dark }`). `transparent` or `none` = flat background.
|
|
4287
|
-
*/
|
|
4288
|
-
messageListBackground?: AXConversationMessageListBackground;
|
|
4289
|
-
/** Optional feature flags to reduce bundle size per app. */
|
|
4290
|
-
features?: AXConversationFeatures;
|
|
4291
|
-
/** Log API calls made by AXConversationService to the console (default: false). */
|
|
4292
|
-
debugApiLogging?: boolean;
|
|
4293
|
-
}
|
|
4294
|
-
|
|
4295
|
-
/**
|
|
4296
|
-
* Default Configuration Values
|
|
4297
|
-
* Centralized defaults to avoid magic numbers throughout the codebase
|
|
4298
|
-
*/
|
|
4299
|
-
|
|
4300
|
-
/**
|
|
4301
|
-
* Default conversation configuration
|
|
4302
|
-
* All values are explicitly defined here for easy maintenance and documentation
|
|
4303
|
-
*/
|
|
4304
|
-
declare const AX_DEFAULT_CONVERSATION_CONFIG: Required<AXConversationConfig>;
|
|
4305
|
-
/**
|
|
4306
|
-
* Helper function to merge user config with defaults
|
|
4307
|
-
* Properly handles array merging to avoid reference issues
|
|
4308
|
-
* @param userConfig - User-provided configuration
|
|
4309
|
-
* @returns Merged configuration with all required fields
|
|
4310
|
-
*/
|
|
4311
|
-
declare function mergeWithDefaults(userConfig?: Partial<AXConversationConfig>): Required<AXConversationConfig>;
|
|
4312
|
-
|
|
4313
|
-
/**
|
|
4314
|
-
* Dependency Injection Tokens
|
|
4315
|
-
* InjectionTokens for configuration and dependencies
|
|
4316
|
-
*/
|
|
4317
|
-
|
|
4318
|
-
/**
|
|
4319
|
-
* Configuration token for conversation component
|
|
4320
|
-
* Uses centralized defaults from AX_DEFAULT_CONVERSATION_CONFIG
|
|
4321
|
-
*/
|
|
4322
|
-
declare const AX_CONVERSATION_CONFIG: InjectionToken<Required<AXConversationConfig>>;
|
|
4323
|
-
/**
|
|
4324
|
-
* Token for configuring AXConversationErrorHandlerService
|
|
4325
|
-
*/
|
|
4326
|
-
declare const AX_CONVERSATION_ERROR_HANDLER_CONFIG: InjectionToken<Partial<AXConversationErrorHandlerConfig>>;
|
|
4327
|
-
|
|
4328
|
-
/**
|
|
4329
|
-
* Registry Configuration Tokens
|
|
4330
|
-
* Injection tokens for configuring default registry values
|
|
4331
|
-
*/
|
|
4332
|
-
|
|
4333
|
-
/**
|
|
4334
|
-
* Additional message renderers configuration
|
|
4335
|
-
* Provide this token to add custom message renderers in addition to built-in ones
|
|
4336
|
-
* Note: Built-in renderers (text, system, fallback) are registered by default; other types are provided via plugins/constants.
|
|
4337
|
-
*/
|
|
4338
|
-
declare const AX_CONVERSATION_DEFAULT_MESSAGE_RENDERERS: InjectionToken<AXConversationMessageRenderer[]>;
|
|
4200
|
+
declare function validateMessageType(type: AXConversationMessageType | undefined): AXConversationValidationResult;
|
|
4339
4201
|
/**
|
|
4340
|
-
*
|
|
4341
|
-
*
|
|
4202
|
+
* Validate message payload
|
|
4203
|
+
* @param payload - Message payload to validate
|
|
4204
|
+
* @param type - Message type
|
|
4205
|
+
* @returns Validation result
|
|
4342
4206
|
*/
|
|
4343
|
-
declare
|
|
4207
|
+
declare function validateMessagePayload(payload: AXConversationMessagePayload | undefined, type: AXConversationMessageType): Promise<AXConversationValidationResult>;
|
|
4344
4208
|
/**
|
|
4345
|
-
*
|
|
4346
|
-
*
|
|
4209
|
+
* Validate user ID
|
|
4210
|
+
* @param userId - User ID to validate
|
|
4211
|
+
* @returns Validation result
|
|
4347
4212
|
*/
|
|
4348
|
-
declare
|
|
4213
|
+
declare function validateUserId(userId: string | undefined): AXConversationValidationResult;
|
|
4349
4214
|
/**
|
|
4350
|
-
*
|
|
4351
|
-
*
|
|
4215
|
+
* Validate array of user IDs
|
|
4216
|
+
* @param userIds - Array of user IDs to validate
|
|
4217
|
+
* @param minCount - Minimum number of users required
|
|
4218
|
+
* @param maxCount - Maximum number of users allowed
|
|
4219
|
+
* @returns Validation result
|
|
4352
4220
|
*/
|
|
4353
|
-
declare
|
|
4221
|
+
declare function validateUserIds(userIds: string[] | undefined, minCount?: number, maxCount?: number): AXConversationValidationResult;
|
|
4354
4222
|
/**
|
|
4355
|
-
*
|
|
4356
|
-
*
|
|
4223
|
+
* Validate email address
|
|
4224
|
+
* @param email - Email to validate
|
|
4225
|
+
* @returns Validation result
|
|
4357
4226
|
*/
|
|
4358
|
-
declare
|
|
4227
|
+
declare function validateEmail(email: string | undefined): AXConversationValidationResult;
|
|
4359
4228
|
/**
|
|
4360
|
-
*
|
|
4361
|
-
*
|
|
4229
|
+
* Validate URL
|
|
4230
|
+
* @param url - URL to validate
|
|
4231
|
+
* @returns Validation result
|
|
4362
4232
|
*/
|
|
4363
|
-
declare
|
|
4233
|
+
declare function validateUrl(url: string | undefined): AXConversationValidationResult;
|
|
4364
4234
|
/**
|
|
4365
|
-
*
|
|
4366
|
-
*
|
|
4235
|
+
* Sanitize user input to prevent XSS
|
|
4236
|
+
* Note: Angular provides built-in sanitization, but this is an additional layer
|
|
4237
|
+
* @param input - User input to sanitize
|
|
4238
|
+
* @returns Sanitized input
|
|
4367
4239
|
*/
|
|
4368
|
-
declare
|
|
4240
|
+
declare function sanitizeInput(input: string): string;
|
|
4369
4241
|
/**
|
|
4370
|
-
*
|
|
4242
|
+
* Validate latitude coordinate
|
|
4243
|
+
* @param latitude - Latitude to validate
|
|
4244
|
+
* @returns Validation result
|
|
4371
4245
|
*/
|
|
4372
|
-
|
|
4373
|
-
/**
|
|
4374
|
-
* Additional message renderers to register (built-in renderers are automatic).
|
|
4375
|
-
* Each {@link AXConversationMessageRenderer} may include optional `composerActions` for co-located send UX.
|
|
4376
|
-
*/
|
|
4377
|
-
messageRenderers?: AXConversationMessageRenderer[];
|
|
4378
|
-
/** Message actions to register by default */
|
|
4379
|
-
messageActions?: AXConversationMessageAction[];
|
|
4380
|
-
/** Composer tabs to register by default */
|
|
4381
|
-
composerTabs?: AXConversationComposerTab[];
|
|
4382
|
-
/** Composer actions to register by default */
|
|
4383
|
-
composerActions?: AXConversationComposerAction[];
|
|
4384
|
-
/** Conversation tabs to register by default */
|
|
4385
|
-
conversationTabs?: AXConversationTab[];
|
|
4386
|
-
/** Info bar actions to register by default */
|
|
4387
|
-
infoBarActions?: AXConversationInfoBarAction[];
|
|
4388
|
-
/** Conversation item actions to register by default */
|
|
4389
|
-
conversationItemActions?: AXConversationItemAction[];
|
|
4390
|
-
}
|
|
4246
|
+
declare function validateLatitude(latitude: number | undefined | null): AXConversationValidationResult;
|
|
4391
4247
|
/**
|
|
4392
|
-
*
|
|
4393
|
-
*
|
|
4248
|
+
* Validate longitude coordinate
|
|
4249
|
+
* @param longitude - Longitude to validate
|
|
4250
|
+
* @returns Validation result
|
|
4394
4251
|
*/
|
|
4395
|
-
declare
|
|
4396
|
-
|
|
4397
|
-
declare const AX_CONVERSATION_AUDIO_PRESENTATION: {
|
|
4398
|
-
readonly icon: "fa-light fa-music text-amber-500";
|
|
4399
|
-
readonly title: "Audio";
|
|
4400
|
-
};
|
|
4401
|
-
declare function conversationAudioUtilities(): NonNullable<AXFileType['utilities']>;
|
|
4402
|
-
declare function createConversationAudioFileType(): AXFileType;
|
|
4403
|
-
declare class AXConversationAudioFileTypeProvider extends AXFileTypeInfoProvider {
|
|
4404
|
-
items(): Promise<AXFileType<{
|
|
4405
|
-
[x: string]: (ctx: _acorex_core_file.AXFileTypeContext, ...args: unknown[]) => Promise<unknown> | unknown;
|
|
4406
|
-
}>[]>;
|
|
4407
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationAudioFileTypeProvider, never>;
|
|
4408
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXConversationAudioFileTypeProvider>;
|
|
4409
|
-
}
|
|
4410
|
-
|
|
4411
|
-
declare function audioItemFromUpload(file: File, result: AXConversationUploaderResult, duration: number): AXConversationAudioMediaItem;
|
|
4412
|
-
declare function mergeAudioUploadResult(payload: AXConversationMessagePayload, result: AXUploadResult): AXConversationMessagePayload;
|
|
4413
|
-
declare function applyAudioLocalPreview(payload: AXConversationMessagePayload, localUrl: string, mimeType?: string): AXConversationMessagePayload;
|
|
4252
|
+
declare function validateLongitude(longitude: number | undefined | null): AXConversationValidationResult;
|
|
4414
4253
|
|
|
4415
|
-
/**
|
|
4416
|
-
|
|
4417
|
-
*/
|
|
4254
|
+
/** Infer extension/MIME hints from a persisted message payload. */
|
|
4255
|
+
declare function inferFileExtensionHintFromMessage(message: AXConversationMessage): AXFileTypeExtensionHint;
|
|
4256
|
+
/** Use file-type `copy` on the message when `message.fileType` is set; otherwise fallback. */
|
|
4257
|
+
declare function copyWithFileTypeFallback(message: AXConversationMessage, registry: AXFileTypeRegistryService, fallback: () => string): Promise<string>;
|
|
4258
|
+
/** Use file-type `open` on the message when `message.fileType` is set. */
|
|
4259
|
+
declare function openWithFileType(message: AXConversationMessage, registry: AXFileTypeRegistryService, ctx: AXFileTypeOpenContext): Promise<boolean>;
|
|
4418
4260
|
|
|
4419
|
-
|
|
4420
|
-
declare function createPickerUploadItemId(): string;
|
|
4421
|
-
interface AXConversationComposerPickerUploadItem {
|
|
4261
|
+
interface AXConversationInfoProfileField {
|
|
4422
4262
|
id: string;
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
uploadProgress?: number;
|
|
4427
|
-
uploading?: boolean;
|
|
4428
|
-
uploaded?: boolean;
|
|
4429
|
-
uploadedUrl?: string;
|
|
4430
|
-
mediaId?: string;
|
|
4431
|
-
error?: string;
|
|
4432
|
-
abortController?: AbortController;
|
|
4263
|
+
labelKey: string;
|
|
4264
|
+
value: string;
|
|
4265
|
+
icon: string;
|
|
4433
4266
|
}
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4267
|
+
type AXConversationMediaCategoryId = 'image' | 'video' | 'file' | 'audio' | 'voice' | 'sticker' | 'location' | 'link';
|
|
4268
|
+
interface AXConversationMediaCategory {
|
|
4269
|
+
id: AXConversationMediaCategoryId;
|
|
4270
|
+
labelKey: string;
|
|
4271
|
+
countLabelKey: string;
|
|
4272
|
+
icon: string;
|
|
4273
|
+
count: number;
|
|
4440
4274
|
}
|
|
4441
|
-
|
|
4442
|
-
declare function
|
|
4443
|
-
|
|
4444
|
-
declare function
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
declare function
|
|
4458
|
-
declare function
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4275
|
+
declare function messageContainsLink(message: AXConversationMessage): boolean;
|
|
4276
|
+
declare function getPrivatePeerParticipant(conversation: AXConversation, currentUserId?: string): AXConversationParticipant | undefined;
|
|
4277
|
+
declare function getConversationProfileFields(conversation: AXConversation, currentUserId?: string): AXConversationInfoProfileField[];
|
|
4278
|
+
declare function getConversationMediaCategories(messages: AXConversationMessage[]): AXConversationMediaCategory[];
|
|
4279
|
+
declare function filterMessagesByMediaCategory(messages: AXConversationMessage[], categoryId: AXConversationMediaCategoryId): AXConversationMessage[];
|
|
4280
|
+
declare function isGridMediaCategory(categoryId: AXConversationMediaCategoryId): boolean;
|
|
4281
|
+
declare function isAttachmentListCategory(categoryId: AXConversationMediaCategoryId): boolean;
|
|
4282
|
+
interface AXConversationMediaGalleryTile {
|
|
4283
|
+
key: string;
|
|
4284
|
+
message: AXConversationMessage;
|
|
4285
|
+
kind: 'image' | 'video' | 'sticker';
|
|
4286
|
+
image?: AXConversationImageMediaItem;
|
|
4287
|
+
video?: AXConversationVideoMediaItem;
|
|
4288
|
+
stickerUrl?: string;
|
|
4289
|
+
stickerAlt?: string;
|
|
4290
|
+
}
|
|
4291
|
+
declare function buildMediaGalleryTiles(messages: AXConversationMessage[], categoryId: AXConversationMediaCategoryId): AXConversationMediaGalleryTile[];
|
|
4292
|
+
declare function resolveVideoThumbnailUrl(video: AXConversationVideoMediaItem): string | undefined;
|
|
4293
|
+
declare function resolveGalleryImageUrl(image: AXConversationImageMediaItem): string | undefined;
|
|
4294
|
+
declare function getMessageVideoItems(message: AXConversationMessage): AXConversationVideoMediaItem[];
|
|
4295
|
+
declare function getMessageAudioItems(message: AXConversationMessage): AXConversationAudioMediaItem[];
|
|
4296
|
+
interface AXConversationMediaPageResult {
|
|
4297
|
+
items: AXConversationMessage[];
|
|
4298
|
+
hasMore: boolean;
|
|
4299
|
+
nextCursor?: string;
|
|
4300
|
+
page: number;
|
|
4301
|
+
}
|
|
4302
|
+
declare function fetchConversationMediaPage(conversationApi: AXConversationApi, conversationId: string, page: number, pageSize?: number, cursor?: string): Promise<AXConversationMediaPageResult>;
|
|
4303
|
+
/** Merge media API results with in-memory messages needed for link/sticker/voice/location tabs. */
|
|
4304
|
+
declare function mergeInfoPanelMessages(mediaMessages: AXConversationMessage[], supplemental: AXConversationMessage[]): AXConversationMessage[];
|
|
4305
|
+
declare function filterSupplementalInfoPanelMessages(messages: AXConversationMessage[]): AXConversationMessage[];
|
|
4306
|
+
|
|
4307
|
+
interface AXConversationMessageDateGroup {
|
|
4308
|
+
date: string;
|
|
4309
|
+
dateKind: AXConversationDateSeparatorKind;
|
|
4310
|
+
dateLabel?: string;
|
|
4311
|
+
messages: AXConversationMessage[];
|
|
4312
|
+
}
|
|
4313
|
+
declare class AXConversationMessageListService {
|
|
4314
|
+
private readonly conversationService;
|
|
4315
|
+
private readonly translation;
|
|
4316
|
+
private readonly eventService;
|
|
4317
|
+
private readonly activeLocale;
|
|
4318
|
+
private readonly translationRevision;
|
|
4319
|
+
private get registry();
|
|
4320
|
+
readonly activeConversation: _angular_core.Signal<_acorex_components_conversation.AXConversation>;
|
|
4321
|
+
readonly activeMessages: _angular_core.Signal<AXConversationMessage[]>;
|
|
4322
|
+
readonly currentUser: _angular_core.Signal<_acorex_components_conversation.AXConversationUser>;
|
|
4323
|
+
/** Initial message history load (conversation switch) */
|
|
4324
|
+
readonly loading: _angular_core.Signal<boolean>;
|
|
4325
|
+
/** Loading older messages (scroll-up pagination) */
|
|
4326
|
+
readonly loadingMore: _angular_core.WritableSignal<boolean>;
|
|
4327
|
+
/** Whether older messages can be loaded */
|
|
4328
|
+
readonly hasMoreMessages: _angular_core.Signal<boolean>;
|
|
4329
|
+
/** Show scroll to bottom button */
|
|
4330
|
+
readonly showScrollButton: _angular_core.WritableSignal<boolean>;
|
|
4331
|
+
/** Scroll requests counter */
|
|
4332
|
+
readonly scrollRequests: _angular_core.WritableSignal<number>;
|
|
4333
|
+
/** Live renderer instances keyed by message id (for message actions). */
|
|
4334
|
+
private readonly _rendererInstances;
|
|
4335
|
+
/**
|
|
4336
|
+
* Reply counts merged from API fields and loaded messages.
|
|
4337
|
+
*/
|
|
4338
|
+
readonly replyCounts: _angular_core.Signal<Map<string, number>>;
|
|
4339
|
+
/**
|
|
4340
|
+
* Forward counts merged from API fields and loaded messages.
|
|
4341
|
+
*/
|
|
4342
|
+
readonly forwardCounts: _angular_core.Signal<Map<string, number>>;
|
|
4343
|
+
registerRendererInstance(messageId: string, instance: AXConversationMessageRendererComponent): void;
|
|
4344
|
+
unregisterRendererInstance(messageId: string): void;
|
|
4345
|
+
getRendererInstance(messageId: string): AXConversationMessageRendererComponent | undefined;
|
|
4346
|
+
getReplyCount(messageId: string): number;
|
|
4347
|
+
getForwardCount(messageId: string): number;
|
|
4348
|
+
/** Message grouped by date */
|
|
4349
|
+
readonly messageGroups: _angular_core.Signal<AXConversationMessageDateGroup[]>;
|
|
4350
|
+
/**
|
|
4351
|
+
* Load older messages when the user scrolls near the top.
|
|
4352
|
+
*/
|
|
4353
|
+
loadMoreMessages(): Promise<boolean>;
|
|
4354
|
+
/**
|
|
4355
|
+
* Reset pagination when switching conversations (page 0 is loaded by {@link AXConversationService.selectConversation}).
|
|
4356
|
+
*/
|
|
4357
|
+
resetPagination(): void;
|
|
4358
|
+
getMenuActions(message: AXConversationMessage): _acorex_components_conversation.AXConversationMessageAction[];
|
|
4359
|
+
executeAction(message: AXConversationMessage, actionId: string): Promise<void>;
|
|
4360
|
+
reactToMessage(messageId: string, emoji: string): Promise<void>;
|
|
4361
|
+
/** Request message list to scroll to bottom */
|
|
4362
|
+
requestScrollToBottom(): void;
|
|
4363
|
+
private buildCountMap;
|
|
4364
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationMessageListService, never>;
|
|
4365
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
4366
|
+
}
|
|
4367
|
+
|
|
4368
|
+
declare class AXConversationMessageListComponent implements OnDestroy {
|
|
4369
|
+
private readonly conversationService;
|
|
4370
|
+
private readonly messageListService;
|
|
4371
|
+
private readonly composerService;
|
|
4372
|
+
private readonly fileService;
|
|
4373
|
+
private readonly toast;
|
|
4374
|
+
private readonly infoBarService;
|
|
4375
|
+
protected readonly translation: AXTranslationService;
|
|
4376
|
+
private readonly document;
|
|
4377
|
+
private readonly platform;
|
|
4378
|
+
private readonly actionSheetService;
|
|
4379
|
+
private readonly ngZone;
|
|
4380
|
+
private readonly cdr;
|
|
4381
|
+
protected readonly config: Required<_acorex_components_conversation.AXConversationConfig>;
|
|
4382
|
+
/**
|
|
4383
|
+
* Background for the message list scroll area from config, or the built-in soft wash when unset/empty.
|
|
4384
|
+
* Set `messageListBackground` to `transparent` or `none` for a flat look.
|
|
4385
|
+
* Supports `{ light, dark }` for theme-specific backgrounds.
|
|
4386
|
+
*/
|
|
4387
|
+
readonly messageListUsesDefaultWallpaper: _angular_core.Signal<boolean>;
|
|
4388
|
+
readonly messageListWallpaperDark: _angular_core.Signal<boolean>;
|
|
4389
|
+
readonly messageListBackgroundStyle: _angular_core.Signal<string>;
|
|
4390
|
+
resolvedEmptyStateComponent(): Type<AXConversationMessageListEmptyComponent>;
|
|
4391
|
+
/** Fallback when no conversation is active and no `ax-conversation-message-list-no-active` content is projected. */
|
|
4392
|
+
protected readonly noActiveFallbackComponent: typeof AXConversationMessageListNoActiveDefaultComponent;
|
|
4393
|
+
private readonly timeouts;
|
|
4394
|
+
private dateSeparatorFadeTimer;
|
|
4395
|
+
readonly reactionPickerTarget: _angular_core.WritableSignal<string>;
|
|
4396
|
+
readonly reactionPickerElement: _angular_core.WritableSignal<HTMLElement>;
|
|
4397
|
+
readonly reactionPickerPlacement: _angular_core.WritableSignal<AXPlacement>;
|
|
4398
|
+
readonly reactionPopover: _angular_core.Signal<any>;
|
|
4399
|
+
/** Message id whose context menu is open (for active row styling). */
|
|
4400
|
+
readonly contextMenuMessageId: _angular_core.WritableSignal<string>;
|
|
4401
|
+
private readonly contextMenuMessage;
|
|
4402
|
+
private readonly messageActionsMenu;
|
|
4403
|
+
/** True while files are dragged over the message list drop zone. */
|
|
4404
|
+
readonly messageListDragging: _angular_core.WritableSignal<boolean>;
|
|
4405
|
+
/** True when the message list uses single-column adaptive layout (matches CSS container query). */
|
|
4406
|
+
readonly isAdaptiveWideLayout: _angular_core.WritableSignal<boolean>;
|
|
4407
|
+
/** While true, older history is being prepended — do not auto-scroll to the latest message. */
|
|
4408
|
+
private restoringScrollAfterPrepend;
|
|
4409
|
+
/**
|
|
4410
|
+
* Stick to the latest message across layout shifts (media decode, lazy outlets).
|
|
4411
|
+
* Cleared as soon as the user scrolls up — even within `scrollThreshold` —
|
|
4412
|
+
* otherwise ResizeObserver keeps yanking the feed back to the bottom.
|
|
4413
|
+
*/
|
|
4414
|
+
private pinnedToBottom;
|
|
4415
|
+
/**
|
|
4416
|
+
* True while we assign `scrollTop`. Kept until the following animation frame
|
|
4417
|
+
* because some browsers dispatch `scroll` asynchronously after `scrollTop` writes.
|
|
4418
|
+
*/
|
|
4419
|
+
private programmaticScroll;
|
|
4420
|
+
private programmaticScrollGen;
|
|
4421
|
+
private adaptiveLayoutResizeObserver?;
|
|
4422
|
+
private documentClickListener?;
|
|
4423
|
+
readonly availableReactions: _angular_core.WritableSignal<string[]>;
|
|
4424
|
+
private reactionsLoading;
|
|
4425
|
+
private get registry();
|
|
4426
|
+
/** Message list element reference */
|
|
4427
|
+
private readonly messageListRef;
|
|
4428
|
+
/** Messages container element reference */
|
|
4429
|
+
private readonly messagesContainerRef;
|
|
4430
|
+
/** Loading state - use service */
|
|
4431
|
+
readonly loading: _angular_core.Signal<boolean>;
|
|
4432
|
+
/** Loading more messages state - use service */
|
|
4433
|
+
readonly loadingMore: _angular_core.WritableSignal<boolean>;
|
|
4434
|
+
/** Whether older messages remain on the server */
|
|
4435
|
+
readonly hasMoreMessages: _angular_core.Signal<boolean>;
|
|
4436
|
+
/** Show scroll to bottom button - use service */
|
|
4437
|
+
readonly showScrollButton: _angular_core.WritableSignal<boolean>;
|
|
4438
|
+
/** Active conversation */
|
|
4439
|
+
readonly activeConversation: _angular_core.Signal<_acorex_components_conversation.AXConversation>;
|
|
4440
|
+
readonly isGroupConversation: _angular_core.Signal<boolean>;
|
|
4441
|
+
/** Placeholder rows for the initial message list skeleton. */
|
|
4442
|
+
protected readonly loadingSkeletonItems: readonly [0, 1, 2, 3, 4, 5, 6, 7];
|
|
4443
|
+
/**
|
|
4444
|
+
* Conversation whose feed has already been pinned to the latest message.
|
|
4445
|
+
* Compared with the active id in `feedReady` so a chat switch hides the list
|
|
4446
|
+
* in the same render — before the effect that pins the new history.
|
|
4447
|
+
*/
|
|
4448
|
+
private readonly pinnedConversationId;
|
|
4449
|
+
private feedRevealGeneration;
|
|
4450
|
+
private feedRevealRaf;
|
|
4451
|
+
/** False until this conversation is pinned to the bottom (never shows history from the top). */
|
|
4452
|
+
readonly feedReady: _angular_core.Signal<boolean>;
|
|
4453
|
+
/**
|
|
4454
|
+
* Keep the skeleton up until the feed is pinned. The real list stays
|
|
4455
|
+
* `visibility: hidden` underneath so bubbles never show through the cover.
|
|
4456
|
+
*/
|
|
4457
|
+
readonly showOpenCover: _angular_core.Signal<boolean>;
|
|
4458
|
+
/** Whether the active conversation allows message reactions. */
|
|
4459
|
+
readonly reactionsEnabled: _angular_core.Signal<boolean>;
|
|
4460
|
+
/** Messages */
|
|
4461
|
+
readonly messages: _angular_core.Signal<AXConversationMessage[]>;
|
|
4462
|
+
/** Messages keyed by id for O(1) lookups during intersection callbacks. */
|
|
4463
|
+
private readonly messagesById;
|
|
4464
|
+
/** Message action event */
|
|
4465
|
+
readonly messageAction: _angular_core.OutputEmitterRef<{
|
|
4466
|
+
message: AXConversationMessage;
|
|
4467
|
+
action: string;
|
|
4468
|
+
}>;
|
|
4469
|
+
/** Current user from service */
|
|
4470
|
+
readonly currentUser: _angular_core.Signal<_acorex_components_conversation.AXConversationUser>;
|
|
4471
|
+
/** Message grouped by date - use service */
|
|
4472
|
+
readonly messageGroups: _angular_core.Signal<AXConversationMessageDateGroup[]>;
|
|
4473
|
+
constructor();
|
|
4474
|
+
private intersectionObserver?;
|
|
4475
|
+
private readonly readIntersectionObserver;
|
|
4476
|
+
private readonly observedReadMessageIds;
|
|
4477
|
+
/**
|
|
4478
|
+
* Setup intersection observer to mark messages as read when visible
|
|
4479
|
+
*/
|
|
4480
|
+
private setupIntersectionObserver;
|
|
4481
|
+
/**
|
|
4482
|
+
* Keep the viewport stable when layout changes.
|
|
4483
|
+
* ResizeObserver runs after layout and before paint — apply scrollTop in the
|
|
4484
|
+
* callback (not rAF) so the browser never paints a jump.
|
|
4485
|
+
*
|
|
4486
|
+
* Near the bottom, pin to the latest message (media decode, lazy outlets).
|
|
4487
|
+
* Further up, only compensate rows that grew fully above the viewport.
|
|
4488
|
+
*/
|
|
4489
|
+
private setupMediaScrollCompensation;
|
|
4490
|
+
/**
|
|
4491
|
+
* Mark message as read
|
|
4492
|
+
*/
|
|
4493
|
+
private markMessageAsRead;
|
|
4494
|
+
/** Check if message is from current user */
|
|
4495
|
+
isOwnMessage(message: AXConversationMessage): boolean;
|
|
4496
|
+
/** Get first unread message ID */
|
|
4497
|
+
readonly firstUnreadMessageId: _angular_core.Signal<string>;
|
|
4498
|
+
/** Whether reactions can be shown or added for a message in the active conversation. */
|
|
4499
|
+
messageSupportsReactions(message: AXConversationMessage): boolean;
|
|
4500
|
+
/** Toggle reaction picker */
|
|
4501
|
+
toggleReactionPicker(message: AXConversationMessage, event: MouseEvent): void;
|
|
4502
|
+
/** Close reaction picker */
|
|
4503
|
+
closeReactionPicker(): void;
|
|
4504
|
+
/** Check if current user has reacted with specific emoji */
|
|
4505
|
+
hasUserReacted(message: AXConversationMessage, emoji: string): boolean;
|
|
4506
|
+
/** Check if current user has reacted with specific emoji by message ID */
|
|
4507
|
+
hasUserReactedById(messageId: string, emoji: string): boolean;
|
|
4508
|
+
/** Handle reaction click by message ID */
|
|
4509
|
+
onReactionClickById(messageId: string, emoji: string): void;
|
|
4510
|
+
/** Get message by ID */
|
|
4511
|
+
getMessageById(messageId: string): AXConversationMessage | undefined;
|
|
4512
|
+
/** Load available reactions when the picker is opened (session-cached in service). */
|
|
4513
|
+
private ensureAvailableReactions;
|
|
4514
|
+
/** Get message actions from registry */
|
|
4515
|
+
getMessageActions(message: AXConversationMessage): _acorex_components_conversation.AXConversationMessageAction[];
|
|
4516
|
+
/** Handle reaction click */
|
|
4517
|
+
onReactionClick(message: AXConversationMessage, emoji: string): void;
|
|
4518
|
+
/** Handle message action */
|
|
4519
|
+
onMessageAction(message: AXConversationMessage, action: any): Promise<void>;
|
|
4520
|
+
/** Handle infinite scroll threshold */
|
|
4521
|
+
onScrollThreshold(edge: 'top' | 'bottom'): Promise<void>;
|
|
4522
|
+
/** Load older messages - delegate to service and preserve scroll anchor */
|
|
4523
|
+
private loadOlderMessages;
|
|
4524
|
+
/**
|
|
4525
|
+
* Keep the user's viewport on the same messages after older rows are inserted above.
|
|
4526
|
+
*/
|
|
4527
|
+
private applyPrependScrollRestore;
|
|
4528
|
+
private revealStuckDateSeparators;
|
|
4529
|
+
private syncDateSeparatorStuckState;
|
|
4530
|
+
private scheduleDateSeparatorFade;
|
|
4531
|
+
private clearDateSeparatorFadeTimer;
|
|
4532
|
+
/** Distance from the last pixel of the feed. */
|
|
4533
|
+
private distanceFromBottom;
|
|
4534
|
+
/** True when the viewport is at the latest message (not merely within `scrollThreshold`). */
|
|
4535
|
+
private isStuckToBottom;
|
|
4536
|
+
/**
|
|
4537
|
+
* Assign scrollTop without the listener treating it as a user scroll.
|
|
4538
|
+
* The flag stays set until the next frame so async `scroll` events are ignored.
|
|
4539
|
+
*/
|
|
4540
|
+
private writeScrollTop;
|
|
4541
|
+
/** Pin the feed to the latest message before the next paint. */
|
|
4542
|
+
private pinFeedToBottom;
|
|
4543
|
+
/** Hide the feed and pin to the latest message before the first visible paint. */
|
|
4544
|
+
private beginFeedReveal;
|
|
4545
|
+
private cancelFeedReveal;
|
|
4546
|
+
/**
|
|
4547
|
+
* Pin to the latest message, then reveal. Two frames is enough — stick-to-bottom
|
|
4548
|
+
* holds later media growth. Waiting for loaders here left a blank gap after the skeleton.
|
|
4549
|
+
*/
|
|
4550
|
+
private scheduleFeedPin;
|
|
4551
|
+
/** Start nearby lazy images so they decode while stick-to-bottom holds the viewport. */
|
|
4552
|
+
private primeOpenViewportMedia;
|
|
4553
|
+
/** Scroll to bottom */
|
|
4554
|
+
scrollToBottom(smooth?: boolean): void;
|
|
4555
|
+
/** Scroll to specific message */
|
|
4556
|
+
scrollToMessage(messageId: string): void;
|
|
4557
|
+
/** Cleanup timeouts and observers on destroy */
|
|
4558
|
+
ngOnDestroy(): void;
|
|
4559
|
+
/** Get ARIA label for a date separator. */
|
|
4560
|
+
getDateSeparatorAriaLabel(group: AXConversationMessageDateGroup): string;
|
|
4561
|
+
resolveDateSeparatorLabel(group: AXConversationMessageDateGroup): string;
|
|
4562
|
+
onMessageListDragEnter(): void;
|
|
4563
|
+
onMessageListDragLeave(): void;
|
|
4564
|
+
/** Open the matching composer picker popup when files are dropped on the message list. */
|
|
4565
|
+
onMessageListFilesDropped(event: AXUploaderFileChangeEvent): Promise<void>;
|
|
4566
|
+
private composerPickerDeps;
|
|
4567
|
+
/**
|
|
4568
|
+
* Open the shared message-actions menu from a single delegated listener.
|
|
4569
|
+
* Per-row `ax-context-menu` instances each register capture-phase scroll listeners
|
|
4570
|
+
* and were the main source of scroll jank.
|
|
4571
|
+
*/
|
|
4572
|
+
onMessagesFeedContextMenu(event: MouseEvent): void;
|
|
4573
|
+
onMessageContextMenuClose(): void;
|
|
4574
|
+
/** Handle context menu opening for messages */
|
|
4575
|
+
handleMessageContextMenuOpening(event: AXContextMenuOpeningEvent): void;
|
|
4576
|
+
/** Handle context menu item click for messages */
|
|
4577
|
+
handleMessageContextMenuItemClick(event: AXContextMenuItemsClickEvent): void;
|
|
4578
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationMessageListComponent, never>;
|
|
4579
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationMessageListComponent, "ax-conversation-message-list", never, {}, { "messageAction": "messageAction"; }, never, ["ax-conversation-message-list-empty, [ax-conversation-message-list-empty]", "ax-conversation-message-list-no-active, [ax-conversation-message-list-no-active]"], true, never>;
|
|
4580
|
+
}
|
|
4581
|
+
|
|
4582
|
+
declare class AXConversationAvatarPickerComponent {
|
|
4583
|
+
readonly fileInput: _angular_core.Signal<ElementRef<HTMLInputElement>>;
|
|
4584
|
+
readonly showClearButton: _angular_core.InputSignal<boolean>;
|
|
4585
|
+
readonly avatarUrl: _angular_core.ModelSignal<string>;
|
|
4586
|
+
readonly onFileSelected: _angular_core.OutputEmitterRef<string>;
|
|
4587
|
+
triggerFileInput(): void;
|
|
4588
|
+
onFileInputChange(event: Event): Promise<void>;
|
|
4589
|
+
clearAvatar(): void;
|
|
4590
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationAvatarPickerComponent, never>;
|
|
4591
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationAvatarPickerComponent, "ax-conversation-avatar-picker", never, { "showClearButton": { "alias": "showClearButton"; "required": false; "isSignal": true; }; "avatarUrl": { "alias": "avatarUrl"; "required": false; "isSignal": true; }; }, { "avatarUrl": "avatarUrlChange"; "onFileSelected": "onFileSelected"; }, never, never, true, never>;
|
|
4592
|
+
}
|
|
4593
|
+
|
|
4594
|
+
declare class AXConversationAvatarComponent {
|
|
4595
|
+
private readonly conversationService;
|
|
4596
|
+
private readonly userAvatarComponent;
|
|
4597
|
+
private readonly conversationAvatarComponent;
|
|
4598
|
+
readonly kind: _angular_core.InputSignal<AXConversationAvatarKind>;
|
|
4599
|
+
readonly userId: _angular_core.InputSignal<string>;
|
|
4600
|
+
readonly conversation: _angular_core.InputSignal<AXConversation>;
|
|
4601
|
+
readonly message: _angular_core.InputSignal<AXConversationMessage>;
|
|
4602
|
+
readonly size: _angular_core.InputSignal<number>;
|
|
4603
|
+
readonly showStatus: _angular_core.InputSignal<boolean>;
|
|
4604
|
+
readonly name: _angular_core.InputSignal<string>;
|
|
4605
|
+
readonly avatar: _angular_core.InputSignal<string>;
|
|
4606
|
+
readonly icon: _angular_core.InputSignal<string>;
|
|
4607
|
+
private readonly currentUserId;
|
|
4608
|
+
readonly resolvedKind: _angular_core.Signal<"user" | "conversation">;
|
|
4609
|
+
readonly resolvedUserId: _angular_core.Signal<string>;
|
|
4610
|
+
readonly customComponent: _angular_core.Signal<Type<unknown>>;
|
|
4611
|
+
readonly customInputs: _angular_core.Signal<Record<string, unknown>>;
|
|
4612
|
+
readonly filteredCustomInputs: _angular_core.Signal<Record<string, unknown>>;
|
|
4613
|
+
readonly fallbackDisplay: _angular_core.Signal<{
|
|
4614
|
+
name: string;
|
|
4615
|
+
avatar: string;
|
|
4616
|
+
icon: string;
|
|
4617
|
+
}>;
|
|
4618
|
+
readonly fallbackInitials: _angular_core.Signal<string>;
|
|
4619
|
+
readonly resolvedStatus: _angular_core.Signal<_acorex_components_conversation.AXConversationPresenceStatus>;
|
|
4620
|
+
readonly statusBadgePresence: _angular_core.Signal<"online" | "offline" | "away" | "busy">;
|
|
4621
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationAvatarComponent, never>;
|
|
4622
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationAvatarComponent, "ax-conversation-avatar", never, { "kind": { "alias": "kind"; "required": false; "isSignal": true; }; "userId": { "alias": "userId"; "required": false; "isSignal": true; }; "conversation": { "alias": "conversation"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showStatus": { "alias": "showStatus"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "avatar": { "alias": "avatar"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
4623
|
+
}
|
|
4624
|
+
|
|
4625
|
+
interface AXConversationRegistryComponentRef {
|
|
4626
|
+
component?: Type<unknown>;
|
|
4627
|
+
componentLoader?: () => Promise<Type<unknown>>;
|
|
4628
|
+
}
|
|
4629
|
+
/** Placeholder shown while a lazy registry component is loading. */
|
|
4630
|
+
type AXConversationOutletSkeleton = 'auto' | 'text' | 'media' | 'none';
|
|
4631
|
+
declare class AXConversationRegistryComponentOutletComponent {
|
|
4632
|
+
readonly component: _angular_core.InputSignal<Type<unknown>>;
|
|
4633
|
+
readonly componentLoader: _angular_core.InputSignal<() => Promise<Type<unknown>>>;
|
|
4634
|
+
readonly inputs: _angular_core.InputSignal<Record<string, unknown>>;
|
|
4635
|
+
/**
|
|
4636
|
+
* Skeleton while a `componentLoader` is in flight.
|
|
4637
|
+
* `auto` uses `inputs.message.type`: text/system → single line, other types → multi-line.
|
|
4638
|
+
*/
|
|
4639
|
+
readonly skeleton: _angular_core.InputSignal<AXConversationOutletSkeleton>;
|
|
4640
|
+
readonly resolvedComponent: _angular_core.WritableSignal<Type<unknown>>;
|
|
4641
|
+
private readonly pending;
|
|
4642
|
+
readonly isLoading: _angular_core.Signal<boolean>;
|
|
4643
|
+
protected readonly skeletonVariant: _angular_core.Signal<"text" | "none" | "media" | "lines">;
|
|
4644
|
+
/** Avoid re-loading when the parent re-binds the same lazy loader reference. */
|
|
4645
|
+
private activeLoader;
|
|
4646
|
+
constructor();
|
|
4647
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationRegistryComponentOutletComponent, never>;
|
|
4648
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationRegistryComponentOutletComponent, "ax-conversation-registry-component-outlet", never, { "component": { "alias": "component"; "required": false; "isSignal": true; }; "componentLoader": { "alias": "componentLoader"; "required": false; "isSignal": true; }; "inputs": { "alias": "inputs"; "required": false; "isSignal": true; }; "skeleton": { "alias": "skeleton"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
4649
|
+
}
|
|
4650
|
+
/** Resolve a registry component reference, preferring lazy loaders when provided. */
|
|
4651
|
+
declare function hasRegistryComponent(ref?: AXConversationRegistryComponentRef): boolean;
|
|
4652
|
+
|
|
4653
|
+
declare class AXConversationSidebarService {
|
|
4654
|
+
private readonly conversationService;
|
|
4655
|
+
constructor();
|
|
4656
|
+
private get registry();
|
|
4657
|
+
readonly searchQuery: _angular_core.WritableSignal<string>;
|
|
4658
|
+
readonly activeTabId: _angular_core.WritableSignal<string>;
|
|
4659
|
+
readonly loadingMore: _angular_core.WritableSignal<boolean>;
|
|
4660
|
+
readonly conversations: _angular_core.Signal<AXConversation[]>;
|
|
4661
|
+
readonly loading: _angular_core.Signal<boolean>;
|
|
4662
|
+
readonly hasMoreConversations: _angular_core.Signal<boolean>;
|
|
4663
|
+
readonly enabledTabs: _angular_core.Signal<_acorex_components_conversation.AXConversationTab[]>;
|
|
4664
|
+
readonly filteredConversations: _angular_core.Signal<AXConversation[]>;
|
|
4665
|
+
/**
|
|
4666
|
+
* Filter and sort conversations
|
|
4667
|
+
*/
|
|
4668
|
+
private filterAndSort;
|
|
4669
|
+
setSearchQuery(q: string): void;
|
|
4670
|
+
setActiveTab(tabId: string): void;
|
|
4671
|
+
selectConversation(conversation: AXConversation): void;
|
|
4672
|
+
getBadgeValue(tabId: string): string | undefined;
|
|
4673
|
+
/**
|
|
4674
|
+
* Load more conversations when the user scrolls near the bottom of the sidebar list.
|
|
4675
|
+
*/
|
|
4676
|
+
loadMoreConversations(): Promise<void>;
|
|
4677
|
+
/**
|
|
4678
|
+
* Handle scroll threshold (for infinite scroll)
|
|
4679
|
+
*/
|
|
4680
|
+
onScrollThreshold(edge: 'top' | 'bottom'): Promise<void>;
|
|
4681
|
+
/**
|
|
4682
|
+
* Reload conversation list from the first page (e.g. pull-to-refresh).
|
|
4683
|
+
*/
|
|
4684
|
+
reloadConversations(): Promise<void>;
|
|
4685
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationSidebarService, never>;
|
|
4686
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
4687
|
+
}
|
|
4688
|
+
|
|
4689
|
+
declare class AXConversationSidebarComponent implements OnDestroy {
|
|
4690
|
+
readonly sidebar: AXConversationSidebarService;
|
|
4691
|
+
protected readonly config: Required<_acorex_components_conversation.AXConversationConfig>;
|
|
4692
|
+
private readonly conversationService;
|
|
4693
|
+
private readonly popupService;
|
|
4694
|
+
private readonly translation;
|
|
4695
|
+
private readonly ngZone;
|
|
4696
|
+
private readonly cdr;
|
|
4697
|
+
/** Conversation selected event */
|
|
4698
|
+
readonly conversationSelected: _angular_core.OutputEmitterRef<AXConversation>;
|
|
4699
|
+
/** Search debouncing */
|
|
4700
|
+
private readonly searchSubject;
|
|
4701
|
+
/** Derived state for template */
|
|
4702
|
+
readonly enabledTabs: _angular_core.Signal<_acorex_components_conversation.AXConversationTab[]>;
|
|
4703
|
+
readonly filteredConversations: _angular_core.Signal<AXConversation[]>;
|
|
4704
|
+
readonly loading: _angular_core.Signal<boolean>;
|
|
4705
|
+
readonly loadingMore: _angular_core.WritableSignal<boolean>;
|
|
4706
|
+
readonly hasMoreConversations: _angular_core.Signal<boolean>;
|
|
4707
|
+
readonly isSidebarTabsHorizontal: _angular_core.Signal<boolean>;
|
|
4708
|
+
readonly sidebarTabLocation: _angular_core.Signal<AXTabLocation>;
|
|
4709
|
+
constructor();
|
|
4710
|
+
/** Handle search input change with debouncing */
|
|
4711
|
+
onSearchChange(value: string): void;
|
|
4712
|
+
/** Handle tab change from ax-tabs */
|
|
4713
|
+
onTabChange(event: {
|
|
4714
|
+
tab?: {
|
|
4715
|
+
key?: string;
|
|
4716
|
+
};
|
|
4717
|
+
}): void;
|
|
4718
|
+
/** Select a conversation */
|
|
4719
|
+
selectConversation(conversation: AXConversation): void;
|
|
4720
|
+
/** Get badge value for tab */
|
|
4721
|
+
getBadgeValue(tabId: string): string | undefined;
|
|
4722
|
+
getTabLabel(tabId: string): string;
|
|
4723
|
+
openNewConversationPopup(): Promise<void>;
|
|
4724
|
+
/** Handle infinite scroll threshold - delegate to service */
|
|
4725
|
+
onScrollThreshold(edge: 'top' | 'bottom'): Promise<void>;
|
|
4726
|
+
/** Cleanup on destroy */
|
|
4727
|
+
ngOnDestroy(): void;
|
|
4728
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationSidebarComponent, never>;
|
|
4729
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationSidebarComponent, "ax-conversation-sidebar", never, {}, { "conversationSelected": "conversationSelected"; }, never, ["ax-suffix"], true, never>;
|
|
4730
|
+
}
|
|
4731
|
+
|
|
4732
|
+
type AXConversationNewWizardStep = 'selectUsers' | 'groupDetails';
|
|
4733
|
+
declare class AXConversationNewDialogComponent extends AXBasePageComponent {
|
|
4734
|
+
/**
|
|
4735
|
+
* Assigned by {@link AXPopupComponent} from `open(..., { data: { conversationService } })`.
|
|
4736
|
+
* Not injected: popup content is created on the root view container, so route-scoped providers
|
|
4737
|
+
* would not see the same `AXConversationService` instance as the conversation feature.
|
|
4738
|
+
*/
|
|
4739
|
+
conversationService: AXConversationService;
|
|
4740
|
+
private readonly toastService;
|
|
4741
|
+
private readonly translation;
|
|
4742
|
+
private readonly config;
|
|
4743
|
+
private readonly destroyRef;
|
|
4744
|
+
private readonly popupService;
|
|
4745
|
+
private searchDebounceTimer?;
|
|
4746
|
+
constructor();
|
|
4747
|
+
/**
|
|
4748
|
+
* Injected by {@link AXPopupComponent} when this dialog is opened via {@link AXPopupService}.
|
|
4749
|
+
* Required for `setTitle` / dynamic header — {@link AXBasePageComponent#setTitle} is otherwise unset.
|
|
4750
|
+
*/
|
|
4751
|
+
readonly __popup__: _angular_core.InputSignal<AXPopupRef<any>>;
|
|
4752
|
+
readonly availableUsers: _angular_core.WritableSignal<AXConversationParticipant[]>;
|
|
4753
|
+
readonly selectedUserIds: _angular_core.WritableSignal<string[]>;
|
|
4754
|
+
readonly groupTitle: _angular_core.WritableSignal<string>;
|
|
4755
|
+
readonly groupAvatar: _angular_core.WritableSignal<string>;
|
|
4756
|
+
readonly groupAvatarFileName: _angular_core.WritableSignal<string>;
|
|
4757
|
+
readonly searchQuery: _angular_core.WritableSignal<string>;
|
|
4758
|
+
readonly creating: _angular_core.WritableSignal<boolean>;
|
|
4759
|
+
/** For 2+ users: step 1 = pick users, step 2 = title + avatar. */
|
|
4760
|
+
readonly wizardStep: _angular_core.WritableSignal<AXConversationNewWizardStep>;
|
|
4761
|
+
readonly showUserPickerStep: _angular_core.Signal<boolean>;
|
|
4762
|
+
readonly showGroupDetailsStep: _angular_core.Signal<boolean>;
|
|
4763
|
+
readonly showNextButton: _angular_core.Signal<boolean>;
|
|
4764
|
+
readonly showGroupBackButton: _angular_core.Signal<boolean>;
|
|
4765
|
+
readonly showCreateButton: _angular_core.Signal<boolean>;
|
|
4766
|
+
readonly canGoNextToGroupDetails: _angular_core.Signal<boolean>;
|
|
4767
|
+
readonly canCreate: _angular_core.Signal<boolean>;
|
|
4768
|
+
private readonly _resetWizardWhenSingleEffect;
|
|
4769
|
+
private readonly _syncPopupTitleEffect;
|
|
4770
|
+
readonly usersListEmptyTpl: _angular_core.Signal<TemplateRef<unknown>>;
|
|
4771
|
+
readonly usersListLoadingTpl: _angular_core.Signal<TemplateRef<unknown>>;
|
|
4772
|
+
readonly usersList: _angular_core.Signal<AXListComponent>;
|
|
4773
|
+
private readonly groupNameInput;
|
|
4774
|
+
private readonly groupPhotoInput;
|
|
4775
|
+
readonly groupPhotoAriaLabel: _angular_core.Signal<string>;
|
|
4776
|
+
readonly usersListDataSource: AXDataSource<unknown>;
|
|
4777
|
+
onCancel(): void;
|
|
4778
|
+
onSelectedUsersChange(ids: string[]): void;
|
|
4779
|
+
onNextToGroupDetails(): void;
|
|
4780
|
+
onBackFromGroupDetails(): void;
|
|
4781
|
+
onPickGroupPhoto(): void;
|
|
4782
|
+
onClearGroupPhoto(): void;
|
|
4783
|
+
onEditGroupPhoto(): Promise<void>;
|
|
4784
|
+
onGroupPhotoSelected(event: Event): Promise<void>;
|
|
4785
|
+
private openGroupPhotoEditor;
|
|
4786
|
+
onSearchChange(value: string): void;
|
|
4787
|
+
isUserSelected(id: string): boolean;
|
|
4788
|
+
userFromItem(item: unknown): AXConversationParticipant | null;
|
|
4789
|
+
private mergeUsersCache;
|
|
4790
|
+
onCreateConversation(): Promise<void>;
|
|
4791
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationNewDialogComponent, never>;
|
|
4792
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationNewDialogComponent, "ax-conversation-new-dialog", never, { "__popup__": { "alias": "__popup__"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
4793
|
+
}
|
|
4794
|
+
|
|
4795
|
+
type AXConversationDeleteDialogMode = 'private' | 'leave' | 'destroy-room';
|
|
4796
|
+
interface AXConversationDeleteDialogResult {
|
|
4797
|
+
confirmed: boolean;
|
|
4798
|
+
forEveryone: boolean;
|
|
4799
|
+
}
|
|
4800
|
+
declare class AXConversationDeleteDialogComponent {
|
|
4801
|
+
private readonly translation;
|
|
4802
|
+
/**
|
|
4803
|
+
* Assigned by {@link AXPopupComponent} from `open(..., { data })`.
|
|
4804
|
+
*/
|
|
4805
|
+
conversation: AXConversation;
|
|
4806
|
+
mode: AXConversationDeleteDialogMode;
|
|
4807
|
+
peerName?: string;
|
|
4808
|
+
readonly __popup__: _angular_core.InputSignal<AXPopupRef<any>>;
|
|
4809
|
+
forEveryone: boolean;
|
|
4810
|
+
readonly onClosed: EventEmitter<AXComponentCloseEvent>;
|
|
4811
|
+
readonly showCheckbox: _angular_core.Signal<boolean>;
|
|
4812
|
+
readonly messageText: _angular_core.Signal<string>;
|
|
4813
|
+
readonly checkboxLabel: _angular_core.Signal<string>;
|
|
4814
|
+
readonly confirmLabel: _angular_core.Signal<string>;
|
|
4815
|
+
confirm(): void;
|
|
4816
|
+
cancel(): void;
|
|
4817
|
+
private close;
|
|
4818
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationDeleteDialogComponent, never>;
|
|
4819
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationDeleteDialogComponent, "ax-conversation-delete-dialog", never, { "__popup__": { "alias": "__popup__"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
4820
|
+
}
|
|
4821
|
+
|
|
4822
|
+
declare class AXConversationInfiniteScrollDirective {
|
|
4823
|
+
private readonly elementRef;
|
|
4824
|
+
private readonly platformId;
|
|
4825
|
+
private readonly ngZone;
|
|
4826
|
+
private readonly destroyRef;
|
|
4827
|
+
/** Threshold in pixels from the edge to trigger the event */
|
|
4828
|
+
readonly threshold: _angular_core.InputSignal<number>;
|
|
4829
|
+
/** Which edge to watch: 'top', 'bottom', or 'both' */
|
|
4830
|
+
readonly edge: _angular_core.InputSignal<"top" | "bottom" | "both">;
|
|
4831
|
+
/** When true, scroll events are ignored (e.g. while a page is loading). */
|
|
4832
|
+
readonly scrollDisabled: _angular_core.InputSignal<boolean>;
|
|
4833
|
+
/** Minimum time between emissions (ms) to avoid duplicate API calls. */
|
|
4834
|
+
readonly cooldownMs: _angular_core.InputSignal<number>;
|
|
4835
|
+
/** Event emitted when scrolling reaches the threshold */
|
|
4836
|
+
readonly scrollThreshold: _angular_core.OutputEmitterRef<"top" | "bottom">;
|
|
4837
|
+
private lastScrollTop;
|
|
4838
|
+
private ticking;
|
|
4839
|
+
private lastEmitAt;
|
|
4840
|
+
private pendingEmit;
|
|
4841
|
+
constructor();
|
|
4842
|
+
private setupScrollListener;
|
|
4843
|
+
private handleScroll;
|
|
4844
|
+
private emitThreshold;
|
|
4845
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationInfiniteScrollDirective, never>;
|
|
4846
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AXConversationInfiniteScrollDirective, "[axInfiniteScroll]", never, { "threshold": { "alias": "threshold"; "required": false; "isSignal": true; }; "edge": { "alias": "edge"; "required": false; "isSignal": true; }; "scrollDisabled": { "alias": "scrollDisabled"; "required": false; "isSignal": true; }; "cooldownMs": { "alias": "cooldownMs"; "required": false; "isSignal": true; }; }, { "scrollThreshold": "scrollThreshold"; }, never, never, true, never>;
|
|
4847
|
+
}
|
|
4848
|
+
|
|
4849
|
+
declare const AX_CONVERSATION_AUDIO_PRESENTATION: {
|
|
4850
|
+
readonly icon: "fa-light fa-music text-amber-500";
|
|
4851
|
+
readonly title: "Audio";
|
|
4852
|
+
};
|
|
4853
|
+
declare function conversationAudioUtilities(): NonNullable<AXFileType['utilities']>;
|
|
4854
|
+
declare function createConversationAudioFileType(): AXFileType;
|
|
4855
|
+
declare class AXConversationAudioFileTypeProvider extends AXFileTypeInfoProvider {
|
|
4856
|
+
items(): Promise<AXFileType<{
|
|
4857
|
+
[x: string]: (ctx: _acorex_core_file.AXFileTypeContext, ...args: unknown[]) => Promise<unknown> | unknown;
|
|
4858
|
+
}>[]>;
|
|
4859
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationAudioFileTypeProvider, never>;
|
|
4860
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
4861
|
+
}
|
|
4862
|
+
|
|
4863
|
+
declare function audioItemFromUpload(file: File, result: AXConversationUploaderResult, duration: number): AXConversationAudioMediaItem;
|
|
4864
|
+
declare function mergeAudioUploadResult(payload: AXConversationMessagePayload, result: AXUploadResult): AXConversationMessagePayload;
|
|
4865
|
+
declare function applyAudioLocalPreview(payload: AXConversationMessagePayload, localUrl: string, mimeType?: string): AXConversationMessagePayload;
|
|
4866
|
+
|
|
4867
|
+
/**
|
|
4868
|
+
* Shared upload state and helpers for composer media pickers.
|
|
4869
|
+
*/
|
|
4870
|
+
|
|
4871
|
+
/** Stable id for `@for` tracking while upload state is patched immutably. */
|
|
4872
|
+
declare function createPickerUploadItemId(): string;
|
|
4873
|
+
interface AXConversationComposerPickerUploadItem {
|
|
4874
|
+
id: string;
|
|
4875
|
+
file: File;
|
|
4876
|
+
preview?: string;
|
|
4877
|
+
duration?: number;
|
|
4878
|
+
uploadProgress?: number;
|
|
4879
|
+
uploading?: boolean;
|
|
4880
|
+
uploaded?: boolean;
|
|
4881
|
+
uploadedUrl?: string;
|
|
4882
|
+
mediaId?: string;
|
|
4883
|
+
error?: string;
|
|
4884
|
+
abortController?: AbortController;
|
|
4885
|
+
}
|
|
4886
|
+
declare function getPickerCancelUploadLabel(translation: AXTranslationService): string;
|
|
4887
|
+
declare function abortPickerUploads(items: Iterable<{
|
|
4888
|
+
abortController?: AbortController;
|
|
4889
|
+
} | null | undefined>): void;
|
|
4890
|
+
interface AXConversationCleanupPickerUploadsOptions {
|
|
4891
|
+
retainUploaded?: boolean;
|
|
4892
|
+
}
|
|
4893
|
+
/** Upload finished; reference is {@link mediaId} and/or a non-empty session url. */
|
|
4894
|
+
declare function isPickerItemReadyToSend(item: Pick<AXConversationComposerPickerUploadItem, 'uploaded' | 'uploadedUrl' | 'mediaId'>): boolean;
|
|
4895
|
+
/** Build uploader result shape for {@link *ItemFromUpload} after picker upload. */
|
|
4896
|
+
declare function pickerItemToUploadResult(item: Pick<AXConversationComposerPickerUploadItem, 'uploaded' | 'uploadedUrl' | 'mediaId' | 'file'>): {
|
|
4897
|
+
url: string;
|
|
4898
|
+
mediaId?: string;
|
|
4899
|
+
mimeType: string;
|
|
4900
|
+
size: number;
|
|
4901
|
+
} | null;
|
|
4902
|
+
declare function pickerItemToMediaReference(item: Pick<AXConversationComposerPickerUploadItem, 'uploaded' | 'uploadedUrl' | 'mediaId' | 'file'>): AXConversationUploaderReference | null;
|
|
4903
|
+
declare function deleteUploadedPickerMedia(uploader: AXUploaderService, items: Iterable<AXConversationComposerPickerUploadItem | null | undefined>): Promise<void>;
|
|
4904
|
+
declare function cleanupPickerUploads(uploader: AXUploaderService, items: Iterable<AXConversationComposerPickerUploadItem | null | undefined>, options?: AXConversationCleanupPickerUploadsOptions): void;
|
|
4905
|
+
declare function revokePickerBlobPreviews(items: Iterable<{
|
|
4906
|
+
preview?: string;
|
|
4907
|
+
} | null | undefined>): void;
|
|
4908
|
+
declare function isUploadAborted(error: unknown, signal?: AbortSignal): boolean;
|
|
4909
|
+
declare function limitFilesToCapacity(files: File[], currentCount: number, maxFiles: number): File[];
|
|
4910
|
+
declare function uploadPickerFile(uploader: AXUploaderService, conversationId: string, file: File, onProgress: (percent: number) => void, signal?: AbortSignal): Promise<{
|
|
4911
|
+
url: string;
|
|
4912
|
+
mediaId?: string;
|
|
4913
|
+
mimeType: string;
|
|
4914
|
+
size: number;
|
|
4463
4915
|
}>;
|
|
4464
4916
|
declare function notifyMaxFilesCapacityExceeded(toast: AXToastService, translation: AXTranslationService, maxFiles: number): void;
|
|
4465
4917
|
/** User-facing message for a file validation failure. */
|
|
@@ -4487,6 +4939,7 @@ declare class AXConversationAudioPickerComponent implements OnDestroy, AXConvers
|
|
|
4487
4939
|
private readonly fileTypeRegistry;
|
|
4488
4940
|
private readonly platformId;
|
|
4489
4941
|
private readonly toast;
|
|
4942
|
+
private readonly popupService;
|
|
4490
4943
|
readonly translation: AXTranslationService;
|
|
4491
4944
|
readonly conversation: _angular_core.InputSignal<AXConversation>;
|
|
4492
4945
|
readonly maxFiles: _angular_core.InputSignal<number>;
|
|
@@ -4498,10 +4951,11 @@ declare class AXConversationAudioPickerComponent implements OnDestroy, AXConvers
|
|
|
4498
4951
|
readonly audioFiles: _angular_core.WritableSignal<AXConversationAudioFile[]>;
|
|
4499
4952
|
readonly isDragging: _angular_core.WritableSignal<boolean>;
|
|
4500
4953
|
private readonly pickerShell;
|
|
4501
|
-
readonly typeIconClass: "fa-light fa-music text-amber-500";
|
|
4502
4954
|
readonly emptyIconClass: _angular_core.Signal<"fa-light fa-music text-amber-500" | "fa-light fa-cloud-arrow-up">;
|
|
4503
4955
|
private catalogFileTypeDef?;
|
|
4504
4956
|
caption: string;
|
|
4957
|
+
groupItems: boolean;
|
|
4958
|
+
sendAsDocuments: boolean;
|
|
4505
4959
|
readonly allowMultiple: _angular_core.Signal<boolean>;
|
|
4506
4960
|
constructor();
|
|
4507
4961
|
activate(): Promise<void>;
|
|
@@ -4512,11 +4966,15 @@ declare class AXConversationAudioPickerComponent implements OnDestroy, AXConvers
|
|
|
4512
4966
|
private uploadAudioAt;
|
|
4513
4967
|
private patchAudio;
|
|
4514
4968
|
removeAudio(index: number): void;
|
|
4969
|
+
renameAudio(index: number): Promise<void>;
|
|
4970
|
+
replaceAttachment(index: number): Promise<void>;
|
|
4515
4971
|
sendAudio(): Promise<void>;
|
|
4972
|
+
private sendAudioAsDocuments;
|
|
4516
4973
|
canSend(): boolean;
|
|
4517
4974
|
getUploadingLabel(progress: number): string;
|
|
4518
4975
|
getCancelUploadLabel(): string;
|
|
4519
4976
|
getHeaderTitle(): string;
|
|
4977
|
+
truncateFileName(fileName: string): string;
|
|
4520
4978
|
onAddMoreFiles(): void;
|
|
4521
4979
|
cancel(): void;
|
|
4522
4980
|
ngOnDestroy(): void;
|
|
@@ -4583,18 +5041,15 @@ declare class AXConversationFileFileTypeProvider extends AXFileTypeInfoProvider
|
|
|
4583
5041
|
[x: string]: (ctx: _acorex_core_file.AXFileTypeContext, ...args: unknown[]) => Promise<unknown> | unknown;
|
|
4584
5042
|
}>[]>;
|
|
4585
5043
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationFileFileTypeProvider, never>;
|
|
4586
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
5044
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
4587
5045
|
}
|
|
4588
5046
|
|
|
4589
|
-
declare function fileItemFromUpload(file: File, result: AXConversationUploaderResult
|
|
5047
|
+
declare function fileItemFromUpload(file: File, result: AXConversationUploaderResult, extras?: {
|
|
5048
|
+
duration?: number;
|
|
5049
|
+
}): AXConversationFileMediaItem;
|
|
4590
5050
|
declare function mergeFileUploadResult(payload: AXConversationMessagePayload, result: AXUploadResult): AXConversationMessagePayload;
|
|
4591
5051
|
declare function applyFileLocalPreview(payload: AXConversationMessagePayload, localUrl: string, mimeType?: string): AXConversationMessagePayload;
|
|
4592
5052
|
|
|
4593
|
-
interface AXConversationPickerFileBadge {
|
|
4594
|
-
ext: string;
|
|
4595
|
-
color: string;
|
|
4596
|
-
}
|
|
4597
|
-
|
|
4598
5053
|
interface AXConversationAttachedFile extends AXConversationComposerPickerUploadItem {
|
|
4599
5054
|
icon: string;
|
|
4600
5055
|
type: 'image' | 'video' | 'audio' | 'file';
|
|
@@ -4610,6 +5065,7 @@ declare class AXConversationFilePickerComponent implements OnDestroy, AXConversa
|
|
|
4610
5065
|
private readonly composerServiceFromInjector;
|
|
4611
5066
|
private get composerService();
|
|
4612
5067
|
private readonly toast;
|
|
5068
|
+
private readonly popupService;
|
|
4613
5069
|
readonly translation: AXTranslationService;
|
|
4614
5070
|
readonly conversation: _angular_core.InputSignal<AXConversation>;
|
|
4615
5071
|
readonly maxFiles: _angular_core.InputSignal<number>;
|
|
@@ -4626,22 +5082,27 @@ declare class AXConversationFilePickerComponent implements OnDestroy, AXConversa
|
|
|
4626
5082
|
readonly emptyIconClass: _angular_core.Signal<"fa-light fa-file text-neutral-500" | "fa-light fa-cloud-arrow-up">;
|
|
4627
5083
|
private catalogFileTypeDef?;
|
|
4628
5084
|
caption: string;
|
|
5085
|
+
groupItems: boolean;
|
|
4629
5086
|
constructor();
|
|
4630
5087
|
activate(): Promise<void>;
|
|
4631
5088
|
private createUtilityContext;
|
|
4632
5089
|
private getCatalogFileTypeDef;
|
|
4633
5090
|
private pickerKind;
|
|
4634
5091
|
handleFiles(fileList: File[]): Promise<void>;
|
|
5092
|
+
private buildAttachedFileEntry;
|
|
4635
5093
|
private uploadFile;
|
|
4636
5094
|
removeFile(index: number): void;
|
|
5095
|
+
renameFile(index: number): Promise<void>;
|
|
5096
|
+
replaceAttachment(index: number): Promise<void>;
|
|
4637
5097
|
sendFiles(): Promise<void>;
|
|
4638
5098
|
private updateFileProgress;
|
|
4639
5099
|
private uploadFileWithProgress;
|
|
4640
5100
|
cancel(): void;
|
|
4641
5101
|
ngOnDestroy(): void;
|
|
4642
5102
|
private dismissPicker;
|
|
5103
|
+
private revokePreview;
|
|
4643
5104
|
getHeaderTitle(): string;
|
|
4644
|
-
|
|
5105
|
+
truncateFileName(fileName: string): string;
|
|
4645
5106
|
onAddMoreFiles(): void;
|
|
4646
5107
|
getCancelUploadLabel(): string;
|
|
4647
5108
|
formatFileSize(bytes: number): string;
|
|
@@ -4666,7 +5127,13 @@ declare class AXConversationImageFileTypeProvider extends AXFileTypeInfoProvider
|
|
|
4666
5127
|
[x: string]: (ctx: _acorex_core_file.AXFileTypeContext, ...args: unknown[]) => Promise<unknown> | unknown;
|
|
4667
5128
|
}>[]>;
|
|
4668
5129
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationImageFileTypeProvider, never>;
|
|
4669
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
5130
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
5131
|
+
}
|
|
5132
|
+
|
|
5133
|
+
type AXConversationMediaGalleryLayoutMode = 'single' | 'dual' | 'triple' | 'masonry';
|
|
5134
|
+
interface AXConversationMediaGalleryRow<T> {
|
|
5135
|
+
items: T[];
|
|
5136
|
+
startIndex: number;
|
|
4670
5137
|
}
|
|
4671
5138
|
|
|
4672
5139
|
interface AXConversationImageFile extends AXConversationComposerPickerUploadItem {
|
|
@@ -4680,6 +5147,7 @@ declare class AXConversationImagePickerComponent implements OnDestroy, AXConvers
|
|
|
4680
5147
|
private readonly composerServiceFromInjector;
|
|
4681
5148
|
private get composerService();
|
|
4682
5149
|
private readonly uploader;
|
|
5150
|
+
private readonly popupService;
|
|
4683
5151
|
private readonly fileService;
|
|
4684
5152
|
private readonly fileTypeRegistry;
|
|
4685
5153
|
private readonly platformId;
|
|
@@ -4697,7 +5165,11 @@ declare class AXConversationImagePickerComponent implements OnDestroy, AXConvers
|
|
|
4697
5165
|
readonly isDragging: _angular_core.WritableSignal<boolean>;
|
|
4698
5166
|
readonly emptyIconClass: _angular_core.Signal<"fa-light fa-image text-purple-500" | "fa-light fa-cloud-arrow-up">;
|
|
4699
5167
|
caption: string;
|
|
5168
|
+
groupItems: boolean;
|
|
5169
|
+
sendAsDocuments: boolean;
|
|
4700
5170
|
readonly allowMultiple: _angular_core.Signal<boolean>;
|
|
5171
|
+
readonly layoutMode: _angular_core.Signal<AXConversationMediaGalleryLayoutMode>;
|
|
5172
|
+
readonly mediaRows: _angular_core.Signal<AXConversationMediaGalleryRow<AXConversationImageFile>[]>;
|
|
4701
5173
|
private imageFileType?;
|
|
4702
5174
|
constructor();
|
|
4703
5175
|
activate(): Promise<void>;
|
|
@@ -4707,7 +5179,11 @@ declare class AXConversationImagePickerComponent implements OnDestroy, AXConvers
|
|
|
4707
5179
|
private uploadImageAt;
|
|
4708
5180
|
private patchImage;
|
|
4709
5181
|
removeImage(index: number): void;
|
|
5182
|
+
replaceAttachment(index: number): Promise<void>;
|
|
5183
|
+
editImage(index: number): Promise<void>;
|
|
5184
|
+
private applyReplacementFile;
|
|
4710
5185
|
sendImages(): Promise<void>;
|
|
5186
|
+
private sendImagesAsDocuments;
|
|
4711
5187
|
canSend(): boolean;
|
|
4712
5188
|
getUploadingLabel(progress: number): string;
|
|
4713
5189
|
getCancelUploadLabel(): string;
|
|
@@ -4741,12 +5217,16 @@ declare class AXConversationLocationPickerComponent {
|
|
|
4741
5217
|
}
|
|
4742
5218
|
|
|
4743
5219
|
declare class AXConversationPickerFooterComponent {
|
|
4744
|
-
readonly
|
|
5220
|
+
readonly showAdd: _angular_core.InputSignal<boolean>;
|
|
5221
|
+
readonly addLabel: _angular_core.InputSignal<string>;
|
|
5222
|
+
readonly cancelLabel: _angular_core.InputSignal<string>;
|
|
5223
|
+
readonly sendLabel: _angular_core.InputSignal<string>;
|
|
4745
5224
|
readonly sendDisabled: _angular_core.InputSignal<boolean>;
|
|
5225
|
+
readonly onAdd: _angular_core.OutputEmitterRef<void>;
|
|
4746
5226
|
readonly onCancel: _angular_core.OutputEmitterRef<void>;
|
|
4747
5227
|
readonly onSend: _angular_core.OutputEmitterRef<void>;
|
|
4748
5228
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationPickerFooterComponent, never>;
|
|
4749
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationPickerFooterComponent, "ax-conversation-picker-footer", never, { "
|
|
5229
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationPickerFooterComponent, "ax-conversation-picker-footer", never, { "showAdd": { "alias": "showAdd"; "required": false; "isSignal": true; }; "addLabel": { "alias": "addLabel"; "required": false; "isSignal": true; }; "cancelLabel": { "alias": "cancelLabel"; "required": true; "isSignal": true; }; "sendLabel": { "alias": "sendLabel"; "required": true; "isSignal": true; }; "sendDisabled": { "alias": "sendDisabled"; "required": false; "isSignal": true; }; }, { "onAdd": "onAdd"; "onCancel": "onCancel"; "onSend": "onSend"; }, never, never, true, never>;
|
|
4750
5230
|
}
|
|
4751
5231
|
|
|
4752
5232
|
declare class AXConversationPickerHeaderComponent {
|
|
@@ -4759,6 +5239,17 @@ declare class AXConversationPickerHeaderComponent {
|
|
|
4759
5239
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationPickerHeaderComponent, "ax-conversation-picker-header", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "showMenu": { "alias": "showMenu"; "required": false; "isSignal": true; }; "addMoreLabel": { "alias": "addMoreLabel"; "required": false; "isSignal": true; }; }, { "onClose": "onClose"; "onAddMore": "onAddMore"; }, never, never, true, never>;
|
|
4760
5240
|
}
|
|
4761
5241
|
|
|
5242
|
+
/** Extract OS-copied files from a paste event (e.g. Ctrl+V after copying a file in Explorer). */
|
|
5243
|
+
declare function filesFromClipboardEvent(event: ClipboardEvent): File[];
|
|
5244
|
+
|
|
5245
|
+
interface AXConversationMediaDimensions {
|
|
5246
|
+
width: number;
|
|
5247
|
+
height: number;
|
|
5248
|
+
duration: number;
|
|
5249
|
+
}
|
|
5250
|
+
declare function probeImageDimensions(source: Blob | string): Promise<Pick<AXConversationMediaDimensions, 'width' | 'height'>>;
|
|
5251
|
+
declare function probeVideoMedia(source: Blob): Promise<AXConversationMediaDimensions>;
|
|
5252
|
+
|
|
4762
5253
|
declare function formatFileSize(bytes: number): string;
|
|
4763
5254
|
declare function formatDuration(seconds: number): string;
|
|
4764
5255
|
|
|
@@ -4771,14 +5262,29 @@ declare function resolvePersistableMediaUrl(url: string | undefined): string | u
|
|
|
4771
5262
|
/** First non-empty URL for img/video/audio at runtime (includes resolved blob: URLs). */
|
|
4772
5263
|
declare function pickDisplayMediaUrl(...candidates: (string | null | undefined)[]): string;
|
|
4773
5264
|
|
|
4774
|
-
/**
|
|
5265
|
+
/** Caption field with emoji picker for composer media pickers. */
|
|
4775
5266
|
declare class AXConversationPickerCaptionComponent {
|
|
4776
5267
|
readonly translation: AXTranslationService;
|
|
4777
5268
|
readonly caption: _angular_core.ModelSignal<string>;
|
|
5269
|
+
readonly showInlineSend: _angular_core.InputSignal<boolean>;
|
|
4778
5270
|
readonly sendDisabled: _angular_core.InputSignal<boolean>;
|
|
4779
5271
|
readonly onSend: _angular_core.OutputEmitterRef<void>;
|
|
5272
|
+
private readonly emojiPopoverRef;
|
|
5273
|
+
onEmojiClick(event: AXClickEvent): void;
|
|
5274
|
+
onEmojiSelected(emoji: string): void;
|
|
5275
|
+
onCaptionKeyDown(event: AXHtmlEvent<KeyboardEvent>): void;
|
|
4780
5276
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationPickerCaptionComponent, never>;
|
|
4781
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationPickerCaptionComponent, "ax-conversation-picker-caption", never, { "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "sendDisabled": { "alias": "sendDisabled"; "required": false; "isSignal": true; }; }, { "caption": "captionChange"; "onSend": "onSend"; }, never, never, true, never>;
|
|
5277
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationPickerCaptionComponent, "ax-conversation-picker-caption", never, { "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "showInlineSend": { "alias": "showInlineSend"; "required": false; "isSignal": true; }; "sendDisabled": { "alias": "sendDisabled"; "required": false; "isSignal": true; }; }, { "caption": "captionChange"; "onSend": "onSend"; }, never, never, true, never>;
|
|
5278
|
+
}
|
|
5279
|
+
|
|
5280
|
+
/** Grouping and delivery options shown below composer picker previews. */
|
|
5281
|
+
declare class AXConversationPickerOptionsComponent {
|
|
5282
|
+
readonly showGroupItems: _angular_core.InputSignal<boolean>;
|
|
5283
|
+
readonly showSendAsDocuments: _angular_core.InputSignal<boolean>;
|
|
5284
|
+
readonly groupItems: _angular_core.ModelSignal<boolean>;
|
|
5285
|
+
readonly sendAsDocuments: _angular_core.ModelSignal<boolean>;
|
|
5286
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationPickerOptionsComponent, never>;
|
|
5287
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationPickerOptionsComponent, "ax-conversation-picker-options", never, { "showGroupItems": { "alias": "showGroupItems"; "required": false; "isSignal": true; }; "showSendAsDocuments": { "alias": "showSendAsDocuments"; "required": false; "isSignal": true; }; "groupItems": { "alias": "groupItems"; "required": false; "isSignal": true; }; "sendAsDocuments": { "alias": "sendAsDocuments"; "required": false; "isSignal": true; }; }, { "groupItems": "groupItemsChange"; "sendAsDocuments": "sendAsDocumentsChange"; }, never, never, true, never>;
|
|
4782
5288
|
}
|
|
4783
5289
|
|
|
4784
5290
|
/** Shared drag-and-drop handlers for composer pickers. */
|
|
@@ -4800,12 +5306,19 @@ declare class AXConversationPickerEmptyComponent {
|
|
|
4800
5306
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationPickerEmptyComponent, "ax-conversation-picker-empty", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "hint": { "alias": "hint"; "required": true; "isSignal": true; }; "iconClass": { "alias": "iconClass"; "required": true; "isSignal": true; }; "dragOver": { "alias": "dragOver"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
4801
5307
|
}
|
|
4802
5308
|
|
|
5309
|
+
/** Active composer picker paste handlers (top-most popup wins). */
|
|
5310
|
+
type AXConversationPickerPasteHandler = (files: File[]) => void;
|
|
5311
|
+
declare function registerComposerPickerPasteHandler(handler: AXConversationPickerPasteHandler): () => void;
|
|
5312
|
+
declare function getActiveComposerPickerPasteHandler(): AXConversationPickerPasteHandler | undefined;
|
|
5313
|
+
|
|
4803
5314
|
/**
|
|
4804
5315
|
* Wraps composer pickers with {@link AXUploaderZoneDirective} for browse, drop, and validation.
|
|
4805
5316
|
*/
|
|
4806
5317
|
declare class AXConversationPickerShellComponent {
|
|
4807
5318
|
private readonly toast;
|
|
4808
5319
|
private readonly translation;
|
|
5320
|
+
private readonly uploader;
|
|
5321
|
+
private readonly destroyRef;
|
|
4809
5322
|
private readonly zone;
|
|
4810
5323
|
readonly fileType: _angular_core.InputSignal<string>;
|
|
4811
5324
|
readonly multiple: _angular_core.InputSignal<boolean>;
|
|
@@ -4813,9 +5326,13 @@ declare class AXConversationPickerShellComponent {
|
|
|
4813
5326
|
readonly dragEnter: _angular_core.OutputEmitterRef<DragEvent>;
|
|
4814
5327
|
readonly dragLeave: _angular_core.OutputEmitterRef<DragEvent>;
|
|
4815
5328
|
readonly dragOver: _angular_core.OutputEmitterRef<DragEvent>;
|
|
5329
|
+
constructor();
|
|
4816
5330
|
/** Open the OS file picker for this shell's catalog. */
|
|
4817
5331
|
browse(): Promise<void>;
|
|
5332
|
+
protected onHostPaste(event: ClipboardEvent): void;
|
|
4818
5333
|
protected onZoneFileChange(event: AXUploaderFileChangeEvent): void;
|
|
5334
|
+
private ingestPastedFiles;
|
|
5335
|
+
private emitValidatedFiles;
|
|
4819
5336
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationPickerShellComponent, never>;
|
|
4820
5337
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationPickerShellComponent, "ax-conversation-picker-shell", never, { "fileType": { "alias": "fileType"; "required": true; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; }, { "filesSelected": "filesSelected"; "dragEnter": "dragEnter"; "dragLeave": "dragLeave"; "dragOver": "dragOver"; }, never, ["*"], true, never>;
|
|
4821
5338
|
}
|
|
@@ -4838,6 +5355,7 @@ declare class AXConversationStickerTabComponent {
|
|
|
4838
5355
|
private readonly http;
|
|
4839
5356
|
private readonly destroyRef;
|
|
4840
5357
|
private readonly apiKey;
|
|
5358
|
+
protected readonly translation: AXTranslationService;
|
|
4841
5359
|
readonly itemSelected: _angular_core.OutputEmitterRef<AXConversationStickerPayload>;
|
|
4842
5360
|
readonly searchQuery: _angular_core.WritableSignal<string>;
|
|
4843
5361
|
readonly activeStickers: _angular_core.WritableSignal<AXConversationStickerPayload[]>;
|
|
@@ -4873,16 +5391,21 @@ declare class AXConversationVideoFileTypeProvider extends AXFileTypeInfoProvider
|
|
|
4873
5391
|
[x: string]: (ctx: _acorex_core_file.AXFileTypeContext, ...args: unknown[]) => Promise<unknown> | unknown;
|
|
4874
5392
|
}>[]>;
|
|
4875
5393
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationVideoFileTypeProvider, never>;
|
|
4876
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
5394
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
4877
5395
|
}
|
|
4878
5396
|
|
|
4879
|
-
declare function videoItemFromUpload(file: File, result: AXConversationUploaderResult, duration: number
|
|
5397
|
+
declare function videoItemFromUpload(file: File, result: AXConversationUploaderResult, duration: number, size?: {
|
|
5398
|
+
width?: number;
|
|
5399
|
+
height?: number;
|
|
5400
|
+
}): Promise<AXConversationVideoMediaItem>;
|
|
4880
5401
|
declare function mergeVideoUploadResult(payload: AXConversationMessagePayload, result: AXUploadResult): AXConversationMessagePayload;
|
|
4881
5402
|
declare function applyVideoLocalPreview(payload: AXConversationMessagePayload, localUrl: string, mimeType?: string): AXConversationMessagePayload;
|
|
4882
5403
|
|
|
4883
5404
|
interface AXConversationVideoFile extends AXConversationComposerPickerUploadItem {
|
|
4884
5405
|
preview?: string;
|
|
4885
5406
|
duration?: number;
|
|
5407
|
+
width?: number;
|
|
5408
|
+
height?: number;
|
|
4886
5409
|
}
|
|
4887
5410
|
declare class AXConversationVideoPickerComponent implements OnDestroy, AXConversationComposerActionComponent {
|
|
4888
5411
|
private uploadsDismissed;
|
|
@@ -4907,7 +5430,11 @@ declare class AXConversationVideoPickerComponent implements OnDestroy, AXConvers
|
|
|
4907
5430
|
readonly isDragging: _angular_core.WritableSignal<boolean>;
|
|
4908
5431
|
private readonly pickerShell;
|
|
4909
5432
|
caption: string;
|
|
5433
|
+
groupItems: boolean;
|
|
5434
|
+
sendAsDocuments: boolean;
|
|
4910
5435
|
readonly allowMultiple: _angular_core.Signal<boolean>;
|
|
5436
|
+
readonly layoutMode: _angular_core.Signal<AXConversationMediaGalleryLayoutMode>;
|
|
5437
|
+
readonly mediaRows: _angular_core.Signal<AXConversationMediaGalleryRow<AXConversationVideoFile>[]>;
|
|
4911
5438
|
readonly typeIconClass: "fa-light fa-video ax-text-blue-500";
|
|
4912
5439
|
readonly emptyIconClass: _angular_core.Signal<"fa-light fa-video ax-text-blue-500" | "fa-light fa-cloud-arrow-up">;
|
|
4913
5440
|
private catalogFileTypeDef?;
|
|
@@ -4920,7 +5447,9 @@ declare class AXConversationVideoPickerComponent implements OnDestroy, AXConvers
|
|
|
4920
5447
|
private uploadVideoAt;
|
|
4921
5448
|
private patchVideo;
|
|
4922
5449
|
removeVideo(index: number): void;
|
|
5450
|
+
replaceAttachment(index: number): Promise<void>;
|
|
4923
5451
|
sendVideos(): Promise<void>;
|
|
5452
|
+
private sendVideosAsDocuments;
|
|
4924
5453
|
canSend(): boolean;
|
|
4925
5454
|
getUploadingLabel(progress: number): string;
|
|
4926
5455
|
getCancelUploadLabel(): string;
|
|
@@ -4950,7 +5479,7 @@ declare class AXConversationVoiceFileTypeProvider extends AXFileTypeInfoProvider
|
|
|
4950
5479
|
[x: string]: (ctx: _acorex_core_file.AXFileTypeContext, ...args: unknown[]) => Promise<unknown> | unknown;
|
|
4951
5480
|
}>[]>;
|
|
4952
5481
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationVoiceFileTypeProvider, never>;
|
|
4953
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
5482
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
4954
5483
|
}
|
|
4955
5484
|
|
|
4956
5485
|
declare function mergeVoiceUploadResult(payload: AXConversationMessagePayload, result: AXUploadResult): AXConversationMessagePayload;
|
|
@@ -4974,31 +5503,71 @@ declare class AXConversationVoiceRecorderComponent implements AXConversationComp
|
|
|
4974
5503
|
readonly recordingComplete: _angular_core.OutputEmitterRef<Blob>;
|
|
4975
5504
|
readonly recordingCancelled: _angular_core.OutputEmitterRef<void>;
|
|
4976
5505
|
readonly isRecording: _angular_core.WritableSignal<boolean>;
|
|
5506
|
+
readonly isPreview: _angular_core.WritableSignal<boolean>;
|
|
5507
|
+
readonly isPlayingPreview: _angular_core.WritableSignal<boolean>;
|
|
4977
5508
|
readonly isUploading: _angular_core.WritableSignal<boolean>;
|
|
4978
5509
|
readonly uploadProgress: _angular_core.WritableSignal<number>;
|
|
4979
5510
|
readonly recordingDuration: _angular_core.WritableSignal<number>;
|
|
5511
|
+
readonly previewUrl: _angular_core.WritableSignal<string>;
|
|
5512
|
+
readonly livePeaks: _angular_core.WritableSignal<number[]>;
|
|
5513
|
+
readonly liveBarCount: _angular_core.WritableSignal<number>;
|
|
4980
5514
|
private recordingStartTime;
|
|
4981
5515
|
private timerInterval?;
|
|
4982
5516
|
private mediaRecorder?;
|
|
4983
5517
|
private audioChunks;
|
|
4984
5518
|
private activeStream?;
|
|
4985
5519
|
private cancelled;
|
|
5520
|
+
private sendAfterStop;
|
|
5521
|
+
private sendInFlight;
|
|
5522
|
+
private awaitingPreviewData;
|
|
5523
|
+
private previewBlob;
|
|
4986
5524
|
private uploadAbortController?;
|
|
5525
|
+
private audioContext?;
|
|
5526
|
+
private analyser?;
|
|
5527
|
+
private timeDomain;
|
|
5528
|
+
private rafId;
|
|
5529
|
+
private lastLivePeakAt;
|
|
5530
|
+
private waveResizeObserver?;
|
|
5531
|
+
private readonly waveWrapRef;
|
|
5532
|
+
private readonly waveRef;
|
|
4987
5533
|
readonly formattedTime: _angular_core.Signal<string>;
|
|
5534
|
+
readonly canSend: _angular_core.Signal<boolean>;
|
|
5535
|
+
readonly liveDisplayBars: _angular_core.Signal<{
|
|
5536
|
+
index: number;
|
|
5537
|
+
recorded: boolean;
|
|
5538
|
+
height: number;
|
|
5539
|
+
}[]>;
|
|
5540
|
+
readonly waveConfig: _angular_core.Signal<AXWaveConfig>;
|
|
4988
5541
|
constructor();
|
|
4989
5542
|
activate(): Promise<void>;
|
|
4990
5543
|
startRecording(): Promise<void>;
|
|
4991
5544
|
private dismissHost;
|
|
4992
|
-
|
|
5545
|
+
toggleStopOrContinue(): void;
|
|
4993
5546
|
stopRecording(): void;
|
|
5547
|
+
sendRecording(): void;
|
|
5548
|
+
deleteRecording(): void;
|
|
4994
5549
|
cancelRecording(): void;
|
|
4995
|
-
/** Close the voice recorder */
|
|
4996
5550
|
cancel(): void;
|
|
5551
|
+
togglePreview(): void;
|
|
5552
|
+
onWaveStatusChanged(event: AXAudioWaveChangeEvent): void;
|
|
4997
5553
|
abortInProgressUploads(): void;
|
|
4998
|
-
|
|
5554
|
+
private pauseRecording;
|
|
5555
|
+
private continueRecording;
|
|
5556
|
+
private flushPreviewIfWaiting;
|
|
5557
|
+
private buildRecordingBlob;
|
|
5558
|
+
private discardActiveRecorder;
|
|
5559
|
+
private releaseStream;
|
|
5560
|
+
private startLiveWave;
|
|
5561
|
+
private observeWaveWidth;
|
|
5562
|
+
private updateBarCount;
|
|
5563
|
+
private tickLiveWave;
|
|
5564
|
+
private stopLiveWave;
|
|
5565
|
+
private enterPreview;
|
|
5566
|
+
private pausePreview;
|
|
5567
|
+
private clearPreview;
|
|
5568
|
+
private clearPreviewUrl;
|
|
4999
5569
|
private clearTimer;
|
|
5000
5570
|
getUploadingLabel(): string;
|
|
5001
|
-
/** Send voice message */
|
|
5002
5571
|
private sendVoiceMessage;
|
|
5003
5572
|
private stopAndCleanup;
|
|
5004
5573
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationVoiceRecorderComponent, never>;
|
|
@@ -5034,7 +5603,7 @@ declare function ensureConversationFileCatalogRegistered(registry: AXFileTypeReg
|
|
|
5034
5603
|
declare class AXConversationComposerFileTypesProvider extends AXFileTypeInfoProvider {
|
|
5035
5604
|
items(): Promise<AXFileType[]>;
|
|
5036
5605
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationComposerFileTypesProvider, never>;
|
|
5037
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
5606
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
5038
5607
|
}
|
|
5039
5608
|
|
|
5040
5609
|
declare function mergeUploadResult(type: AXConversationMessageType, payload: AXConversationMessagePayload, result: AXUploadResult): Promise<AXConversationMessagePayload>;
|
|
@@ -5117,7 +5686,10 @@ declare const AX_CONVERSATION_INFO_BAR_BLOCK_ACTION: AXConversationInfoBarAction
|
|
|
5117
5686
|
declare function toUploaderReference(item: AXConversationMediaItemFields): AXConversationUploaderReference;
|
|
5118
5687
|
|
|
5119
5688
|
declare class AXConversationAudioAttachmentComponent {
|
|
5689
|
+
private readonly platformId;
|
|
5690
|
+
protected readonly translation: AXTranslationService;
|
|
5120
5691
|
readonly item: _angular_core.InputSignal<AXConversationAudioMediaItem>;
|
|
5692
|
+
readonly look: _angular_core.InputSignal<"file" | "player">;
|
|
5121
5693
|
readonly playingChange: _angular_core.OutputEmitterRef<boolean>;
|
|
5122
5694
|
readonly timeUpdate: _angular_core.OutputEmitterRef<number>;
|
|
5123
5695
|
readonly durationChange: _angular_core.OutputEmitterRef<number>;
|
|
@@ -5126,23 +5698,45 @@ declare class AXConversationAudioAttachmentComponent {
|
|
|
5126
5698
|
private readonly audioElementRef;
|
|
5127
5699
|
private readonly mediaReference;
|
|
5128
5700
|
private readonly resolvedUrl;
|
|
5701
|
+
readonly isPlaying: _angular_core.WritableSignal<boolean>;
|
|
5702
|
+
readonly currentTime: _angular_core.WritableSignal<number>;
|
|
5703
|
+
readonly liveDuration: _angular_core.WritableSignal<number>;
|
|
5704
|
+
readonly coverVisible: _angular_core.WritableSignal<boolean>;
|
|
5129
5705
|
readonly audioUrl: _angular_core.Signal<string>;
|
|
5130
5706
|
readonly title: _angular_core.Signal<string>;
|
|
5707
|
+
readonly coverUrl: _angular_core.Signal<string>;
|
|
5131
5708
|
readonly duration: _angular_core.Signal<number>;
|
|
5709
|
+
readonly effectiveDuration: _angular_core.Signal<number>;
|
|
5710
|
+
readonly sliderMax: _angular_core.Signal<number>;
|
|
5711
|
+
readonly currentTimeLabel: _angular_core.Signal<string>;
|
|
5132
5712
|
readonly durationLabel: _angular_core.Signal<string>;
|
|
5713
|
+
readonly downloadName: _angular_core.Signal<string>;
|
|
5714
|
+
constructor();
|
|
5133
5715
|
togglePlay(): void;
|
|
5716
|
+
onPlayClick(event: AXClickEvent): void;
|
|
5717
|
+
onNativePlayClick(event: Event): void;
|
|
5134
5718
|
pause(): void;
|
|
5719
|
+
setPlaybackRate(rate: number): void;
|
|
5720
|
+
setMuted(muted: boolean): void;
|
|
5721
|
+
onSeek(value: AXRangeSliderValue): void;
|
|
5135
5722
|
onPlay(): void;
|
|
5136
5723
|
onPause(): void;
|
|
5137
5724
|
onTimeUpdate(): void;
|
|
5138
5725
|
onLoadedMetadata(): void;
|
|
5139
5726
|
onEnded(): void;
|
|
5140
5727
|
onError(): void;
|
|
5728
|
+
onCoverError(): void;
|
|
5141
5729
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationAudioAttachmentComponent, never>;
|
|
5142
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationAudioAttachmentComponent, "ax-conversation-audio-attachment", never, { "item": { "alias": "item"; "required": true; "isSignal": true; }; }, { "playingChange": "playingChange"; "timeUpdate": "timeUpdate"; "durationChange": "durationChange"; "playbackEnded": "playbackEnded"; "playbackError": "playbackError"; }, never, never, true, never>;
|
|
5730
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationAudioAttachmentComponent, "ax-conversation-audio-attachment", never, { "item": { "alias": "item"; "required": true; "isSignal": true; }; "look": { "alias": "look"; "required": false; "isSignal": true; }; }, { "playingChange": "playingChange"; "timeUpdate": "timeUpdate"; "durationChange": "durationChange"; "playbackEnded": "playbackEnded"; "playbackError": "playbackError"; }, never, never, true, never>;
|
|
5143
5731
|
}
|
|
5144
5732
|
|
|
5733
|
+
type AXConversationFileVisualKind = 'image' | 'video' | 'audio' | 'file';
|
|
5734
|
+
|
|
5145
5735
|
declare class AXConversationFileAttachmentComponent {
|
|
5736
|
+
private readonly platformId;
|
|
5737
|
+
private readonly document;
|
|
5738
|
+
protected readonly translation: AXTranslationService;
|
|
5739
|
+
private readonly thumbImage;
|
|
5146
5740
|
readonly item: _angular_core.InputSignal<AXConversationFileMediaItem>;
|
|
5147
5741
|
private readonly mediaReference;
|
|
5148
5742
|
private readonly resolvedUrl;
|
|
@@ -5150,8 +5744,12 @@ declare class AXConversationFileAttachmentComponent {
|
|
|
5150
5744
|
readonly fileName: _angular_core.Signal<string>;
|
|
5151
5745
|
readonly fileSize: _angular_core.Signal<number>;
|
|
5152
5746
|
readonly fileExtension: _angular_core.Signal<string>;
|
|
5153
|
-
readonly swatchColor: _angular_core.Signal<string>;
|
|
5154
5747
|
readonly formattedSize: _angular_core.Signal<string>;
|
|
5748
|
+
readonly kind: _angular_core.Signal<AXConversationFileVisualKind>;
|
|
5749
|
+
readonly isMedia: _angular_core.Signal<boolean>;
|
|
5750
|
+
readonly thumbUrl: _angular_core.Signal<string>;
|
|
5751
|
+
readonly previewSrc: _angular_core.Signal<string>;
|
|
5752
|
+
openImage(event: Event): void;
|
|
5155
5753
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationFileAttachmentComponent, never>;
|
|
5156
5754
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationFileAttachmentComponent, "ax-conversation-file-attachment", never, { "item": { "alias": "item"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5157
5755
|
}
|
|
@@ -5165,16 +5763,19 @@ declare class AXConversationImageAttachmentComponent {
|
|
|
5165
5763
|
private readonly document;
|
|
5166
5764
|
readonly item: _angular_core.InputSignal<AXConversationImageMediaItem>;
|
|
5167
5765
|
readonly alt: _angular_core.InputSignal<string>;
|
|
5766
|
+
/** When false, skip aspect-ratio reservation (gallery cells already have a fixed size). */
|
|
5767
|
+
readonly reserveAspect: _angular_core.InputSignal<boolean>;
|
|
5168
5768
|
readonly ready: _angular_core.WritableSignal<boolean>;
|
|
5769
|
+
readonly aspectRatio: _angular_core.Signal<string>;
|
|
5169
5770
|
private readonly mediaReference;
|
|
5170
5771
|
private readonly resolvedUrl;
|
|
5171
5772
|
readonly displayUrl: _angular_core.Signal<string>;
|
|
5172
5773
|
constructor();
|
|
5173
5774
|
onImageLoad(): void;
|
|
5174
5775
|
onImageError(): void;
|
|
5175
|
-
toggleFullscreen(event:
|
|
5776
|
+
toggleFullscreen(event: AXClickEvent): void;
|
|
5176
5777
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationImageAttachmentComponent, never>;
|
|
5177
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationImageAttachmentComponent, "ax-conversation-image-attachment", never, { "item": { "alias": "item"; "required": true; "isSignal": true; }; "alt": { "alias": "alt"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5778
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationImageAttachmentComponent, "ax-conversation-image-attachment", never, { "item": { "alias": "item"; "required": true; "isSignal": true; }; "alt": { "alias": "alt"; "required": false; "isSignal": true; }; "reserveAspect": { "alias": "reserveAspect"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5178
5779
|
}
|
|
5179
5780
|
|
|
5180
5781
|
interface AXConversationPlaybackBannerInputs {
|
|
@@ -5187,8 +5788,12 @@ interface AXConversationPlaybackBannerInputs {
|
|
|
5187
5788
|
playbackSpeed?: number;
|
|
5188
5789
|
onCycleSpeed?: () => void;
|
|
5189
5790
|
showSpeedControl?: boolean;
|
|
5791
|
+
isMuted?: boolean;
|
|
5792
|
+
onToggleMute?: () => void;
|
|
5793
|
+
showMuteControl?: boolean;
|
|
5190
5794
|
}
|
|
5191
5795
|
declare class AXConversationMediaPlaybackInfoBarBannerComponent implements AXConversationMessageInfoBarBannerComponent {
|
|
5796
|
+
protected readonly translation: AXTranslationService;
|
|
5192
5797
|
readonly message: _angular_core.InputSignal<AXConversationMessage>;
|
|
5193
5798
|
readonly title: _angular_core.InputSignal<string>;
|
|
5194
5799
|
readonly currentTime: _angular_core.InputSignal<number>;
|
|
@@ -5198,14 +5803,18 @@ declare class AXConversationMediaPlaybackInfoBarBannerComponent implements AXCon
|
|
|
5198
5803
|
readonly playbackSpeed: _angular_core.InputSignal<number>;
|
|
5199
5804
|
readonly onCycleSpeed: _angular_core.InputSignal<() => void>;
|
|
5200
5805
|
readonly showSpeedControl: _angular_core.InputSignal<boolean>;
|
|
5806
|
+
readonly isMuted: _angular_core.InputSignal<boolean>;
|
|
5807
|
+
readonly onToggleMute: _angular_core.InputSignal<() => void>;
|
|
5808
|
+
readonly showMuteControl: _angular_core.InputSignal<boolean>;
|
|
5201
5809
|
readonly iconClass: _angular_core.Signal<string>;
|
|
5202
5810
|
readonly resolvedTitle: _angular_core.Signal<string>;
|
|
5203
5811
|
readonly progressPercent: _angular_core.Signal<number>;
|
|
5204
5812
|
readonly timeLabel: _angular_core.Signal<string>;
|
|
5205
5813
|
onTogglePlayClick(): void;
|
|
5206
5814
|
onCycleSpeedClick(): void;
|
|
5815
|
+
onToggleMuteClick(): void;
|
|
5207
5816
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationMediaPlaybackInfoBarBannerComponent, never>;
|
|
5208
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationMediaPlaybackInfoBarBannerComponent, "ax-conversation-media-playback-info-bar-banner", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "currentTime": { "alias": "currentTime"; "required": false; "isSignal": true; }; "duration": { "alias": "duration"; "required": false; "isSignal": true; }; "isPlaying": { "alias": "isPlaying"; "required": false; "isSignal": true; }; "onTogglePlay": { "alias": "onTogglePlay"; "required": false; "isSignal": true; }; "playbackSpeed": { "alias": "playbackSpeed"; "required": false; "isSignal": true; }; "onCycleSpeed": { "alias": "onCycleSpeed"; "required": false; "isSignal": true; }; "showSpeedControl": { "alias": "showSpeedControl"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5817
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationMediaPlaybackInfoBarBannerComponent, "ax-conversation-media-playback-info-bar-banner", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "currentTime": { "alias": "currentTime"; "required": false; "isSignal": true; }; "duration": { "alias": "duration"; "required": false; "isSignal": true; }; "isPlaying": { "alias": "isPlaying"; "required": false; "isSignal": true; }; "onTogglePlay": { "alias": "onTogglePlay"; "required": false; "isSignal": true; }; "playbackSpeed": { "alias": "playbackSpeed"; "required": false; "isSignal": true; }; "onCycleSpeed": { "alias": "onCycleSpeed"; "required": false; "isSignal": true; }; "showSpeedControl": { "alias": "showSpeedControl"; "required": false; "isSignal": true; }; "isMuted": { "alias": "isMuted"; "required": false; "isSignal": true; }; "onToggleMute": { "alias": "onToggleMute"; "required": false; "isSignal": true; }; "showMuteControl": { "alias": "showMuteControl"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5209
5818
|
}
|
|
5210
5819
|
|
|
5211
5820
|
/**
|
|
@@ -5255,10 +5864,11 @@ declare class AXConversationMessageRendererStateComponent {
|
|
|
5255
5864
|
readonly contentRetry: _angular_core.OutputEmitterRef<void>;
|
|
5256
5865
|
readonly retryBusy: _angular_core.WritableSignal<boolean>;
|
|
5257
5866
|
private readonly currentUser;
|
|
5258
|
-
|
|
5867
|
+
readonly isOwn: _angular_core.Signal<boolean>;
|
|
5259
5868
|
readonly showFailed: _angular_core.Signal<boolean>;
|
|
5260
5869
|
readonly showContentError: _angular_core.Signal<boolean>;
|
|
5261
5870
|
readonly hasVisibleChrome: _angular_core.Signal<boolean>;
|
|
5871
|
+
readonly resolvedContentErrorIconClass: _angular_core.Signal<string>;
|
|
5262
5872
|
readonly contentErrorText: _angular_core.Signal<string>;
|
|
5263
5873
|
readonly deliveryFailedText: _angular_core.Signal<string>;
|
|
5264
5874
|
onRetry(): Promise<void>;
|
|
@@ -5276,6 +5886,8 @@ declare function syncPlaybackInfoBarBanner(infoBar: AXConversationInfoBarService
|
|
|
5276
5886
|
|
|
5277
5887
|
declare class AXConversationVideoAttachmentComponent {
|
|
5278
5888
|
readonly item: _angular_core.InputSignal<AXConversationVideoMediaItem>;
|
|
5889
|
+
/** When false, skip aspect-ratio reservation (gallery cells already have a fixed size). */
|
|
5890
|
+
readonly reserveAspect: _angular_core.InputSignal<boolean>;
|
|
5279
5891
|
readonly playingChange: _angular_core.OutputEmitterRef<boolean>;
|
|
5280
5892
|
readonly timeUpdate: _angular_core.OutputEmitterRef<number>;
|
|
5281
5893
|
readonly durationChange: _angular_core.OutputEmitterRef<number>;
|
|
@@ -5287,6 +5899,7 @@ declare class AXConversationVideoAttachmentComponent {
|
|
|
5287
5899
|
readonly playbackUrl: _angular_core.Signal<string>;
|
|
5288
5900
|
readonly duration: _angular_core.Signal<number>;
|
|
5289
5901
|
readonly durationLabel: _angular_core.Signal<string>;
|
|
5902
|
+
readonly aspectRatio: _angular_core.Signal<string>;
|
|
5290
5903
|
togglePlay(): void;
|
|
5291
5904
|
pause(): void;
|
|
5292
5905
|
onLoadedMetadata(): void;
|
|
@@ -5296,7 +5909,7 @@ declare class AXConversationVideoAttachmentComponent {
|
|
|
5296
5909
|
onEnded(): void;
|
|
5297
5910
|
onError(): void;
|
|
5298
5911
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationVideoAttachmentComponent, never>;
|
|
5299
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationVideoAttachmentComponent, "ax-conversation-video-attachment", never, { "item": { "alias": "item"; "required": true; "isSignal": true; }; }, { "playingChange": "playingChange"; "timeUpdate": "timeUpdate"; "durationChange": "durationChange"; "playbackEnded": "playbackEnded"; "playbackError": "playbackError"; }, never, never, true, never>;
|
|
5912
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationVideoAttachmentComponent, "ax-conversation-video-attachment", never, { "item": { "alias": "item"; "required": true; "isSignal": true; }; "reserveAspect": { "alias": "reserveAspect"; "required": false; "isSignal": true; }; }, { "playingChange": "playingChange"; "timeUpdate": "timeUpdate"; "durationChange": "durationChange"; "playbackEnded": "playbackEnded"; "playbackError": "playbackError"; }, never, never, true, never>;
|
|
5300
5913
|
}
|
|
5301
5914
|
|
|
5302
5915
|
declare class AXConversationAudioRendererComponent extends AXConversationMessageRendererCopyHostComponent {
|
|
@@ -5306,185 +5919,27 @@ declare class AXConversationAudioRendererComponent extends AXConversationMessage
|
|
|
5306
5919
|
private readonly infoBarService;
|
|
5307
5920
|
private readonly attachments;
|
|
5308
5921
|
private readonly _contentState;
|
|
5309
|
-
private readonly activeTrackIndex;
|
|
5310
|
-
private readonly isPlaying;
|
|
5311
|
-
private readonly currentTime;
|
|
5312
|
-
private readonly duration;
|
|
5313
|
-
readonly
|
|
5314
|
-
readonly
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
readonly
|
|
5319
|
-
readonly
|
|
5320
|
-
readonly
|
|
5321
|
-
readonly audioLoadErrorLabel: _angular_core.Signal<string>;
|
|
5322
|
-
copy(): Promise<string>;
|
|
5323
|
-
constructor();
|
|
5324
|
-
onPlayingChange(index: number, playing: boolean): void;
|
|
5325
|
-
onTimeUpdate(index: number, time: number): void;
|
|
5326
|
-
onDurationChange(index: number, duration: number): void;
|
|
5327
|
-
onPlaybackEnded(index: number): void;
|
|
5328
|
-
onPlaybackError(): void;
|
|
5329
|
-
togglePlay(): void;
|
|
5330
|
-
private pauseOtherTracks;
|
|
5331
|
-
private pausePlayback;
|
|
5332
|
-
private syncInfoBarBanner;
|
|
5333
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationAudioRendererComponent, never>;
|
|
5334
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationAudioRendererComponent, "ax-conversation-audio-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5335
|
-
}
|
|
5336
|
-
|
|
5337
|
-
declare function normalizeAudioPayload(payload: AXConversationAudioPayload): AXConversationAudioPayload;
|
|
5338
|
-
|
|
5339
|
-
declare class AXConversationFallbackRendererComponent implements AXConversationMessageRendererComponent {
|
|
5340
|
-
private readonly _contentState;
|
|
5341
|
-
readonly message: _angular_core.InputSignal<AXConversationMessage>;
|
|
5342
|
-
readonly rendererState: _angular_core.Signal<{
|
|
5343
|
-
deliveryStatus: _acorex_components_conversation.AXConversationMessageStatus;
|
|
5344
|
-
contentState: AXConversationMessageRendererContentState;
|
|
5345
|
-
}>;
|
|
5346
|
-
readonly messageTypeLabel: _angular_core.Signal<string>;
|
|
5347
|
-
/** Same tone as content-error default in {@link AXConversationMessageRendererStateComponent}. */
|
|
5348
|
-
readonly fallbackDescription: _angular_core.Signal<string>;
|
|
5349
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationFallbackRendererComponent, never>;
|
|
5350
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationFallbackRendererComponent, "ax-conversation-fallback-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5351
|
-
}
|
|
5352
|
-
|
|
5353
|
-
declare class AXConversationFileRendererComponent extends AXConversationMessageRendererCopyHostComponent {
|
|
5354
|
-
private readonly fileTypes;
|
|
5355
|
-
readonly message: _angular_core.InputSignal<AXConversationMessage>;
|
|
5356
|
-
readonly rendererState: _angular_core.Signal<{
|
|
5357
|
-
deliveryStatus: _acorex_components_conversation.AXConversationMessageStatus;
|
|
5358
|
-
contentState: "ready";
|
|
5359
|
-
}>;
|
|
5360
|
-
readonly payload: _angular_core.Signal<AXConversationFilePayload>;
|
|
5361
|
-
readonly files: _angular_core.Signal<_acorex_components_conversation.AXConversationFileMediaItem[]>;
|
|
5362
|
-
readonly caption: _angular_core.Signal<string>;
|
|
5363
|
-
copy(): Promise<string>;
|
|
5364
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationFileRendererComponent, never>;
|
|
5365
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationFileRendererComponent, "ax-conversation-file-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5366
|
-
}
|
|
5367
|
-
|
|
5368
|
-
declare function normalizeFilePayload(payload: AXConversationFilePayload): AXConversationFilePayload;
|
|
5369
|
-
|
|
5370
|
-
declare class AXConversationImageRendererComponent extends AXConversationMessageRendererCopyHostComponent {
|
|
5371
|
-
private readonly fileTypes;
|
|
5372
|
-
readonly message: _angular_core.InputSignal<AXConversationMessage>;
|
|
5373
|
-
readonly rendererState: _angular_core.Signal<{
|
|
5374
|
-
deliveryStatus: _acorex_components_conversation.AXConversationMessageStatus;
|
|
5375
|
-
contentState: "ready";
|
|
5376
|
-
}>;
|
|
5377
|
-
readonly payload: _angular_core.Signal<AXConversationImagePayload>;
|
|
5378
|
-
readonly images: _angular_core.Signal<_acorex_components_conversation.AXConversationImageMediaItem[]>;
|
|
5379
|
-
readonly caption: _angular_core.Signal<string>;
|
|
5380
|
-
copy(): Promise<string>;
|
|
5381
|
-
readonly gridModeClass: _angular_core.Signal<"ax-conversation-msg__grid--single" | "ax-conversation-msg__grid--dual" | "ax-conversation-msg__grid--multi">;
|
|
5382
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationImageRendererComponent, never>;
|
|
5383
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationImageRendererComponent, "ax-conversation-image-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5384
|
-
}
|
|
5385
|
-
|
|
5386
|
-
/** Format image message payload for rendering (array shape, safe thumbnails). */
|
|
5387
|
-
declare function normalizeImagePayload(payload: AXConversationImagePayload): AXConversationImagePayload;
|
|
5388
|
-
/** Preferred URL for grid / lightbox (never inline base64 thumbnails). */
|
|
5389
|
-
declare function resolveImageDisplayUrl(image: AXConversationImageMediaItem): string | undefined;
|
|
5390
|
-
|
|
5391
|
-
declare class AXConversationLocationRendererComponent extends AXConversationMessageRendererCopyHostComponent {
|
|
5392
|
-
private readonly _contentState;
|
|
5393
|
-
readonly message: _angular_core.InputSignal<AXConversationMessage>;
|
|
5394
|
-
readonly rendererState: _angular_core.Signal<{
|
|
5395
|
-
deliveryStatus: _acorex_components_conversation.AXConversationMessageStatus;
|
|
5396
|
-
contentState: AXConversationMessageRendererContentState;
|
|
5397
|
-
}>;
|
|
5398
|
-
readonly payload: _angular_core.Signal<AXConversationLocationPayload>;
|
|
5399
|
-
readonly latitude: _angular_core.Signal<number>;
|
|
5400
|
-
readonly longitude: _angular_core.Signal<number>;
|
|
5401
|
-
readonly locationName: _angular_core.Signal<string>;
|
|
5402
|
-
readonly address: _angular_core.Signal<string>;
|
|
5403
|
-
readonly coordinatesText: _angular_core.Signal<string>;
|
|
5404
|
-
readonly mapsUrl: _angular_core.Signal<string>;
|
|
5405
|
-
copy(): string;
|
|
5406
|
-
readonly markers: _angular_core.Signal<{
|
|
5407
|
-
latitude: number;
|
|
5408
|
-
longitude: number;
|
|
5409
|
-
popup: string;
|
|
5410
|
-
popupOpen: boolean;
|
|
5411
|
-
popupCloseButton: boolean;
|
|
5412
|
-
}[]>;
|
|
5413
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationLocationRendererComponent, never>;
|
|
5414
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationLocationRendererComponent, "ax-conversation-location-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5415
|
-
}
|
|
5416
|
-
|
|
5417
|
-
declare class AXConversationStickerRendererComponent implements AXConversationMessageRendererComponent {
|
|
5418
|
-
private readonly _contentState;
|
|
5419
|
-
readonly message: _angular_core.InputSignal<AXConversationMessage>;
|
|
5420
|
-
readonly rendererState: _angular_core.Signal<{
|
|
5421
|
-
deliveryStatus: _acorex_components_conversation.AXConversationMessageStatus;
|
|
5422
|
-
contentState: AXConversationMessageRendererContentState;
|
|
5423
|
-
}>;
|
|
5424
|
-
readonly payload: _angular_core.Signal<AXConversationStickerPayload>;
|
|
5425
|
-
private readonly mediaReference;
|
|
5426
|
-
private readonly resolvedUrl;
|
|
5427
|
-
readonly stickerUrl: _angular_core.Signal<string>;
|
|
5428
|
-
readonly alt: _angular_core.Signal<string>;
|
|
5429
|
-
constructor();
|
|
5430
|
-
onLoad(): void;
|
|
5431
|
-
onError(): void;
|
|
5432
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationStickerRendererComponent, never>;
|
|
5433
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationStickerRendererComponent, "ax-conversation-sticker-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5434
|
-
}
|
|
5435
|
-
|
|
5436
|
-
declare class AXConversationSystemRendererComponent implements AXConversationMessageRendererComponent {
|
|
5437
|
-
private readonly _contentState;
|
|
5438
|
-
readonly message: _angular_core.InputSignal<AXConversationMessage>;
|
|
5439
|
-
readonly rendererState: _angular_core.Signal<{
|
|
5440
|
-
deliveryStatus: _acorex_components_conversation.AXConversationMessageStatus;
|
|
5441
|
-
contentState: AXConversationMessageRendererContentState;
|
|
5442
|
-
}>;
|
|
5443
|
-
readonly payload: _angular_core.Signal<AXConversationSystemPayload>;
|
|
5444
|
-
readonly iconClass: _angular_core.Signal<string>;
|
|
5445
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationSystemRendererComponent, never>;
|
|
5446
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationSystemRendererComponent, "ax-conversation-system-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5447
|
-
}
|
|
5448
|
-
|
|
5449
|
-
declare class AXConversationTextRendererComponent extends AXConversationMessageRendererCopyHostComponent {
|
|
5450
|
-
private readonly infoBarService;
|
|
5451
|
-
private readonly sanitizer;
|
|
5452
|
-
private readonly _contentState;
|
|
5453
|
-
readonly message: _angular_core.InputSignal<AXConversationMessage>;
|
|
5454
|
-
readonly rendererState: _angular_core.Signal<{
|
|
5455
|
-
deliveryStatus: _acorex_components_conversation.AXConversationMessageStatus;
|
|
5456
|
-
contentState: AXConversationMessageRendererContentState;
|
|
5457
|
-
}>;
|
|
5458
|
-
readonly searchQuery: _angular_core.Signal<string>;
|
|
5459
|
-
copy(): string;
|
|
5460
|
-
readonly formattedText: _angular_core.Signal<SafeHtml>;
|
|
5461
|
-
private linkify;
|
|
5462
|
-
private highlightSearch;
|
|
5463
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationTextRendererComponent, never>;
|
|
5464
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationTextRendererComponent, "ax-conversation-text-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5465
|
-
}
|
|
5466
|
-
|
|
5467
|
-
declare class AXConversationVideoRendererComponent extends AXConversationMessageRendererCopyHostComponent {
|
|
5468
|
-
private readonly fileTypes;
|
|
5469
|
-
private readonly translation;
|
|
5470
|
-
private readonly platformId;
|
|
5471
|
-
private readonly destroyRef;
|
|
5472
|
-
private readonly infoBarService;
|
|
5473
|
-
private readonly attachments;
|
|
5474
|
-
private readonly _contentState;
|
|
5475
|
-
private readonly activeVideoIndex;
|
|
5922
|
+
private readonly activeTrackIndex;
|
|
5923
|
+
private readonly isPlaying;
|
|
5924
|
+
private readonly currentTime;
|
|
5925
|
+
private readonly duration;
|
|
5926
|
+
readonly playbackSpeed: _angular_core.WritableSignal<number>;
|
|
5927
|
+
readonly isMuted: _angular_core.WritableSignal<boolean>;
|
|
5928
|
+
private lastBannerSyncAt;
|
|
5929
|
+
private readonly speeds;
|
|
5930
|
+
private readonly bannerTogglePlay;
|
|
5931
|
+
private readonly bannerClose;
|
|
5932
|
+
private readonly bannerCycleSpeed;
|
|
5933
|
+
private readonly bannerToggleMute;
|
|
5476
5934
|
readonly message: _angular_core.InputSignal<AXConversationMessage>;
|
|
5477
5935
|
readonly rendererState: _angular_core.Signal<{
|
|
5478
5936
|
deliveryStatus: _acorex_components_conversation.AXConversationMessageStatus;
|
|
5479
5937
|
contentState: AXConversationMessageRendererContentState;
|
|
5480
5938
|
}>;
|
|
5481
|
-
readonly
|
|
5482
|
-
readonly
|
|
5483
|
-
readonly duration: _angular_core.WritableSignal<number>;
|
|
5484
|
-
readonly payload: _angular_core.Signal<AXConversationVideoPayload>;
|
|
5485
|
-
readonly videos: _angular_core.Signal<_acorex_components_conversation.AXConversationVideoMediaItem[]>;
|
|
5939
|
+
readonly payload: _angular_core.Signal<AXConversationAudioPayload>;
|
|
5940
|
+
readonly audios: _angular_core.Signal<_acorex_components_conversation.AXConversationAudioMediaItem[]>;
|
|
5486
5941
|
readonly caption: _angular_core.Signal<string>;
|
|
5487
|
-
readonly
|
|
5942
|
+
readonly audioLoadErrorLabel: _angular_core.Signal<string>;
|
|
5488
5943
|
copy(): Promise<string>;
|
|
5489
5944
|
constructor();
|
|
5490
5945
|
onPlayingChange(index: number, playing: boolean): void;
|
|
@@ -5493,498 +5948,472 @@ declare class AXConversationVideoRendererComponent extends AXConversationMessage
|
|
|
5493
5948
|
onPlaybackEnded(index: number): void;
|
|
5494
5949
|
onPlaybackError(): void;
|
|
5495
5950
|
togglePlay(): void;
|
|
5496
|
-
|
|
5951
|
+
cyclePlaybackSpeed(): void;
|
|
5952
|
+
toggleMute(): void;
|
|
5953
|
+
private pauseOtherTracks;
|
|
5497
5954
|
private pausePlayback;
|
|
5955
|
+
private applyPlaybackSettings;
|
|
5498
5956
|
private syncInfoBarBanner;
|
|
5499
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
5500
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
5957
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationAudioRendererComponent, never>;
|
|
5958
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationAudioRendererComponent, "ax-conversation-audio-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5501
5959
|
}
|
|
5502
5960
|
|
|
5503
|
-
declare function
|
|
5961
|
+
declare function normalizeAudioPayload(payload: AXConversationAudioPayload): AXConversationAudioPayload;
|
|
5504
5962
|
|
|
5505
|
-
declare class
|
|
5963
|
+
declare class AXConversationFallbackRendererComponent implements AXConversationMessageRendererComponent {
|
|
5964
|
+
private readonly _contentState;
|
|
5965
|
+
readonly message: _angular_core.InputSignal<AXConversationMessage>;
|
|
5966
|
+
readonly rendererState: _angular_core.Signal<{
|
|
5967
|
+
deliveryStatus: _acorex_components_conversation.AXConversationMessageStatus;
|
|
5968
|
+
contentState: AXConversationMessageRendererContentState;
|
|
5969
|
+
}>;
|
|
5970
|
+
readonly messageTypeLabel: _angular_core.Signal<string>;
|
|
5971
|
+
/** Same tone as content-error default in {@link AXConversationMessageRendererStateComponent}. */
|
|
5972
|
+
readonly fallbackDescription: _angular_core.Signal<string>;
|
|
5973
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationFallbackRendererComponent, never>;
|
|
5974
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationFallbackRendererComponent, "ax-conversation-fallback-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5975
|
+
}
|
|
5976
|
+
|
|
5977
|
+
declare class AXConversationFileRendererComponent extends AXConversationMessageRendererCopyHostComponent {
|
|
5506
5978
|
private readonly fileTypes;
|
|
5507
5979
|
private readonly translation;
|
|
5508
|
-
private readonly platformId;
|
|
5509
5980
|
private readonly destroyRef;
|
|
5510
5981
|
private readonly infoBarService;
|
|
5511
|
-
private readonly
|
|
5982
|
+
private readonly audioAttachments;
|
|
5512
5983
|
private readonly _contentState;
|
|
5984
|
+
private readonly activeTrackIndex;
|
|
5985
|
+
private readonly isPlaying;
|
|
5986
|
+
private readonly currentTime;
|
|
5987
|
+
private readonly duration;
|
|
5988
|
+
readonly playbackSpeed: _angular_core.WritableSignal<number>;
|
|
5989
|
+
readonly isMuted: _angular_core.WritableSignal<boolean>;
|
|
5990
|
+
private lastBannerSyncAt;
|
|
5991
|
+
private readonly speeds;
|
|
5992
|
+
private readonly bannerTogglePlay;
|
|
5993
|
+
private readonly bannerClose;
|
|
5994
|
+
private readonly bannerCycleSpeed;
|
|
5995
|
+
private readonly bannerToggleMute;
|
|
5513
5996
|
readonly message: _angular_core.InputSignal<AXConversationMessage>;
|
|
5514
5997
|
readonly rendererState: _angular_core.Signal<{
|
|
5515
5998
|
deliveryStatus: _acorex_components_conversation.AXConversationMessageStatus;
|
|
5516
5999
|
contentState: AXConversationMessageRendererContentState;
|
|
5517
6000
|
}>;
|
|
5518
|
-
readonly
|
|
5519
|
-
readonly
|
|
5520
|
-
readonly
|
|
5521
|
-
readonly
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
readonly waveformBars: _angular_core.Signal<number[]>;
|
|
5528
|
-
readonly activeBarIndex: _angular_core.Signal<number>;
|
|
5529
|
-
readonly timeLabel: _angular_core.Signal<string>;
|
|
5530
|
-
readonly voiceLoadErrorLabel: _angular_core.Signal<string>;
|
|
6001
|
+
readonly payload: _angular_core.Signal<AXConversationFilePayload>;
|
|
6002
|
+
readonly files: _angular_core.Signal<AXConversationFileMediaItem[]>;
|
|
6003
|
+
readonly caption: _angular_core.Signal<string>;
|
|
6004
|
+
readonly fileRows: _angular_core.Signal<{
|
|
6005
|
+
file: AXConversationFileMediaItem;
|
|
6006
|
+
isAudio: boolean;
|
|
6007
|
+
audio: _acorex_components_conversation.AXConversationAudioMediaItem;
|
|
6008
|
+
trackIndex: number;
|
|
6009
|
+
}[]>;
|
|
5531
6010
|
copy(): Promise<string>;
|
|
5532
6011
|
constructor();
|
|
6012
|
+
isAudioFile(file: AXConversationFileMediaItem): boolean;
|
|
6013
|
+
onPlayingChange(trackIndex: number, playing: boolean): void;
|
|
6014
|
+
onTimeUpdate(trackIndex: number, time: number): void;
|
|
6015
|
+
onDurationChange(trackIndex: number, duration: number): void;
|
|
6016
|
+
onPlaybackEnded(trackIndex: number): void;
|
|
6017
|
+
onPlaybackError(): void;
|
|
5533
6018
|
togglePlay(): void;
|
|
5534
6019
|
cyclePlaybackSpeed(): void;
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
onError(): void;
|
|
6020
|
+
toggleMute(): void;
|
|
6021
|
+
private pauseOtherTracks;
|
|
5538
6022
|
private pausePlayback;
|
|
6023
|
+
private applyPlaybackSettings;
|
|
5539
6024
|
private syncInfoBarBanner;
|
|
5540
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
5541
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
6025
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationFileRendererComponent, never>;
|
|
6026
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationFileRendererComponent, "ax-conversation-file-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5542
6027
|
}
|
|
5543
6028
|
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
* Individual message action constants
|
|
5547
|
-
*/
|
|
5548
|
-
|
|
5549
|
-
/**
|
|
5550
|
-
* Reply to message
|
|
5551
|
-
*/
|
|
5552
|
-
declare const AX_CONVERSATION_MESSAGE_REPLY_ACTION: AXConversationMessageAction;
|
|
5553
|
-
/**
|
|
5554
|
-
* Edit own message (text only)
|
|
5555
|
-
*/
|
|
5556
|
-
declare const AX_CONVERSATION_MESSAGE_EDIT_ACTION: AXConversationMessageAction;
|
|
5557
|
-
/**
|
|
5558
|
-
* Delete own message
|
|
5559
|
-
*/
|
|
5560
|
-
declare const AX_CONVERSATION_MESSAGE_DELETE_ACTION: AXConversationMessageAction;
|
|
5561
|
-
/**
|
|
5562
|
-
* Forward message to another conversation
|
|
5563
|
-
*/
|
|
5564
|
-
declare const AX_CONVERSATION_MESSAGE_FORWARD_ACTION: AXConversationMessageAction;
|
|
5565
|
-
|
|
5566
|
-
declare const AX_CONVERSATION_TEXT_RENDERER: AXConversationMessageRenderer;
|
|
5567
|
-
|
|
5568
|
-
declare const AX_CONVERSATION_IMAGE_RENDERER: AXConversationMessageRenderer;
|
|
5569
|
-
|
|
5570
|
-
declare const AX_CONVERSATION_VIDEO_RENDERER: AXConversationMessageRenderer;
|
|
5571
|
-
|
|
5572
|
-
declare const AX_CONVERSATION_AUDIO_RENDERER: AXConversationMessageRenderer;
|
|
5573
|
-
|
|
5574
|
-
declare const AX_CONVERSATION_VOICE_RENDERER: AXConversationMessageRenderer;
|
|
5575
|
-
|
|
5576
|
-
declare const AX_CONVERSATION_FILE_RENDERER: AXConversationMessageRenderer;
|
|
5577
|
-
|
|
5578
|
-
declare const AX_CONVERSATION_LOCATION_RENDERER: AXConversationMessageRenderer;
|
|
5579
|
-
|
|
5580
|
-
declare const AX_CONVERSATION_STICKER_RENDERER: AXConversationMessageRenderer;
|
|
5581
|
-
|
|
5582
|
-
declare const AX_CONVERSATION_SYSTEM_RENDERER: AXConversationMessageRenderer;
|
|
5583
|
-
|
|
5584
|
-
declare const AX_CONVERSATION_FALLBACK_RENDERER: AXConversationMessageRenderer;
|
|
5585
|
-
|
|
5586
|
-
/**
|
|
5587
|
-
* Default Conversation Item Actions Plugin
|
|
5588
|
-
* Individual action constants with AX_ prefix naming convention
|
|
5589
|
-
*/
|
|
5590
|
-
|
|
5591
|
-
/**
|
|
5592
|
-
* Mute/Unmute conversation notifications
|
|
5593
|
-
*/
|
|
5594
|
-
declare const AX_CONVERSATION_ITEM_MUTE_ACTION: AXConversationItemAction;
|
|
5595
|
-
/**
|
|
5596
|
-
* Pin/Unpin conversation to top
|
|
5597
|
-
*/
|
|
5598
|
-
declare const AX_CONVERSATION_ITEM_PIN_ACTION: AXConversationItemAction;
|
|
5599
|
-
/**
|
|
5600
|
-
* Mark conversation as read
|
|
5601
|
-
*/
|
|
5602
|
-
declare const AX_CONVERSATION_ITEM_MARK_READ_ACTION: AXConversationItemAction;
|
|
5603
|
-
/**
|
|
5604
|
-
* Divider separator before destructive actions
|
|
5605
|
-
*/
|
|
5606
|
-
declare const AX_CONVERSATION_ITEM_DIVIDER: AXConversationItemAction;
|
|
5607
|
-
/**
|
|
5608
|
-
* Delete/Leave conversation action (smart action that adapts based on conversation type)
|
|
5609
|
-
* - Private: "Delete" - Deletes the conversation
|
|
5610
|
-
* - Group/Channel: "Leave & Delete" - Leaves the group and removes it from list
|
|
5611
|
-
*/
|
|
5612
|
-
declare const AX_CONVERSATION_ITEM_DELETE_ACTION: AXConversationItemAction;
|
|
5613
|
-
/**
|
|
5614
|
-
* Block/Unblock user (private conversations only)
|
|
5615
|
-
*/
|
|
5616
|
-
declare const AX_CONVERSATION_ITEM_BLOCK_ACTION: AXConversationItemAction;
|
|
5617
|
-
|
|
5618
|
-
/**
|
|
5619
|
-
* Default Conversation Tabs Plugin
|
|
5620
|
-
* Provides sidebar conversation filter tabs (all, private, groups, etc.)
|
|
5621
|
-
*/
|
|
5622
|
-
|
|
5623
|
-
declare const AX_CONVERSATION_TAB_ALL: AXConversationTab;
|
|
5624
|
-
declare const AX_CONVERSATION_TAB_PRIVATE: AXConversationTab;
|
|
5625
|
-
declare const AX_CONVERSATION_TAB_GROUPS: AXConversationTab;
|
|
5626
|
-
declare const AX_CONVERSATION_TAB_CHANNELS: AXConversationTab;
|
|
5627
|
-
declare const AX_CONVERSATION_TAB_BOT: AXConversationTab;
|
|
5628
|
-
declare const AX_CONVERSATION_TAB_UNREAD: AXConversationTab;
|
|
5629
|
-
declare const AX_CONVERSATION_TAB_ARCHIVED: AXConversationTab;
|
|
6029
|
+
declare function fileItemAsAudioMedia(item: AXConversationFileMediaItem): AXConversationAudioMediaItem;
|
|
6030
|
+
declare function normalizeFilePayload(payload: AXConversationFilePayload): AXConversationFilePayload;
|
|
5630
6031
|
|
|
5631
|
-
declare class
|
|
5632
|
-
private readonly
|
|
5633
|
-
|
|
5634
|
-
readonly
|
|
5635
|
-
readonly
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
readonly peerUserId: _angular_core.Signal<string>;
|
|
5639
|
-
readonly useUserAvatar: _angular_core.Signal<_angular_core.Type<_acorex_components_conversation.AXConversationUserAvatarComponent>>;
|
|
5640
|
-
readonly userAvatarInputs: _angular_core.Signal<{
|
|
5641
|
-
userId: string;
|
|
5642
|
-
size: number;
|
|
5643
|
-
displayName: string;
|
|
5644
|
-
displayAvatar: string;
|
|
5645
|
-
displayIcon: string;
|
|
6032
|
+
declare class AXConversationImageRendererComponent extends AXConversationMessageRendererCopyHostComponent {
|
|
6033
|
+
private readonly fileTypes;
|
|
6034
|
+
protected readonly translation: AXTranslationService;
|
|
6035
|
+
readonly message: _angular_core.InputSignal<AXConversationMessage>;
|
|
6036
|
+
readonly rendererState: _angular_core.Signal<{
|
|
6037
|
+
deliveryStatus: _acorex_components_conversation.AXConversationMessageStatus;
|
|
6038
|
+
contentState: "ready";
|
|
5646
6039
|
}>;
|
|
5647
|
-
readonly
|
|
5648
|
-
readonly
|
|
5649
|
-
readonly
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
interface AXConversationOptions {
|
|
5658
|
-
/** User API implementation (required) */
|
|
5659
|
-
userApi: Type<AXConversationUserApi>;
|
|
5660
|
-
/** Conversation Management API implementation (required) */
|
|
5661
|
-
conversationApi: Type<AXConversationApi>;
|
|
5662
|
-
/** Message API implementation (required) */
|
|
5663
|
-
messageApi: Type<AXConversationMessageApi>;
|
|
5664
|
-
/** Realtime API implementation (optional) */
|
|
5665
|
-
realtimeApi?: Type<AXConversationRealtimeApi>;
|
|
5666
|
-
/** Configuration overrides */
|
|
5667
|
-
config?: Partial<AXConversationConfig>;
|
|
5668
|
-
/** Registry configuration */
|
|
5669
|
-
registry?: Partial<AXConversationRegistryConfiguration>;
|
|
5670
|
-
/** Optional custom avatar components for the entire conversation UI */
|
|
5671
|
-
avatarComponents?: AXConversationAvatarComponents;
|
|
5672
|
-
}
|
|
5673
|
-
declare class AXConversationModule {
|
|
5674
|
-
/**
|
|
5675
|
-
* Configure module for root module with singleton services.
|
|
5676
|
-
* @deprecated Use standalone components with provideConversation()
|
|
5677
|
-
*/
|
|
5678
|
-
static forRoot(options: AXConversationOptions): ModuleWithProviders<AXConversationModule>;
|
|
5679
|
-
/**
|
|
5680
|
-
* Configure module for lazy-loaded feature modules.
|
|
5681
|
-
* Reuses singleton services from root, optionally overrides config/registry.
|
|
5682
|
-
*/
|
|
5683
|
-
static forChild(options?: Omit<AXConversationOptions, 'userApi' | 'conversationApi' | 'messageApi' | 'realtimeApi'>): ModuleWithProviders<AXConversationModule>;
|
|
5684
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationModule, never>;
|
|
5685
|
-
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXConversationModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof AXConversationContainerComponent, typeof AXConversationSidebarComponent, typeof AXConversationInfoBarComponent, typeof AXConversationMessageListComponent, typeof AXConversationComposerComponent, typeof AXConversationInfiniteScrollDirective, typeof AXConversationDefaultConversationAvatarComponent], [typeof AXConversationContainerComponent, typeof AXConversationSidebarComponent, typeof AXConversationInfoBarComponent, typeof AXConversationMessageListComponent, typeof AXConversationComposerComponent, typeof AXConversationInfiniteScrollDirective]>;
|
|
5686
|
-
static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXConversationModule>;
|
|
5687
|
-
}
|
|
5688
|
-
/**
|
|
5689
|
-
* Provides conversation functionality for standalone applications.
|
|
5690
|
-
* Use in app config or route providers.
|
|
5691
|
-
*
|
|
5692
|
-
* @example
|
|
5693
|
-
* ```typescript
|
|
5694
|
-
* import {
|
|
5695
|
-
* AXConversationIndexedDbUserApi,
|
|
5696
|
-
* AXConversationIndexedDbConversationApi,
|
|
5697
|
-
* AXConversationIndexedDbMessageApi,
|
|
5698
|
-
* AXConversationIndexedDbRealtimeApi
|
|
5699
|
-
* } from '@acorex/components/conversation';
|
|
5700
|
-
*
|
|
5701
|
-
* export const appConfig: ApplicationConfig = {
|
|
5702
|
-
* providers: [
|
|
5703
|
-
* provideConversation({
|
|
5704
|
-
* userApi: AXConversationIndexedDbUserApi,
|
|
5705
|
-
* conversationApi: AXConversationIndexedDbConversationApi,
|
|
5706
|
-
* messageApi: AXConversationIndexedDbMessageApi,
|
|
5707
|
-
* realtimeApi: AXConversationIndexedDbRealtimeApi,
|
|
5708
|
-
* config: { },
|
|
5709
|
-
* registry: { messageActions: [myCustomAction] }
|
|
5710
|
-
* })
|
|
5711
|
-
* ]
|
|
5712
|
-
* };
|
|
5713
|
-
* ```
|
|
5714
|
-
*/
|
|
5715
|
-
declare function provideConversation(options: AXConversationOptions): Provider[];
|
|
5716
|
-
|
|
5717
|
-
interface AXConversationAvatarDisplay {
|
|
5718
|
-
name: string;
|
|
5719
|
-
avatar?: string;
|
|
5720
|
-
icon?: string;
|
|
6040
|
+
readonly payload: _angular_core.Signal<AXConversationImagePayload>;
|
|
6041
|
+
readonly images: _angular_core.Signal<_acorex_components_conversation.AXConversationImageMediaItem[]>;
|
|
6042
|
+
readonly caption: _angular_core.Signal<string>;
|
|
6043
|
+
readonly imageAlt: _angular_core.Signal<string>;
|
|
6044
|
+
readonly imageLoadErrorLabel: _angular_core.Signal<string>;
|
|
6045
|
+
copy(): Promise<string>;
|
|
6046
|
+
readonly layoutMode: _angular_core.Signal<AXConversationMediaGalleryLayoutMode>;
|
|
6047
|
+
readonly imageRows: _angular_core.Signal<AXConversationMediaGalleryRow<_acorex_components_conversation.AXConversationImageMediaItem>[]>;
|
|
6048
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationImageRendererComponent, never>;
|
|
6049
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationImageRendererComponent, "ax-conversation-image-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5721
6050
|
}
|
|
5722
|
-
/** Conversation types that resolve a single peer participant for viewer-scoped avatar/title. */
|
|
5723
|
-
declare const AX_CONVERSATION_PEER_AVATAR_TYPES: ReadonlySet<AXConversationType>;
|
|
5724
|
-
/**
|
|
5725
|
-
* Other participant in a peer-scoped conversation (excludes the current viewer).
|
|
5726
|
-
* Applies to private 1:1 and bot assist chats with exactly one non-viewer participant.
|
|
5727
|
-
*/
|
|
5728
|
-
declare function resolveConversationPeerUserId(conversation: AXConversation, currentUserId?: string): string | undefined;
|
|
5729
|
-
/** Other participant in a private chat (excludes the current user). */
|
|
5730
|
-
declare function resolvePrivatePeerUserId(conversation: AXConversation, currentUserId?: string): string | undefined;
|
|
5731
|
-
/** Peer participant for private and bot conversations. */
|
|
5732
|
-
declare function resolveConversationPeerParticipant(conversation: AXConversation, currentUserId?: string): AXConversationParticipant | undefined;
|
|
5733
|
-
/** Whether `auto` kind should render a registered user avatar for this conversation. */
|
|
5734
|
-
declare function shouldUseUserAvatarForConversation(conversation: AXConversation, currentUserId?: string): boolean;
|
|
5735
|
-
declare function resolveUserAvatarDisplay(userId: string, conversation: AXConversation | undefined, message?: AXConversationMessage): AXConversationAvatarDisplay;
|
|
5736
|
-
declare function resolveConversationAvatarDisplay(conversation: AXConversation, currentUserId?: string): AXConversationAvatarDisplay;
|
|
5737
6051
|
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
6052
|
+
/** Format image message payload for rendering (array shape, safe thumbnails). */
|
|
6053
|
+
declare function normalizeImagePayload(payload: AXConversationImagePayload): AXConversationImagePayload;
|
|
6054
|
+
/** Preferred URL for grid / lightbox (never inline base64 thumbnails). */
|
|
6055
|
+
declare function resolveImageDisplayUrl(image: AXConversationImageMediaItem): string | undefined;
|
|
6056
|
+
|
|
6057
|
+
declare class AXConversationLocationRendererComponent extends AXConversationMessageRendererCopyHostComponent {
|
|
6058
|
+
private readonly _contentState;
|
|
6059
|
+
private readonly platformId;
|
|
6060
|
+
private readonly document;
|
|
6061
|
+
private readonly fullScreen;
|
|
6062
|
+
private readonly destroyRef;
|
|
6063
|
+
private readonly mapHost;
|
|
6064
|
+
private readonly map;
|
|
6065
|
+
protected readonly translation: AXTranslationService;
|
|
6066
|
+
readonly message: _angular_core.InputSignal<AXConversationMessage>;
|
|
6067
|
+
readonly rendererState: _angular_core.Signal<{
|
|
6068
|
+
deliveryStatus: _acorex_components_conversation.AXConversationMessageStatus;
|
|
6069
|
+
contentState: AXConversationMessageRendererContentState;
|
|
6070
|
+
}>;
|
|
6071
|
+
readonly payload: _angular_core.Signal<AXConversationLocationPayload>;
|
|
6072
|
+
readonly latitude: _angular_core.Signal<number>;
|
|
6073
|
+
readonly longitude: _angular_core.Signal<number>;
|
|
6074
|
+
readonly locationName: _angular_core.Signal<string>;
|
|
6075
|
+
readonly address: _angular_core.Signal<string>;
|
|
6076
|
+
readonly coordinatesText: _angular_core.Signal<string>;
|
|
6077
|
+
readonly mapsUrl: _angular_core.Signal<string>;
|
|
6078
|
+
copy(): string;
|
|
6079
|
+
readonly markers: _angular_core.Signal<{
|
|
6080
|
+
latitude: number;
|
|
6081
|
+
longitude: number;
|
|
6082
|
+
popup: string;
|
|
6083
|
+
popupOpen: boolean;
|
|
6084
|
+
popupCloseButton: boolean;
|
|
6085
|
+
}[]>;
|
|
6086
|
+
readonly mapIsFullscreen: _angular_core.Signal<boolean>;
|
|
6087
|
+
readonly mapFullscreenLabel: _angular_core.Signal<string>;
|
|
6088
|
+
readonly mapFullscreenIconClass: _angular_core.Signal<"fa-light fa-compress" | "fa-light fa-expand">;
|
|
6089
|
+
constructor();
|
|
6090
|
+
openInMaps(event: AXClickEvent): void;
|
|
6091
|
+
toggleMapFullscreen(event: AXClickEvent): void;
|
|
6092
|
+
private exitMapFullscreen;
|
|
6093
|
+
protected scheduleMapResize(): void;
|
|
6094
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationLocationRendererComponent, never>;
|
|
6095
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationLocationRendererComponent, "ax-conversation-location-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5741
6096
|
}
|
|
5742
|
-
/** Library default when no per-conversation or global background is set (pattern-5 tile + gradient wash). */
|
|
5743
|
-
declare const AX_CONVERSATION_DEFAULT_MESSAGE_LIST_THEME_BACKGROUND: AXConversationMessageListThemeBackground;
|
|
5744
|
-
/** Predefined chat-area backgrounds for the info panel (light + dark variants). */
|
|
5745
|
-
declare const AX_CONVERSATION_MESSAGE_LIST_BACKGROUND_PRESETS: AXConversationMessageListBackgroundPreset[];
|
|
5746
|
-
declare const AX_CONVERSATION_DEFAULT_MESSAGE_LIST_BACKGROUND_PRESET_ID = "solid-default";
|
|
5747
6097
|
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
|
|
6098
|
+
declare class AXConversationStickerRendererComponent implements AXConversationMessageRendererComponent {
|
|
6099
|
+
private readonly _contentState;
|
|
6100
|
+
protected readonly translation: AXTranslationService;
|
|
6101
|
+
readonly message: _angular_core.InputSignal<AXConversationMessage>;
|
|
6102
|
+
readonly rendererState: _angular_core.Signal<{
|
|
6103
|
+
deliveryStatus: _acorex_components_conversation.AXConversationMessageStatus;
|
|
6104
|
+
contentState: AXConversationMessageRendererContentState;
|
|
6105
|
+
}>;
|
|
6106
|
+
readonly payload: _angular_core.Signal<AXConversationStickerPayload>;
|
|
6107
|
+
private readonly mediaReference;
|
|
6108
|
+
private readonly resolvedUrl;
|
|
6109
|
+
readonly stickerUrl: _angular_core.Signal<string>;
|
|
6110
|
+
readonly alt: _angular_core.Signal<string>;
|
|
6111
|
+
readonly aspectRatio: _angular_core.Signal<string>;
|
|
6112
|
+
constructor();
|
|
6113
|
+
onLoad(): void;
|
|
6114
|
+
onError(): void;
|
|
6115
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationStickerRendererComponent, never>;
|
|
6116
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationStickerRendererComponent, "ax-conversation-sticker-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
6117
|
+
}
|
|
5761
6118
|
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
declare function resolvePrivatePeerParticipant(conversation: AXConversation, currentUserId?: string): AXConversationParticipant | undefined;
|
|
5775
|
-
/**
|
|
5776
|
-
* Resolves the display title for the current viewer.
|
|
5777
|
-
* Private and bot peer-scoped chats show the other participant's name when no custom title is set.
|
|
5778
|
-
*/
|
|
5779
|
-
declare function resolveConversationTitleForViewer(conversation: AXConversation, currentUserId?: string): string;
|
|
5780
|
-
/**
|
|
5781
|
-
* Returns a viewer-scoped copy of a conversation with dynamic peer title/avatar/icon.
|
|
5782
|
-
* Does not mutate the source object.
|
|
5783
|
-
*/
|
|
5784
|
-
declare function resolveConversationForViewer(conversation: AXConversation, currentUserId?: string): AXConversation;
|
|
5785
|
-
/** Whether message reactions are enabled for a conversation. Defaults to `true` when omitted. */
|
|
5786
|
-
declare function isConversationReactionsEnabled(conversation?: AXConversation | null): boolean;
|
|
6119
|
+
declare class AXConversationSystemRendererComponent implements AXConversationMessageRendererComponent {
|
|
6120
|
+
private readonly _contentState;
|
|
6121
|
+
readonly message: _angular_core.InputSignal<AXConversationMessage>;
|
|
6122
|
+
readonly rendererState: _angular_core.Signal<{
|
|
6123
|
+
deliveryStatus: _acorex_components_conversation.AXConversationMessageStatus;
|
|
6124
|
+
contentState: AXConversationMessageRendererContentState;
|
|
6125
|
+
}>;
|
|
6126
|
+
readonly payload: _angular_core.Signal<AXConversationSystemPayload>;
|
|
6127
|
+
readonly iconClass: _angular_core.Signal<string>;
|
|
6128
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationSystemRendererComponent, never>;
|
|
6129
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationSystemRendererComponent, "ax-conversation-system-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
6130
|
+
}
|
|
5787
6131
|
|
|
5788
|
-
|
|
5789
|
-
|
|
6132
|
+
declare class AXConversationTextRendererComponent extends AXConversationMessageRendererCopyHostComponent {
|
|
6133
|
+
private readonly infoBarService;
|
|
6134
|
+
private readonly sanitizer;
|
|
6135
|
+
private readonly _contentState;
|
|
6136
|
+
readonly message: _angular_core.InputSignal<AXConversationMessage>;
|
|
6137
|
+
readonly rendererState: _angular_core.Signal<{
|
|
6138
|
+
deliveryStatus: _acorex_components_conversation.AXConversationMessageStatus;
|
|
6139
|
+
contentState: AXConversationMessageRendererContentState;
|
|
6140
|
+
}>;
|
|
6141
|
+
readonly searchQuery: _angular_core.Signal<string>;
|
|
6142
|
+
copy(): string;
|
|
6143
|
+
readonly jumboCount: _angular_core.Signal<number>;
|
|
6144
|
+
readonly isJumbo: _angular_core.Signal<boolean>;
|
|
6145
|
+
readonly jumboText: _angular_core.Signal<string>;
|
|
6146
|
+
readonly jumboGraphemes: _angular_core.Signal<string[]>;
|
|
6147
|
+
readonly formattedText: _angular_core.Signal<SafeHtml>;
|
|
6148
|
+
private linkify;
|
|
6149
|
+
private highlightSearch;
|
|
6150
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationTextRendererComponent, never>;
|
|
6151
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationTextRendererComponent, "ax-conversation-text-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
6152
|
+
}
|
|
5790
6153
|
|
|
5791
|
-
declare class
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
6154
|
+
declare class AXConversationVideoRendererComponent extends AXConversationMessageRendererCopyHostComponent {
|
|
6155
|
+
private readonly fileTypes;
|
|
6156
|
+
private readonly translation;
|
|
6157
|
+
private readonly platformId;
|
|
6158
|
+
private readonly destroyRef;
|
|
6159
|
+
private readonly infoBarService;
|
|
6160
|
+
private readonly attachments;
|
|
6161
|
+
private readonly _contentState;
|
|
6162
|
+
private readonly activeVideoIndex;
|
|
6163
|
+
readonly message: _angular_core.InputSignal<AXConversationMessage>;
|
|
6164
|
+
readonly rendererState: _angular_core.Signal<{
|
|
6165
|
+
deliveryStatus: _acorex_components_conversation.AXConversationMessageStatus;
|
|
6166
|
+
contentState: AXConversationMessageRendererContentState;
|
|
6167
|
+
}>;
|
|
6168
|
+
readonly isPlaying: _angular_core.WritableSignal<boolean>;
|
|
6169
|
+
readonly currentTime: _angular_core.WritableSignal<number>;
|
|
6170
|
+
readonly duration: _angular_core.WritableSignal<number>;
|
|
6171
|
+
readonly payload: _angular_core.Signal<AXConversationVideoPayload>;
|
|
6172
|
+
readonly videos: _angular_core.Signal<_acorex_components_conversation.AXConversationVideoMediaItem[]>;
|
|
6173
|
+
readonly caption: _angular_core.Signal<string>;
|
|
6174
|
+
readonly videoLoadErrorLabel: _angular_core.Signal<string>;
|
|
6175
|
+
readonly layoutMode: _angular_core.Signal<AXConversationMediaGalleryLayoutMode>;
|
|
6176
|
+
readonly videoRows: _angular_core.Signal<AXConversationMediaGalleryRow<_acorex_components_conversation.AXConversationVideoMediaItem>[]>;
|
|
6177
|
+
copy(): Promise<string>;
|
|
6178
|
+
constructor();
|
|
6179
|
+
onPlayingChange(index: number, playing: boolean): void;
|
|
6180
|
+
onTimeUpdate(index: number, time: number): void;
|
|
6181
|
+
onDurationChange(index: number, duration: number): void;
|
|
6182
|
+
onPlaybackEnded(index: number): void;
|
|
6183
|
+
onPlaybackError(): void;
|
|
6184
|
+
togglePlay(): void;
|
|
6185
|
+
private pauseOtherVideos;
|
|
6186
|
+
private pausePlayback;
|
|
6187
|
+
private syncInfoBarBanner;
|
|
6188
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationVideoRendererComponent, never>;
|
|
6189
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationVideoRendererComponent, "ax-conversation-video-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5812
6190
|
}
|
|
5813
6191
|
|
|
5814
|
-
|
|
5815
|
-
* Message Utilities Service
|
|
5816
|
-
* Helper functions for message formatting and display
|
|
5817
|
-
*/
|
|
6192
|
+
declare function normalizeVideoPayload(payload: AXConversationVideoPayload): AXConversationVideoPayload;
|
|
5818
6193
|
|
|
5819
|
-
declare class
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
|
|
5838
|
-
|
|
5839
|
-
|
|
5840
|
-
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
|
|
6194
|
+
declare class AXConversationVoiceRendererComponent extends AXConversationMessageRendererCopyHostComponent {
|
|
6195
|
+
private readonly fileTypes;
|
|
6196
|
+
protected readonly translation: AXTranslationService;
|
|
6197
|
+
private readonly platformId;
|
|
6198
|
+
private readonly destroyRef;
|
|
6199
|
+
private readonly infoBarService;
|
|
6200
|
+
private readonly conversationService;
|
|
6201
|
+
private readonly waveRef;
|
|
6202
|
+
private readonly _contentState;
|
|
6203
|
+
readonly message: _angular_core.InputSignal<AXConversationMessage>;
|
|
6204
|
+
readonly rendererState: _angular_core.Signal<{
|
|
6205
|
+
deliveryStatus: _acorex_components_conversation.AXConversationMessageStatus;
|
|
6206
|
+
contentState: AXConversationMessageRendererContentState;
|
|
6207
|
+
}>;
|
|
6208
|
+
readonly isPlaying: _angular_core.WritableSignal<boolean>;
|
|
6209
|
+
readonly currentTime: _angular_core.WritableSignal<number>;
|
|
6210
|
+
readonly duration: _angular_core.WritableSignal<number>;
|
|
6211
|
+
readonly playbackSpeed: _angular_core.WritableSignal<number>;
|
|
6212
|
+
readonly isMuted: _angular_core.WritableSignal<boolean>;
|
|
6213
|
+
private readonly speeds;
|
|
6214
|
+
private lastBannerSyncAt;
|
|
6215
|
+
private readonly bannerTogglePlay;
|
|
6216
|
+
private readonly bannerClose;
|
|
6217
|
+
private readonly bannerCycleSpeed;
|
|
6218
|
+
private readonly bannerToggleMute;
|
|
6219
|
+
readonly payload: _angular_core.Signal<AXConversationVoicePayload>;
|
|
6220
|
+
private readonly mediaReference;
|
|
6221
|
+
private readonly resolvedUrl;
|
|
6222
|
+
readonly voiceUrl: _angular_core.Signal<string>;
|
|
6223
|
+
readonly isOwnMessage: _angular_core.Signal<boolean>;
|
|
6224
|
+
readonly waveConfig: _angular_core.Signal<AXWaveConfig>;
|
|
6225
|
+
readonly displayDuration: _angular_core.Signal<number>;
|
|
6226
|
+
readonly timeLabel: _angular_core.Signal<string>;
|
|
6227
|
+
readonly voiceLoadErrorLabel: _angular_core.Signal<string>;
|
|
6228
|
+
copy(): Promise<string>;
|
|
6229
|
+
constructor();
|
|
6230
|
+
togglePlay(): void;
|
|
6231
|
+
cyclePlaybackSpeed(): void;
|
|
6232
|
+
toggleMute(): void;
|
|
6233
|
+
onWaveStatusChanged(event: AXAudioWaveChangeEvent): void;
|
|
6234
|
+
onEnded(): void;
|
|
6235
|
+
onError(): void;
|
|
6236
|
+
private pausePlayback;
|
|
6237
|
+
private isWavePlayable;
|
|
6238
|
+
private applyPlaybackSettings;
|
|
6239
|
+
private syncPlaybackTimeFromWave;
|
|
6240
|
+
private syncInfoBarBanner;
|
|
6241
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationVoiceRendererComponent, never>;
|
|
6242
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationVoiceRendererComponent, "ax-conversation-voice-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5846
6243
|
}
|
|
5847
6244
|
|
|
5848
6245
|
/**
|
|
5849
|
-
*
|
|
5850
|
-
*
|
|
6246
|
+
* Default Message Actions Plugin
|
|
6247
|
+
* Individual message action constants
|
|
5851
6248
|
*/
|
|
5852
6249
|
|
|
5853
6250
|
/**
|
|
5854
|
-
*
|
|
6251
|
+
* Reply to message
|
|
5855
6252
|
*/
|
|
5856
|
-
|
|
5857
|
-
/** Whether validation passed */
|
|
5858
|
-
valid: boolean;
|
|
5859
|
-
/** Error message if validation failed */
|
|
5860
|
-
error?: string;
|
|
5861
|
-
/** Error code for programmatic handling */
|
|
5862
|
-
errorCode?: string;
|
|
5863
|
-
}
|
|
6253
|
+
declare const AX_CONVERSATION_MESSAGE_REPLY_ACTION: AXConversationMessageAction;
|
|
5864
6254
|
/**
|
|
5865
|
-
*
|
|
5866
|
-
* @param text - Text to validate
|
|
5867
|
-
* @param config - Configuration for validation rules
|
|
5868
|
-
* @returns Validation result
|
|
6255
|
+
* Edit own message (text only)
|
|
5869
6256
|
*/
|
|
5870
|
-
declare
|
|
6257
|
+
declare const AX_CONVERSATION_MESSAGE_EDIT_ACTION: AXConversationMessageAction;
|
|
5871
6258
|
/**
|
|
5872
|
-
*
|
|
5873
|
-
* @param conversationId - Conversation ID to validate
|
|
5874
|
-
* @returns Validation result
|
|
6259
|
+
* Delete own message
|
|
5875
6260
|
*/
|
|
5876
|
-
declare
|
|
6261
|
+
declare const AX_CONVERSATION_MESSAGE_DELETE_ACTION: AXConversationMessageAction;
|
|
5877
6262
|
/**
|
|
5878
|
-
*
|
|
5879
|
-
* @param type - Message type to validate
|
|
5880
|
-
* @returns Validation result
|
|
6263
|
+
* Forward message to another conversation
|
|
5881
6264
|
*/
|
|
5882
|
-
declare
|
|
6265
|
+
declare const AX_CONVERSATION_MESSAGE_FORWARD_ACTION: AXConversationMessageAction;
|
|
6266
|
+
|
|
6267
|
+
declare const AX_CONVERSATION_TEXT_RENDERER: AXConversationMessageRenderer;
|
|
6268
|
+
|
|
6269
|
+
declare const AX_CONVERSATION_IMAGE_RENDERER: AXConversationMessageRenderer;
|
|
6270
|
+
|
|
6271
|
+
declare const AX_CONVERSATION_VIDEO_RENDERER: AXConversationMessageRenderer;
|
|
6272
|
+
|
|
6273
|
+
declare const AX_CONVERSATION_AUDIO_RENDERER: AXConversationMessageRenderer;
|
|
6274
|
+
|
|
6275
|
+
declare const AX_CONVERSATION_VOICE_RENDERER: AXConversationMessageRenderer;
|
|
6276
|
+
|
|
6277
|
+
declare const AX_CONVERSATION_FILE_RENDERER: AXConversationMessageRenderer;
|
|
6278
|
+
|
|
6279
|
+
declare const AX_CONVERSATION_LOCATION_RENDERER: AXConversationMessageRenderer;
|
|
6280
|
+
|
|
6281
|
+
declare const AX_CONVERSATION_STICKER_RENDERER: AXConversationMessageRenderer;
|
|
6282
|
+
|
|
6283
|
+
declare const AX_CONVERSATION_SYSTEM_RENDERER: AXConversationMessageRenderer;
|
|
6284
|
+
|
|
6285
|
+
declare const AX_CONVERSATION_FALLBACK_RENDERER: AXConversationMessageRenderer;
|
|
6286
|
+
|
|
5883
6287
|
/**
|
|
5884
|
-
*
|
|
5885
|
-
*
|
|
5886
|
-
* @param type - Message type
|
|
5887
|
-
* @returns Validation result
|
|
6288
|
+
* Default Conversation Item Actions Plugin
|
|
6289
|
+
* Individual action constants with AX_ prefix naming convention
|
|
5888
6290
|
*/
|
|
5889
|
-
|
|
6291
|
+
|
|
5890
6292
|
/**
|
|
5891
|
-
*
|
|
5892
|
-
* @param userId - User ID to validate
|
|
5893
|
-
* @returns Validation result
|
|
6293
|
+
* Mute/Unmute conversation notifications
|
|
5894
6294
|
*/
|
|
5895
|
-
declare
|
|
6295
|
+
declare const AX_CONVERSATION_ITEM_MUTE_ACTION: AXConversationItemAction;
|
|
5896
6296
|
/**
|
|
5897
|
-
*
|
|
5898
|
-
* @param userIds - Array of user IDs to validate
|
|
5899
|
-
* @param minCount - Minimum number of users required
|
|
5900
|
-
* @param maxCount - Maximum number of users allowed
|
|
5901
|
-
* @returns Validation result
|
|
6297
|
+
* Pin/Unpin conversation to top
|
|
5902
6298
|
*/
|
|
5903
|
-
declare
|
|
6299
|
+
declare const AX_CONVERSATION_ITEM_PIN_ACTION: AXConversationItemAction;
|
|
5904
6300
|
/**
|
|
5905
|
-
*
|
|
5906
|
-
* @param email - Email to validate
|
|
5907
|
-
* @returns Validation result
|
|
6301
|
+
* Mark conversation as read
|
|
5908
6302
|
*/
|
|
5909
|
-
declare
|
|
6303
|
+
declare const AX_CONVERSATION_ITEM_MARK_READ_ACTION: AXConversationItemAction;
|
|
5910
6304
|
/**
|
|
5911
|
-
*
|
|
5912
|
-
* @param url - URL to validate
|
|
5913
|
-
* @returns Validation result
|
|
6305
|
+
* Divider separator before destructive actions
|
|
5914
6306
|
*/
|
|
5915
|
-
declare
|
|
6307
|
+
declare const AX_CONVERSATION_ITEM_DIVIDER: AXConversationItemAction;
|
|
5916
6308
|
/**
|
|
5917
|
-
*
|
|
5918
|
-
*
|
|
5919
|
-
*
|
|
5920
|
-
* @returns Sanitized input
|
|
6309
|
+
* Delete/Leave conversation action (smart action that adapts based on conversation type)
|
|
6310
|
+
* - Private: "Delete" - Deletes the conversation
|
|
6311
|
+
* - Group/Channel: "Leave & Delete" - Leaves the group and removes it from list
|
|
5921
6312
|
*/
|
|
5922
|
-
declare
|
|
6313
|
+
declare const AX_CONVERSATION_ITEM_DELETE_ACTION: AXConversationItemAction;
|
|
5923
6314
|
/**
|
|
5924
|
-
*
|
|
5925
|
-
* @param latitude - Latitude to validate
|
|
5926
|
-
* @returns Validation result
|
|
6315
|
+
* Block/Unblock user (private conversations only)
|
|
5927
6316
|
*/
|
|
5928
|
-
declare
|
|
6317
|
+
declare const AX_CONVERSATION_ITEM_BLOCK_ACTION: AXConversationItemAction;
|
|
6318
|
+
|
|
5929
6319
|
/**
|
|
5930
|
-
*
|
|
5931
|
-
*
|
|
5932
|
-
* @returns Validation result
|
|
6320
|
+
* Default Conversation Tabs Plugin
|
|
6321
|
+
* Provides sidebar conversation filter tabs (all, private, groups, etc.)
|
|
5933
6322
|
*/
|
|
5934
|
-
declare function validateLongitude(longitude: number | undefined | null): AXConversationValidationResult;
|
|
5935
6323
|
|
|
5936
|
-
|
|
5937
|
-
declare
|
|
5938
|
-
|
|
5939
|
-
declare
|
|
5940
|
-
|
|
5941
|
-
declare
|
|
6324
|
+
declare const AX_CONVERSATION_TAB_ALL: AXConversationTab;
|
|
6325
|
+
declare const AX_CONVERSATION_TAB_PRIVATE: AXConversationTab;
|
|
6326
|
+
declare const AX_CONVERSATION_TAB_GROUPS: AXConversationTab;
|
|
6327
|
+
declare const AX_CONVERSATION_TAB_CHANNELS: AXConversationTab;
|
|
6328
|
+
declare const AX_CONVERSATION_TAB_BOT: AXConversationTab;
|
|
6329
|
+
declare const AX_CONVERSATION_TAB_UNREAD: AXConversationTab;
|
|
6330
|
+
declare const AX_CONVERSATION_TAB_ARCHIVED: AXConversationTab;
|
|
5942
6331
|
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
6332
|
+
declare class AXConversationDefaultConversationAvatarComponent {
|
|
6333
|
+
private readonly conversationService;
|
|
6334
|
+
private readonly userAvatarComponent;
|
|
6335
|
+
readonly conversationId: _angular_core.InputSignal<string>;
|
|
6336
|
+
readonly size: _angular_core.InputSignal<number>;
|
|
6337
|
+
private readonly currentUserId;
|
|
6338
|
+
private readonly conversation;
|
|
6339
|
+
readonly peerUserId: _angular_core.Signal<string>;
|
|
6340
|
+
readonly useUserAvatar: _angular_core.Signal<_angular_core.Type<_acorex_components_conversation.AXConversationUserAvatarComponent>>;
|
|
6341
|
+
readonly userAvatarInputs: _angular_core.Signal<{
|
|
6342
|
+
userId: string;
|
|
6343
|
+
size: number;
|
|
6344
|
+
displayName: string;
|
|
6345
|
+
displayAvatar: string;
|
|
6346
|
+
displayIcon: string;
|
|
6347
|
+
}>;
|
|
6348
|
+
readonly filteredUserAvatarInputs: _angular_core.Signal<Record<string, unknown>>;
|
|
6349
|
+
readonly fallbackDisplay: _angular_core.Signal<_acorex_components_conversation.AXConversationAvatarDisplay>;
|
|
6350
|
+
readonly fallbackInitials: _angular_core.Signal<string>;
|
|
6351
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationDefaultConversationAvatarComponent, never>;
|
|
6352
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationDefaultConversationAvatarComponent, "ax-conversation-default-conversation-avatar", never, { "conversationId": { "alias": "conversationId"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5956
6353
|
}
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
6354
|
+
|
|
6355
|
+
/**
|
|
6356
|
+
* Configuration options for conversation module
|
|
6357
|
+
*/
|
|
6358
|
+
interface AXConversationOptions {
|
|
6359
|
+
/** User API implementation (required) */
|
|
6360
|
+
userApi: Type<AXConversationUserApi>;
|
|
6361
|
+
/** Conversation Management API implementation (required) */
|
|
6362
|
+
conversationApi: Type<AXConversationApi>;
|
|
6363
|
+
/** Message API implementation (required) */
|
|
6364
|
+
messageApi: Type<AXConversationMessageApi>;
|
|
6365
|
+
/** Realtime API implementation (optional) */
|
|
6366
|
+
realtimeApi?: Type<AXConversationRealtimeApi>;
|
|
6367
|
+
/** Configuration overrides */
|
|
6368
|
+
config?: Partial<AXConversationConfig>;
|
|
6369
|
+
/** Registry configuration */
|
|
6370
|
+
registry?: Partial<AXConversationRegistryConfiguration>;
|
|
6371
|
+
/** Optional custom avatar components for the entire conversation UI */
|
|
6372
|
+
avatarComponents?: AXConversationAvatarComponents;
|
|
5972
6373
|
}
|
|
5973
|
-
declare
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
6374
|
+
declare class AXConversationModule {
|
|
6375
|
+
/**
|
|
6376
|
+
* Configure module for root module with singleton services.
|
|
6377
|
+
* @deprecated Use standalone components with provideConversation()
|
|
6378
|
+
*/
|
|
6379
|
+
static forRoot(options: AXConversationOptions): ModuleWithProviders<AXConversationModule>;
|
|
6380
|
+
/**
|
|
6381
|
+
* Configure module for lazy-loaded feature modules.
|
|
6382
|
+
* Reuses singleton services from root, optionally overrides config/registry.
|
|
6383
|
+
*/
|
|
6384
|
+
static forChild(options?: Omit<AXConversationOptions, 'userApi' | 'conversationApi' | 'messageApi' | 'realtimeApi'>): ModuleWithProviders<AXConversationModule>;
|
|
6385
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationModule, never>;
|
|
6386
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXConversationModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof AXConversationContainerComponent, typeof AXConversationSidebarComponent, typeof AXConversationInfoBarComponent, typeof AXConversationMessageListComponent, typeof AXConversationComposerComponent, typeof AXConversationInfiniteScrollDirective, typeof AXConversationDefaultConversationAvatarComponent], [typeof AXConversationContainerComponent, typeof AXConversationSidebarComponent, typeof AXConversationInfoBarComponent, typeof AXConversationMessageListComponent, typeof AXConversationComposerComponent, typeof AXConversationInfiniteScrollDirective]>;
|
|
6387
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXConversationModule>;
|
|
5983
6388
|
}
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
6389
|
+
/**
|
|
6390
|
+
* Provides conversation functionality for standalone applications.
|
|
6391
|
+
* Use in app config or route providers.
|
|
6392
|
+
*
|
|
6393
|
+
* @example
|
|
6394
|
+
* ```typescript
|
|
6395
|
+
* import {
|
|
6396
|
+
* AXConversationIndexedDbUserApi,
|
|
6397
|
+
* AXConversationIndexedDbConversationApi,
|
|
6398
|
+
* AXConversationIndexedDbMessageApi,
|
|
6399
|
+
* AXConversationIndexedDbRealtimeApi
|
|
6400
|
+
* } from '@acorex/components/conversation';
|
|
6401
|
+
*
|
|
6402
|
+
* export const appConfig: ApplicationConfig = {
|
|
6403
|
+
* providers: [
|
|
6404
|
+
* provideConversation({
|
|
6405
|
+
* userApi: AXConversationIndexedDbUserApi,
|
|
6406
|
+
* conversationApi: AXConversationIndexedDbConversationApi,
|
|
6407
|
+
* messageApi: AXConversationIndexedDbMessageApi,
|
|
6408
|
+
* realtimeApi: AXConversationIndexedDbRealtimeApi,
|
|
6409
|
+
* config: { },
|
|
6410
|
+
* registry: { messageActions: [myCustomAction] }
|
|
6411
|
+
* })
|
|
6412
|
+
* ]
|
|
6413
|
+
* };
|
|
6414
|
+
* ```
|
|
6415
|
+
*/
|
|
6416
|
+
declare function provideConversation(options: AXConversationOptions): Provider[];
|
|
5988
6417
|
|
|
5989
6418
|
/**
|
|
5990
6419
|
* Error Message Constants
|
|
@@ -6378,5 +6807,5 @@ declare function getErrorMessage(code: string, params?: Record<string, string |
|
|
|
6378
6807
|
*/
|
|
6379
6808
|
type AXConversationErrorCode = typeof AX_CONVERSATION_MESSAGE_ERRORS[keyof typeof AX_CONVERSATION_MESSAGE_ERRORS]['code'] | typeof AX_CONVERSATION_FILE_ERRORS[keyof typeof AX_CONVERSATION_FILE_ERRORS]['code'] | typeof AX_CONVERSATION_USER_ERRORS[keyof typeof AX_CONVERSATION_USER_ERRORS]['code'] | typeof AX_CONVERSATION_ERRORS[keyof typeof AX_CONVERSATION_ERRORS]['code'] | typeof AX_CONVERSATION_CONNECTION_ERRORS[keyof typeof AX_CONVERSATION_CONNECTION_ERRORS]['code'] | typeof AX_CONVERSATION_LOCATION_ERRORS[keyof typeof AX_CONVERSATION_LOCATION_ERRORS]['code'] | typeof AX_CONVERSATION_URL_ERRORS[keyof typeof AX_CONVERSATION_URL_ERRORS]['code'];
|
|
6380
6809
|
|
|
6381
|
-
export { AXConversationApi, AXConversationApiLoggerService, AXConversationAudioAttachmentComponent, AXConversationAudioFileTypeProvider, AXConversationAudioPickerComponent, AXConversationAudioRendererComponent, AXConversationAvatarComponent, AXConversationAvatarPickerComponent, AXConversationBaseRegistry, AXConversationComposerActionRegistry, AXConversationComposerComponent, AXConversationComposerFileTypesProvider, AXConversationComposerGenerationStateService, AXConversationComposerPopupComponent, AXConversationComposerService, AXConversationComposerTabRegistry, AXConversationContainerComponent, AXConversationContainerDirective, AXConversationDateUtilsService, AXConversationEmojiTabComponent, AXConversationErrorHandlerService, AXConversationFallbackRendererComponent, AXConversationFileAttachmentComponent, AXConversationFileFileTypeProvider, AXConversationFilePickerComponent, AXConversationFileRendererComponent, AXConversationForwardMessageDialogComponent, AXConversationImageAttachmentComponent, AXConversationImageFileTypeProvider, AXConversationImagePickerComponent, AXConversationImageRendererComponent, AXConversationInfiniteScrollDirective, AXConversationInfoBarActionRegistry, AXConversationInfoBarComponent, AXConversationInfoBarSearchComponent, AXConversationInfoBarService, AXConversationItemActionRegistry, AXConversationLocationPickerComponent, AXConversationLocationRendererComponent, AXConversationMediaPlaybackInfoBarBannerComponent, AXConversationMessageActionRegistry, AXConversationMessageApi, AXConversationMessageListComponent, AXConversationMessageListNoActiveDefaultComponent, AXConversationMessageListService, AXConversationMessageRendererCopyHostComponent, AXConversationMessageRendererRegistry, AXConversationMessageRendererStateComponent, AXConversationMessageUtilsService, AXConversationModule, AXConversationNewDialogComponent, AXConversationPickerCaptionComponent, AXConversationPickerEmptyComponent, AXConversationPickerFooterComponent, AXConversationPickerHeaderComponent, AXConversationPickerShellComponent, AXConversationPickerToolbarComponent, AXConversationRealtimeApi, AXConversationRegistryComponentOutletComponent, AXConversationRegistryService, AXConversationService, AXConversationSidebarComponent, AXConversationSidebarService, AXConversationStickerRendererComponent, AXConversationStickerTabComponent, AXConversationSystemRendererComponent, AXConversationTabRegistry, AXConversationTextRendererComponent, AXConversationUserApi, AXConversationVideoAttachmentComponent, AXConversationVideoFileTypeProvider, AXConversationVideoPickerComponent, AXConversationVideoRendererComponent, AXConversationVoiceFileTypeProvider, AXConversationVoiceRecorderComponent, AXConversationVoiceRendererComponent, AX_CONVERSATION_AUDIO_CATALOG, AX_CONVERSATION_AUDIO_PRESENTATION, AX_CONVERSATION_AUDIO_RENDERER, AX_CONVERSATION_BUILTIN_COMPOSER_TABS, AX_CONVERSATION_COMPOSER_AUDIO_ACTION, AX_CONVERSATION_COMPOSER_EMOJI_ACTION, AX_CONVERSATION_COMPOSER_EMOJI_TAB, AX_CONVERSATION_COMPOSER_FILE_ACTION, AX_CONVERSATION_COMPOSER_IMAGE_ACTION, AX_CONVERSATION_COMPOSER_LOCATION_ACTION, AX_CONVERSATION_COMPOSER_STICKER_TAB, AX_CONVERSATION_COMPOSER_VIDEO_ACTION, AX_CONVERSATION_COMPOSER_VOICE_RECORDING_ACTION, AX_CONVERSATION_CONFIG, AX_CONVERSATION_CONNECTION_ERRORS, AX_CONVERSATION_CONVERSATION_AVATAR_COMPONENT, AX_CONVERSATION_DEFAULT_COMPOSER_ACTIONS, AX_CONVERSATION_DEFAULT_COMPOSER_TABS, AX_CONVERSATION_DEFAULT_CONVERSATION_ITEM_ACTIONS, AX_CONVERSATION_DEFAULT_CONVERSATION_TABS, AX_CONVERSATION_DEFAULT_GROUP_ICON, AX_CONVERSATION_DEFAULT_INFO_BAR_ACTIONS, AX_CONVERSATION_DEFAULT_MESSAGE_ACTIONS, AX_CONVERSATION_DEFAULT_MESSAGE_LIST_BACKGROUND, AX_CONVERSATION_DEFAULT_MESSAGE_LIST_BACKGROUND_PRESET_ID, AX_CONVERSATION_DEFAULT_MESSAGE_LIST_THEME_BACKGROUND, AX_CONVERSATION_DEFAULT_MESSAGE_RENDERERS, AX_CONVERSATION_DEFAULT_ROOM_PREFERENCES, AX_CONVERSATION_DEFAULT_USER_ICON, AX_CONVERSATION_ERRORS, AX_CONVERSATION_ERROR_HANDLER_CONFIG, AX_CONVERSATION_ERROR_MESSAGES, AX_CONVERSATION_FALLBACK_RENDERER, AX_CONVERSATION_FILE_CATALOG, AX_CONVERSATION_FILE_ERRORS, AX_CONVERSATION_FILE_PRESENTATION, AX_CONVERSATION_FILE_RENDERER, AX_CONVERSATION_FILE_TYPES_READY, AX_CONVERSATION_IMAGE_CATALOG, AX_CONVERSATION_IMAGE_PRESENTATION, AX_CONVERSATION_IMAGE_RENDERER, AX_CONVERSATION_INFO_BAR_ARCHIVE_ACTION, AX_CONVERSATION_INFO_BAR_BLOCK_ACTION, AX_CONVERSATION_INFO_BAR_DELETE_ACTION, AX_CONVERSATION_INFO_BAR_DIVIDER, AX_CONVERSATION_INFO_BAR_MUTE_ACTION, AX_CONVERSATION_INFO_BAR_SEARCH_ACTION, AX_CONVERSATION_ITEM_BLOCK_ACTION, AX_CONVERSATION_ITEM_DELETE_ACTION, AX_CONVERSATION_ITEM_DIVIDER, AX_CONVERSATION_ITEM_MARK_READ_ACTION, AX_CONVERSATION_ITEM_MUTE_ACTION, AX_CONVERSATION_ITEM_PIN_ACTION, AX_CONVERSATION_LOCATION_ERRORS, AX_CONVERSATION_LOCATION_RENDERER, AX_CONVERSATION_MESSAGE_DELETE_ACTION, AX_CONVERSATION_MESSAGE_EDIT_ACTION, AX_CONVERSATION_MESSAGE_ERRORS, AX_CONVERSATION_MESSAGE_FORWARD_ACTION, AX_CONVERSATION_MESSAGE_LIST_BACKGROUND_PRESETS, AX_CONVERSATION_MESSAGE_REPLY_ACTION, AX_CONVERSATION_MESSAGE_TYPE_FILE_TYPE, AX_CONVERSATION_PEER_AVATAR_TYPES, AX_CONVERSATION_REGISTRY_CONFIG, AX_CONVERSATION_STICKER_API_KEY, AX_CONVERSATION_STICKER_RENDERER, AX_CONVERSATION_SYSTEM_RENDERER, AX_CONVERSATION_TAB_ALL, AX_CONVERSATION_TAB_ARCHIVED, AX_CONVERSATION_TAB_BOT, AX_CONVERSATION_TAB_CHANNELS, AX_CONVERSATION_TAB_GROUPS, AX_CONVERSATION_TAB_PRIVATE, AX_CONVERSATION_TAB_UNREAD, AX_CONVERSATION_TEXT_RENDERER, AX_CONVERSATION_URL_ERRORS, AX_CONVERSATION_USER_AVATAR_COMPONENT, AX_CONVERSATION_USER_ERRORS, AX_CONVERSATION_VIDEO_CATALOG, AX_CONVERSATION_VIDEO_PRESENTATION, AX_CONVERSATION_VIDEO_RENDERER, AX_CONVERSATION_VOICE_CATALOG, AX_CONVERSATION_VOICE_PRESENTATION, AX_CONVERSATION_VOICE_RENDERER, AX_DEFAULT_CONVERSATION_CONFIG, abortPickerUploads, applyAudioLocalPreview, applyFileLocalPreview, applyLocalPreview, applyVideoLocalPreview, applyVoiceLocalPreview, audioItemFromUpload, bindMediaRendererContentState, buildMediaGalleryTiles, canShowRendererContentError, cleanupPickerUploads, conversationAudioUtilities, conversationFileUtilities, conversationImageUtilities, conversationVideoUtilities, conversationVoiceUtilities, copyWithFileTypeFallback, createConversationAudioFileType, createConversationFileFileType, createConversationImageFileType, createConversationVideoFileType, createConversationVoiceFileType, createLocalPreviewUrl, createObjectUrl, createPickerDragHandlers, createPickerUploadItemId, createResolvedMediaUrlSignal, deleteUploadedPickerMedia, dismissComposerPickerHost, ensureConversationFileCatalogRegistered, fetchConversationMediaPage, fileItemFromUpload, filterMessagesByMediaCategory, filterSupplementalInfoPanelMessages, findExistingPrivateConversation, formatDuration, formatErrorMessage, formatFileByteSize, formatFileSize, formatMediaDuration, formatPickerValidationMessage, getConversationMediaCategories, getConversationProfileFields, getErrorMessage, getMessageAudioItems, getMessageVideoItems, getPickerCancelUploadLabel, getPrivatePeerParticipant, hasRegistryComponent, inferFileExtensionHintFromMessage, isAttachmentListCategory, isComposerTabEnabled, isConversationReactionsEnabled, isGenericPrivateConversationTitle, isGridMediaCategory, isMessageDeliveryPending, isMessageListThemeBackground, isNonPersistableMediaUrl, isPickerItemReadyToSend, isSameMessageListBackground, isUploadAborted, limitFilesToCapacity, mediaCopyText, mergeAudioUploadResult, mergeFileUploadResult, mergeInfoPanelMessages, mergeUploadResult, mergeVideoUploadResult, mergeVoiceUploadResult, mergeWithDefaults, messageContainsLink, normalizeAudioPayload, normalizeFilePayload, normalizeImagePayload, normalizeMessageListBackgroundValue, normalizeVideoPayload, notifyMaxFilesCapacityExceeded, notifyPickerValidationErrors, openWithFileType, pickDisplayMediaUrl, pickerItemToMediaReference, pickerItemToUploadResult, provideConversation, provideConversationComposerFileTypes, provideConversationFileCatalog, reportMediaLoadError, resolveComposerMaxFiles, resolveConversationAvatarDisplay, resolveConversationComposerTabs, resolveConversationForViewer, resolveConversationMessageFileType, resolveConversationPeerParticipant, resolveConversationPeerUserId, resolveConversationTitleForViewer, resolveGalleryImageUrl, resolveImageDisplayUrl, resolveMessageListBackgroundRaw, resolveMessageListBackgroundStyle, resolveParticipantProfile, resolvePersistableMediaUrl, resolvePersistedThumbnailUrl, resolvePrivatePeerParticipant, resolvePrivatePeerUserId, resolveUserAvatarDisplay, resolveVideoThumbnailUrl, revokeObjectUrl, revokePickerBlobPreviews, sanitizeInput, shouldUseUserAvatarForConversation, syncPlaybackInfoBarBanner, toUploaderReference as toMediaItemUploaderReference, toUploaderReference$1 as toUploaderReference, uploadPickerFile, usesDefaultMessageListWallpaper, validateConversationId, validateEmail, validateLatitude, validateLongitude, validateMessagePayload, validateMessageText, validateMessageType, validateUrl, validateUserId, validateUserIds, videoItemFromUpload };
|
|
6382
|
-
export type { AXConversation, AXConversationApiError, AXConversationApiLogEntry, AXConversationApiName, AXConversationAudioMediaItem, AXConversationAudioPayload, AXConversationAvatarComponents, AXConversationAvatarDisplay, AXConversationAvatarKind, AXConversationBlockReportReason, AXConversationCleanupPickerUploadsOptions, AXConversationComposerAction, AXConversationComposerActionComponent, AXConversationComposerActionContext, AXConversationComposerGenerationPhase, AXConversationComposerPickerUploadItem, AXConversationComposerPrimaryButtonMode, AXConversationComposerTab, AXConversationComposerTabFeature, AXConversationConfig, AXConversationConnectionStatus, AXConversationConversationAvatarComponent, AXConversationCreateData, AXConversationDeleteMessageCommand, AXConversationDropdownMenuItem, AXConversationEditMessageCommand, AXConversationError, AXConversationErrorCode, AXConversationErrorHandlerConfig, AXConversationErrorMessage, AXConversationErrorSeverity, AXConversationFeatures, AXConversationFileMediaItem, AXConversationFilePayload, AXConversationFilter, AXConversationFilters, AXConversationGroupedReaction, AXConversationImageMediaItem, AXConversationImagePayload, AXConversationInfoBarAction, AXConversationInfoBarActionComponent, AXConversationInfoBarActionContext, AXConversationInfoBarActiveBanner, AXConversationInfoBarActiveComponent, AXConversationInfoProfileField, AXConversationItemAction, AXConversationItemActionContext, AXConversationLink, AXConversationLinkPreview, AXConversationLoadMessagesResult, AXConversationLocationPayload, AXConversationMediaCategory, AXConversationMediaCategoryId, AXConversationMediaGalleryTile, AXConversationMediaItemFields, AXConversationMediaPageResult, AXConversationMention, AXConversationMessage, AXConversationMessageAction, AXConversationMessageActionContext, AXConversationMessageForwardData, AXConversationMessageInfoBarBannerComponent, AXConversationMessageListBackground, AXConversationMessageListBackgroundPreset, AXConversationMessageListEmptyComponent, AXConversationMessageListThemeBackground, AXConversationMessagePayload, AXConversationMessageRenderer, AXConversationMessageRendererCapabilities, AXConversationMessageRendererComponent, AXConversationMessageRendererContentState, AXConversationMessageRendererState, AXConversationMessageSearchFilters, AXConversationMessageStatus, AXConversationMessageType, AXConversationMetadata, AXConversationOptions, AXConversationPaginatedResult, AXConversationPagination, AXConversationPaginationState, AXConversationParticipant, AXConversationParticipantRole, AXConversationParticipantUpdate, AXConversationPinnedMessage, AXConversationPlaybackBannerInputs, AXConversationPollOption, AXConversationPollPayload, AXConversationPresenceStatus, AXConversationPresenceUpdate, AXConversationReaction, AXConversationReadReceipt, AXConversationRegistryComponentRef, AXConversationRegistryConfiguration, AXConversationRegistryItem, AXConversationRoomPreferences, AXConversationRoomPreferencesMap, AXConversationSendMessageCommand, AXConversationSendMessageOptions, AXConversationSendMessageUploadSource, AXConversationSettingsUpdate, AXConversationSidebarTabsOrientation, AXConversationSort, AXConversationStickerPayload, AXConversationSystemPayload, AXConversationTab, AXConversationTextFormat, AXConversationTextPayload, AXConversationType, AXConversationTypingIndicator, AXConversationUpdateData, AXConversationUploadOptions, AXConversationUploaderFilePreview, AXConversationUploaderReference, AXConversationUploaderResult, AXConversationUser, AXConversationUserAvatarComponent, AXConversationUserPresence, AXConversationUserProfile, AXConversationUserProfileUpdate, AXConversationUserSearchFilters, AXConversationValidationResult, AXConversationVideoMediaItem, AXConversationVideoPayload, AXConversationVoicePayload };
|
|
6810
|
+
export { AXConversationApi, AXConversationApiLoggerService, AXConversationAudioAttachmentComponent, AXConversationAudioFileTypeProvider, AXConversationAudioPickerComponent, AXConversationAudioRendererComponent, AXConversationAvatarComponent, AXConversationAvatarPickerComponent, AXConversationBaseRegistry, AXConversationComposerActionRegistry, AXConversationComposerComponent, AXConversationComposerFileTypesProvider, AXConversationComposerGenerationStateService, AXConversationComposerPopupComponent, AXConversationComposerService, AXConversationComposerTabRegistry, AXConversationContainerComponent, AXConversationContainerDirective, AXConversationDateUtilsService, AXConversationDeleteDialogComponent, AXConversationEmojiTabComponent, AXConversationErrorHandlerService, AXConversationFallbackRendererComponent, AXConversationFileAttachmentComponent, AXConversationFileFileTypeProvider, AXConversationFilePickerComponent, AXConversationFileRendererComponent, AXConversationForwardMessageDialogComponent, AXConversationImageAttachmentComponent, AXConversationImageFileTypeProvider, AXConversationImagePickerComponent, AXConversationImageRendererComponent, AXConversationInfiniteScrollDirective, AXConversationInfoBarActionRegistry, AXConversationInfoBarComponent, AXConversationInfoBarSearchComponent, AXConversationInfoBarService, AXConversationItemActionRegistry, AXConversationLocationPickerComponent, AXConversationLocationRendererComponent, AXConversationMediaPlaybackInfoBarBannerComponent, AXConversationMessageActionRegistry, AXConversationMessageApi, AXConversationMessageListComponent, AXConversationMessageListNoActiveDefaultComponent, AXConversationMessageListService, AXConversationMessageRendererCopyHostComponent, AXConversationMessageRendererRegistry, AXConversationMessageRendererStateComponent, AXConversationMessageUtilsService, AXConversationModule, AXConversationNewDialogComponent, AXConversationPickerCaptionComponent, AXConversationPickerEmptyComponent, AXConversationPickerFooterComponent, AXConversationPickerHeaderComponent, AXConversationPickerOptionsComponent, AXConversationPickerShellComponent, AXConversationPickerToolbarComponent, AXConversationRealtimeApi, AXConversationRegistryComponentOutletComponent, AXConversationRegistryService, AXConversationService, AXConversationSidebarComponent, AXConversationSidebarService, AXConversationStickerRendererComponent, AXConversationStickerTabComponent, AXConversationSystemRendererComponent, AXConversationTabRegistry, AXConversationTextRendererComponent, AXConversationUserApi, AXConversationVideoAttachmentComponent, AXConversationVideoFileTypeProvider, AXConversationVideoPickerComponent, AXConversationVideoRendererComponent, AXConversationVoiceFileTypeProvider, AXConversationVoiceRecorderComponent, AXConversationVoiceRendererComponent, AX_CONVERSATION_AUDIO_CATALOG, AX_CONVERSATION_AUDIO_PRESENTATION, AX_CONVERSATION_AUDIO_RENDERER, AX_CONVERSATION_BUILTIN_COMPOSER_TABS, AX_CONVERSATION_COMPOSER_AUDIO_ACTION, AX_CONVERSATION_COMPOSER_EMOJI_ACTION, AX_CONVERSATION_COMPOSER_EMOJI_TAB, AX_CONVERSATION_COMPOSER_FILE_ACTION, AX_CONVERSATION_COMPOSER_IMAGE_ACTION, AX_CONVERSATION_COMPOSER_LOCATION_ACTION, AX_CONVERSATION_COMPOSER_STICKER_TAB, AX_CONVERSATION_COMPOSER_VIDEO_ACTION, AX_CONVERSATION_COMPOSER_VOICE_RECORDING_ACTION, AX_CONVERSATION_CONFIG, AX_CONVERSATION_CONNECTION_ERRORS, AX_CONVERSATION_CONVERSATION_AVATAR_COMPONENT, AX_CONVERSATION_DEFAULT_COMPOSER_ACTIONS, AX_CONVERSATION_DEFAULT_COMPOSER_TABS, AX_CONVERSATION_DEFAULT_CONVERSATION_ITEM_ACTIONS, AX_CONVERSATION_DEFAULT_CONVERSATION_TABS, AX_CONVERSATION_DEFAULT_GROUP_ICON, AX_CONVERSATION_DEFAULT_INFO_BAR_ACTIONS, AX_CONVERSATION_DEFAULT_MESSAGE_ACTIONS, AX_CONVERSATION_DEFAULT_MESSAGE_LIST_BACKGROUND, AX_CONVERSATION_DEFAULT_MESSAGE_LIST_BACKGROUND_PRESET_ID, AX_CONVERSATION_DEFAULT_MESSAGE_LIST_THEME_BACKGROUND, AX_CONVERSATION_DEFAULT_MESSAGE_RENDERERS, AX_CONVERSATION_DEFAULT_ROOM_PREFERENCES, AX_CONVERSATION_DEFAULT_USER_ICON, AX_CONVERSATION_ERRORS, AX_CONVERSATION_ERROR_HANDLER_CONFIG, AX_CONVERSATION_ERROR_MESSAGES, AX_CONVERSATION_FALLBACK_RENDERER, AX_CONVERSATION_FILE_CATALOG, AX_CONVERSATION_FILE_ERRORS, AX_CONVERSATION_FILE_PRESENTATION, AX_CONVERSATION_FILE_RENDERER, AX_CONVERSATION_FILE_TYPES_READY, AX_CONVERSATION_IMAGE_CATALOG, AX_CONVERSATION_IMAGE_PRESENTATION, AX_CONVERSATION_IMAGE_RENDERER, AX_CONVERSATION_INFO_BAR_ARCHIVE_ACTION, AX_CONVERSATION_INFO_BAR_BLOCK_ACTION, AX_CONVERSATION_INFO_BAR_DELETE_ACTION, AX_CONVERSATION_INFO_BAR_DIVIDER, AX_CONVERSATION_INFO_BAR_MUTE_ACTION, AX_CONVERSATION_INFO_BAR_SEARCH_ACTION, AX_CONVERSATION_ITEM_BLOCK_ACTION, AX_CONVERSATION_ITEM_DELETE_ACTION, AX_CONVERSATION_ITEM_DIVIDER, AX_CONVERSATION_ITEM_MARK_READ_ACTION, AX_CONVERSATION_ITEM_MUTE_ACTION, AX_CONVERSATION_ITEM_PIN_ACTION, AX_CONVERSATION_JUMBO_EMOJI_MAX, AX_CONVERSATION_LOCATION_ERRORS, AX_CONVERSATION_LOCATION_RENDERER, AX_CONVERSATION_MESSAGE_DELETE_ACTION, AX_CONVERSATION_MESSAGE_EDIT_ACTION, AX_CONVERSATION_MESSAGE_ERRORS, AX_CONVERSATION_MESSAGE_FORWARD_ACTION, AX_CONVERSATION_MESSAGE_LIST_BACKGROUND_PRESETS, AX_CONVERSATION_MESSAGE_REPLY_ACTION, AX_CONVERSATION_MESSAGE_TYPE_FILE_TYPE, AX_CONVERSATION_PEER_AVATAR_TYPES, AX_CONVERSATION_REGISTRY_CONFIG, AX_CONVERSATION_STICKER_API_KEY, AX_CONVERSATION_STICKER_RENDERER, AX_CONVERSATION_SYSTEM_RENDERER, AX_CONVERSATION_TAB_ALL, AX_CONVERSATION_TAB_ARCHIVED, AX_CONVERSATION_TAB_BOT, AX_CONVERSATION_TAB_CHANNELS, AX_CONVERSATION_TAB_GROUPS, AX_CONVERSATION_TAB_PRIVATE, AX_CONVERSATION_TAB_UNREAD, AX_CONVERSATION_TEXT_RENDERER, AX_CONVERSATION_URL_ERRORS, AX_CONVERSATION_USER_AVATAR_COMPONENT, AX_CONVERSATION_USER_ERRORS, AX_CONVERSATION_VIDEO_CATALOG, AX_CONVERSATION_VIDEO_PRESENTATION, AX_CONVERSATION_VIDEO_RENDERER, AX_CONVERSATION_VOICE_CATALOG, AX_CONVERSATION_VOICE_PRESENTATION, AX_CONVERSATION_VOICE_RENDERER, AX_DEFAULT_CONVERSATION_CONFIG, abortPickerUploads, applyAudioLocalPreview, applyFileLocalPreview, applyLocalPreview, applyVideoLocalPreview, applyVoiceLocalPreview, audioItemFromUpload, bindMediaRendererContentState, buildMediaGalleryTiles, canShowRendererContentError, cleanupPickerUploads, conversationAudioUtilities, conversationFileUtilities, conversationImageUtilities, conversationVideoUtilities, conversationVoiceUtilities, copyWithFileTypeFallback, countLoneEmojis, createConversationAudioFileType, createConversationFileFileType, createConversationImageFileType, createConversationVideoFileType, createConversationVoiceFileType, createLocalPreviewUrl, createObjectUrl, createPickerDragHandlers, createPickerUploadItemId, createResolvedMediaUrlSignal, deleteUploadedPickerMedia, dismissComposerPickerHost, ensureConversationFileCatalogRegistered, fetchConversationMediaPage, fileItemAsAudioMedia, fileItemFromUpload, filesFromClipboardEvent, filterMessagesByMediaCategory, filterSupplementalInfoPanelMessages, findExistingPrivateConversation, formatDuration, formatErrorMessage, formatFileByteSize, formatFileSize, formatMediaDuration, formatPickerValidationMessage, getActiveComposerPickerPasteHandler, getConversationMediaCategories, getConversationProfileFields, getErrorMessage, getMessageAudioItems, getMessageVideoItems, getPickerCancelUploadLabel, getPrivatePeerParticipant, hasRegistryComponent, inferFileExtensionHintFromMessage, isAttachmentListCategory, isComposerTabEnabled, isConversationReactionsEnabled, isConversationRoomCreator, isGenericPrivateConversationTitle, isGridMediaCategory, isGroupLikeConversation, isJumboEmojiText, isJumboEmojiTextMessage, isMessageDeliveryPending, isMessageListThemeBackground, isMessageVisibleAfterHistoryCutoff, isNonPersistableMediaUrl, isPickerItemReadyToSend, isPlainChromeMessage, isSameMessageListBackground, isUploadAborted, limitFilesToCapacity, listTextGraphemes, mediaCopyText, mergeAudioUploadResult, mergeFileUploadResult, mergeInfoPanelMessages, mergeUploadResult, mergeVideoUploadResult, mergeVoiceUploadResult, mergeWithDefaults, messageContainsLink, normalizeAudioPayload, normalizeFilePayload, normalizeImagePayload, normalizeMessageListBackgroundValue, normalizeVideoPayload, notifyMaxFilesCapacityExceeded, notifyPickerValidationErrors, openWithFileType, pickDisplayMediaUrl, pickEarliestJoinedParticipant, pickerItemToMediaReference, pickerItemToUploadResult, probeImageDimensions, probeVideoMedia, provideConversation, provideConversationComposerFileTypes, provideConversationFileCatalog, registerComposerPickerPasteHandler, reportMediaLoadError, resolveComposerMaxFiles, resolveConversationAvatarDisplay, resolveConversationComposerTabs, resolveConversationForViewer, resolveConversationMessageFileType, resolveConversationPeerParticipant, resolveConversationPeerUserId, resolveConversationTitleForViewer, resolveGalleryImageUrl, resolveImageDisplayUrl, resolveMessageChrome, resolveMessageListBackgroundRaw, resolveMessageListBackgroundStyle, resolveParticipantProfile, resolvePersistableMediaUrl, resolvePersistedThumbnailUrl, resolvePrivatePeerParticipant, resolvePrivatePeerUserId, resolveUserAvatarDisplay, resolveVideoThumbnailUrl, revokeObjectUrl, revokePickerBlobPreviews, sanitizeInput, shouldUseUserAvatarForConversation, sortUsersForForward, syncPlaybackInfoBarBanner, toUploaderReference as toMediaItemUploaderReference, toUploaderReference$1 as toUploaderReference, uploadPickerFile, usesDefaultMessageListWallpaper, validateConversationId, validateEmail, validateLatitude, validateLongitude, validateMessagePayload, validateMessageText, validateMessageType, validateUrl, validateUserId, validateUserIds, videoItemFromUpload };
|
|
6811
|
+
export type { AXConversation, AXConversationApiError, AXConversationApiLogEntry, AXConversationApiName, AXConversationAudioMediaItem, AXConversationAudioPayload, AXConversationAvatarComponents, AXConversationAvatarDisplay, AXConversationAvatarKind, AXConversationBlockReportReason, AXConversationCleanupPickerUploadsOptions, AXConversationComposerAction, AXConversationComposerActionComponent, AXConversationComposerActionContext, AXConversationComposerGenerationPhase, AXConversationComposerPickerUploadItem, AXConversationComposerPrimaryButtonMode, AXConversationComposerTab, AXConversationComposerTabFeature, AXConversationConfig, AXConversationConnectionStatus, AXConversationConversationAvatarComponent, AXConversationCreateData, AXConversationDateSeparatorKind, AXConversationDeleteDialogMode, AXConversationDeleteDialogResult, AXConversationDeleteMessageCommand, AXConversationDeleteOptions, AXConversationDropdownMenuItem, AXConversationEditMessageCommand, AXConversationError, AXConversationErrorCode, AXConversationErrorHandlerConfig, AXConversationErrorMessage, AXConversationErrorSeverity, AXConversationFeatures, AXConversationFileMediaItem, AXConversationFilePayload, AXConversationFilter, AXConversationFilters, AXConversationForwardUserSortEntry, AXConversationGroupedReaction, AXConversationImageMediaItem, AXConversationImagePayload, AXConversationInfoBarAction, AXConversationInfoBarActionComponent, AXConversationInfoBarActionContext, AXConversationInfoBarActiveBanner, AXConversationInfoBarActiveComponent, AXConversationInfoProfileField, AXConversationItemAction, AXConversationItemActionContext, AXConversationLink, AXConversationLinkPreview, AXConversationLoadMessagesResult, AXConversationLocationPayload, AXConversationMediaCategory, AXConversationMediaCategoryId, AXConversationMediaDimensions, AXConversationMediaGalleryTile, AXConversationMediaItemFields, AXConversationMediaPageResult, AXConversationMention, AXConversationMessage, AXConversationMessageAction, AXConversationMessageActionContext, AXConversationMessageChrome, AXConversationMessageClusterRole, AXConversationMessageDateGroup, AXConversationMessageForwardData, AXConversationMessageInfoBarBannerComponent, AXConversationMessageListBackground, AXConversationMessageListBackgroundPreset, AXConversationMessageListEmptyComponent, AXConversationMessageListThemeBackground, AXConversationMessagePayload, AXConversationMessageRenderer, AXConversationMessageRendererCapabilities, AXConversationMessageRendererComponent, AXConversationMessageRendererContentState, AXConversationMessageRendererState, AXConversationMessageSearchFilters, AXConversationMessageStatus, AXConversationMessageType, AXConversationMetadata, AXConversationOptions, AXConversationOutletSkeleton, AXConversationPaginatedResult, AXConversationPagination, AXConversationPaginationState, AXConversationParticipant, AXConversationParticipantRole, AXConversationParticipantUpdate, AXConversationPickerPasteHandler, AXConversationPinnedMessage, AXConversationPlaybackBannerInputs, AXConversationPollOption, AXConversationPollPayload, AXConversationPresenceStatus, AXConversationPresenceUpdate, AXConversationReaction, AXConversationReadReceipt, AXConversationRegistryComponentRef, AXConversationRegistryConfiguration, AXConversationRegistryItem, AXConversationRoomPreferences, AXConversationRoomPreferencesMap, AXConversationSendMessageCommand, AXConversationSendMessageOptions, AXConversationSendMessageUploadSource, AXConversationSettingsUpdate, AXConversationSidebarTabsOrientation, AXConversationSort, AXConversationStickerPayload, AXConversationSystemPayload, AXConversationTab, AXConversationTextFormat, AXConversationTextPayload, AXConversationType, AXConversationTypingIndicator, AXConversationUpdateData, AXConversationUploadOptions, AXConversationUploaderFilePreview, AXConversationUploaderReference, AXConversationUploaderResult, AXConversationUser, AXConversationUserAvatarComponent, AXConversationUserPresence, AXConversationUserProfile, AXConversationUserProfileUpdate, AXConversationUserSearchFilters, AXConversationValidationResult, AXConversationVideoMediaItem, AXConversationVideoPayload, AXConversationVoicePayload };
|