@acorex/components 17.0.15 → 17.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. package/conversation/index.d.ts +12 -0
  2. package/{chat/lib/chat-input/chat-input.component.d.ts → conversation/lib/conversation-input/conversation-input.component.d.ts} +4 -4
  3. package/conversation/lib/conversation-message/conversation-message.component.d.ts +16 -0
  4. package/conversation/lib/conversation-messages/conversation-message-text.component.d.ts +9 -0
  5. package/{chat/lib/chat-messages/chat-messages-voice/chat-message-voice.component.d.ts → conversation/lib/conversation-messages/conversation-messages-voice/conversation-message-voice.component.d.ts} +6 -4
  6. package/conversation/lib/conversation-view/conversation-view.component.d.ts +10 -0
  7. package/conversation/lib/conversation.module.d.ts +36 -0
  8. package/conversation/lib/conversation.types.d.ts +21 -0
  9. package/conversation/lib/services/conversation-message-type-registry.service.d.ts +9 -0
  10. package/conversation/lib/services/conversation.service.d.ts +5 -0
  11. package/esm2022/audio-wave/lib/audio-wave.component.mjs +4 -4
  12. package/esm2022/conversation/acorex-components-conversation.mjs +5 -0
  13. package/esm2022/conversation/index.mjs +14 -0
  14. package/esm2022/conversation/lib/classes/events.interface.mjs +2 -0
  15. package/esm2022/{chat/lib/chat-input/chat-input.component.mjs → conversation/lib/conversation-input/conversation-input.component.mjs} +14 -14
  16. package/esm2022/conversation/lib/conversation-input/conversation-input.interface.mjs +2 -0
  17. package/esm2022/conversation/lib/conversation-message/conversation-message.component.mjs +55 -0
  18. package/esm2022/conversation/lib/conversation-messages/conversation-message-text.component.mjs +23 -0
  19. package/esm2022/conversation/lib/conversation-messages/conversation-messages-voice/conversation-message-voice.component.mjs +112 -0
  20. package/esm2022/conversation/lib/conversation-view/conversation-view.component.mjs +22 -0
  21. package/esm2022/conversation/lib/conversation.module.mjs +150 -0
  22. package/esm2022/conversation/lib/conversation.types.mjs +10 -0
  23. package/esm2022/conversation/lib/services/conversation-message-type-registry.service.mjs +20 -0
  24. package/esm2022/conversation/lib/services/conversation.service.mjs +10 -0
  25. package/esm2022/conversation/lib/services/recording.service.mjs +78 -0
  26. package/fesm2022/acorex-components-audio-wave.mjs +3 -3
  27. package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
  28. package/fesm2022/{acorex-components-chat.mjs → acorex-components-conversation.mjs} +106 -86
  29. package/fesm2022/acorex-components-conversation.mjs.map +1 -0
  30. package/package.json +13 -13
  31. package/chat/index.d.ts +0 -12
  32. package/chat/lib/chat-message/chat-message.component.d.ts +0 -16
  33. package/chat/lib/chat-messages/chat-message-text.component.d.ts +0 -8
  34. package/chat/lib/chat-view/chat-view.component.d.ts +0 -10
  35. package/chat/lib/chat.module.d.ts +0 -35
  36. package/chat/lib/chat.types.d.ts +0 -21
  37. package/chat/lib/services/chat-message-type-registry.service.d.ts +0 -9
  38. package/chat/lib/services/chat.service.d.ts +0 -5
  39. package/esm2022/chat/acorex-components-chat.mjs +0 -5
  40. package/esm2022/chat/index.mjs +0 -14
  41. package/esm2022/chat/lib/chat-input/chat-input.interface.mjs +0 -2
  42. package/esm2022/chat/lib/chat-message/chat-message.component.mjs +0 -54
  43. package/esm2022/chat/lib/chat-messages/chat-message-text.component.mjs +0 -23
  44. package/esm2022/chat/lib/chat-messages/chat-messages-voice/chat-message-voice.component.mjs +0 -97
  45. package/esm2022/chat/lib/chat-view/chat-view.component.mjs +0 -22
  46. package/esm2022/chat/lib/chat.module.mjs +0 -146
  47. package/esm2022/chat/lib/chat.types.mjs +0 -10
  48. package/esm2022/chat/lib/classes/events.interface.mjs +0 -2
  49. package/esm2022/chat/lib/services/chat-message-type-registry.service.mjs +0 -20
  50. package/esm2022/chat/lib/services/chat.service.mjs +0 -10
  51. package/esm2022/chat/lib/services/recording.service.mjs +0 -78
  52. package/fesm2022/acorex-components-chat.mjs.map +0 -1
  53. /package/{chat → conversation}/README.md +0 -0
  54. /package/{chat → conversation}/lib/classes/events.interface.d.ts +0 -0
  55. /package/{chat/lib/chat-input/chat-input.interface.d.ts → conversation/lib/conversation-input/conversation-input.interface.d.ts} +0 -0
  56. /package/{chat → conversation}/lib/services/recording.service.d.ts +0 -0
@@ -0,0 +1,23 @@
1
+ import { Component, ViewEncapsulation, signal } from '@angular/core';
2
+ import { AXConversationMessageBaseComponent } from '../conversation.types';
3
+ import * as i0 from "@angular/core";
4
+ export class AXConversationTextMessageComponent extends AXConversationMessageBaseComponent {
5
+ constructor() {
6
+ super(...arguments);
7
+ this._text = signal('');
8
+ }
9
+ ngOnInit() {
10
+ this._text.set(this.message?.content);
11
+ }
12
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXConversationTextMessageComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
13
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.2", type: AXConversationTextMessageComponent, selector: "ng-component", inputs: { message: "message" }, usesInheritance: true, ngImport: i0, template: `<div [innerHtml]="_text()"></div>`, isInline: true, encapsulation: i0.ViewEncapsulation.None }); }
14
+ }
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXConversationTextMessageComponent, decorators: [{
16
+ type: Component,
17
+ args: [{
18
+ template: `<div [innerHtml]="_text()"></div>`,
19
+ encapsulation: ViewEncapsulation.None,
20
+ inputs: ['message'],
21
+ }]
22
+ }] });
23
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVyc2F0aW9uLW1lc3NhZ2UtdGV4dC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvY29udmVyc2F0aW9uL3NyYy9saWIvY29udmVyc2F0aW9uLW1lc3NhZ2VzL2NvbnZlcnNhdGlvbi1tZXNzYWdlLXRleHQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBR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Xh0TWVzc2FnZUNvbXBvbmVudCBleHRlbmRzIEFYQ29udmVyc2F0aW9uTWVzc2FnZUJhc2VDb21wb25lbnQ8c3RyaW5nPiBpbXBsZW1lbnRzIE9uSW5pdCB7XG4gIHByb3RlY3RlZCBfdGV4dCA9IHNpZ25hbCgnJyk7XG5cbiAgbmdPbkluaXQoKTogdm9pZCB7XG4gICAgdGhpcy5fdGV4dC5zZXQodGhpcy5tZXNzYWdlPy5jb250ZW50KTtcbiAgfVxufVxuIl19
@@ -0,0 +1,112 @@
1
+ import { AXAudioWaveComponent } from '@acorex/components/audio-wave';
2
+ import { Component, HostBinding, ViewChild, ViewEncapsulation, afterNextRender, signal } from '@angular/core';
3
+ import { AXConversationMessageBaseComponent } from '../../conversation.types';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "@acorex/components/decorators";
6
+ import * as i2 from "@acorex/components/audio-wave";
7
+ import * as i3 from "@acorex/components/loading";
8
+ import * as i4 from "@angular/common";
9
+ import * as i5 from "@acorex/core/format";
10
+ export class AXConversationAudioMessageComponent extends AXConversationMessageBaseComponent {
11
+ constructor() {
12
+ super();
13
+ this.config = { url: '' };
14
+ this.audioState = signal('paused');
15
+ this.selectedRate = signal(1);
16
+ this.selectedRateIndex = signal(1);
17
+ this.audioProgress = signal(0);
18
+ this.timeLeft = signal(0);
19
+ this.currentTime = signal(0);
20
+ this.duration = signal(0);
21
+ afterNextRender(() => {
22
+ this.config.url = this.message?.content;
23
+ this.config.audioRate = 0.25;
24
+ this.setWaveColor();
25
+ this.handleLoadingProgress();
26
+ });
27
+ }
28
+ setWaveColor() {
29
+ let waveColor = '';
30
+ let progressColor = '';
31
+ if (this.message.fromId) {
32
+ waveColor = getComputedStyle(document.body).getPropertyValue('--ax-message-other-bar-color');
33
+ progressColor = getComputedStyle(document.body).getPropertyValue('--ax-message-other-progress-color');
34
+ }
35
+ else {
36
+ waveColor = getComputedStyle(document.body).getPropertyValue('--ax-message-own-bar-color');
37
+ progressColor = getComputedStyle(document.body).getPropertyValue('--ax-message-own-progress-color');
38
+ }
39
+ this.config.waveColor = waveColor;
40
+ this.config.progressColor = progressColor;
41
+ }
42
+ handlePauseClick() {
43
+ this.audio?.pause();
44
+ this.audioState.set('paused');
45
+ }
46
+ handlePlayClick() {
47
+ this.audio?.play()?.then(() => {
48
+ this.audioState.set('playing');
49
+ });
50
+ }
51
+ handleOnStatusChanged(e) {
52
+ if (e.status === 'load' || e.status === 'loading') {
53
+ this.audioState.set('loading');
54
+ }
55
+ if (e.status === 'loading') {
56
+ this.audioProgress.set(e.data.percent);
57
+ this.duration.set(Math.ceil(e.data.duration * 1000));
58
+ }
59
+ if (e.status === 'ready') {
60
+ this.audioState.set('ready');
61
+ this.duration.set(Math.ceil(e.data.duration * 1000));
62
+ }
63
+ if (e.status === 'finish') {
64
+ this.audioState.set('paused');
65
+ }
66
+ if (e.status === 'timeupdate') {
67
+ this.timeLeft.set(this.duration() - e.data.currentTime * 1000);
68
+ this.currentTime.set(e.data.currentTime * 1000);
69
+ }
70
+ if (e.status === 'error') {
71
+ this.audioState.set('error');
72
+ }
73
+ }
74
+ handleLoadingProgress() {
75
+ // this.audioLoaderProgress?.nativeElement.style.cssText = `--ax-audio-progress: ${this.audioProgress()}`;
76
+ }
77
+ handleCancelLoading() {
78
+ //
79
+ }
80
+ handleReloadClick() {
81
+ //
82
+ this.audioState.set('loading');
83
+ this.audio.load();
84
+ }
85
+ handleRateClick() {
86
+ const rates = [0.5, 1, 2, 4];
87
+ if (this.selectedRateIndex() == rates.length - 1) {
88
+ this.selectedRateIndex.set(0);
89
+ }
90
+ else {
91
+ this.selectedRateIndex.set(this.selectedRateIndex() + 1);
92
+ }
93
+ this.selectedRate.set(rates[this.selectedRateIndex()]);
94
+ this.audio.setRate(this.selectedRate());
95
+ }
96
+ get __hostClass() {
97
+ return `${this.message.fromId ? 'ax-state-other' : 'ax-state-own'}`;
98
+ }
99
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXConversationAudioMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
100
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.2", type: AXConversationAudioMessageComponent, selector: "ax-conversation-message-audio", inputs: { message: "message" }, host: { properties: { "class": "this.__hostClass" } }, viewQueries: [{ propertyName: "audio", first: true, predicate: ["a"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ax-prefix>\n @switch (audioState()) {\n @case ('paused')\n {\n {{currentTime() | format:'time-duration' | async}}\n }\n @case ('playing')\n {\n {{currentTime() | format:'time-duration' | async}}\n }\n @default {\n {{duration() | format:'time-duration' | async}}\n }\n }\n <button class=\"ax-audio-speed\" (click)=\"handleRateClick()\"></button>\n\n</ax-prefix>\n<div class=\"ax-audio-controller\">\n\n @switch (audioState()) {\n @case ('playing') {\n <button (click)=\"handlePauseClick()\">\n <i class=\"ax-icon ax-icon-pause\"></i>\n </button>\n }\n\n @case ('ready') {\n <button (click)=\"handlePlayClick()\">\n <i class=\"ax-icon ax-icon-play\" style=\"margin-inline-start: 0.25rem;\"></i>\n </button>\n }\n\n @case ('paused')\n {\n <button (click)=\"handlePlayClick()\">\n <i class=\"ax-icon ax-icon-play\" style=\"margin-inline-start: 0.25rem;\"></i>\n </button>\n }\n\n @case ('error')\n {\n <button class=\"ax-state-error\" (click)=\"handleReloadClick()\">\n <i class=\"ax-icon ax-icon-reload\"></i>\n </button>\n }\n\n @default {\n <button (click)=\"handleCancelLoading()\">\n <ax-loading-spinner [size]=\"24\" [stroke]=\"2\"\n [color]=\"message.fromId?'var(--ax-other-color)':'var(--ax-own-color)'\"></ax-loading-spinner>\n </button>\n }\n }\n\n</div>\n<ax-audio-wave #a [config]=\"config\" (onStatusChanged)=\"handleOnStatusChanged($event)\"></ax-audio-wave>\n<ax-suffix>\n <div class=\"ax-audio-rate-button\" [class.ax-state-own]=\"!message?.fromId\" (click)=\"handleRateClick()\">\n {{selectedRate()}}X</div>\n</ax-suffix>", styles: ["ax-conversation-message-audio{display:flex;align-items:center;justify-content:space-between;gap:.25rem;min-width:320px}ax-conversation-message-audio.ax-state-own .ax-audio-controller button{background-color:var(--ax-message-own-color-fore);color:var(--ax-message-own-color)}ax-conversation-message-audio.ax-state-other .ax-audio-controller button{background-color:var(--ax-message-other-color-fore);color:var(--ax-message-other-color)}ax-conversation-message-audio .ax-audio-controller button{width:2.5rem;height:2.5rem;border-radius:999rem;display:flex;align-items:center;justify-content:center}ax-conversation-message-audio .ax-audio-controller button ax-loading-spinner{display:flex}ax-conversation-message-audio .ax-audio-controller button.ax-state-error{background-color:rgba(var(--ax-color-danger-500));color:rgba(var(--ax-color-danger-fore))}ax-conversation-message-audio .ax-audio-controller button>i{width:1.5rem;height:1.5rem;display:flex;align-items:center;justify-content:center;font-size:1.25rem;font-weight:700}ax-conversation-message-audio .ax-audio-wave{flex:1}.ax-audio-rate-button{background-color:var(--ax-message-other-color-fore);color:var(--ax-message-other-color);border-radius:.5rem;padding:0 .5rem;font-weight:700;margin-inline-end:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none}.ax-audio-rate-button.ax-state-own{background-color:var(--ax-message-own-color-fore);color:var(--ax-message-own-color)}\n"], dependencies: [{ kind: "component", type: i1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title , ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "component", type: i2.AXAudioWaveComponent, selector: "ax-audio-wave", inputs: ["config"], outputs: ["onStatusChanged"] }, { kind: "component", type: i3.AXLoadingSpinnerComponent, selector: "ax-loading-spinner", inputs: ["color", "size", "stroke"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXFormatPipe, name: "format" }], encapsulation: i0.ViewEncapsulation.None }); }
101
+ }
102
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXConversationAudioMessageComponent, decorators: [{
103
+ type: Component,
104
+ args: [{ selector: 'ax-conversation-message-audio', encapsulation: ViewEncapsulation.None, inputs: ['message'], template: "<ax-prefix>\n @switch (audioState()) {\n @case ('paused')\n {\n {{currentTime() | format:'time-duration' | async}}\n }\n @case ('playing')\n {\n {{currentTime() | format:'time-duration' | async}}\n }\n @default {\n {{duration() | format:'time-duration' | async}}\n }\n }\n <button class=\"ax-audio-speed\" (click)=\"handleRateClick()\"></button>\n\n</ax-prefix>\n<div class=\"ax-audio-controller\">\n\n @switch (audioState()) {\n @case ('playing') {\n <button (click)=\"handlePauseClick()\">\n <i class=\"ax-icon ax-icon-pause\"></i>\n </button>\n }\n\n @case ('ready') {\n <button (click)=\"handlePlayClick()\">\n <i class=\"ax-icon ax-icon-play\" style=\"margin-inline-start: 0.25rem;\"></i>\n </button>\n }\n\n @case ('paused')\n {\n <button (click)=\"handlePlayClick()\">\n <i class=\"ax-icon ax-icon-play\" style=\"margin-inline-start: 0.25rem;\"></i>\n </button>\n }\n\n @case ('error')\n {\n <button class=\"ax-state-error\" (click)=\"handleReloadClick()\">\n <i class=\"ax-icon ax-icon-reload\"></i>\n </button>\n }\n\n @default {\n <button (click)=\"handleCancelLoading()\">\n <ax-loading-spinner [size]=\"24\" [stroke]=\"2\"\n [color]=\"message.fromId?'var(--ax-other-color)':'var(--ax-own-color)'\"></ax-loading-spinner>\n </button>\n }\n }\n\n</div>\n<ax-audio-wave #a [config]=\"config\" (onStatusChanged)=\"handleOnStatusChanged($event)\"></ax-audio-wave>\n<ax-suffix>\n <div class=\"ax-audio-rate-button\" [class.ax-state-own]=\"!message?.fromId\" (click)=\"handleRateClick()\">\n {{selectedRate()}}X</div>\n</ax-suffix>", styles: ["ax-conversation-message-audio{display:flex;align-items:center;justify-content:space-between;gap:.25rem;min-width:320px}ax-conversation-message-audio.ax-state-own .ax-audio-controller button{background-color:var(--ax-message-own-color-fore);color:var(--ax-message-own-color)}ax-conversation-message-audio.ax-state-other .ax-audio-controller button{background-color:var(--ax-message-other-color-fore);color:var(--ax-message-other-color)}ax-conversation-message-audio .ax-audio-controller button{width:2.5rem;height:2.5rem;border-radius:999rem;display:flex;align-items:center;justify-content:center}ax-conversation-message-audio .ax-audio-controller button ax-loading-spinner{display:flex}ax-conversation-message-audio .ax-audio-controller button.ax-state-error{background-color:rgba(var(--ax-color-danger-500));color:rgba(var(--ax-color-danger-fore))}ax-conversation-message-audio .ax-audio-controller button>i{width:1.5rem;height:1.5rem;display:flex;align-items:center;justify-content:center;font-size:1.25rem;font-weight:700}ax-conversation-message-audio .ax-audio-wave{flex:1}.ax-audio-rate-button{background-color:var(--ax-message-other-color-fore);color:var(--ax-message-other-color);border-radius:.5rem;padding:0 .5rem;font-weight:700;margin-inline-end:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none}.ax-audio-rate-button.ax-state-own{background-color:var(--ax-message-own-color-fore);color:var(--ax-message-own-color)}\n"] }]
105
+ }], ctorParameters: () => [], propDecorators: { audio: [{
106
+ type: ViewChild,
107
+ args: ['a']
108
+ }], __hostClass: [{
109
+ type: HostBinding,
110
+ args: ['class']
111
+ }] } });
112
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVyc2F0aW9uLW1lc3NhZ2Utdm9pY2UuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2NvbnZlcnNhdGlvbi9zcmMvbGliL2NvbnZlcnNhdGlvbi1tZXNzYWdlcy9jb252ZXJzYXRpb24tbWVzc2FnZXMtdm9pY2UvY29udmVyc2F0aW9uLW1lc3NhZ2Utdm9pY2UuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2NvbnZlcnNhdGlvbi9zcmMvbGliL2NvbnZlcnNhdGlvbi1tZX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cl09XCJtZXNzYWdlLmZyb21JZD8ndmFyKC0tYXgtb3RoZXItY29sb3IpJzondmFyKC0tYXgtb3duLWNvbG9yKSdcIj48L2F4LWxvYWRpbmctc3Bpbm5lcj5cbiAgPC9idXR0b24+XG4gIH1cbiAgfVxuXG48L2Rpdj5cbjxheC1hdWRpby13YXZlICNhIFtjb25maWddPVwiY29uZmlnXCIgKG9uU3RhdHVzQ2hhbmdlZCk9XCJoYW5kbGVPblN0YXR1c0NoYW5nZWQoJGV2ZW50KVwiPjwvYXgtYXVkaW8td2F2ZT5cbjxheC1zdWZmaXg+XG4gIDxkaXYgY2xhc3M9XCJheC1hdWRpby1yYXRlLWJ1dHRvblwiIFtjbGFzcy5heC1zdGF0ZS1vd25dPVwiIW1lc3NhZ2U/LmZyb21JZFwiIChjbGljayk9XCJoYW5kbGVSYXRlQ2xpY2soKVwiPlxuICAgIHt7c2VsZWN0ZWRSYXRlKCl9fVg8L2Rpdj5cbjwvYXgtc3VmZml4PiJdfQ==
@@ -0,0 +1,22 @@
1
+ import { MXBaseComponent } from '@acorex/components/common';
2
+ import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation, signal } from '@angular/core';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "../conversation-message/conversation-message.component";
5
+ export class AXConversationViewComponent extends MXBaseComponent {
6
+ constructor() {
7
+ super(...arguments);
8
+ this._conversations = signal([]);
9
+ }
10
+ set conversations(items) {
11
+ this._conversations.set(items);
12
+ }
13
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXConversationViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
14
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.2", type: AXConversationViewComponent, selector: "ax-conversation-view", inputs: { conversations: "conversations" }, usesInheritance: true, ngImport: i0, template: "@for (item of _conversations(); track $index) {\n<ax-conversation-message [chatMessage]=\"item\"></ax-conversation-message>\n}", styles: ["ax-conversation-view{display:flex;flex-direction:column;gap:.5rem;height:100%;width:100%;overflow-y:auto;overflow-x:hidden}\n"], dependencies: [{ kind: "component", type: i1.AXConversationMessageComponent, selector: "ax-conversation-message", inputs: ["chatMessage"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
15
+ }
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXConversationViewComponent, decorators: [{
17
+ type: Component,
18
+ args: [{ selector: 'ax-conversation-view', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "@for (item of _conversations(); track $index) {\n<ax-conversation-message [chatMessage]=\"item\"></ax-conversation-message>\n}", styles: ["ax-conversation-view{display:flex;flex-direction:column;gap:.5rem;height:100%;width:100%;overflow-y:auto;overflow-x:hidden}\n"] }]
19
+ }], propDecorators: { conversations: [{
20
+ type: Input
21
+ }] } });
22
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVyc2F0aW9uLXZpZXcuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2NvbnZlcnNhdGlvbi9zcmMvbGliL2NvbnZlcnNhdGlvbi12aWV3L2NvbnZlcnNhdGlvbi12aWV3LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9jb252ZXJzYXRpb24vc3JjL2xpYi9jb252ZXJzYXRpb24tdmlldy9jb252ZXJzYXRpb24tdmlldy5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFDNUQsT0FBTyxFQUFFLHVCQUF1QixFQUF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Quc2NzcyddLFxuICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCxcbiAgZW5jYXBzdWxhdGlvbjogVmlld0VuY2Fwc3VsYXRpb24uTm9uZSxcbn0pXG5leHBvcnQgY2xhc3MgQVhDb252ZXJzYXRpb25WaWV3Q29tcG9uZW50IGV4dGVuZHMgTVhCYXNlQ29tcG9uZW50IHtcbiAgQElucHV0KClcbiAgcHVibGljIHNldCBjb252ZXJzYXRpb25zKGl0ZW1zOiBBWENvbnZlcnNhdGlvbk1lc3NhZ2U8YW55PltdKSB7XG4gICAgdGhpcy5fY29udmVyc2F0aW9ucy5zZXQoaXRlbXMpO1xuICB9XG5cbiAgcHJvdGVjdGVkIF9jb252ZXJzYXRpb25zOiBXcml0YWJsZVNpZ25hbDxBWENvbnZlcnNhdGlvbk1lc3NhZ2U8YW55PltdPiA9IHNpZ25hbChbXSk7XG59XG4iLCJAZm9yIChpdGVtIG9mIF9jb252ZXJzYXRpb25zKCk7IHRyYWNrICRpbmRleCkge1xuPGF4LWNvbnZlcnNhdGlvbi1tZXNzYWdlIFtjaGF0TWVzc2FnZV09XCJpdGVtXCI+PC9heC1jb252ZXJzYXRpb24tbWVzc2FnZT5cbn0iXX0=
@@ -0,0 +1,150 @@
1
+ import { AXAudioWaveModule } from '@acorex/components/audio-wave';
2
+ import { AXAvatarModule } from '@acorex/components/avatar';
3
+ import { AXButtonModule } from '@acorex/components/button';
4
+ import { AXCircularProgressModule } from '@acorex/components/circular-progress';
5
+ import { AXRippleDirective } from '@acorex/components/common';
6
+ import { AXDecoratorModule } from '@acorex/components/decorators';
7
+ import { AXDropdownModule } from '@acorex/components/dropdown';
8
+ import { AXLoadingModule } from '@acorex/components/loading';
9
+ import { AXDateTimeModule } from '@acorex/core/date-time';
10
+ import { AXFormatModule } from '@acorex/core/format';
11
+ import { AXTranslationModule } from '@acorex/core/translation';
12
+ import { CdkPortalOutlet } from '@angular/cdk/portal';
13
+ import { AsyncPipe, CommonModule } from '@angular/common';
14
+ import { Inject, NgModule, Optional } from '@angular/core';
15
+ import { FormsModule } from '@angular/forms';
16
+ import { AXConversationInputComponent } from './conversation-input/conversation-input.component';
17
+ import { AXConversationMessageComponent } from './conversation-message/conversation-message.component';
18
+ import { AXConversationTextMessageComponent } from './conversation-messages/conversation-message-text.component';
19
+ import { AXConversationAudioMessageComponent } from './conversation-messages/conversation-messages-voice/conversation-message-voice.component';
20
+ import { AXConversationViewComponent } from './conversation-view/conversation-view.component';
21
+ import { AXConversationMessageTypeRegistryService } from './services/conversation-message-type-registry.service';
22
+ import { AXRecordingService } from './services/recording.service';
23
+ import * as i0 from "@angular/core";
24
+ const COMPONENT = [
25
+ AXConversationViewComponent,
26
+ AXConversationInputComponent,
27
+ AXConversationMessageComponent,
28
+ AXConversationTextMessageComponent,
29
+ AXConversationAudioMessageComponent,
30
+ ];
31
+ const MODULES = [
32
+ CommonModule,
33
+ FormsModule,
34
+ AsyncPipe,
35
+ AXRippleDirective,
36
+ AXButtonModule,
37
+ AXDecoratorModule,
38
+ AXTranslationModule,
39
+ AXDropdownModule,
40
+ AXFormatModule,
41
+ AXAudioWaveModule,
42
+ AXCircularProgressModule,
43
+ AXDateTimeModule,
44
+ CdkPortalOutlet,
45
+ AXLoadingModule,
46
+ AXAvatarModule,
47
+ ];
48
+ export class AXConversationModule {
49
+ static forRoot(config) {
50
+ return {
51
+ ngModule: AXConversationModule,
52
+ providers: [
53
+ {
54
+ provide: 'AXChatModuleFactory',
55
+ useFactory: (registry) => () => {
56
+ if (config?.types?.length) {
57
+ registry.register(...config.types);
58
+ }
59
+ registry.register({
60
+ name: 'text',
61
+ component: AXConversationTextMessageComponent,
62
+ });
63
+ registry.register({
64
+ name: 'audio',
65
+ component: AXConversationAudioMessageComponent,
66
+ });
67
+ },
68
+ deps: [AXConversationMessageTypeRegistryService],
69
+ multi: true,
70
+ },
71
+ ],
72
+ };
73
+ }
74
+ static forChild(config) {
75
+ return {
76
+ ngModule: AXConversationModule,
77
+ providers: [
78
+ {
79
+ provide: 'AXPWorkflowModuleFactory',
80
+ useFactory: (registry) => () => {
81
+ if (config?.types?.length) {
82
+ registry.register(...config.types);
83
+ }
84
+ },
85
+ deps: [AXConversationMessageTypeRegistryService],
86
+ multi: true,
87
+ },
88
+ ],
89
+ };
90
+ }
91
+ /**
92
+ * @ignore
93
+ */
94
+ constructor(instances) {
95
+ instances?.forEach((f) => {
96
+ f();
97
+ });
98
+ }
99
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXConversationModule, deps: [{ token: 'AXChatModuleFactory', optional: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
100
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.2", ngImport: i0, type: AXConversationModule, declarations: [AXConversationViewComponent,
101
+ AXConversationInputComponent,
102
+ AXConversationMessageComponent,
103
+ AXConversationTextMessageComponent,
104
+ AXConversationAudioMessageComponent], imports: [CommonModule,
105
+ FormsModule,
106
+ AsyncPipe,
107
+ AXRippleDirective,
108
+ AXButtonModule,
109
+ AXDecoratorModule,
110
+ AXTranslationModule,
111
+ AXDropdownModule,
112
+ AXFormatModule,
113
+ AXAudioWaveModule,
114
+ AXCircularProgressModule,
115
+ AXDateTimeModule,
116
+ CdkPortalOutlet,
117
+ AXLoadingModule,
118
+ AXAvatarModule], exports: [AXConversationViewComponent,
119
+ AXConversationInputComponent,
120
+ AXConversationMessageComponent,
121
+ AXConversationTextMessageComponent,
122
+ AXConversationAudioMessageComponent] }); }
123
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXConversationModule, providers: [AXRecordingService], imports: [CommonModule,
124
+ FormsModule,
125
+ AXButtonModule,
126
+ AXDecoratorModule,
127
+ AXTranslationModule,
128
+ AXDropdownModule,
129
+ AXFormatModule,
130
+ AXAudioWaveModule,
131
+ AXCircularProgressModule,
132
+ AXDateTimeModule,
133
+ AXLoadingModule,
134
+ AXAvatarModule] }); }
135
+ }
136
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXConversationModule, decorators: [{
137
+ type: NgModule,
138
+ args: [{
139
+ declarations: [...COMPONENT],
140
+ imports: [...MODULES],
141
+ exports: [...COMPONENT],
142
+ providers: [AXRecordingService],
143
+ }]
144
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
145
+ type: Optional
146
+ }, {
147
+ type: Inject,
148
+ args: ['AXChatModuleFactory']
149
+ }] }] });
150
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVyc2F0aW9uLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9jb252ZXJzYXRpb24vc3JjL2xpYi9jb252ZXJzYXRpb24ubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBQ2xFLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUMzRCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFDM0QsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sc0NBQXNDLENBQUM7QUFDaEYsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFDOUQsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sK0JBQStCLENBQUM7QUFDbEUsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFDL0QsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDRCQ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Byb3ZpZGVyczogW1xuICAgICAgICB7XG4gICAgICAgICAgcHJvdmlkZTogJ0FYQ2hhdE1vZHVsZUZhY3RvcnknLFxuICAgICAgICAgIHVzZUZhY3Rvcnk6IChyZWdpc3RyeTogQVhDb252ZXJzYXRpb25NZXNzYWdlVHlwZVJlZ2lzdHJ5U2VydmljZSkgPT4gKCkgPT4ge1xuICAgICAgICAgICAgaWYgKGNvbmZpZz8udHlwZXM/Lmxlbmd0aCkge1xuICAgICAgICAgICAgICByZWdpc3RyeS5yZWdpc3RlciguLi5jb25maWcudHlwZXMpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcmVnaXN0cnkucmVnaXN0ZXIoe1xuICAgICAgICAgICAgICBuYW1lOiAndGV4dCcsXG4gICAgICAgICAgICAgIGNvbXBvbmVudDogQVhDb252ZXJzYXRpb25UZXh0TWVzc2FnZUNvbXBvbmVudCxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgcmVnaXN0cnkucmVnaXN0ZXIoe1xuICAgICAgICAgICAgICBuYW1lOiAnYXVkaW8nLFxuICAgICAgICAgICAgICBjb21wb25lbnQ6IEFYQ29udmVyc2F0aW9uQXVkaW9NZXNzYWdlQ29tcG9uZW50LFxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgfSxcbiAgICAgICAgICBkZXBzOiBbQVhDb252ZXJzYXRpb25NZXNzYWdlVHlwZVJlZ2lzdHJ5U2VydmljZV0sXG4gICAgICAgICAgbXVsdGk6IHRydWUsXG4gICAgICAgIH0sXG4gICAgICBdLFxuICAgIH07XG4gIH1cblxuICBzdGF0aWMgZm9yQ2hpbGQoY29uZmlnPzogQVhDaGF0TW9kdWxlQ29uZmlnKTogTW9kdWxlV2l0aFByb3ZpZGVyczxBWENvbnZlcnNhdGlvbk1vZHVsZT4ge1xuICAgIHJldHVybiB7XG4gICAgICBuZ01vZHVsZTogQVhDb252ZXJzYXRpb25Nb2R1bGUsXG4gICAgICBwcm92aWRlcnM6IFtcbiAgICAgICAge1xuICAgICAgICAgIHByb3ZpZGU6ICdBWFBXb3JrZmxvd01vZHVsZUZhY3RvcnknLFxuICAgICAgICAgIHVzZUZhY3Rvcnk6IChyZWdpc3RyeTogQVhDb252ZXJzYXRpb25NZXNzYWdlVHlwZVJlZ2lzdHJ5U2VydmljZSkgPT4gKCkgPT4ge1xuICAgICAgICAgICAgaWYgKGNvbmZpZz8udHlwZXM/Lmxlbmd0aCkge1xuICAgICAgICAgICAgICByZWdpc3RyeS5yZWdpc3RlciguLi5jb25maWcudHlwZXMpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH0sXG4gICAgICAgICAgZGVwczogW0FYQ29udmVyc2F0aW9uTWVzc2FnZVR5cGVSZWdpc3RyeVNlcnZpY2VdLFxuICAgICAgICAgIG11bHRpOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgXSxcbiAgICB9O1xuICB9XG5cbiAgLyoqXG4gICAqIEBpZ25vcmVcbiAgICovXG4gIGNvbnN0cnVjdG9yKEBPcHRpb25hbCgpIEBJbmplY3QoJ0FYQ2hhdE1vZHVsZUZhY3RvcnknKSBpbnN0YW5jZXM6IGFueVtdKSB7XG4gICAgaW5zdGFuY2VzPy5mb3JFYWNoKChmKSA9PiB7XG4gICAgICBmKCk7XG4gICAgfSk7XG4gIH1cbn1cbiJdfQ==
@@ -0,0 +1,10 @@
1
+ import { Injectable } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class AXConversationMessageBaseComponent {
4
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXConversationMessageBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXConversationMessageBaseComponent }); }
6
+ }
7
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXConversationMessageBaseComponent, decorators: [{
8
+ type: Injectable
9
+ }] });
10
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVyc2F0aW9uLnR5cGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2NvbnZlcnNhdGlvbi9zcmMvbGliL2NvbnZlcnNhdGlvbi50eXBlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFRLE1BQU0sZUFBZSxDQUFDOztBQW1CakQsTUFBTSxPQUFPLGtDQUFrQzs4R0FBbEMsa0NBQWtDO2tIQUFsQyxrQ0FBa0M7OzJGQUFsQyxrQ0FBa0M7a0JBRDlDLFVBQVUiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3RhYmxlLCBUeXBlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgQVhDb252ZXJzYXRpb25NZXNzYWdlVHlwZSB7XG4gIG5hbWU6IHN0cmluZztcbiAgY29tcG9uZW50OiBUeXBlPGFueT47XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgQVhDb252ZXJzYXRpb25NZXNzYWdlPFQ+IHtcbiAgaWQ6IHN0cmluZztcbiAgdHlwZTogc3RyaW5nO1xuICBzZW5kVGltZTogRGF0ZTtcbiAgZGVsaXZlclRpbWU/OiBEYXRlO1xuICByZWFkVGltZT86IERhdGU7XG4gIHJlcGx5VG8/OiBzdHJpbmc7XG4gIGNvbnRlbnQ6IFQ7XG4gIGZyb21JZD86IHN0cmluZztcbn1cblxuQEluamVjdGFibGUoKVxuZXhwb3J0IGNsYXNzIEFYQ29udmVyc2F0aW9uTWVzc2FnZUJhc2VDb21wb25lbnQ8VD4ge1xuICBtZXNzYWdlOiBBWENvbnZlcnNhdGlvbk1lc3NhZ2U8VD47XG59XG4iXX0=
@@ -0,0 +1,20 @@
1
+ import { Injectable } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class AXConversationMessageTypeRegistryService {
4
+ constructor() {
5
+ this.plugins = new Map();
6
+ }
7
+ register(...plugins) {
8
+ plugins.forEach((p) => this.plugins.set(p.name, p));
9
+ }
10
+ resolve(name) {
11
+ return this.plugins.get(name);
12
+ }
13
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXConversationMessageTypeRegistryService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
14
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXConversationMessageTypeRegistryService, providedIn: 'root' }); }
15
+ }
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXConversationMessageTypeRegistryService, decorators: [{
17
+ type: Injectable,
18
+ args: [{ providedIn: 'root' }]
19
+ }] });
20
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVyc2F0aW9uLW1lc3NhZ2UtdHlwZS1yZWdpc3RyeS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2NvbnZlcnNhdGlvbi9zcmMvbGliL3NlcnZpY2VzL2NvbnZlcnNhdGlvbi1tZXNzYWdlLXR5cGUtcmVnaXN0cnkuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUkzQyxNQUFNLE9BQU8sd0NBQXdDO0lBRHJEO1FBRVUsWUFBTyxHQUEyQyxJQUFJLEdBQUcsRUFBcUMsQ0FBQztLQVN4RztJQVBDLF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saWMgcmVzb2x2ZShuYW1lOiBzdHJpbmcpOiBBWENvbnZlcnNhdGlvbk1lc3NhZ2VUeXBlIHwgdW5kZWZpbmVkIHtcbiAgICByZXR1cm4gdGhpcy5wbHVnaW5zLmdldChuYW1lKTtcbiAgfVxufVxuIl19
@@ -0,0 +1,10 @@
1
+ import { Injectable } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class AXConversationService {
4
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXConversationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXConversationService }); }
6
+ }
7
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXConversationService, decorators: [{
8
+ type: Injectable
9
+ }] });
10
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVyc2F0aW9uLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvY29udmVyc2F0aW9uL3NyYy9saWIvc2VydmljZXMvY29udmVyc2F0aW9uLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFHM0MsTUFBTSxPQUFPLHFCQUFxQjs4R0FBckIscUJBQXFCO2tIQUFyQixxQkFBcUI7OzJGQUFyQixxQkFBcUI7a0JBRGpDLFVBQVUiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3RhYmxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBJbmplY3RhYmxlKClcbmV4cG9ydCBjbGFzcyBBWENvbnZlcnNhdGlvblNlcnZpY2Uge31cbiJdfQ==
@@ -0,0 +1,78 @@
1
+ import { Injectable, signal } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class AXRecordingService {
4
+ constructor() {
5
+ this.audioBlobs = [];
6
+ this.streamBeingCaptured = null;
7
+ this.timer = signal('00:0');
8
+ this.time = {
9
+ seconds: 0,
10
+ minutes: 0,
11
+ hours: 0,
12
+ };
13
+ }
14
+ startRecording() {
15
+ if (!(navigator.mediaDevices && navigator.mediaDevices.getUserMedia)) {
16
+ return Promise.reject(new Error('mediaDevices API or getUserMedia method is not supported in this browser.'));
17
+ }
18
+ else {
19
+ return navigator.mediaDevices
20
+ .getUserMedia({ audio: true })
21
+ .then((stream) => {
22
+ this.streamBeingCaptured = stream;
23
+ this.mediaRecorder = new MediaRecorder(stream);
24
+ this.audioBlobs = [];
25
+ this.mediaRecorder.addEventListener('dataavailable', (event) => {
26
+ this.audioBlobs.push(event.data);
27
+ });
28
+ this.mediaRecorder.start();
29
+ this.timerInterval = setInterval(() => {
30
+ this.calculateTime();
31
+ }, 1000);
32
+ });
33
+ }
34
+ }
35
+ stopRecording() {
36
+ return new Promise((resolve) => {
37
+ const mimeType = this.mediaRecorder?.mimeType;
38
+ this.mediaRecorder?.addEventListener('stop', () => {
39
+ const audioBlob = new Blob(this.audioBlobs, { type: mimeType });
40
+ resolve(audioBlob);
41
+ });
42
+ this.mediaRecorder?.stop();
43
+ this.streamBeingCaptured.getTracks().forEach((track) => track.stop());
44
+ this.mediaRecorder = null;
45
+ this.streamBeingCaptured = null;
46
+ this.resetTimer();
47
+ });
48
+ }
49
+ calculateTime() {
50
+ this.time.seconds++;
51
+ if (this.time.seconds >= 60) {
52
+ this.time.seconds = 0;
53
+ this.time.minutes++;
54
+ if (this.time.minutes >= 60) {
55
+ this.time.minutes = 0;
56
+ this.time.hours++;
57
+ }
58
+ }
59
+ const formattedTime = (this.time.hours > 0 ? this.time.hours + ':' : '') +
60
+ (this.time.minutes < 10 ? '0' + this.time.minutes : this.time.minutes) +
61
+ ':' +
62
+ (this.time.seconds < 10 ? '0' + this.time.seconds : this.time.seconds);
63
+ this.timer.set(formattedTime);
64
+ }
65
+ resetTimer() {
66
+ clearInterval(this.timerInterval);
67
+ this.time.seconds = 0;
68
+ this.time.minutes = 0;
69
+ this.time.hours = 0;
70
+ this.timer.set('00:0');
71
+ }
72
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXRecordingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
73
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXRecordingService }); }
74
+ }
75
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXRecordingService, decorators: [{
76
+ type: Injectable
77
+ }] });
78
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVjb3JkaW5nLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvY29udmVyc2F0aW9uL3NyYy9saWIvc2VydmljZXMvcmVjb3JkaW5nLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBa0IsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUduRSxNQUFNLE9BQU8sa0JBQWtCO0lBRC9CO1FBRUUsZUFBVSxHQUFVLEVBQUUsQ0FBQztRQUV2Qix3QkFBbUIsR0FBUSxJQUFJLENBQUM7UUFFaEMsVUFBSyxHQUEyQixNQUFNLENBQUMsTUFBTSxDQUFDLENBQUM7UUFFckMsU0FBSSxHQUFHO1lBQ2YsT0FBTyxFQUFFLENBQUM7WUFDVixPQUFPLEVBQUUs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nRpbWVyLnNldChmb3JtYXR0ZWRUaW1lKTtcbiAgfVxuXG4gIHJlc2V0VGltZXIoKSB7XG4gICAgY2xlYXJJbnRlcnZhbCh0aGlzLnRpbWVySW50ZXJ2YWwpO1xuICAgIHRoaXMudGltZS5zZWNvbmRzID0gMDtcbiAgICB0aGlzLnRpbWUubWludXRlcyA9IDA7XG4gICAgdGhpcy50aW1lLmhvdXJzID0gMDtcbiAgICB0aGlzLnRpbWVyLnNldCgnMDA6MCcpO1xuICB9XG59XG4iXX0=
@@ -17,11 +17,11 @@ class AXAudioWaveComponent {
17
17
  this.errorMessage = signal('');
18
18
  this.ngZone = inject(NgZone);
19
19
  afterNextRender(() => {
20
- const primary500 = getComputedStyle(document.body).getPropertyValue('--ax-color-primary-200');
21
- const primary700 = getComputedStyle(document.body).getPropertyValue('--ax-color-primary-500');
20
+ const primary200 = getComputedStyle(document.body).getPropertyValue('--ax-color-primary-200');
21
+ const primary700 = getComputedStyle(document.body).getPropertyValue('--ax-color-primary-700');
22
22
  this.audio = WaveSurfer.create({
23
23
  container: this.div.nativeElement,
24
- waveColor: this.config()?.waveColor || `rgba(${primary500})`,
24
+ waveColor: this.config()?.waveColor || `rgba(${primary200})`,
25
25
  progressColor: this.config()?.progressColor || `rgba(${primary700})`,
26
26
  url: this.config()?.url || '',
27
27
  barWidth: this.config()?.barWidth || 2,