@acorex/components 18.5.15 → 18.5.17
Sign up to get free protection for your applications and to get access to all the features.
- package/action-sheet/lib/action-sheet.component.d.ts +26 -0
- package/alert/lib/alert.component.d.ts +50 -2
- package/audio-wave/lib/audio-wave.component.d.ts +48 -0
- package/avatar/lib/avatar.component.d.ts +20 -1
- package/badge/lib/badge.component.d.ts +8 -0
- package/bottom-navigation/lib/bottom-navigation.component.d.ts +16 -0
- package/breadcrumbs/lib/breadcrumbs-item.component.d.ts +11 -0
- package/breadcrumbs/lib/breadcrumbs.component.d.ts +11 -0
- package/button/lib/button-item-list.component.d.ts +34 -0
- package/button/lib/button-item.component.d.ts +47 -0
- package/button/lib/button.component.d.ts +36 -0
- package/button-group/lib/button-group.component.d.ts +53 -0
- package/calendar/lib/calendar-range.component.d.ts +48 -0
- package/calendar/lib/calendar.component.d.ts +114 -0
- package/check-box/lib/check-box.component.d.ts +36 -0
- package/chips/lib/chips.component.d.ts +13 -0
- package/circular-progress/lib/circular-progress.component.d.ts +67 -1
- package/collapse/lib/collapse-group.component.d.ts +38 -0
- package/collapse/lib/collapse.component.d.ts +55 -0
- package/color-box/lib/color-box.component.d.ts +28 -1
- package/color-palette/lib/color-palette-input.component.d.ts +35 -0
- package/color-palette/lib/color-palette-picker.component.d.ts +53 -0
- package/color-palette/lib/color-palette-preview.component.d.ts +17 -0
- package/color-palette/lib/color-palette-swatches.component.d.ts +30 -0
- package/color-palette/lib/color-palette.component.d.ts +8 -0
- package/comment/lib/comment-container/comment-container.component.d.ts +5 -0
- package/comment/lib/comment-item/comment-item.component.d.ts +16 -2
- package/comment/lib/comment-like/comment-like.component.d.ts +8 -0
- package/comment/lib/comment-reply/comment-reply.component.d.ts +4 -0
- package/comment/lib/comment-view/comment-view.component.d.ts +4 -0
- package/common/lib/components/base-component.class.d.ts +8 -0
- package/common/lib/components/button-base-component.class.d.ts +21 -0
- package/common/lib/components/interactive-component.class.d.ts +15 -0
- package/conversation/lib/conversation-container/conversation-container.component.d.ts +4 -0
- package/conversation/lib/conversation-input/conversation-input.component.d.ts +79 -2
- package/conversation/lib/conversation-message/conversation-message.component.d.ts +41 -0
- package/conversation/lib/conversation-messages/conversation-message-audio/conversation-message-audio.component.d.ts +62 -0
- package/conversation/lib/conversation-messages/conversation-message-file/conversation-message-file.component.d.ts +34 -0
- package/conversation/lib/conversation-messages/conversation-message-image/conversation-message-image.component.d.ts +21 -0
- package/conversation/lib/conversation-messages/conversation-message-image-popup/conversation-message-image-popup.component.d.ts +11 -0
- package/conversation/lib/conversation-messages/conversation-message-text/conversation-message-text.component.d.ts +29 -0
- package/conversation/lib/conversation-messages/conversation-message-video/conversation-message-video.component.d.ts +11 -0
- package/conversation/lib/conversation-messages/conversation-message-voice/conversation-message-voice.component.d.ts +72 -0
- package/conversation/lib/conversation-view/conversation-view.component.d.ts +22 -0
- package/data-pager/lib/data-pager-base.component.d.ts +9 -0
- package/data-pager/lib/data-pager-info.component.d.ts +14 -0
- package/data-pager/lib/data-pager-input-selector.component.d.ts +17 -0
- package/data-pager/lib/data-pager-next-buttons.components.d.ts +20 -0
- package/data-pager/lib/data-pager-numeric-selector.component.d.ts +14 -0
- package/esm2022/action-sheet/lib/action-sheet.component.mjs +21 -1
- package/esm2022/alert/lib/alert.component.mjs +48 -3
- package/esm2022/audio-wave/lib/audio-wave.component.mjs +43 -1
- package/esm2022/avatar/lib/avatar.component.mjs +21 -2
- package/esm2022/badge/lib/badge.component.mjs +9 -1
- package/esm2022/bottom-navigation/lib/bottom-navigation.component.mjs +14 -1
- package/esm2022/breadcrumbs/lib/breadcrumbs-item.component.mjs +9 -1
- package/esm2022/breadcrumbs/lib/breadcrumbs.component.mjs +6 -1
- package/esm2022/button/lib/button-item-list.component.mjs +35 -1
- package/esm2022/button/lib/button-item.component.mjs +36 -1
- package/esm2022/button/lib/button.component.mjs +39 -3
- package/esm2022/button-group/lib/button-group.component.mjs +48 -1
- package/esm2022/calendar/lib/calendar-range.component.mjs +46 -1
- package/esm2022/calendar/lib/calendar.component.mjs +112 -1
- package/esm2022/check-box/lib/check-box.component.mjs +34 -1
- package/esm2022/chips/lib/chips.component.mjs +14 -1
- package/esm2022/circular-progress/lib/circular-progress.component.mjs +69 -1
- package/esm2022/collapse/lib/collapse-group.component.mjs +39 -1
- package/esm2022/collapse/lib/collapse.component.mjs +53 -1
- package/esm2022/color-box/lib/color-box.component.mjs +23 -2
- package/esm2022/color-palette/lib/color-palette-input.component.mjs +36 -1
- package/esm2022/color-palette/lib/color-palette-picker.component.mjs +54 -1
- package/esm2022/color-palette/lib/color-palette-preview.component.mjs +18 -1
- package/esm2022/color-palette/lib/color-palette-swatches.component.mjs +28 -1
- package/esm2022/color-palette/lib/color-palette.component.mjs +9 -1
- package/esm2022/comment/lib/comment-container/comment-container.component.mjs +6 -1
- package/esm2022/comment/lib/comment-item/comment-item.component.mjs +15 -1
- package/esm2022/comment/lib/comment-like/comment-like.component.mjs +9 -1
- package/esm2022/comment/lib/comment-reply/comment-reply.component.mjs +5 -1
- package/esm2022/comment/lib/comment-view/comment-view.component.mjs +5 -1
- package/esm2022/common/lib/components/base-component.class.mjs +9 -1
- package/esm2022/common/lib/components/button-base-component.class.mjs +22 -1
- package/esm2022/common/lib/components/interactive-component.class.mjs +16 -1
- package/esm2022/conversation/lib/conversation-container/conversation-container.component.mjs +5 -1
- package/esm2022/conversation/lib/conversation-input/conversation-input.component.mjs +75 -1
- package/esm2022/conversation/lib/conversation-message/conversation-message.component.mjs +39 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-audio/conversation-message-audio.component.mjs +63 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-file/conversation-message-file.component.mjs +35 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-image/conversation-message-image.component.mjs +22 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-image-popup/conversation-message-image-popup.component.mjs +9 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-text/conversation-message-text.component.mjs +30 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-video/conversation-message-video.component.mjs +12 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-voice/conversation-message-voice.component.mjs +70 -1
- package/esm2022/conversation/lib/conversation-view/conversation-view.component.mjs +23 -1
- package/esm2022/data-pager/lib/data-pager-base.component.mjs +7 -1
- package/esm2022/data-pager/lib/data-pager-info.component.mjs +9 -1
- package/esm2022/data-pager/lib/data-pager-input-selector.component.mjs +18 -1
- package/esm2022/data-pager/lib/data-pager-next-buttons.components.mjs +18 -1
- package/esm2022/data-pager/lib/data-pager-numeric-selector.component.mjs +15 -1
- package/esm2022/scheduler/lib/scheduler-month-view.component.mjs +20 -1
- package/esm2022/scheduler/lib/scheduler-week-view.component.mjs +5 -1
- package/esm2022/scheduler/lib/scheduler.component.mjs +10 -1
- package/esm2022/search-box/lib/search-box.component.mjs +19 -2
- package/esm2022/select-box/lib/select-box.component.mjs +50 -2
- package/esm2022/selection-list/lib/selection-list.component.mjs +51 -1
- package/esm2022/side-menu/lib/side-menu.component.mjs +5 -1
- package/esm2022/skeleton/lib/skeleton.component.mjs +11 -1
- package/esm2022/slider/lib/slider.component.mjs +52 -2
- package/esm2022/step-wizard/lib/step-wizard.component.mjs +23 -1
- package/esm2022/switch/lib/switch-content.component.mjs +5 -1
- package/esm2022/switch/lib/switch.component.mjs +11 -1
- package/esm2022/tabs/lib/tab-item.component.mjs +24 -1
- package/esm2022/tabs/lib/tabs.component.mjs +36 -1
- package/esm2022/tag/lib/tag.component.mjs +2 -1
- package/esm2022/text-area/lib/text-area.component.mjs +8 -1
- package/esm2022/text-box/lib/text-box.component.mjs +13 -1
- package/esm2022/toast/lib/toast.component.mjs +6 -1
- package/esm2022/tooltip/lib/tooltip.component.mjs +5 -1
- package/esm2022/uploader/lib/uploader-dialog-container.component.mjs +16 -1
- package/esm2022/uploader/lib/uploader-drop-zone.component.mjs +5 -1
- package/esm2022/uploader/lib/uploader-list.component.mjs +8 -3
- package/esm2022/uploader/lib/uploader.models.mjs +14 -1
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-container/wysiwyg-container.component.mjs +18 -1
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-toolbar/wysiwyg-toolbar.component.mjs +106 -36
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-view/wysiwyg-view.component.mjs +9 -1
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg.service.mjs +4 -1
- package/fesm2022/acorex-components-action-sheet.mjs +20 -0
- package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
- package/fesm2022/acorex-components-alert.mjs +47 -2
- package/fesm2022/acorex-components-alert.mjs.map +1 -1
- package/fesm2022/acorex-components-audio-wave.mjs +42 -0
- package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
- package/fesm2022/acorex-components-avatar.mjs +20 -1
- package/fesm2022/acorex-components-avatar.mjs.map +1 -1
- package/fesm2022/acorex-components-badge.mjs +8 -0
- package/fesm2022/acorex-components-badge.mjs.map +1 -1
- package/fesm2022/acorex-components-bottom-navigation.mjs +13 -0
- package/fesm2022/acorex-components-bottom-navigation.mjs.map +1 -1
- package/fesm2022/acorex-components-breadcrumbs.mjs +13 -0
- package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/acorex-components-button-group.mjs +47 -0
- package/fesm2022/acorex-components-button-group.mjs.map +1 -1
- package/fesm2022/acorex-components-button.mjs +107 -2
- package/fesm2022/acorex-components-button.mjs.map +1 -1
- package/fesm2022/acorex-components-calendar.mjs +156 -0
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-check-box.mjs +33 -0
- package/fesm2022/acorex-components-check-box.mjs.map +1 -1
- package/fesm2022/acorex-components-chips.mjs +13 -0
- package/fesm2022/acorex-components-chips.mjs.map +1 -1
- package/fesm2022/acorex-components-circular-progress.mjs +68 -0
- package/fesm2022/acorex-components-circular-progress.mjs.map +1 -1
- package/fesm2022/acorex-components-collapse.mjs +90 -0
- package/fesm2022/acorex-components-collapse.mjs.map +1 -1
- package/fesm2022/acorex-components-color-box.mjs +22 -1
- package/fesm2022/acorex-components-color-box.mjs.map +1 -1
- package/fesm2022/acorex-components-color-palette.mjs +140 -0
- package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
- package/fesm2022/acorex-components-comment.mjs +35 -0
- package/fesm2022/acorex-components-comment.mjs.map +1 -1
- package/fesm2022/acorex-components-common.mjs +44 -0
- package/fesm2022/acorex-components-common.mjs.map +1 -1
- package/fesm2022/acorex-components-conversation.mjs +372 -0
- package/fesm2022/acorex-components-conversation.mjs.map +1 -1
- package/fesm2022/acorex-components-data-pager.mjs +62 -0
- package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler.mjs +32 -0
- package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
- package/fesm2022/acorex-components-search-box.mjs +18 -1
- package/fesm2022/acorex-components-search-box.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +49 -1
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/fesm2022/acorex-components-selection-list.mjs +50 -0
- package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
- package/fesm2022/acorex-components-side-menu.mjs +4 -0
- package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-skeleton.mjs +10 -0
- package/fesm2022/acorex-components-skeleton.mjs.map +1 -1
- package/fesm2022/acorex-components-slider.mjs +51 -1
- package/fesm2022/acorex-components-slider.mjs.map +1 -1
- package/fesm2022/acorex-components-step-wizard.mjs +22 -0
- package/fesm2022/acorex-components-step-wizard.mjs.map +1 -1
- package/fesm2022/acorex-components-switch.mjs +14 -0
- package/fesm2022/acorex-components-switch.mjs.map +1 -1
- package/fesm2022/acorex-components-tabs.mjs +58 -0
- package/fesm2022/acorex-components-tabs.mjs.map +1 -1
- package/fesm2022/acorex-components-tag.mjs +1 -0
- package/fesm2022/acorex-components-tag.mjs.map +1 -1
- package/fesm2022/acorex-components-text-area.mjs +7 -0
- package/fesm2022/acorex-components-text-area.mjs.map +1 -1
- package/fesm2022/acorex-components-text-box.mjs +12 -0
- package/fesm2022/acorex-components-text-box.mjs.map +1 -1
- package/fesm2022/acorex-components-toast.mjs +5 -0
- package/fesm2022/acorex-components-toast.mjs.map +1 -1
- package/fesm2022/acorex-components-tooltip.mjs +4 -0
- package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
- package/fesm2022/acorex-components-uploader.mjs +39 -2
- package/fesm2022/acorex-components-uploader.mjs.map +1 -1
- package/fesm2022/acorex-components-wysiwyg.mjs +134 -35
- package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
- package/package.json +71 -71
- package/scheduler/lib/scheduler-month-view.component.d.ts +20 -0
- package/scheduler/lib/scheduler-week-view.component.d.ts +4 -0
- package/scheduler/lib/scheduler.component.d.ts +10 -0
- package/search-box/lib/search-box.component.d.ts +19 -1
- package/select-box/lib/select-box.component.d.ts +78 -1
- package/selection-list/lib/selection-list.component.d.ts +55 -0
- package/side-menu/lib/side-menu.component.d.ts +4 -0
- package/skeleton/lib/skeleton.component.d.ts +10 -0
- package/slider/lib/slider.component.d.ts +51 -1
- package/step-wizard/lib/step-wizard.component.d.ts +23 -0
- package/switch/lib/switch-content.component.d.ts +4 -0
- package/switch/lib/switch.component.d.ts +14 -0
- package/tabs/lib/tab-item.component.d.ts +32 -0
- package/tabs/lib/tabs.component.d.ts +42 -0
- package/tag/lib/tag.component.d.ts +4 -0
- package/text-area/lib/text-area.component.d.ts +13 -0
- package/text-box/lib/text-box.component.d.ts +27 -0
- package/toast/lib/toast.component.d.ts +6 -0
- package/tooltip/lib/tooltip.component.d.ts +13 -0
- package/uploader/lib/uploader-dialog-container.component.d.ts +15 -0
- package/uploader/lib/uploader-drop-zone.component.d.ts +4 -0
- package/uploader/lib/uploader-list.component.d.ts +5 -0
- package/uploader/lib/uploader.models.d.ts +4 -0
- package/wysiwyg/lib/wysiwyg/wysiwyg-container/wysiwyg-container.component.d.ts +19 -3
- package/wysiwyg/lib/wysiwyg/wysiwyg-toolbar/wysiwyg-toolbar.component.d.ts +61 -20
- package/wysiwyg/lib/wysiwyg/wysiwyg-view/wysiwyg-view.component.d.ts +4 -0
- package/wysiwyg/lib/wysiwyg/wysiwyg.service.d.ts +3 -0
@@ -12,23 +12,52 @@ import * as i4 from "@acorex/components/avatar";
|
|
12
12
|
import * as i5 from "@acorex/components/popover";
|
13
13
|
import * as i6 from "@angular/common";
|
14
14
|
import * as i7 from "@acorex/core/format";
|
15
|
+
/**
|
16
|
+
* A component for displaying individual conversation messages.
|
17
|
+
*
|
18
|
+
* @category Components
|
19
|
+
*/
|
15
20
|
export class AXConversationMessageComponent extends MXBaseComponent {
|
16
21
|
constructor() {
|
17
22
|
super(...arguments);
|
23
|
+
/**
|
24
|
+
* @ignore
|
25
|
+
*/
|
18
26
|
this.popover = viewChild('popover');
|
27
|
+
/**
|
28
|
+
* @ignore
|
29
|
+
*/
|
19
30
|
this.conversationService = inject(AXConversationService);
|
31
|
+
/**
|
32
|
+
* The message data to display in the conversation.
|
33
|
+
*/
|
20
34
|
this.chatMessage = input();
|
35
|
+
/**
|
36
|
+
* @ignore
|
37
|
+
*/
|
21
38
|
this.registryService = inject(AXConversationMessageTypeRegistryService);
|
22
39
|
}
|
40
|
+
/**
|
41
|
+
* @ignore
|
42
|
+
*/
|
23
43
|
get isOwn() {
|
24
44
|
return !this.chatMessage().fromId;
|
25
45
|
}
|
46
|
+
/**
|
47
|
+
* @ignore
|
48
|
+
*/
|
26
49
|
get __hostClass() {
|
27
50
|
return `${this.isOwn ? 'ax-state-own' : ''} ${!this.isOwn ? 'ax-state-other' : ''}`;
|
28
51
|
}
|
52
|
+
/**
|
53
|
+
* @ignore
|
54
|
+
*/
|
29
55
|
ngOnInit() {
|
30
56
|
this._portal = new ComponentPortal(this.registryService.resolve(this.chatMessage().type).component);
|
31
57
|
}
|
58
|
+
/**
|
59
|
+
* @ignore
|
60
|
+
*/
|
32
61
|
_handleAttached(ref) {
|
33
62
|
ref = ref;
|
34
63
|
if (ref.instance && isBrowser()) {
|
@@ -48,14 +77,23 @@ export class AXConversationMessageComponent extends MXBaseComponent {
|
|
48
77
|
}
|
49
78
|
}
|
50
79
|
}
|
80
|
+
/**
|
81
|
+
* @ignore
|
82
|
+
*/
|
51
83
|
handleResendClick() {
|
52
84
|
this.popover()?.close();
|
53
85
|
this.chatMessage().onResendClick();
|
54
86
|
}
|
87
|
+
/**
|
88
|
+
* @ignore
|
89
|
+
*/
|
55
90
|
handleDeleteClick() {
|
56
91
|
this.popover()?.close();
|
57
92
|
this.chatMessage().onDeleteClick();
|
58
93
|
}
|
94
|
+
/**
|
95
|
+
* @ignore
|
96
|
+
*/
|
59
97
|
replyHandler(e) {
|
60
98
|
this.conversationService.replyId.set(e);
|
61
99
|
}
|
@@ -69,4 +107,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
69
107
|
type: HostBinding,
|
70
108
|
args: ['class']
|
71
109
|
}] } });
|
72
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVyc2F0aW9uLW1lc3NhZ2UuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2NvbnZlcnNhdGlvbi9zcmMvbGliL2NvbnZlcnNhdGlvbi1tZXNzYWdlL2NvbnZlcnNhdGlvbi1tZXNzYWdlLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9jb252ZXJzYXRpb24vc3JjL2xpYi9jb252ZXJzYXRpb24tbWVzc2FnZS9jb252ZXJzYXRpb24tbWVzc2FnZS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsZUFBZSxFQUFFLE1B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ICAgIDxheC1idXR0b24taXRlbS1saXN0PlxuICAgICAgICAgIEBpZiAoY2hhdE1lc3NhZ2UoKS5vblJlc2VuZENsaWNrKSB7XG4gICAgICAgICAgICA8YXgtYnV0dG9uLWl0ZW0gdGV4dD1cIlJlc2VuZFwiIChvbkNsaWNrKT1cImhhbmRsZVJlc2VuZENsaWNrKClcIj5cbiAgICAgICAgICAgICAgPGF4LWljb24gY2xhc3M9XCJheC1pY29uIGF4LWljb24tcmVsb2FkIGF4LWJvbGRcIj48L2F4LWljb24+XG4gICAgICAgICAgICA8L2F4LWJ1dHRvbi1pdGVtPlxuICAgICAgICAgIH1cbiAgICAgICAgICBAaWYgKGNoYXRNZXNzYWdlKCkub25EZWxldGVDbGljaykge1xuICAgICAgICAgICAgPGF4LWJ1dHRvbi1pdGVtIHRleHQ9XCJEZWxldGVcIiBjb2xvcj1cImRhbmdlclwiIChvbkNsaWNrKT1cImhhbmRsZURlbGV0ZUNsaWNrKClcIj5cbiAgICAgICAgICAgICAgPGF4LWljb24gY2xhc3M9XCJheC1pY29uIGF4LWljb24tY2xlYXIgYXgtYm9sZFwiPjwvYXgtaWNvbj5cbiAgICAgICAgICAgIDwvYXgtYnV0dG9uLWl0ZW0+XG4gICAgICAgICAgfVxuICAgICAgICA8L2F4LWJ1dHRvbi1pdGVtLWxpc3Q+XG4gICAgICA8L2Rpdj5cbiAgICA8L2F4LXBvcG92ZXI+XG4gIDwvYXgtYnV0dG9uPlxufVxuIl19
|
@@ -7,40 +7,93 @@ import * as i2 from "@acorex/components/decorators";
|
|
7
7
|
import * as i3 from "@acorex/components/slider";
|
8
8
|
import * as i4 from "@angular/common";
|
9
9
|
import * as i5 from "@acorex/core/format";
|
10
|
+
/**
|
11
|
+
* Component for displaying audio messages in a conversation.
|
12
|
+
*
|
13
|
+
* @category Components
|
14
|
+
*/
|
10
15
|
export class AXConversationMessageAudioComponent extends AXConversationMessageBaseComponent {
|
16
|
+
/**
|
17
|
+
* @ignore
|
18
|
+
*/
|
11
19
|
constructor() {
|
12
20
|
super();
|
21
|
+
/**
|
22
|
+
* @ignore
|
23
|
+
*/
|
13
24
|
this.audioState = signal('paused');
|
25
|
+
/**
|
26
|
+
* @ignore
|
27
|
+
*/
|
14
28
|
this.audioTag = viewChild('a');
|
29
|
+
/**
|
30
|
+
* @ignore
|
31
|
+
*/
|
15
32
|
this.renderer = inject(Renderer2);
|
33
|
+
/**
|
34
|
+
* @ignore
|
35
|
+
*/
|
16
36
|
this.audioRate = signal(1);
|
37
|
+
/**
|
38
|
+
* @ignore
|
39
|
+
*/
|
17
40
|
this.currentTime = signal(0);
|
41
|
+
/**
|
42
|
+
* @ignore
|
43
|
+
*/
|
18
44
|
this.duration = signal(0);
|
45
|
+
/**
|
46
|
+
* @ignore
|
47
|
+
*/
|
19
48
|
this.currentTimeFormat = signal(0);
|
49
|
+
/**
|
50
|
+
* @ignore
|
51
|
+
*/
|
20
52
|
this.durationFormat = signal(0);
|
21
53
|
afterNextRender(() => {
|
22
54
|
this.renderer.setAttribute(this.audioTag().nativeElement, 'src', this.message.content);
|
23
55
|
this.eventListeners();
|
24
56
|
});
|
25
57
|
}
|
58
|
+
/**
|
59
|
+
* @ignore
|
60
|
+
*/
|
26
61
|
eventListeners() {
|
27
62
|
this.ended();
|
28
63
|
this.durationChange();
|
29
64
|
this.timeUpdate();
|
30
65
|
}
|
66
|
+
/**
|
67
|
+
* Seeks to the specified time and resumes audio playback.
|
68
|
+
*
|
69
|
+
* @param e - Time in seconds to seek to.
|
70
|
+
* @ignore
|
71
|
+
*/
|
31
72
|
clickHandler(e) {
|
32
73
|
this.audioTag().nativeElement.pause();
|
33
74
|
this.audioTag().nativeElement.currentTime = e;
|
34
75
|
this.audioTag().nativeElement.play();
|
35
76
|
}
|
77
|
+
/**
|
78
|
+
* Pauses the audio and updates the state to 'paused'.
|
79
|
+
* @ignore
|
80
|
+
*/
|
36
81
|
handlePauseClick() {
|
37
82
|
this.audioState.set('paused');
|
38
83
|
this.audioTag().nativeElement.pause();
|
39
84
|
}
|
85
|
+
/**
|
86
|
+
* Plays the audio and updates the state to 'playing'.\
|
87
|
+
* @ignore
|
88
|
+
*/
|
40
89
|
handlePlayClick() {
|
41
90
|
this.audioState.set('playing');
|
42
91
|
this.audioTag().nativeElement.play();
|
43
92
|
}
|
93
|
+
/**
|
94
|
+
* Toggles the playback rate of the audio between 1x, 1.5x, and 2x.
|
95
|
+
* @ignore
|
96
|
+
*/
|
44
97
|
handleRateClick() {
|
45
98
|
if (this.audioRate() === 1) {
|
46
99
|
this.audioRate.set(1.5);
|
@@ -55,6 +108,9 @@ export class AXConversationMessageAudioComponent extends AXConversationMessageBa
|
|
55
108
|
this.audioTag().nativeElement.playbackRate = 1;
|
56
109
|
}
|
57
110
|
}
|
111
|
+
/**
|
112
|
+
* @ignore
|
113
|
+
*/
|
58
114
|
ended() {
|
59
115
|
fromEvent(this.audioTag().nativeElement, 'ended').subscribe((e) => {
|
60
116
|
this.audioState.set('paused');
|
@@ -62,6 +118,9 @@ export class AXConversationMessageAudioComponent extends AXConversationMessageBa
|
|
62
118
|
this.audioTag().nativeElement.currentTime = 0;
|
63
119
|
});
|
64
120
|
}
|
121
|
+
/**
|
122
|
+
* @ignore
|
123
|
+
*/
|
65
124
|
durationChange() {
|
66
125
|
fromEvent(this.audioTag().nativeElement, 'durationchange').subscribe((e) => {
|
67
126
|
if (this.audioTag().nativeElement.duration === Infinity)
|
@@ -70,6 +129,9 @@ export class AXConversationMessageAudioComponent extends AXConversationMessageBa
|
|
70
129
|
this.durationFormat.set(Math.ceil(this.audioTag().nativeElement.duration) * 1000);
|
71
130
|
});
|
72
131
|
}
|
132
|
+
/**
|
133
|
+
* @ignore
|
134
|
+
*/
|
73
135
|
timeUpdate() {
|
74
136
|
fromEvent(this.audioTag().nativeElement, 'timeupdate').subscribe((e) => {
|
75
137
|
this.currentTime.set(this.audioTag().nativeElement.currentTime);
|
@@ -83,4 +145,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
83
145
|
type: Component,
|
84
146
|
args: [{ selector: 'ax-conversation-message-audio', encapsulation: ViewEncapsulation.None, template: "<audio #a></audio>\n<ax-prefix>\n <div class=\"ax-time-rate\">\n @switch (audioState()) {\n @case ('paused') {\n {{ currentTimeFormat() | format: 'time-duration' | async }}\n }\n @case ('playing') {\n {{ currentTimeFormat() | format: 'time-duration' | async }}\n }\n @default {\n {{ durationFormat() | format: 'time-duration' | async }}\n }\n }\n <button class=\"ax-audio-speed\" (click)=\"handleRateClick()\">{{ audioRate() }}X</button>\n </div>\n</ax-prefix>\n<div class=\"ax-conversation-controller\">\n @switch (audioState()) {\n @case ('playing') {\n <button (click)=\"handlePauseClick()\">\n <i class=\"ax-icon ax-icon-pause\"></i>\n </button>\n }\n @case ('paused') {\n <button (click)=\"handlePlayClick()\">\n <i class=\"ax-icon ax-icon-play\"></i>\n </button>\n }\n }\n</div>\n<ax-slider\n class=\"ax-modify-bgSlider\"\n (onClick)=\"clickHandler($event)\"\n [maxValue]=\"duration()\"\n [minValue]=\"0\"\n [ngModel]=\"currentTime()\"\n color=\"secondary\"\n>\n</ax-slider>\n", styles: [".ax-time-rate button{margin-inline-start:.3rem;background-color:rgba(var(--ax-color-primary-fore));color:rgba(var(--ax-color-neutral-950));border-radius:.2rem;min-width:2rem}.ax-modify-bgSlider input[type=range]::-webkit-slider-runnable-track{background:rgba(var(--ax-color-primary-400));height:.5rem}.ax-modify-bgSlider input[type=range]::-moz-range-track{background:rgba(var(--ax-color-primary-400));height:.5rem}.ax-modify-bgSlider input[type=range]::-webkit-slider-thumb{margin-top:-.5rem}\n"] }]
|
85
147
|
}], ctorParameters: () => [] });
|
86
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVyc2F0aW9uLW1lc3NhZ2UtYXVkaW8uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4v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xpIGNsYXNzPVwiYXgtaWNvbiBheC1pY29uLXBsYXlcIj48L2k+XG4gICAgICA8L2J1dHRvbj5cbiAgICB9XG4gIH1cbjwvZGl2PlxuPGF4LXNsaWRlclxuICBjbGFzcz1cImF4LW1vZGlmeS1iZ1NsaWRlclwiXG4gIChvbkNsaWNrKT1cImNsaWNrSGFuZGxlcigkZXZlbnQpXCJcbiAgW21heFZhbHVlXT1cImR1cmF0aW9uKClcIlxuICBbbWluVmFsdWVdPVwiMFwiXG4gIFtuZ01vZGVsXT1cImN1cnJlbnRUaW1lKClcIlxuICBjb2xvcj1cInNlY29uZGFyeVwiXG4+XG48L2F4LXNsaWRlcj5cbiJdfQ==
|
@@ -9,14 +9,40 @@ import * as i1 from "@acorex/components/decorators";
|
|
9
9
|
import * as i2 from "@acorex/components/loading";
|
10
10
|
import * as i3 from "@angular/common";
|
11
11
|
import * as i4 from "@acorex/core/format";
|
12
|
+
/**
|
13
|
+
* Component for displaying file messages in a conversation.
|
14
|
+
*
|
15
|
+
* @category Components
|
16
|
+
*/
|
12
17
|
export class AXConversationFileMessageComponent extends AXConversationMessageBaseComponent {
|
18
|
+
/**
|
19
|
+
* @ignore
|
20
|
+
*/
|
13
21
|
constructor() {
|
14
22
|
super();
|
23
|
+
/**
|
24
|
+
* @ignore
|
25
|
+
*/
|
15
26
|
this.fileState = signal('ready');
|
27
|
+
/**
|
28
|
+
* @ignore
|
29
|
+
*/
|
16
30
|
this.fileSize = signal(null);
|
31
|
+
/**
|
32
|
+
* @ignore
|
33
|
+
*/
|
17
34
|
this.fileName = signal('');
|
35
|
+
/**
|
36
|
+
* @ignore
|
37
|
+
*/
|
18
38
|
this.fileService = inject(AXFileService);
|
39
|
+
/**
|
40
|
+
* @ignore
|
41
|
+
*/
|
19
42
|
this.http = inject(HttpClient);
|
43
|
+
/**
|
44
|
+
* @ignore
|
45
|
+
*/
|
20
46
|
this.parent = inject(AXConversationViewComponent);
|
21
47
|
afterNextRender(() => {
|
22
48
|
if (this.message.name) {
|
@@ -29,9 +55,17 @@ export class AXConversationFileMessageComponent extends AXConversationMessageBas
|
|
29
55
|
}
|
30
56
|
});
|
31
57
|
}
|
58
|
+
/**
|
59
|
+
* Emits a download action event for the file.
|
60
|
+
* @ignore
|
61
|
+
*/
|
32
62
|
handleDownloadFile() {
|
33
63
|
this.parent.onAction.emit({ component: this, data: this.message, isUserInteraction: true });
|
34
64
|
}
|
65
|
+
/**
|
66
|
+
* Emits a cancel action event for the file loading.
|
67
|
+
* @ignore
|
68
|
+
*/
|
35
69
|
handleCancelLoading() {
|
36
70
|
this.parent.onAction.emit({ component: this, data: this.message, isUserInteraction: true });
|
37
71
|
}
|
@@ -42,4 +76,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
42
76
|
type: Component,
|
43
77
|
args: [{ selector: 'ax-conversation-message-file', encapsulation: ViewEncapsulation.None, template: "<ax-prefix>\n {{ fileSize() | format: 'filesize' | async }}\n</ax-prefix>\n<div class=\"ax-file-container\">\n <div class=\"ax-conversation-controller\">\n @switch (fileState()) {\n @case ('ready') {\n <button (click)=\"handleDownloadFile()\">\n <i class=\"ax-icon ax-icon-download\"></i>\n </button>\n }\n\n @default {\n <button (click)=\"handleCancelLoading()\">\n <ax-loading-spinner\n [size]=\"24\"\n [stroke]=\"2\"\n [color]=\"message.fromId ? 'var(--ax-other-color)' : 'var(--ax-own-color)'\"\n ></ax-loading-spinner>\n </button>\n }\n }\n </div>\n\n <div class=\"ax-file-name\">{{ fileName() }}</div>\n</div>\n", styles: ["ax-conversation-message-file .ax-file-container{display:flex;align-items:center;justify-content:center;gap:.5rem}ax-conversation-message-file .ax-file-container .ax-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n"] }]
|
44
78
|
}], ctorParameters: () => [] });
|
45
|
-
//# sourceMappingURL=data:application/json;base64,
|
79
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjo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ICAgICAgID48L2F4LWxvYWRpbmctc3Bpbm5lcj5cbiAgICAgICAgPC9idXR0b24+XG4gICAgICB9XG4gICAgfVxuICA8L2Rpdj5cblxuICA8ZGl2IGNsYXNzPVwiYXgtZmlsZS1uYW1lXCI+e3sgZmlsZU5hbWUoKSB9fTwvZGl2PlxuPC9kaXY+XG4iXX0=
|
@@ -3,11 +3,28 @@ import { Component, afterNextRender, inject, signal } from '@angular/core';
|
|
3
3
|
import { AXConversationMessageBaseComponent } from '../../conversation.types';
|
4
4
|
import { ConversationMessageImagePopupComponent } from '../conversation-message-image-popup/conversation-message-image-popup.component';
|
5
5
|
import * as i0 from "@angular/core";
|
6
|
+
/**
|
7
|
+
* A component for displaying an image within a conversation message.
|
8
|
+
*
|
9
|
+
* @category Components
|
10
|
+
*/
|
6
11
|
export class AXConversationMessageImageComponent extends AXConversationMessageBaseComponent {
|
12
|
+
/**
|
13
|
+
* @ignore
|
14
|
+
*/
|
7
15
|
constructor() {
|
8
16
|
super();
|
17
|
+
/**
|
18
|
+
* @ignore
|
19
|
+
*/
|
9
20
|
this._imageUrl = signal('');
|
21
|
+
/**
|
22
|
+
* @ignore
|
23
|
+
*/
|
10
24
|
this.popup = inject(AXPopupService);
|
25
|
+
/**
|
26
|
+
* @ignore
|
27
|
+
*/
|
11
28
|
this._options = {
|
12
29
|
header: true,
|
13
30
|
footer: false,
|
@@ -21,6 +38,10 @@ export class AXConversationMessageImageComponent extends AXConversationMessageBa
|
|
21
38
|
this._imageUrl.set(this.message?.content);
|
22
39
|
});
|
23
40
|
}
|
41
|
+
/**
|
42
|
+
* Opens a popup displaying the image with options for draggable, size, and backdrop.
|
43
|
+
* @ignore
|
44
|
+
*/
|
24
45
|
openPopup() {
|
25
46
|
this.popup
|
26
47
|
.open(ConversationMessageImagePopupComponent, {
|
@@ -45,4 +66,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
45
66
|
type: Component,
|
46
67
|
args: [{ selector: 'ax-conversation-message-image', template: `<img (click)="openPopup()" [src]="_imageUrl()" alt="" /> `, inputs: ['message'], styles: ["img{cursor:pointer;margin-bottom:.5rem;width:100%;border-radius:.75rem}\n"] }]
|
47
68
|
}], ctorParameters: () => [] });
|
48
|
-
//# sourceMappingURL=data:application/json;base64,
|
69
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVyc2F0aW9uLW1lc3NhZ2UtaW1hZ2UuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2NvbnZlcnNhdGlvbi9zcmMvbGliL2NvbnZlcnNhdGlvbi1tZXNzYWdlcy9jb252ZXJzYXRpb24tbWVzc2FnZS1pbWFnZS9jb252ZXJzYXRpb24tbWVzc2FnZS1pbWFnZS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGNBQWMsRUFBbUIsTUFBTSwwQkFBMEIsQ0FBQztBQUMzRSxPQUFPLEVBQUUsU0FBUyxFQUFFLGVBQWUsRUFBRSxNQUFNLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNFLE9BQU8sRUFBRSxrQ0FBa0MsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQzlFLE9BQU8sRUFBRSxzQ0FBc0MsRUFBRSxNQUFNLGdGQUFnRixDQUFDOztBQUV4STs7OztHQUlHO0FBY0gsTUFBTSxPQUFPLG1DQUFvQyxTQUFRLGtDQUEwQztJQXdCakc7O09BRUc7SUFDSDtRQUNFLEtBQUssRUFBRSxDQUFDO1FBM0JWOztXQUVHO1FBQ08sY0FBUyxHQUFHLE1BQU0sQ0FBQyxFQUFFLENBQUMsQ0FBQztRQUVqQzs7V0FFRztRQUNLLFVBQUssR0FBbUIsTUFBTSxDQUFDL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MgYSBwb3B1cCBkaXNwbGF5aW5nIHRoZSBpbWFnZSB3aXRoIG9wdGlvbnMgZm9yIGRyYWdnYWJsZSwgc2l6ZSwgYW5kIGJhY2tkcm9wLlxuICAgKiBAaWdub3JlXG4gICAqL1xuICBvcGVuUG9wdXAoKSB7XG4gICAgdGhpcy5wb3B1cFxuICAgICAgLm9wZW4oQ29udmVyc2F0aW9uTWVzc2FnZUltYWdlUG9wdXBDb21wb25lbnQsIHtcbiAgICAgICAgZHJhZ2dhYmxlOiB0aGlzLl9vcHRpb25zLmRyYWdnYWJsZSxcbiAgICAgICAgaGVhZGVyOiB0aGlzLl9vcHRpb25zLmhlYWRlcixcbiAgICAgICAgc2l6ZTogdGhpcy5fb3B0aW9ucy5zaXplIGFzIEFYUG9wdXBTaXplVHlwZSxcbiAgICAgICAgaGFzQmFja2Ryb3A6IHRoaXMuX29wdGlvbnMuaGFzQmFja2Ryb3AsXG4gICAgICAgIGNsb3NlQnV0dG9uOiB0aGlzLl9vcHRpb25zLmNsb3NlQnV0dG9uLFxuICAgICAgICBjbG9zZU9uQmFja2Ryb3BDbGljazogdGhpcy5fb3B0aW9ucy5jbG9zZU9uQmFja2Ryb3BDbGljayxcbiAgICAgICAgZGF0YToge1xuICAgICAgICAgIHVybDogdGhpcy5faW1hZ2VVcmwoKSxcbiAgICAgICAgfSxcbiAgICAgIH0pXG4gICAgICAudGhlbigoYykgPT4ge1xuICAgICAgICBjb25zb2xlLmxvZyhjKTtcbiAgICAgIH0pO1xuICB9XG59XG4iXX0=
|
@@ -1,6 +1,14 @@
|
|
1
1
|
import { afterNextRender, Component } from '@angular/core';
|
2
2
|
import * as i0 from "@angular/core";
|
3
|
+
/**
|
4
|
+
* A popup component for displaying an image in full view.
|
5
|
+
*
|
6
|
+
* @category Components
|
7
|
+
*/
|
3
8
|
export class ConversationMessageImagePopupComponent {
|
9
|
+
/**
|
10
|
+
* @ignore
|
11
|
+
*/
|
4
12
|
constructor() {
|
5
13
|
afterNextRender(() => {
|
6
14
|
console.log(this.url);
|
@@ -13,4 +21,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
13
21
|
type: Component,
|
14
22
|
args: [{ selector: 'ax-conversation-message-image-popup', template: ` <div class="ax-image-popup-container"><img class="ax-image-popup" [src]="url" alt="" /></div>`, styles: [".ax-image-popup-container{display:flex;justify-content:center;align-items:center}.ax-image-popup{width:100%;height:auto;object-fit:cover}\n"] }]
|
15
23
|
}], ctorParameters: () => [] });
|
16
|
-
//# sourceMappingURL=data:application/json;base64,
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVyc2F0aW9uLW1lc3NhZ2UtaW1hZ2UtcG9wdXAuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2NvbnZlcnNhdGlvbi9zcmMvbGliL2NvbnZlcnNhdGlvbi1tZXNzYWdlcy9jb252ZXJzYXRpb24tbWVzc2FnZS1pbWFnZS1wb3B1cC9jb252ZXJzYXRpb24tbWVzc2FnZS1pbWFnZS1wb3B1cC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGVBQWUsRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBRTNEOzs7O0dBSUc7QUFNSCxNQUFNLE9BQU8sc0NBQXNDO0lBTWpEOztPQUVHO0lBQ0g7UUFDRSxlQUFlLENBQUMsR0FBRyxFQUFFO1lBQ25CLE9BQU8sQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDO1FBQ3hCLENBQUMsQ0FBQyxDQUFDO0lBQ0wsQ0FBQzs4R0FiVSxzQ0FBc0M7a0dBQXRDLHNDQUFzQywyRUFIdkMsZ0dBQWdHOzsyRkFHL0Ysc0NBQXNDO2tCQUxsRCxTQUFTOytCQUNFLHFDQUFxQyxZQUNyQyxnR0FBZ0ciLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBhZnRlck5leHRSZW5kZXIsIENvbXBvbmVudCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG4vKipcbiAqIEEgcG9wdXAgY29tcG9uZW50IGZvciBkaXNwbGF5aW5nIGFuIGltYWdlIGluIGZ1bGwgdmlldy5cbiAqXG4gKiBAY2F0ZWdvcnkgQ29tcG9uZW50c1xuICovXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdheC1jb252ZXJzYXRpb24tbWVzc2FnZS1pbWFnZS1wb3B1cCcsXG4gIHRlbXBsYXRlOiBgIDxkaXYgY2xhc3M9XCJheC1pbWFnZS1wb3B1cC1jb250YWluZXJcIj48aW1nIGNsYXNzPVwiYXgtaW1hZ2UtcG9wdXBcIiBbc3JjXT1cInVybFwiIGFsdD1cIlwiIC8+PC9kaXY+YCxcbiAgc3R5bGVVcmw6ICcuL2NvbnZlcnNhdGlvbi1tZXNzYWdlLWltYWdlLXBvcHVwLmNvbXBvbmVudC5zY3NzJyxcbn0pXG5leHBvcnQgY2xhc3MgQ29udmVyc2F0aW9uTWVzc2FnZUltYWdlUG9wdXBDb21wb25lbnQge1xuICAvKipcbiAgICogIEBpZ25vcmVcbiAgICovXG4gIHByb3RlY3RlZCB1cmw6IHN0cmluZztcblxuICAvKipcbiAgICogIEBpZ25vcmVcbiAgICovXG4gIGNvbnN0cnVjdG9yKCkge1xuICAgIGFmdGVyTmV4dFJlbmRlcigoKSA9PiB7XG4gICAgICBjb25zb2xlLmxvZyh0aGlzLnVybCk7XG4gICAgfSk7XG4gIH1cbn1cbiJdfQ==
|
@@ -1,17 +1,46 @@
|
|
1
1
|
import { Component, ViewEncapsulation, signal } from '@angular/core';
|
2
2
|
import { AXConversationMessageBaseComponent } from '../../conversation.types';
|
3
3
|
import * as i0 from "@angular/core";
|
4
|
+
/**
|
5
|
+
* A component for displaying a text message with optional reply content, including text, images, videos, files, and audio.
|
6
|
+
*
|
7
|
+
* @category Components
|
8
|
+
*/
|
4
9
|
export class AXConversationTextMessageComponent extends AXConversationMessageBaseComponent {
|
5
10
|
constructor() {
|
6
11
|
super(...arguments);
|
12
|
+
/**
|
13
|
+
* @ignore
|
14
|
+
*/
|
7
15
|
this._text = signal('');
|
16
|
+
/**
|
17
|
+
* @ignore
|
18
|
+
*/
|
8
19
|
this.replyText = signal(null);
|
20
|
+
/**
|
21
|
+
* @ignore
|
22
|
+
*/
|
9
23
|
this.replyImage = signal(null);
|
24
|
+
/**
|
25
|
+
* @ignore
|
26
|
+
*/
|
10
27
|
this.replyVideo = signal(null);
|
28
|
+
/**
|
29
|
+
* @ignore
|
30
|
+
*/
|
11
31
|
this.replyAudio = signal(null);
|
32
|
+
/**
|
33
|
+
* @ignore
|
34
|
+
*/
|
12
35
|
this.replyVoice = signal(null);
|
36
|
+
/**
|
37
|
+
* @ignore
|
38
|
+
*/
|
13
39
|
this.replyFile = signal(null);
|
14
40
|
}
|
41
|
+
/**
|
42
|
+
* @ignore
|
43
|
+
*/
|
15
44
|
ngOnInit() {
|
16
45
|
this._text.set(this.message?.content);
|
17
46
|
if (!this.message?.replyTo)
|
@@ -98,4 +127,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
98
127
|
<div class="ax-text-message" [innerHtml]="_text()"></div>
|
99
128
|
`, encapsulation: ViewEncapsulation.None, inputs: ['message'], styles: [".ax-text-message{word-break:break-all;white-space:break-spaces}\n"] }]
|
100
129
|
}] });
|
101
|
-
//# sourceMappingURL=data:application/json;base64,
|
130
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVyc2F0aW9uLW1lc3NhZ2UtdGV4dC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNl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lPy5yZXBseVRvKSByZXR1cm47XG5cbiAgICBzd2l0Y2ggKHRoaXMubWVzc2FnZS5yZXBseVRvLnR5cGUpIHtcbiAgICAgIGNhc2UgJ3RleHQnOlxuICAgICAgICB0aGlzLnJlcGx5VGV4dC5zZXQodGhpcy5tZXNzYWdlPy5yZXBseVRvKTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlICdpbWFnZSc6XG4gICAgICAgIHRoaXMucmVwbHlJbWFnZS5zZXQodGhpcy5tZXNzYWdlPy5yZXBseVRvKTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlICd2aWRlbyc6XG4gICAgICAgIHRoaXMucmVwbHlWaWRlby5zZXQodGhpcy5tZXNzYWdlPy5yZXBseVRvKTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlICdhdWRpbyc6XG4gICAgICAgIHRoaXMucmVwbHlBdWRpby5zZXQodGhpcy5tZXNzYWdlPy5yZXBseVRvKTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlICd2b2ljZSc6XG4gICAgICAgIHRoaXMucmVwbHlWb2ljZS5zZXQodGhpcy5tZXNzYWdlPy5yZXBseVRvKTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlICdmaWxlJzpcbiAgICAgICAgdGhpcy5yZXBseUZpbGUuc2V0KHRoaXMubWVzc2FnZT8ucmVwbHlUbyk7XG4gICAgICAgIGJyZWFrO1xuICAgIH1cbiAgfVxufVxuIl19
|
@@ -1,11 +1,22 @@
|
|
1
1
|
import { Component, signal } from '@angular/core';
|
2
2
|
import { AXConversationMessageBaseComponent } from '../../conversation.types';
|
3
3
|
import * as i0 from "@angular/core";
|
4
|
+
/**
|
5
|
+
* A component for displaying a video message with playback controls.
|
6
|
+
*
|
7
|
+
* @category Components
|
8
|
+
*/
|
4
9
|
export class AXConversationMessageVideoComponent extends AXConversationMessageBaseComponent {
|
5
10
|
constructor() {
|
6
11
|
super(...arguments);
|
12
|
+
/**
|
13
|
+
* @ignore
|
14
|
+
*/
|
7
15
|
this._videoUrl = signal('');
|
8
16
|
}
|
17
|
+
/**
|
18
|
+
* @ignore
|
19
|
+
*/
|
9
20
|
ngOnInit() {
|
10
21
|
this._videoUrl.set(this.message?.content);
|
11
22
|
console.log(this._videoUrl());
|
@@ -17,4 +28,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
17
28
|
type: Component,
|
18
29
|
args: [{ selector: 'ax-conversation-message-video', template: `<video controls [src]="_videoUrl()"></video>`, styles: ["video{margin-bottom:.5rem;width:100%;border-radius:.75rem}\n"] }]
|
19
30
|
}] });
|
20
|
-
//# sourceMappingURL=data:application/json;base64,
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVyc2F0aW9uLW1lc3NhZ2UtdmlkZW8uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2NvbnZlcnNhdGlvbi9zcmMvbGliL2NvbnZlcnNhdGlvbi1tZXNzYWdlcy9jb252ZXJzYXRpb24tbWVzc2FnZS12aWRlby9jb252ZXJzYXRpb24tbWVzc2FnZS12aWRlby5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDMUQsT0FBTyxFQUFFLGtDQUFrQyxFQUFFLE1BQU0sMEJBQTBCLENBQUM7O0FBRTlFOzs7O0dBSUc7QUFZSCxNQUFNLE9BQU8sbUNBQW9DLFNBQVEsa0NBQTBDO0lBWG5HOztRQVlFOztXQUVHO1FBQ08sY0FBUyxHQUFHLE1BQU0sQ0FBQyxFQUFFLENBQUMsQ0FBQztLQVNsQztJQVBDOztPQUVHO0lBQ0gsUUFBUT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