@acorex/components 17.0.14 → 17.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. package/audio-wave/lib/audio-wave.component.d.ts +7 -2
  2. package/audio-wave/lib/audio-wave.module.d.ts +2 -1
  3. package/audio-wave/lib/interfaces/audio-wave.interface.d.ts +2 -1
  4. package/common/lib/components/base-component.class.d.ts +0 -4
  5. package/conversation/index.d.ts +12 -0
  6. package/{chat/lib/chat-input/chat-input.component.d.ts → conversation/lib/conversation-input/conversation-input.component.d.ts} +4 -4
  7. package/conversation/lib/conversation-message/conversation-message.component.d.ts +16 -0
  8. package/conversation/lib/conversation-messages/conversation-message-text.component.d.ts +9 -0
  9. package/conversation/lib/conversation-messages/conversation-messages-voice/conversation-message-voice.component.d.ts +27 -0
  10. package/conversation/lib/conversation-view/conversation-view.component.d.ts +10 -0
  11. package/conversation/lib/conversation.module.d.ts +36 -0
  12. package/conversation/lib/conversation.types.d.ts +21 -0
  13. package/conversation/lib/services/conversation-message-type-registry.service.d.ts +9 -0
  14. package/conversation/lib/services/conversation.service.d.ts +5 -0
  15. package/esm2022/audio-wave/lib/audio-wave.component.mjs +56 -30
  16. package/esm2022/audio-wave/lib/audio-wave.module.mjs +5 -4
  17. package/esm2022/audio-wave/lib/interfaces/audio-wave.interface.mjs +1 -1
  18. package/esm2022/button/lib/button.component.mjs +3 -3
  19. package/esm2022/color-palette/lib/color-palette-picker.component.mjs +8 -12
  20. package/esm2022/common/lib/components/base-component.class.mjs +11 -14
  21. package/esm2022/conversation/acorex-components-conversation.mjs +5 -0
  22. package/esm2022/conversation/index.mjs +14 -0
  23. package/esm2022/conversation/lib/classes/events.interface.mjs +2 -0
  24. package/esm2022/{chat/lib/chat-input/chat-input.component.mjs → conversation/lib/conversation-input/conversation-input.component.mjs} +14 -14
  25. package/esm2022/conversation/lib/conversation-input/conversation-input.interface.mjs +2 -0
  26. package/esm2022/conversation/lib/conversation-message/conversation-message.component.mjs +55 -0
  27. package/esm2022/conversation/lib/conversation-messages/conversation-message-text.component.mjs +23 -0
  28. package/esm2022/conversation/lib/conversation-messages/conversation-messages-voice/conversation-message-voice.component.mjs +112 -0
  29. package/esm2022/conversation/lib/conversation-view/conversation-view.component.mjs +22 -0
  30. package/esm2022/conversation/lib/conversation.module.mjs +150 -0
  31. package/esm2022/conversation/lib/conversation.types.mjs +10 -0
  32. package/esm2022/conversation/lib/services/conversation-message-type-registry.service.mjs +20 -0
  33. package/esm2022/conversation/lib/services/conversation.service.mjs +10 -0
  34. package/esm2022/conversation/lib/services/recording.service.mjs +78 -0
  35. package/esm2022/dialog/lib/dialog.service.mjs +2 -2
  36. package/esm2022/list/lib/list.component.mjs +3 -3
  37. package/esm2022/select-box/lib/select-box.component.mjs +3 -3
  38. package/esm2022/side-menu/lib/side-menu.component.mjs +2 -2
  39. package/fesm2022/acorex-components-audio-wave.mjs +60 -33
  40. package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
  41. package/fesm2022/acorex-components-button.mjs +2 -2
  42. package/fesm2022/acorex-components-button.mjs.map +1 -1
  43. package/fesm2022/acorex-components-color-palette.mjs +4 -8
  44. package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
  45. package/fesm2022/acorex-components-common.mjs +10 -13
  46. package/fesm2022/acorex-components-common.mjs.map +1 -1
  47. package/fesm2022/{acorex-components-chat.mjs → acorex-components-conversation.mjs} +153 -86
  48. package/fesm2022/acorex-components-conversation.mjs.map +1 -0
  49. package/fesm2022/acorex-components-dialog.mjs +1 -1
  50. package/fesm2022/acorex-components-dialog.mjs.map +1 -1
  51. package/fesm2022/acorex-components-list.mjs +2 -2
  52. package/fesm2022/acorex-components-list.mjs.map +1 -1
  53. package/fesm2022/acorex-components-select-box.mjs +2 -2
  54. package/fesm2022/acorex-components-select-box.mjs.map +1 -1
  55. package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
  56. package/package.json +13 -13
  57. package/chat/index.d.ts +0 -12
  58. package/chat/lib/chat-message/chat-message.component.d.ts +0 -16
  59. package/chat/lib/chat-messages/chat-message-text.component.d.ts +0 -8
  60. package/chat/lib/chat-messages/chat-messages-voice/chat-message-voice.component.d.ts +0 -19
  61. package/chat/lib/chat-view/chat-view.component.d.ts +0 -10
  62. package/chat/lib/chat.module.d.ts +0 -34
  63. package/chat/lib/chat.types.d.ts +0 -21
  64. package/chat/lib/services/chat-message-type-registry.service.d.ts +0 -9
  65. package/chat/lib/services/chat.service.d.ts +0 -5
  66. package/esm2022/chat/acorex-components-chat.mjs +0 -5
  67. package/esm2022/chat/index.mjs +0 -14
  68. package/esm2022/chat/lib/chat-input/chat-input.interface.mjs +0 -2
  69. package/esm2022/chat/lib/chat-message/chat-message.component.mjs +0 -48
  70. package/esm2022/chat/lib/chat-messages/chat-message-text.component.mjs +0 -23
  71. package/esm2022/chat/lib/chat-messages/chat-messages-voice/chat-message-voice.component.mjs +0 -60
  72. package/esm2022/chat/lib/chat-view/chat-view.component.mjs +0 -22
  73. package/esm2022/chat/lib/chat.module.mjs +0 -142
  74. package/esm2022/chat/lib/chat.types.mjs +0 -10
  75. package/esm2022/chat/lib/classes/events.interface.mjs +0 -2
  76. package/esm2022/chat/lib/services/chat-message-type-registry.service.mjs +0 -20
  77. package/esm2022/chat/lib/services/chat.service.mjs +0 -10
  78. package/esm2022/chat/lib/services/recording.service.mjs +0 -78
  79. package/fesm2022/acorex-components-chat.mjs.map +0 -1
  80. /package/{chat → conversation}/README.md +0 -0
  81. /package/{chat → conversation}/lib/classes/events.interface.d.ts +0 -0
  82. /package/{chat/lib/chat-input/chat-input.interface.d.ts → conversation/lib/conversation-input/conversation-input.interface.d.ts} +0 -0
  83. /package/{chat → conversation}/lib/services/recording.service.d.ts +0 -0
@@ -1,60 +0,0 @@
1
- import { AXAudioWaveComponent } from '@acorex/components/audio-wave';
2
- import { Component, ViewChild, ViewEncapsulation, afterNextRender, signal } from '@angular/core';
3
- import { AXChatMessageBaseComponent } from '../../chat.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 "@angular/common";
8
- import * as i4 from "@acorex/core/format";
9
- export class AXChatAudioMessageComponent extends AXChatMessageBaseComponent {
10
- constructor() {
11
- super();
12
- this.config = { url: '' };
13
- this.audioState = signal('paused');
14
- this.audioProgress = signal(0);
15
- this.timeLeft = signal(0);
16
- this.currentTime = signal(0);
17
- this.duration = signal(0);
18
- afterNextRender(() => {
19
- this.config.url = this.message?.content;
20
- this.audioState.set('loading');
21
- });
22
- }
23
- handlePauseClick() {
24
- this.audio.pause();
25
- this.audioState.set('paused');
26
- }
27
- handlePlayClick() {
28
- this.audio.play().then(() => {
29
- this.audioState.set('playing');
30
- });
31
- }
32
- handleOnStatusChanged(e) {
33
- console.log(e.status, e.data);
34
- if (e.status === 'loading') {
35
- this.audioProgress.set(e.data.percent);
36
- this.duration.set(Math.ceil(e.data.duration * 1000));
37
- }
38
- if (e.status === 'ready') {
39
- this.audioState.set('ready');
40
- this.duration.set(Math.ceil(e.data.duration * 1000));
41
- }
42
- if (e.status === 'finish') {
43
- this.audioState.set('paused');
44
- }
45
- if (e.status === 'timeupdate') {
46
- this.timeLeft.set(this.duration() - e.data.currentTime * 1000);
47
- this.currentTime.set(e.data.currentTime * 1000);
48
- }
49
- }
50
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXChatAudioMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
51
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.2", type: AXChatAudioMessageComponent, selector: "ax-chat-message-audio", inputs: { message: "message" }, viewQueries: [{ propertyName: "audio", first: true, predicate: ["a"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-audio-controller\">\n\n\n @switch (audioState()) {\n @case ('playing') {\n <button (click)=\"handlePauseClick()\">\n <i class=\"fa-solid fa-pause\"></i>\n </button>\n }\n @case ('paused')\n {\n <button (click)=\"handlePlayClick()\">\n <i class=\"fa-solid fa-play\" style=\"margin-inline-start: 0.25rem;\"></i>\n </button>\n }\n @case ('loading') {\n <!-- <button (click)=\"handlePlayClick()\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" class=\"loader\">\n <circle class=\"progress\" fill=\"none\" stroke-linecap=\"round\" cx=\"20\" cy=\"20\" r=\"15.915494309\" />\n </svg>\n </button> -->\n }\n @default {\n <button (click)=\"handlePlayClick()\">\n <i class=\"fa-solid fa-play\" style=\"margin-inline-start: 0.25rem;\"></i>\n </button>\n }\n }\n\n</div>\n<ax-audio-wave #a [config]=\"config\" (onStatusChanged)=\"handleOnStatusChanged($event)\"></ax-audio-wave>\n\n<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</ax-prefix>", styles: ["ax-chat-message-audio{display:flex;align-items:center;justify-content:space-between;gap:.25rem}ax-chat-message-audio .ax-audio-controller button{width:2.5rem;height:2.5rem;background-color:rgba(var(--ax-color-primary-500));color:rgba(var(--ax-color-primary-fore));border-radius:999rem;display:flex;align-items:center;justify-content:center}ax-chat-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}ax-chat-message-audio .ax-audio-wave{flex:1}\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: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.AXFormatPipe, name: "format" }], encapsulation: i0.ViewEncapsulation.None }); }
52
- }
53
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXChatAudioMessageComponent, decorators: [{
54
- type: Component,
55
- args: [{ selector: 'ax-chat-message-audio', encapsulation: ViewEncapsulation.None, inputs: ['message'], template: "<div class=\"ax-audio-controller\">\n\n\n @switch (audioState()) {\n @case ('playing') {\n <button (click)=\"handlePauseClick()\">\n <i class=\"fa-solid fa-pause\"></i>\n </button>\n }\n @case ('paused')\n {\n <button (click)=\"handlePlayClick()\">\n <i class=\"fa-solid fa-play\" style=\"margin-inline-start: 0.25rem;\"></i>\n </button>\n }\n @case ('loading') {\n <!-- <button (click)=\"handlePlayClick()\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" class=\"loader\">\n <circle class=\"progress\" fill=\"none\" stroke-linecap=\"round\" cx=\"20\" cy=\"20\" r=\"15.915494309\" />\n </svg>\n </button> -->\n }\n @default {\n <button (click)=\"handlePlayClick()\">\n <i class=\"fa-solid fa-play\" style=\"margin-inline-start: 0.25rem;\"></i>\n </button>\n }\n }\n\n</div>\n<ax-audio-wave #a [config]=\"config\" (onStatusChanged)=\"handleOnStatusChanged($event)\"></ax-audio-wave>\n\n<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</ax-prefix>", styles: ["ax-chat-message-audio{display:flex;align-items:center;justify-content:space-between;gap:.25rem}ax-chat-message-audio .ax-audio-controller button{width:2.5rem;height:2.5rem;background-color:rgba(var(--ax-color-primary-500));color:rgba(var(--ax-color-primary-fore));border-radius:999rem;display:flex;align-items:center;justify-content:center}ax-chat-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}ax-chat-message-audio .ax-audio-wave{flex:1}\n"] }]
56
- }], ctorParameters: () => [], propDecorators: { audio: [{
57
- type: ViewChild,
58
- args: ['a']
59
- }] } });
60
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhdC1tZXNzYWdlLXZvaWNlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9jaGF0L3NyYy9saWIvY2hhdC1tZXNzYWdlcy9jaGF0LW1lc3NhZ2VzLXZvaWNlL2NoYXQtbWVzc2FnZS12b2ljZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvY2hhdC9zcmMvbGliL2NoYXQtbWVzc2FnZXMvY2hhdC1tZXNzYWdlcy12b2ljZS9jaGF0LW1lc3NhZ2Utdm9pY2UuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUEwQixvQkFBb0IsRUFBZ0IsTUFBTSwrQkFBK0IsQ0FBQztBQUMzRyxPQUFPLEVBQUUsU0FBUyxFQUFFLFNBQVMsRUFBRSxpQkFBaUIsRUFBa0IsZUFBZSxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNqSCxPQUFPLEVBQUUsMEJBQTBCLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQzs7Ozs7O0FBUzlELE1BQU0sT0FBTywyQkFBNEIsU0FBUSwwQkFBa0M7SUFZakY7UUFDRSxLQUFLLEVBQUUsQ0FBQztRQVZWLFdBQU0sR0FBaUIsRUFBRSxHQUFHLEVBQUUsRUFBRSxFQUFFLENBQUM7UUFFbkMsZUFBVSxHQUErRCxNQUFNLENBQUMsUUFBUSxDQUFDLENBQUM7UUFFaEYsa0JBQWEsR0FBRyxNQUFNLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDMU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8IGZvcm1hdDondGltZS1kdXJhdGlvbicgfCBhc3luY319XG4gIH1cbiAgfVxuPC9heC1wcmVmaXg+Il19
@@ -1,22 +0,0 @@
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 "../chat-message/chat-message.component";
5
- export class AXChatViewComponent extends MXBaseComponent {
6
- constructor() {
7
- super(...arguments);
8
- this._chats = signal([]);
9
- }
10
- set chats(items) {
11
- this._chats.set(items);
12
- }
13
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXChatViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
14
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.2", type: AXChatViewComponent, selector: "ax-chat-view", inputs: { chats: "chats" }, usesInheritance: true, ngImport: i0, template: "@for (item of _chats(); track $index) {\n<ax-chat-message [chatMessage]=\"item\"></ax-chat-message>\n}", styles: ["ax-chat-view{display:flex;flex-direction:column;gap:1rem;height:100%;width:100%;overflow-y:auto;overflow-x:hidden}\n"], dependencies: [{ kind: "component", type: i1.AXChatMessageComponent, selector: "ax-chat-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: AXChatViewComponent, decorators: [{
17
- type: Component,
18
- args: [{ selector: 'ax-chat-view', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "@for (item of _chats(); track $index) {\n<ax-chat-message [chatMessage]=\"item\"></ax-chat-message>\n}", styles: ["ax-chat-view{display:flex;flex-direction:column;gap:1rem;height:100%;width:100%;overflow-y:auto;overflow-x:hidden}\n"] }]
19
- }], propDecorators: { chats: [{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AXAudioWaveModule } from '@acorex/components/audio-wave';
2
- import { AXButtonModule } from '@acorex/components/button';
3
- import { AXCircularProgressModule } from '@acorex/components/circular-progress';
4
- import { AXRippleDirective } from '@acorex/components/common';
5
- import { AXDecoratorModule } from '@acorex/components/decorators';
6
- import { AXDropdownModule } from '@acorex/components/dropdown';
7
- import { AXDateTimeModule } from '@acorex/core/date-time';
8
- import { AXFormatModule } from '@acorex/core/format';
9
- import { AXTranslationModule } from '@acorex/core/translation';
10
- import { CdkPortalOutlet } from '@angular/cdk/portal';
11
- import { AsyncPipe, CommonModule } from '@angular/common';
12
- import { Inject, NgModule, Optional } from '@angular/core';
13
- import { FormsModule } from '@angular/forms';
14
- import { AXChatInputComponent } from './chat-input/chat-input.component';
15
- import { AXChatMessageComponent } from './chat-message/chat-message.component';
16
- import { AXChatTextMessageComponent } from './chat-messages/chat-message-text.component';
17
- import { AXChatAudioMessageComponent } from './chat-messages/chat-messages-voice/chat-message-voice.component';
18
- import { AXChatViewComponent } from './chat-view/chat-view.component';
19
- import { AXChatMessageTypeRegistryService } from './services/chat-message-type-registry.service';
20
- import { AXRecordingService } from './services/recording.service';
21
- import * as i0 from "@angular/core";
22
- const COMPONENT = [
23
- AXChatViewComponent,
24
- AXChatInputComponent,
25
- AXChatMessageComponent,
26
- AXChatTextMessageComponent,
27
- AXChatAudioMessageComponent,
28
- ];
29
- const MODULES = [
30
- CommonModule,
31
- FormsModule,
32
- AsyncPipe,
33
- AXRippleDirective,
34
- AXButtonModule,
35
- AXDecoratorModule,
36
- AXTranslationModule,
37
- AXDropdownModule,
38
- AXFormatModule,
39
- AXAudioWaveModule,
40
- AXCircularProgressModule,
41
- AXDateTimeModule,
42
- CdkPortalOutlet,
43
- ];
44
- export class AXChatModule {
45
- static forRoot(config) {
46
- return {
47
- ngModule: AXChatModule,
48
- providers: [
49
- {
50
- provide: 'AXChatModuleFactory',
51
- useFactory: (registry) => () => {
52
- if (config?.types?.length) {
53
- registry.register(...config.types);
54
- }
55
- registry.register({
56
- name: 'text',
57
- component: AXChatTextMessageComponent,
58
- });
59
- registry.register({
60
- name: 'audio',
61
- component: AXChatAudioMessageComponent,
62
- });
63
- },
64
- deps: [AXChatMessageTypeRegistryService],
65
- multi: true,
66
- },
67
- ],
68
- };
69
- }
70
- static forChild(config) {
71
- return {
72
- ngModule: AXChatModule,
73
- providers: [
74
- {
75
- provide: 'AXPWorkflowModuleFactory',
76
- useFactory: (registry) => () => {
77
- if (config?.types?.length) {
78
- registry.register(...config.types);
79
- }
80
- },
81
- deps: [AXChatMessageTypeRegistryService],
82
- multi: true,
83
- },
84
- ],
85
- };
86
- }
87
- /**
88
- * @ignore
89
- */
90
- constructor(instances) {
91
- instances?.forEach((f) => {
92
- f();
93
- });
94
- }
95
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXChatModule, deps: [{ token: 'AXChatModuleFactory', optional: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
96
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.2", ngImport: i0, type: AXChatModule, declarations: [AXChatViewComponent,
97
- AXChatInputComponent,
98
- AXChatMessageComponent,
99
- AXChatTextMessageComponent,
100
- AXChatAudioMessageComponent], imports: [CommonModule,
101
- FormsModule,
102
- AsyncPipe,
103
- AXRippleDirective,
104
- AXButtonModule,
105
- AXDecoratorModule,
106
- AXTranslationModule,
107
- AXDropdownModule,
108
- AXFormatModule,
109
- AXAudioWaveModule,
110
- AXCircularProgressModule,
111
- AXDateTimeModule,
112
- CdkPortalOutlet], exports: [AXChatViewComponent,
113
- AXChatInputComponent,
114
- AXChatMessageComponent,
115
- AXChatTextMessageComponent,
116
- AXChatAudioMessageComponent] }); }
117
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXChatModule, providers: [AXRecordingService], imports: [CommonModule,
118
- FormsModule,
119
- AXButtonModule,
120
- AXDecoratorModule,
121
- AXTranslationModule,
122
- AXDropdownModule,
123
- AXFormatModule,
124
- AXAudioWaveModule,
125
- AXCircularProgressModule,
126
- AXDateTimeModule] }); }
127
- }
128
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXChatModule, decorators: [{
129
- type: NgModule,
130
- args: [{
131
- declarations: [...COMPONENT],
132
- imports: [...MODULES],
133
- exports: [...COMPONENT],
134
- providers: [AXRecordingService],
135
- }]
136
- }], ctorParameters: () => [{ type: undefined, decorators: [{
137
- type: Optional
138
- }, {
139
- type: Inject,
140
- args: ['AXChatModuleFactory']
141
- }] }] });
142
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhdC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvY2hhdC9zcmMvbGliL2NoYXQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBQ2xFLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUMzRCxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSxzQ0FBc0MsQ0FBQztBQUNoRixPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUM5RCxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQUNsRSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUMvRCxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUMxRCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0scUJBQ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gICAgIH0sXG4gICAgICBdLFxuICAgIH07XG4gIH1cblxuICBzdGF0aWMgZm9yQ2hpbGQoY29uZmlnPzogQVhDaGF0TW9kdWxlQ29uZmlnKTogTW9kdWxlV2l0aFByb3ZpZGVyczxBWENoYXRNb2R1bGU+IHtcbiAgICByZXR1cm4ge1xuICAgICAgbmdNb2R1bGU6IEFYQ2hhdE1vZHVsZSxcbiAgICAgIHByb3ZpZGVyczogW1xuICAgICAgICB7XG4gICAgICAgICAgcHJvdmlkZTogJ0FYUFdvcmtmbG93TW9kdWxlRmFjdG9yeScsXG4gICAgICAgICAgdXNlRmFjdG9yeTogKHJlZ2lzdHJ5OiBBWENoYXRNZXNzYWdlVHlwZVJlZ2lzdHJ5U2VydmljZSkgPT4gKCkgPT4ge1xuICAgICAgICAgICAgaWYgKGNvbmZpZz8udHlwZXM/Lmxlbmd0aCkge1xuICAgICAgICAgICAgICByZWdpc3RyeS5yZWdpc3RlciguLi5jb25maWcudHlwZXMpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH0sXG4gICAgICAgICAgZGVwczogW0FYQ2hhdE1lc3NhZ2VUeXBlUmVnaXN0cnlTZXJ2aWNlXSxcbiAgICAgICAgICBtdWx0aTogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgIF0sXG4gICAgfTtcbiAgfVxuXG4gIC8qKlxuICAgKiBAaWdub3JlXG4gICAqL1xuICBjb25zdHJ1Y3RvcihAT3B0aW9uYWwoKSBASW5qZWN0KCdBWENoYXRNb2R1bGVGYWN0b3J5JykgaW5zdGFuY2VzOiBhbnlbXSkge1xuICAgIGluc3RhbmNlcz8uZm9yRWFjaCgoZikgPT4ge1xuICAgICAgZigpO1xuICAgIH0pO1xuICB9XG59XG4iXX0=
@@ -1,10 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class AXChatMessageBaseComponent {
4
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXChatMessageBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXChatMessageBaseComponent }); }
6
- }
7
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXChatMessageBaseComponent, decorators: [{
8
- type: Injectable
9
- }] });
10
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhdC50eXBlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9jaGF0L3NyYy9saWIvY2hhdC50eXBlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFRLE1BQU0sZUFBZSxDQUFDOztBQW1CakQsTUFBTSxPQUFPLDBCQUEwQjs4R0FBMUIsMEJBQTBCO2tIQUExQiwwQkFBMEI7OzJGQUExQiwwQkFBMEI7a0JBRHRDLFVBQVUiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3RhYmxlLCBUeXBlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgQVhDaGF0TWVzc2FnZVR5cGUge1xuICBuYW1lOiBzdHJpbmc7XG4gIGNvbXBvbmVudDogVHlwZTxhbnk+O1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIEFYQ2hhdE1lc3NhZ2U8VD4ge1xuICBpZDogc3RyaW5nO1xuICB0eXBlOiBzdHJpbmc7XG4gIHNlbmRUaW1lOiBEYXRlO1xuICBkZWxpdmVyVGltZT86IERhdGU7XG4gIHJlYWRUaW1lPzogRGF0ZTtcbiAgcmVwbHlUbz86IHN0cmluZztcbiAgY29udGVudDogVDtcbiAgZnJvbUlkPzogc3RyaW5nO1xufVxuXG5ASW5qZWN0YWJsZSgpXG5leHBvcnQgY2xhc3MgQVhDaGF0TWVzc2FnZUJhc2VDb21wb25lbnQ8VD4ge1xuICBtZXNzYWdlOiBBWENoYXRNZXNzYWdlPFQ+O1xufVxuIl19
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnRzLmludGVyZmFjZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9jaGF0L3NyYy9saWIvY2xhc3Nlcy9ldmVudHMuaW50ZXJmYWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBBWEh0bWxFdmVudCB9IGZyb20gJ0BhY29yZXgvY29tcG9uZW50cy9jb21tb24nO1xuXG5leHBvcnQgaW50ZXJmYWNlIEFYSW5wdXRGaWxlQ2hhbmdlIGV4dGVuZHMgQVhIdG1sRXZlbnQ8TW91c2VFdmVudD4ge1xuICBkYXRhPzogYW55O1xufVxuIl19
@@ -1,20 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class AXChatMessageTypeRegistryService {
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: AXChatMessageTypeRegistryService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
14
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXChatMessageTypeRegistryService, providedIn: 'root' }); }
15
- }
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXChatMessageTypeRegistryService, decorators: [{
17
- type: Injectable,
18
- args: [{ providedIn: 'root' }]
19
- }] });
20
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhdC1tZXNzYWdlLXR5cGUtcmVnaXN0cnkuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9jaGF0L3NyYy9saWIvc2VydmljZXMvY2hhdC1tZXNzYWdlLXR5cGUtcmVnaXN0cnkuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUkzQyxNQUFNLE9BQU8sZ0NBQWdDO0lBRDdDO1FBRVUsWUFBTyxHQUFtQyxJQUFJLEdBQUcsRUFHdEQsQ0FBQztLQVNMO0lBUEMsUUFBUSxDQUFDLEdBQUcsT0FBNEI7UUFDdEMsT0FBTyxDQUFDLE9BQU8sQ0FBQyxDQUFDLENBQUMsRUFBRSxFQUFFLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLElBQUksRUFBRSxDQUFDLENBQUMsQ0FBQyxDQUFDO0lBQ3RELENBQUM7SUFFTSxPQUFPLENBQUMsSUFBWTtRQUN6QixPQUFPLElBQUksQ0FBQyxPQUFPLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxDQUFDO0lBQ2hDLENBQUM7OEdBWlUsZ0NBQWdDO2tIQUFoQyxnQ0FBZ0MsY0FEbkIsTUFBTTs7MkZBQ25CLGdDQUFnQztrQkFENUMsVUFBVTttQkFBQyxFQUFFLFVBQVUsRUFBRSxNQUFNLEVBQUUiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3RhYmxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBBWENoYXRNZXNzYWdlVHlwZSB9IGZyb20gJy4uL2NoYXQudHlwZXMnO1xuXG5ASW5qZWN0YWJsZSh7IHByb3ZpZGVkSW46ICdyb290JyB9KVxuZXhwb3J0IGNsYXNzIEFYQ2hhdE1lc3NhZ2VUeXBlUmVnaXN0cnlTZXJ2aWNlIHtcbiAgcHJpdmF0ZSBwbHVnaW5zOiBNYXA8c3RyaW5nLCBBWENoYXRNZXNzYWdlVHlwZT4gPSBuZXcgTWFwPFxuICAgIHN0cmluZyxcbiAgICBBWENoYXRNZXNzYWdlVHlwZVxuICA+KCk7XG5cbiAgcmVnaXN0ZXIoLi4ucGx1Z2luczogQVhDaGF0TWVzc2FnZVR5cGVbXSkge1xuICAgIHBsdWdpbnMuZm9yRWFjaCgocCkgPT4gdGhpcy5wbHVnaW5zLnNldChwLm5hbWUsIHApKTtcbiAgfVxuXG4gIHB1YmxpYyByZXNvbHZlKG5hbWU6IHN0cmluZyk6IEFYQ2hhdE1lc3NhZ2VUeXBlIHwgdW5kZWZpbmVkIHtcbiAgICByZXR1cm4gdGhpcy5wbHVnaW5zLmdldChuYW1lKTtcbiAgfVxufVxuIl19
@@ -1,10 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class AXChatService {
4
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXChatService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXChatService }); }
6
- }
7
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXChatService, decorators: [{
8
- type: Injectable
9
- }] });
10
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhdC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2NoYXQvc3JjL2xpYi9zZXJ2aWNlcy9jaGF0LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFHM0MsTUFBTSxPQUFPLGFBQWE7OEdBQWIsYUFBYTtrSEFBYixhQUFhOzsyRkFBYixhQUFhO2tCQUR6QixVQUFVIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSW5qZWN0YWJsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5ASW5qZWN0YWJsZSgpXG5leHBvcnQgY2xhc3MgQVhDaGF0U2VydmljZSB7fVxuIl19
@@ -1,78 +0,0 @@
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVjb3JkaW5nLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvY2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dGVzID0gMDtcbiAgICAgICAgdGhpcy50aW1lLmhvdXJzKys7XG4gICAgICB9XG4gICAgfVxuXG4gICAgY29uc3QgZm9ybWF0dGVkVGltZSA9XG4gICAgICAodGhpcy50aW1lLmhvdXJzID4gMCA/IHRoaXMudGltZS5ob3VycyArICc6JyA6ICcnKSArXG4gICAgICAodGhpcy50aW1lLm1pbnV0ZXMgPCAxMCA/ICcwJyArIHRoaXMudGltZS5taW51dGVzIDogdGhpcy50aW1lLm1pbnV0ZXMpICtcbiAgICAgICc6JyArXG4gICAgICAodGhpcy50aW1lLnNlY29uZHMgPCAxMCA/ICcwJyArIHRoaXMudGltZS5zZWNvbmRzIDogdGhpcy50aW1lLnNlY29uZHMpO1xuXG4gICAgdGhpcy50aW1lci5zZXQoZm9ybWF0dGVkVGltZSk7XG4gIH1cblxuICByZXNldFRpbWVyKCkge1xuICAgIGNsZWFySW50ZXJ2YWwodGhpcy50aW1lckludGVydmFsKTtcbiAgICB0aGlzLnRpbWUuc2Vjb25kcyA9IDA7XG4gICAgdGhpcy50aW1lLm1pbnV0ZXMgPSAwO1xuICAgIHRoaXMudGltZS5ob3VycyA9IDA7XG4gICAgdGhpcy50aW1lci5zZXQoJzAwOjAnKTtcbiAgfVxufVxuIl19
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-components-chat.mjs","sources":["../../../../libs/components/chat/src/lib/services/recording.service.ts","../../../../libs/components/chat/src/lib/chat-input/chat-input.component.ts","../../../../libs/components/chat/src/lib/chat-input/chat-input.component.html","../../../../libs/components/chat/src/lib/services/chat-message-type-registry.service.ts","../../../../libs/components/chat/src/lib/chat-message/chat-message.component.ts","../../../../libs/components/chat/src/lib/chat-message/chat-message.component.html","../../../../libs/components/chat/src/lib/chat-view/chat-view.component.ts","../../../../libs/components/chat/src/lib/chat-view/chat-view.component.html","../../../../libs/components/chat/src/lib/chat.types.ts","../../../../libs/components/chat/src/lib/chat-messages/chat-message-text.component.ts","../../../../libs/components/chat/src/lib/chat-messages/chat-messages-voice/chat-message-voice.component.ts","../../../../libs/components/chat/src/lib/chat-messages/chat-messages-voice/chat-message-voice.component.html","../../../../libs/components/chat/src/lib/chat.module.ts","../../../../libs/components/chat/src/lib/services/chat.service.ts","../../../../libs/components/chat/src/acorex-components-chat.ts"],"sourcesContent":["import { Injectable, WritableSignal, signal } from '@angular/core';\n\n@Injectable()\nexport class AXRecordingService {\n audioBlobs: any[] = [];\n mediaRecorder: MediaRecorder | null;\n streamBeingCaptured: any = null;\n\n timer: WritableSignal<string> = signal('00:0');\n\n protected time = {\n seconds: 0,\n minutes: 0,\n hours: 0,\n };\n\n protected timerInterval;\n\n startRecording() {\n if (!(navigator.mediaDevices && navigator.mediaDevices.getUserMedia)) {\n return Promise.reject(\n new Error(\n 'mediaDevices API or getUserMedia method is not supported in this browser.'\n )\n );\n } else {\n return navigator.mediaDevices\n .getUserMedia({ audio: true })\n .then((stream) => {\n this.streamBeingCaptured = stream;\n this.mediaRecorder = new MediaRecorder(stream);\n this.audioBlobs = [];\n this.mediaRecorder.addEventListener('dataavailable', (event) => {\n this.audioBlobs.push(event.data);\n });\n this.mediaRecorder.start();\n this.timerInterval = setInterval(() => {\n this.calculateTime();\n }, 1000);\n });\n }\n }\n\n stopRecording() {\n return new Promise((resolve) => {\n const mimeType = this.mediaRecorder?.mimeType;\n this.mediaRecorder?.addEventListener('stop', () => {\n const audioBlob = new Blob(this.audioBlobs, { type: mimeType });\n resolve(audioBlob);\n });\n this.mediaRecorder?.stop();\n this.streamBeingCaptured.getTracks().forEach((track) => track.stop());\n this.mediaRecorder = null;\n this.streamBeingCaptured = null;\n this.resetTimer();\n });\n }\n\n calculateTime() {\n this.time.seconds++;\n if (this.time.seconds >= 60) {\n this.time.seconds = 0;\n this.time.minutes++;\n if (this.time.minutes >= 60) {\n this.time.minutes = 0;\n this.time.hours++;\n }\n }\n\n const formattedTime =\n (this.time.hours > 0 ? this.time.hours + ':' : '') +\n (this.time.minutes < 10 ? '0' + this.time.minutes : this.time.minutes) +\n ':' +\n (this.time.seconds < 10 ? '0' + this.time.seconds : this.time.seconds);\n\n this.timer.set(formattedTime);\n }\n\n resetTimer() {\n clearInterval(this.timerInterval);\n this.time.seconds = 0;\n this.time.minutes = 0;\n this.time.hours = 0;\n this.timer.set('00:0');\n }\n}\n","import {\n AXClickEvent,\n AXComponent,\n AXFocusableComponent,\n AXValuableComponent,\n MXInputBaseValueComponent,\n MXLookComponent,\n} from '@acorex/components/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n EventEmitter,\n Input,\n Output,\n ViewChild,\n ViewEncapsulation,\n WritableSignal,\n forwardRef,\n inject,\n signal,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { classes } from 'polytype';\nimport { AXInputFileChange } from '../classes/events.interface';\nimport { AXRecordingService } from '../services/recording.service';\n\n@Component({\n selector: 'ax-chat-input',\n templateUrl: './chat-input.component.html',\n styleUrls: ['./chat-input.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n { provide: AXComponent, useExisting: AXChatInputComponent },\n { provide: AXFocusableComponent, useExisting: AXChatInputComponent },\n { provide: AXValuableComponent, useExisting: AXChatInputComponent },\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AXChatInputComponent),\n multi: true,\n },\n ],\n})\nexport class AXChatInputComponent extends classes(\n MXInputBaseValueComponent<string>,\n MXLookComponent\n) {\n @ViewChild('inputFile') inputFile: ElementRef<HTMLInputElement>;\n @Input()\n maxLength: number;\n\n @Input() hasAttachment = true;\n\n @Input() haVoice = true;\n\n @Input() acceptFileType: string = '*';\n\n @Output()\n onSendClick: EventEmitter<AXClickEvent> = new EventEmitter<AXClickEvent>();\n\n @Output()\n onStartRecording: EventEmitter<AXClickEvent> =\n new EventEmitter<AXClickEvent>();\n\n @Output()\n onStopRecording: EventEmitter<AXClickEvent> =\n new EventEmitter<AXClickEvent>();\n\n @Output()\n onFileChange: EventEmitter<AXInputFileChange> =\n new EventEmitter<AXInputFileChange>();\n\n recording: WritableSignal<boolean> = signal(false);\n\n recordingService: AXRecordingService = inject(AXRecordingService);\n\n protected _updateOn: 'change' | 'blur' | 'submit' = 'change';\n\n protected _handleModelChange(value: string) {\n this.commitValue(value, true);\n }\n protected recordedAudio: unknown | null = null;\n\n handleRecordClick() {\n this.recordedAudio = null;\n this.recording.set(true);\n this.recordingService\n ?.startRecording()\n .then(() => {\n this.onStartRecording.emit({\n component: this,\n data: { recording: true },\n isUserInteraction: true,\n });\n })\n .catch((e) => {\n console.error(e);\n });\n }\n\n handleStopClick() {\n this.recordingService.stopRecording().then((c) => {\n this.recording.set(false);\n this.recordedAudio = c;\n this.onStopRecording.emit({\n component: this,\n data: { value: this.recordedAudio },\n });\n });\n }\n handleAttachClick() {\n this.inputFile.nativeElement.click();\n }\n\n handleChangeFile(event: Event) {\n this.onFileChange.emit({\n component: this,\n data: { value: (event.target as HTMLInputElement).files },\n });\n }\n\n handleSendClick() {\n this.onSendClick.emit({\n component: this,\n data: { value: this.value },\n isUserInteraction: true,\n });\n }\n\n handleSendVoiceClick() {\n this.handleStopClick();\n this.onSendClick.emit({\n component: this,\n data: { value: this.value },\n isUserInteraction: true,\n });\n }\n}\n","<div class=\"ax-chat-input\" [class.ax-state-recording]=\"recording()\">\n @if (recording()) {\n <div class=\"ax-chat-input-start-side\">\n <span class=\"ax-record-dot\"></span>\n <span>{{ recordingService.timer() }}</span>\n </div>\n <div class=\"ax-chat-input-main-side\">\n <ax-button class=\"ax-sm\" look=\"blank\" color=\"primary\" [text]=\"'cancel' | translate | async\"\n (onClick)=\"handleStopClick()\"></ax-button>\n </div>\n <div class=\"ax-chat-input-end-side\">\n <ax-button look=\"solid\" color=\"danger\" class=\"ax-blob ax-sm\" (onClick)=\"handleSendVoiceClick()\">\n <ax-icon>\n <i class=\"ax-icon ax-icon-send\"></i>\n </ax-icon>\n </ax-button>\n </div>\n } @else {\n <div class=\"ax-chat-input-start-side\">\n <ax-button look=\"blank\" class=\"ax-sm\">\n <ax-icon>\n <i class=\"ax-icon ax-icon-emoji\"></i>\n </ax-icon>\n <ax-dropdown-panel>\n <ng-container>\n <div class=\"ax-emoji-container\">\n <div>⚠️</div>\n <div>➡️</div>\n <div>🔃</div>\n <div>🔷</div>\n <div>🤚</div>\n <div>😂</div>\n <div>😊</div>\n </div>\n </ng-container>\n </ax-dropdown-panel>\n </ax-button>\n </div>\n <textarea class=\"ax-chat-input-main-side\"\n oninput='this.style.height = \"\";this.style.height = this.scrollHeight + \"px\"' type=\"text\" rows=\"1\" [id]=\"id\"\n [name]=\"name\" [attr.placeholder]=\"placeholder\" [attr.maxlength]=\"maxLength\" [disabled]=\"disabled\"\n [readonly]=\"readonly\" [tabindex]=\"tabIndex\" [ngModel]=\"value\" (ngModelChange)=\"_handleModelChange($event)\"\n [ngModelOptions]=\"{ updateOn: _updateOn }\" (keydown)=\"emitOnKeydownEvent($event)\" (keyup)=\"emitOnKeyupEvent($event)\"\n (keypress)=\"emitOnKeypressEvent($event)\" (focus)=\"emitOnFocusEvent($event)\"\n (blur)=\"emitOnBlurEvent($event)\"></textarea>\n <div class=\"ax-chat-input-end-side\">\n @if (!value) {\n <ax-button look=\"blank\" class=\"ax-sm\" (onClick)=\"handleAttachClick()\">\n <ax-icon>\n <i class=\"ax-icon ax-icon-attach\"></i>\n </ax-icon>\n </ax-button>\n <ax-button look=\"blank\" class=\"ax-sm\" (onClick)=\"handleRecordClick()\">\n <ax-icon>\n <i class=\"ax-icon ax-icon-mic\"></i>\n </ax-icon>\n </ax-button>\n <input #inputFile [accept]=\"acceptFileType\" type=\"file\" class=\"ax-attach-input\" (change)=\"handleChangeFile($event)\">\n }\n\n @if (value) {\n <ax-button look=\"solid\" color=\"primary\" class=\"ax-sm\" (onClick)=\"handleSendClick()\">\n <ax-icon>\n <i class=\"ax-icon ax-icon-send\"></i>\n </ax-icon>\n </ax-button>\n }\n </div>\n }\n</div>","import { Injectable } from '@angular/core';\nimport { AXChatMessageType } from '../chat.types';\n\n@Injectable({ providedIn: 'root' })\nexport class AXChatMessageTypeRegistryService {\n private plugins: Map<string, AXChatMessageType> = new Map<\n string,\n AXChatMessageType\n >();\n\n register(...plugins: AXChatMessageType[]) {\n plugins.forEach((p) => this.plugins.set(p.name, p));\n }\n\n public resolve(name: string): AXChatMessageType | undefined {\n return this.plugins.get(name);\n }\n}\n","import { MXBaseComponent } from '@acorex/components/common';\nimport { isBrowser } from '@acorex/core/platform';\nimport { CdkPortalOutletAttachedRef, ComponentPortal } from '@angular/cdk/portal';\nimport { Component, ComponentRef, HostBinding, ViewEncapsulation, inject, input } from '@angular/core';\nimport { AXChatMessage } from '../chat.types';\nimport { AXChatMessageTypeRegistryService } from '../services/chat-message-type-registry.service';\n\n@Component({\n selector: 'ax-chat-message',\n templateUrl: './chat-message.component.html',\n styleUrls: ['./chat-message.component.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXChatMessageComponent extends MXBaseComponent {\n chatMessage = input<AXChatMessage<any>>();\n\n protected _portal: ComponentPortal<any> | null;\n\n protected get isOwn(): boolean {\n return !this.chatMessage().fromId;\n }\n\n protected registryService = inject(AXChatMessageTypeRegistryService);\n\n @HostBinding('class')\n get __hostClass(): string {\n return `${this.isOwn ? 'ax-state-own' : ''} ${!this.isOwn ? 'ax-state-other' : ''}`;\n }\n\n protected override ngOnInit(): void {\n this._portal = new ComponentPortal(this.registryService.resolve(this.chatMessage().type).component);\n }\n\n protected _handleAttched(ref: CdkPortalOutletAttachedRef) {\n ref = ref as ComponentRef<unknown>;\n if (ref.instance && isBrowser()) {\n Object.assign(ref.instance, { message: this.chatMessage() });\n this.cdr.markForCheck();\n const prefix = this.getHostElement().querySelector('ax-prefix') as HTMLDivElement;\n const container = this.getHostElement().querySelector('.ax-message-prefix');\n if (prefix && container) {\n prefix.style.display = 'flex';\n container.append(prefix);\n }\n }\n }\n}\n","<ng-template [cdkPortalOutlet]=\"_portal\" (attached)=\"_handleAttched($event)\"></ng-template>\n\n<div class=\"ax-chat-message-status\">\n <div class=\"ax-message-prefix\">\n </div>\n <div>\n <span>{{ chatMessage().sendTime | format:'datetime':'HH:mm' | async }}</span>\n <span>\n @if(isOwn)\n {\n @if(chatMessage().deliverTime){\n <i class=\"ax-icon ax-icon-check\"></i>\n }\n @if(chatMessage().readTime){\n <i class=\"ax-icon ax-icon-dobble-check\"></i>\n }\n }\n </span>\n </div>\n</div>","import { MXBaseComponent } from '@acorex/components/common';\nimport { ChangeDetectionStrategy, Component, Input, ViewEncapsulation, WritableSignal, signal } from '@angular/core';\nimport { AXChatMessage } from '../chat.types';\n\n@Component({\n selector: 'ax-chat-view',\n templateUrl: './chat-view.component.html',\n styleUrls: ['./chat-view.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXChatViewComponent extends MXBaseComponent {\n @Input()\n public set chats(items: AXChatMessage<any>[]) {\n this._chats.set(items);\n }\n\n protected _chats: WritableSignal<AXChatMessage<any>[]> = signal([]);\n}\n","@for (item of _chats(); track $index) {\n<ax-chat-message [chatMessage]=\"item\"></ax-chat-message>\n}","import { Injectable, Type } from '@angular/core';\n\nexport interface AXChatMessageType {\n name: string;\n component: Type<any>;\n}\n\nexport interface AXChatMessage<T> {\n id: string;\n type: string;\n sendTime: Date;\n deliverTime?: Date;\n readTime?: Date;\n replyTo?: string;\n content: T;\n fromId?: string;\n}\n\n@Injectable()\nexport class AXChatMessageBaseComponent<T> {\n message: AXChatMessage<T>;\n}\n","import { Component, ViewEncapsulation, signal } from '@angular/core';\nimport { AXChatMessageBaseComponent } from '../chat.types';\n\n@Component({\n template: `<div [innerHtml]=\"_text()\"></div>`,\n encapsulation: ViewEncapsulation.None,\n inputs: ['message'],\n})\nexport class AXChatTextMessageComponent extends AXChatMessageBaseComponent<string> {\n protected _text = signal('');\n\n ngOnInit(): void {\n this._text.set(this.message?.content);\n }\n}\n","import { AXAudioWaveChangeEvent, AXAudioWaveComponent, AXWaveConfig } from '@acorex/components/audio-wave';\nimport { Component, ViewChild, ViewEncapsulation, WritableSignal, afterNextRender, signal } from '@angular/core';\nimport { AXChatMessageBaseComponent } from '../../chat.types';\n\n@Component({\n selector: 'ax-chat-message-audio',\n templateUrl: './chat-message-voice.component.html',\n styleUrl: `./chat-message-voice.component.scss`,\n encapsulation: ViewEncapsulation.None,\n inputs: ['message'],\n})\nexport class AXChatAudioMessageComponent extends AXChatMessageBaseComponent<string> {\n @ViewChild('a') audio: AXAudioWaveComponent;\n\n config: AXWaveConfig = { url: '' };\n\n audioState: WritableSignal<'playing' | 'paused' | 'loading' | 'ready'> = signal('paused');\n\n protected audioProgress = signal(0);\n protected timeLeft = signal(0);\n protected currentTime = signal(0);\n protected duration = signal(0);\n\n constructor() {\n super();\n afterNextRender(() => {\n this.config.url = this.message?.content;\n this.audioState.set('loading');\n });\n }\n\n handlePauseClick() {\n this.audio.pause();\n this.audioState.set('paused');\n }\n\n handlePlayClick() {\n this.audio.play().then(() => {\n this.audioState.set('playing');\n });\n }\n\n handleOnStatusChanged(e: AXAudioWaveChangeEvent) {\n console.log(e.status, e.data);\n if (e.status === 'loading') {\n this.audioProgress.set(e.data.percent);\n this.duration.set(Math.ceil(e.data.duration * 1000));\n }\n if (e.status === 'ready') {\n this.audioState.set('ready');\n this.duration.set(Math.ceil(e.data.duration * 1000));\n }\n if (e.status === 'finish') {\n this.audioState.set('paused');\n }\n if (e.status === 'timeupdate') {\n this.timeLeft.set(this.duration() - e.data.currentTime * 1000);\n this.currentTime.set(e.data.currentTime * 1000);\n }\n }\n}\n","<div class=\"ax-audio-controller\">\n\n\n @switch (audioState()) {\n @case ('playing') {\n <button (click)=\"handlePauseClick()\">\n <i class=\"fa-solid fa-pause\"></i>\n </button>\n }\n @case ('paused')\n {\n <button (click)=\"handlePlayClick()\">\n <i class=\"fa-solid fa-play\" style=\"margin-inline-start: 0.25rem;\"></i>\n </button>\n }\n @case ('loading') {\n <!-- <button (click)=\"handlePlayClick()\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" class=\"loader\">\n <circle class=\"progress\" fill=\"none\" stroke-linecap=\"round\" cx=\"20\" cy=\"20\" r=\"15.915494309\" />\n </svg>\n </button> -->\n }\n @default {\n <button (click)=\"handlePlayClick()\">\n <i class=\"fa-solid fa-play\" style=\"margin-inline-start: 0.25rem;\"></i>\n </button>\n }\n }\n\n</div>\n<ax-audio-wave #a [config]=\"config\" (onStatusChanged)=\"handleOnStatusChanged($event)\"></ax-audio-wave>\n\n<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</ax-prefix>","import { AXAudioWaveModule } from '@acorex/components/audio-wave';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXCircularProgressModule } from '@acorex/components/circular-progress';\nimport { AXRippleDirective } from '@acorex/components/common';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDropdownModule } from '@acorex/components/dropdown';\nimport { AXDateTimeModule } from '@acorex/core/date-time';\nimport { AXFormatModule } from '@acorex/core/format';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { CdkPortalOutlet } from '@angular/cdk/portal';\nimport { AsyncPipe, CommonModule } from '@angular/common';\nimport { Inject, ModuleWithProviders, NgModule, Optional } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AXChatInputComponent } from './chat-input/chat-input.component';\nimport { AXChatMessageComponent } from './chat-message/chat-message.component';\nimport { AXChatTextMessageComponent } from './chat-messages/chat-message-text.component';\nimport { AXChatAudioMessageComponent } from './chat-messages/chat-messages-voice/chat-message-voice.component';\nimport { AXChatViewComponent } from './chat-view/chat-view.component';\nimport { AXChatMessageType } from './chat.types';\nimport { AXChatMessageTypeRegistryService } from './services/chat-message-type-registry.service';\nimport { AXRecordingService } from './services/recording.service';\n\nexport interface AXChatModuleConfig {\n types: AXChatMessageType[];\n}\n\nconst COMPONENT = [\n AXChatViewComponent,\n AXChatInputComponent,\n AXChatMessageComponent,\n AXChatTextMessageComponent,\n AXChatAudioMessageComponent,\n];\nconst MODULES = [\n CommonModule,\n FormsModule,\n AsyncPipe,\n AXRippleDirective,\n AXButtonModule,\n AXDecoratorModule,\n AXTranslationModule,\n AXDropdownModule,\n AXFormatModule,\n AXAudioWaveModule,\n AXCircularProgressModule,\n AXDateTimeModule,\n CdkPortalOutlet,\n];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [AXRecordingService],\n})\nexport class AXChatModule {\n static forRoot(config?: AXChatModuleConfig): ModuleWithProviders<AXChatModule> {\n return {\n ngModule: AXChatModule,\n providers: [\n {\n provide: 'AXChatModuleFactory',\n useFactory: (registry: AXChatMessageTypeRegistryService) => () => {\n if (config?.types?.length) {\n registry.register(...config.types);\n }\n registry.register({\n name: 'text',\n component: AXChatTextMessageComponent,\n });\n registry.register({\n name: 'audio',\n component: AXChatAudioMessageComponent,\n });\n },\n deps: [AXChatMessageTypeRegistryService],\n multi: true,\n },\n ],\n };\n }\n\n static forChild(config?: AXChatModuleConfig): ModuleWithProviders<AXChatModule> {\n return {\n ngModule: AXChatModule,\n providers: [\n {\n provide: 'AXPWorkflowModuleFactory',\n useFactory: (registry: AXChatMessageTypeRegistryService) => () => {\n if (config?.types?.length) {\n registry.register(...config.types);\n }\n },\n deps: [AXChatMessageTypeRegistryService],\n multi: true,\n },\n ],\n };\n }\n\n /**\n * @ignore\n */\n constructor(@Optional() @Inject('AXChatModuleFactory') instances: any[]) {\n instances?.forEach((f) => {\n f();\n });\n }\n}\n","import { Injectable } from '@angular/core';\n\n@Injectable()\nexport class AXChatService {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2","i3","i1.AXChatMessageComponent","i4"],"mappings":";;;;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