@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.
- package/audio-wave/lib/audio-wave.component.d.ts +7 -2
- package/audio-wave/lib/audio-wave.module.d.ts +2 -1
- package/audio-wave/lib/interfaces/audio-wave.interface.d.ts +2 -1
- package/common/lib/components/base-component.class.d.ts +0 -4
- package/conversation/index.d.ts +12 -0
- package/{chat/lib/chat-input/chat-input.component.d.ts → conversation/lib/conversation-input/conversation-input.component.d.ts} +4 -4
- package/conversation/lib/conversation-message/conversation-message.component.d.ts +16 -0
- package/conversation/lib/conversation-messages/conversation-message-text.component.d.ts +9 -0
- package/conversation/lib/conversation-messages/conversation-messages-voice/conversation-message-voice.component.d.ts +27 -0
- package/conversation/lib/conversation-view/conversation-view.component.d.ts +10 -0
- package/conversation/lib/conversation.module.d.ts +36 -0
- package/conversation/lib/conversation.types.d.ts +21 -0
- package/conversation/lib/services/conversation-message-type-registry.service.d.ts +9 -0
- package/conversation/lib/services/conversation.service.d.ts +5 -0
- package/esm2022/audio-wave/lib/audio-wave.component.mjs +56 -30
- package/esm2022/audio-wave/lib/audio-wave.module.mjs +5 -4
- package/esm2022/audio-wave/lib/interfaces/audio-wave.interface.mjs +1 -1
- package/esm2022/button/lib/button.component.mjs +3 -3
- package/esm2022/color-palette/lib/color-palette-picker.component.mjs +8 -12
- package/esm2022/common/lib/components/base-component.class.mjs +11 -14
- package/esm2022/conversation/acorex-components-conversation.mjs +5 -0
- package/esm2022/conversation/index.mjs +14 -0
- package/esm2022/conversation/lib/classes/events.interface.mjs +2 -0
- package/esm2022/{chat/lib/chat-input/chat-input.component.mjs → conversation/lib/conversation-input/conversation-input.component.mjs} +14 -14
- package/esm2022/conversation/lib/conversation-input/conversation-input.interface.mjs +2 -0
- package/esm2022/conversation/lib/conversation-message/conversation-message.component.mjs +55 -0
- package/esm2022/conversation/lib/conversation-messages/conversation-message-text.component.mjs +23 -0
- package/esm2022/conversation/lib/conversation-messages/conversation-messages-voice/conversation-message-voice.component.mjs +112 -0
- package/esm2022/conversation/lib/conversation-view/conversation-view.component.mjs +22 -0
- package/esm2022/conversation/lib/conversation.module.mjs +150 -0
- package/esm2022/conversation/lib/conversation.types.mjs +10 -0
- package/esm2022/conversation/lib/services/conversation-message-type-registry.service.mjs +20 -0
- package/esm2022/conversation/lib/services/conversation.service.mjs +10 -0
- package/esm2022/conversation/lib/services/recording.service.mjs +78 -0
- package/esm2022/dialog/lib/dialog.service.mjs +2 -2
- package/esm2022/list/lib/list.component.mjs +3 -3
- package/esm2022/select-box/lib/select-box.component.mjs +3 -3
- package/esm2022/side-menu/lib/side-menu.component.mjs +2 -2
- package/fesm2022/acorex-components-audio-wave.mjs +60 -33
- package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
- package/fesm2022/acorex-components-button.mjs +2 -2
- package/fesm2022/acorex-components-button.mjs.map +1 -1
- package/fesm2022/acorex-components-color-palette.mjs +4 -8
- package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
- package/fesm2022/acorex-components-common.mjs +10 -13
- package/fesm2022/acorex-components-common.mjs.map +1 -1
- package/fesm2022/{acorex-components-chat.mjs → acorex-components-conversation.mjs} +153 -86
- package/fesm2022/acorex-components-conversation.mjs.map +1 -0
- package/fesm2022/acorex-components-dialog.mjs +1 -1
- package/fesm2022/acorex-components-dialog.mjs.map +1 -1
- package/fesm2022/acorex-components-list.mjs +2 -2
- package/fesm2022/acorex-components-list.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +2 -2
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
- package/package.json +13 -13
- package/chat/index.d.ts +0 -12
- package/chat/lib/chat-message/chat-message.component.d.ts +0 -16
- package/chat/lib/chat-messages/chat-message-text.component.d.ts +0 -8
- package/chat/lib/chat-messages/chat-messages-voice/chat-message-voice.component.d.ts +0 -19
- package/chat/lib/chat-view/chat-view.component.d.ts +0 -10
- package/chat/lib/chat.module.d.ts +0 -34
- package/chat/lib/chat.types.d.ts +0 -21
- package/chat/lib/services/chat-message-type-registry.service.d.ts +0 -9
- package/chat/lib/services/chat.service.d.ts +0 -5
- package/esm2022/chat/acorex-components-chat.mjs +0 -5
- package/esm2022/chat/index.mjs +0 -14
- package/esm2022/chat/lib/chat-input/chat-input.interface.mjs +0 -2
- package/esm2022/chat/lib/chat-message/chat-message.component.mjs +0 -48
- package/esm2022/chat/lib/chat-messages/chat-message-text.component.mjs +0 -23
- package/esm2022/chat/lib/chat-messages/chat-messages-voice/chat-message-voice.component.mjs +0 -60
- package/esm2022/chat/lib/chat-view/chat-view.component.mjs +0 -22
- package/esm2022/chat/lib/chat.module.mjs +0 -142
- package/esm2022/chat/lib/chat.types.mjs +0 -10
- package/esm2022/chat/lib/classes/events.interface.mjs +0 -2
- package/esm2022/chat/lib/services/chat-message-type-registry.service.mjs +0 -20
- package/esm2022/chat/lib/services/chat.service.mjs +0 -10
- package/esm2022/chat/lib/services/recording.service.mjs +0 -78
- package/fesm2022/acorex-components-chat.mjs.map +0 -1
- /package/{chat → conversation}/README.md +0 -0
- /package/{chat → conversation}/lib/classes/events.interface.d.ts +0 -0
- /package/{chat/lib/chat-input/chat-input.interface.d.ts → conversation/lib/conversation-input/conversation-input.interface.d.ts} +0 -0
- /package/{chat → conversation}/lib/services/recording.service.d.ts +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ElementRef, InputSignal } from '@angular/core';
|
1
|
+
import { ElementRef, InputSignal, WritableSignal } from '@angular/core';
|
2
2
|
import WaveSurfer from 'wavesurfer.js';
|
3
3
|
import { AXAudioWaveChangeEvent, AXWaveConfig } from './interfaces/audio-wave.interface';
|
4
4
|
import * as i0 from "@angular/core";
|
@@ -6,14 +6,17 @@ export declare class AXAudioWaveComponent {
|
|
6
6
|
protected div: ElementRef<HTMLDivElement>;
|
7
7
|
config: InputSignal<AXWaveConfig>;
|
8
8
|
onStatusChanged: import("@angular/core").OutputEmitterRef<AXAudioWaveChangeEvent>;
|
9
|
-
|
9
|
+
audioState: WritableSignal<'playing' | 'paused' | 'loading' | 'ready' | 'error'>;
|
10
|
+
errorMessage: WritableSignal<string>;
|
10
11
|
protected audio: WaveSurfer;
|
11
12
|
private ngZone;
|
12
13
|
constructor();
|
14
|
+
load(url?: string): void;
|
13
15
|
play(): Promise<any>;
|
14
16
|
pause(): void;
|
15
17
|
getDuration(): number;
|
16
18
|
getMediaElement(): HTMLMediaElement;
|
19
|
+
setRate(rate: number): void;
|
17
20
|
protected bindEvents(): void;
|
18
21
|
/** When audio starts loading */
|
19
22
|
protected handleLoad(): void;
|
@@ -47,6 +50,8 @@ export declare class AXAudioWaveComponent {
|
|
47
50
|
protected handleZoom(): void;
|
48
51
|
/** Just before the waveform is destroyed so you can clean up your events */
|
49
52
|
protected handleDestroy(): void;
|
53
|
+
/** Just before the waveform is destroyed so you can clean up your events */
|
54
|
+
protected handleError(): void;
|
50
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXAudioWaveComponent, never>;
|
51
56
|
static ɵcmp: i0.ɵɵComponentDeclaration<AXAudioWaveComponent, "ax-audio-wave", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; }, { "onStatusChanged": "onStatusChanged"; }, never, never, false, never>;
|
52
57
|
}
|
@@ -4,8 +4,9 @@ import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "@acorex/components/button";
|
5
5
|
import * as i4 from "@acorex/components/decorators";
|
6
6
|
import * as i5 from "@acorex/components/skeleton";
|
7
|
+
import * as i6 from "@acorex/core/translation";
|
7
8
|
export declare class AXAudioWaveModule {
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXAudioWaveModule, never>;
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXAudioWaveModule, [typeof i1.AXAudioWaveComponent], [typeof i2.CommonModule, typeof i3.AXButtonModule, typeof i4.AXDecoratorModule, typeof i5.AXSkeletonModule], [typeof i1.AXAudioWaveComponent]>;
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXAudioWaveModule, [typeof i1.AXAudioWaveComponent], [typeof i2.CommonModule, typeof i3.AXButtonModule, typeof i4.AXDecoratorModule, typeof i5.AXSkeletonModule, typeof i6.AXTranslationModule], [typeof i1.AXAudioWaveComponent]>;
|
10
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXAudioWaveModule>;
|
11
12
|
}
|
@@ -8,8 +8,9 @@ export interface AXWaveConfig {
|
|
8
8
|
barGap?: number;
|
9
9
|
barRadius?: number;
|
10
10
|
height?: number;
|
11
|
+
audioRate?: number;
|
11
12
|
}
|
12
13
|
export interface AXAudioWaveChangeEvent extends AXEvent {
|
13
|
-
status: 'load' | 'loading' | 'decode' | 'ready' | 'redrawcomplete' | 'play' | 'pause' | 'finish' | 'timeupdate' | 'seeking' | 'interaction' | 'click' | 'drag' | 'scroll' | 'zoom' | 'destroy';
|
14
|
+
status: 'load' | 'loading' | 'decode' | 'ready' | 'redrawcomplete' | 'play' | 'pause' | 'finish' | 'timeupdate' | 'seeking' | 'interaction' | 'click' | 'drag' | 'scroll' | 'zoom' | 'destroy' | 'error';
|
14
15
|
data: null | any;
|
15
16
|
}
|
@@ -26,10 +26,6 @@ export declare abstract class MXBaseComponent {
|
|
26
26
|
protected getViewContainer(): ViewContainerRef;
|
27
27
|
protected internalOptionChanging(option: MXComponentOptionChanging): any;
|
28
28
|
protected internalOptionChanged(option: MXComponentOptionChanged): void;
|
29
|
-
/**
|
30
|
-
*
|
31
|
-
*/
|
32
|
-
constructor();
|
33
29
|
protected ngOnInit(): void;
|
34
30
|
onOptionChanged: EventEmitter<AXOptionChangedEvent>;
|
35
31
|
setOption<T = any>(option: MXComponentSetOption<T>): void;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export * from './lib/classes/events.interface';
|
2
|
+
export * from './lib/conversation-input/conversation-input.component';
|
3
|
+
export * from './lib/conversation-input/conversation-input.interface';
|
4
|
+
export * from './lib/conversation-message/conversation-message.component';
|
5
|
+
export * from './lib/conversation-view/conversation-view.component';
|
6
|
+
export * from './lib/conversation.module';
|
7
|
+
export * from './lib/conversation.types';
|
8
|
+
export * from './lib/services/conversation-message-type-registry.service';
|
9
|
+
export * from './lib/services/conversation.service';
|
10
|
+
export * from './lib/services/recording.service';
|
11
|
+
export * from './lib/conversation-messages/conversation-message-text.component';
|
12
|
+
export * from './lib/conversation-messages/conversation-messages-voice/conversation-message-voice.component';
|
@@ -3,12 +3,12 @@ import { ElementRef, EventEmitter, WritableSignal } from '@angular/core';
|
|
3
3
|
import { AXInputFileChange } from '../classes/events.interface';
|
4
4
|
import { AXRecordingService } from '../services/recording.service';
|
5
5
|
import * as i0 from "@angular/core";
|
6
|
-
declare const
|
6
|
+
declare const AXConversationInputComponent_base: import("polytype").Polytype.ClusteredConstructor<[{
|
7
7
|
new (): MXInputBaseValueComponent<string>;
|
8
8
|
ɵfac: unknown;
|
9
9
|
ɵprov: import("@angular/core").ɵɵInjectableDeclaration<MXInputBaseValueComponent<any>>;
|
10
10
|
}, typeof MXLookComponent]>;
|
11
|
-
export declare class
|
11
|
+
export declare class AXConversationInputComponent extends AXConversationInputComponent_base {
|
12
12
|
inputFile: ElementRef<HTMLInputElement>;
|
13
13
|
maxLength: number;
|
14
14
|
hasAttachment: boolean;
|
@@ -29,7 +29,7 @@ export declare class AXChatInputComponent extends AXChatInputComponent_base {
|
|
29
29
|
handleChangeFile(event: Event): void;
|
30
30
|
handleSendClick(): void;
|
31
31
|
handleSendVoiceClick(): void;
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXConversationInputComponent, never>;
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXConversationInputComponent, "ax-conversation-input", never, { "maxLength": { "alias": "maxLength"; "required": false; }; "hasAttachment": { "alias": "hasAttachment"; "required": false; }; "haVoice": { "alias": "haVoice"; "required": false; }; "acceptFileType": { "alias": "acceptFileType"; "required": false; }; }, { "onSendClick": "onSendClick"; "onStartRecording": "onStartRecording"; "onStopRecording": "onStopRecording"; "onFileChange": "onFileChange"; }, never, never, false, never>;
|
34
34
|
}
|
35
35
|
export {};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { MXBaseComponent } from '@acorex/components/common';
|
2
|
+
import { CdkPortalOutletAttachedRef, ComponentPortal } from '@angular/cdk/portal';
|
3
|
+
import { AXConversationMessage } from '../conversation.types';
|
4
|
+
import { AXConversationMessageTypeRegistryService } from '../services/conversation-message-type-registry.service';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
export declare class AXConversationMessageComponent extends MXBaseComponent {
|
7
|
+
chatMessage: import("@angular/core").InputSignal<AXConversationMessage<any>>;
|
8
|
+
protected _portal: ComponentPortal<any> | null;
|
9
|
+
protected get isOwn(): boolean;
|
10
|
+
protected registryService: AXConversationMessageTypeRegistryService;
|
11
|
+
get __hostClass(): string;
|
12
|
+
protected ngOnInit(): void;
|
13
|
+
protected _handleAttched(ref: CdkPortalOutletAttachedRef): void;
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXConversationMessageComponent, never>;
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXConversationMessageComponent, "ax-conversation-message", never, { "chatMessage": { "alias": "chatMessage"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
16
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { OnInit } from '@angular/core';
|
2
|
+
import { AXConversationMessageBaseComponent } from '../conversation.types';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class AXConversationTextMessageComponent extends AXConversationMessageBaseComponent<string> implements OnInit {
|
5
|
+
protected _text: import("@angular/core").WritableSignal<string>;
|
6
|
+
ngOnInit(): void;
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXConversationTextMessageComponent, never>;
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXConversationTextMessageComponent, "ng-component", never, { "message": { "alias": "message"; "required": false; }; }, {}, never, never, false, never>;
|
9
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { AXAudioWaveChangeEvent, AXAudioWaveComponent, AXWaveConfig } from '@acorex/components/audio-wave';
|
2
|
+
import { WritableSignal } from '@angular/core';
|
3
|
+
import { AXConversationMessageBaseComponent } from '../../conversation.types';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class AXConversationAudioMessageComponent extends AXConversationMessageBaseComponent<string> {
|
6
|
+
audio: AXAudioWaveComponent;
|
7
|
+
config: AXWaveConfig;
|
8
|
+
audioState: WritableSignal<'playing' | 'paused' | 'loading' | 'ready' | 'error'>;
|
9
|
+
selectedRate: WritableSignal<number>;
|
10
|
+
selectedRateIndex: WritableSignal<number>;
|
11
|
+
protected audioProgress: WritableSignal<number>;
|
12
|
+
protected timeLeft: WritableSignal<number>;
|
13
|
+
protected currentTime: WritableSignal<number>;
|
14
|
+
protected duration: WritableSignal<number>;
|
15
|
+
constructor();
|
16
|
+
setWaveColor(): void;
|
17
|
+
handlePauseClick(): void;
|
18
|
+
handlePlayClick(): void;
|
19
|
+
handleOnStatusChanged(e: AXAudioWaveChangeEvent): void;
|
20
|
+
handleLoadingProgress(): void;
|
21
|
+
handleCancelLoading(): void;
|
22
|
+
handleReloadClick(): void;
|
23
|
+
handleRateClick(): void;
|
24
|
+
get __hostClass(): string;
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXConversationAudioMessageComponent, never>;
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXConversationAudioMessageComponent, "ax-conversation-message-audio", never, { "message": { "alias": "message"; "required": false; }; }, {}, never, never, false, never>;
|
27
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { MXBaseComponent } from '@acorex/components/common';
|
2
|
+
import { WritableSignal } from '@angular/core';
|
3
|
+
import { AXConversationMessage } from '../conversation.types';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class AXConversationViewComponent extends MXBaseComponent {
|
6
|
+
set conversations(items: AXConversationMessage<any>[]);
|
7
|
+
protected _conversations: WritableSignal<AXConversationMessage<any>[]>;
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXConversationViewComponent, never>;
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXConversationViewComponent, "ax-conversation-view", never, { "conversations": { "alias": "conversations"; "required": false; }; }, {}, never, never, false, never>;
|
10
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
2
|
+
import { AXConversationMessageType } from './conversation.types';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
import * as i1 from "./conversation-view/conversation-view.component";
|
5
|
+
import * as i2 from "./conversation-input/conversation-input.component";
|
6
|
+
import * as i3 from "./conversation-message/conversation-message.component";
|
7
|
+
import * as i4 from "./conversation-messages/conversation-message-text.component";
|
8
|
+
import * as i5 from "./conversation-messages/conversation-messages-voice/conversation-message-voice.component";
|
9
|
+
import * as i6 from "@angular/common";
|
10
|
+
import * as i7 from "@angular/forms";
|
11
|
+
import * as i8 from "@acorex/components/common";
|
12
|
+
import * as i9 from "@acorex/components/button";
|
13
|
+
import * as i10 from "@acorex/components/decorators";
|
14
|
+
import * as i11 from "@acorex/core/translation";
|
15
|
+
import * as i12 from "@acorex/components/dropdown";
|
16
|
+
import * as i13 from "@acorex/core/format";
|
17
|
+
import * as i14 from "@acorex/components/audio-wave";
|
18
|
+
import * as i15 from "@acorex/components/circular-progress";
|
19
|
+
import * as i16 from "@acorex/core/date-time";
|
20
|
+
import * as i17 from "@angular/cdk/portal";
|
21
|
+
import * as i18 from "@acorex/components/loading";
|
22
|
+
import * as i19 from "@acorex/components/avatar";
|
23
|
+
export interface AXChatModuleConfig {
|
24
|
+
types: AXConversationMessageType[];
|
25
|
+
}
|
26
|
+
export declare class AXConversationModule {
|
27
|
+
static forRoot(config?: AXChatModuleConfig): ModuleWithProviders<AXConversationModule>;
|
28
|
+
static forChild(config?: AXChatModuleConfig): ModuleWithProviders<AXConversationModule>;
|
29
|
+
/**
|
30
|
+
* @ignore
|
31
|
+
*/
|
32
|
+
constructor(instances: any[]);
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXConversationModule, [{ optional: true; }]>;
|
34
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXConversationModule, [typeof i1.AXConversationViewComponent, typeof i2.AXConversationInputComponent, typeof i3.AXConversationMessageComponent, typeof i4.AXConversationTextMessageComponent, typeof i5.AXConversationAudioMessageComponent], [typeof i6.CommonModule, typeof i7.FormsModule, typeof i6.AsyncPipe, typeof i8.AXRippleDirective, typeof i9.AXButtonModule, typeof i10.AXDecoratorModule, typeof i11.AXTranslationModule, typeof i12.AXDropdownModule, typeof i13.AXFormatModule, typeof i14.AXAudioWaveModule, typeof i15.AXCircularProgressModule, typeof i16.AXDateTimeModule, typeof i17.CdkPortalOutlet, typeof i18.AXLoadingModule, typeof i19.AXAvatarModule], [typeof i1.AXConversationViewComponent, typeof i2.AXConversationInputComponent, typeof i3.AXConversationMessageComponent, typeof i4.AXConversationTextMessageComponent, typeof i5.AXConversationAudioMessageComponent]>;
|
35
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXConversationModule>;
|
36
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { Type } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export interface AXConversationMessageType {
|
4
|
+
name: string;
|
5
|
+
component: Type<any>;
|
6
|
+
}
|
7
|
+
export interface AXConversationMessage<T> {
|
8
|
+
id: string;
|
9
|
+
type: string;
|
10
|
+
sendTime: Date;
|
11
|
+
deliverTime?: Date;
|
12
|
+
readTime?: Date;
|
13
|
+
replyTo?: string;
|
14
|
+
content: T;
|
15
|
+
fromId?: string;
|
16
|
+
}
|
17
|
+
export declare class AXConversationMessageBaseComponent<T> {
|
18
|
+
message: AXConversationMessage<T>;
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXConversationMessageBaseComponent<any>, never>;
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXConversationMessageBaseComponent<any>>;
|
21
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { AXConversationMessageType } from '../conversation.types';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class AXConversationMessageTypeRegistryService {
|
4
|
+
private plugins;
|
5
|
+
register(...plugins: AXConversationMessageType[]): void;
|
6
|
+
resolve(name: string): AXConversationMessageType | undefined;
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXConversationMessageTypeRegistryService, never>;
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXConversationMessageTypeRegistryService>;
|
9
|
+
}
|
@@ -1,37 +1,50 @@
|
|
1
1
|
import { Component, ElementRef, NgZone, ViewChild, ViewEncapsulation, afterNextRender, inject, input, output, signal, } from '@angular/core';
|
2
2
|
import WaveSurfer from 'wavesurfer.js';
|
3
3
|
import * as i0 from "@angular/core";
|
4
|
+
import * as i1 from "@angular/common";
|
5
|
+
import * as i2 from "@acorex/core/translation";
|
4
6
|
export class AXAudioWaveComponent {
|
5
7
|
constructor() {
|
6
8
|
this.config = input();
|
7
9
|
this.onStatusChanged = output();
|
8
|
-
this.
|
10
|
+
this.audioState = signal('paused');
|
11
|
+
this.errorMessage = signal('');
|
9
12
|
this.ngZone = inject(NgZone);
|
10
13
|
afterNextRender(() => {
|
11
|
-
const
|
12
|
-
const primary700 = getComputedStyle(document.body).getPropertyValue('--ax-color-primary-
|
14
|
+
const primary200 = getComputedStyle(document.body).getPropertyValue('--ax-color-primary-200');
|
15
|
+
const primary700 = getComputedStyle(document.body).getPropertyValue('--ax-color-primary-700');
|
13
16
|
this.audio = WaveSurfer.create({
|
14
17
|
container: this.div.nativeElement,
|
15
|
-
waveColor: this.config()?.waveColor || `rgba(${
|
18
|
+
waveColor: this.config()?.waveColor || `rgba(${primary200})`,
|
16
19
|
progressColor: this.config()?.progressColor || `rgba(${primary700})`,
|
17
20
|
url: this.config()?.url || '',
|
18
21
|
barWidth: this.config()?.barWidth || 2,
|
19
22
|
barRadius: this.config()?.barRadius || 2,
|
20
|
-
barGap: this.config()?.barGap ||
|
23
|
+
barGap: this.config()?.barGap || 2,
|
21
24
|
height: this.config()?.height || 18,
|
22
25
|
});
|
23
|
-
this.
|
24
|
-
this.audio
|
25
|
-
this.
|
26
|
+
this.load();
|
27
|
+
this.audio?.on('loading', () => {
|
28
|
+
this.audioState.set('loading');
|
29
|
+
});
|
30
|
+
this.audio?.on('ready', () => {
|
31
|
+
this.audioState.set('ready');
|
32
|
+
});
|
33
|
+
this.audio?.on('error', (e) => {
|
34
|
+
this.errorMessage.set(e.message);
|
35
|
+
this.audioState.set('error');
|
26
36
|
});
|
27
37
|
this.bindEvents();
|
28
38
|
});
|
29
39
|
}
|
40
|
+
load(url = this.config().url) {
|
41
|
+
this.audio.load(url);
|
42
|
+
}
|
30
43
|
play() {
|
31
|
-
return this.audio
|
44
|
+
return this.audio?.play();
|
32
45
|
}
|
33
46
|
pause() {
|
34
|
-
this.audio
|
47
|
+
this.audio?.pause();
|
35
48
|
}
|
36
49
|
getDuration() {
|
37
50
|
return this.audio?.getDuration() ?? 0;
|
@@ -39,7 +52,11 @@ export class AXAudioWaveComponent {
|
|
39
52
|
getMediaElement() {
|
40
53
|
return this.audio?.getMediaElement();
|
41
54
|
}
|
55
|
+
setRate(rate) {
|
56
|
+
this.audio.setPlaybackRate(rate);
|
57
|
+
}
|
42
58
|
bindEvents() {
|
59
|
+
console.log('bind Events');
|
43
60
|
this.handleLoad();
|
44
61
|
this.handleLoading();
|
45
62
|
this.handleDecode();
|
@@ -56,10 +73,11 @@ export class AXAudioWaveComponent {
|
|
56
73
|
this.handleScroll();
|
57
74
|
this.handleZoom();
|
58
75
|
this.handleDestroy();
|
76
|
+
this.handleError();
|
59
77
|
}
|
60
78
|
/** When audio starts loading */
|
61
79
|
handleLoad() {
|
62
|
-
this.audio
|
80
|
+
this.audio?.on('load', (url) => {
|
63
81
|
this.ngZone.run(() => {
|
64
82
|
this.onStatusChanged.emit({ component: this, data: { url: url }, status: 'load', isUserInteraction: false });
|
65
83
|
});
|
@@ -67,7 +85,7 @@ export class AXAudioWaveComponent {
|
|
67
85
|
}
|
68
86
|
/** During audio loading */
|
69
87
|
handleLoading() {
|
70
|
-
this.audio
|
88
|
+
this.audio?.on('loading', (percent) => {
|
71
89
|
this.ngZone.run(() => {
|
72
90
|
this.onStatusChanged.emit({ component: this, data: { percent: percent }, status: 'loading', isUserInteraction: false });
|
73
91
|
});
|
@@ -75,7 +93,7 @@ export class AXAudioWaveComponent {
|
|
75
93
|
}
|
76
94
|
/** When the audio has been decoded */
|
77
95
|
handleDecode() {
|
78
|
-
this.audio
|
96
|
+
this.audio?.on('decode', (duration) => {
|
79
97
|
this.ngZone.run(() => {
|
80
98
|
this.onStatusChanged.emit({ component: this, data: { duration: duration }, status: 'decode', isUserInteraction: false });
|
81
99
|
});
|
@@ -83,7 +101,7 @@ export class AXAudioWaveComponent {
|
|
83
101
|
}
|
84
102
|
/** When the audio is both decoded and can play */
|
85
103
|
handleReady() {
|
86
|
-
this.audio
|
104
|
+
this.audio?.on('ready', (duration) => {
|
87
105
|
this.ngZone.run(() => {
|
88
106
|
this.onStatusChanged.emit({ component: this, data: { duration: duration }, status: 'ready', isUserInteraction: false });
|
89
107
|
});
|
@@ -91,7 +109,7 @@ export class AXAudioWaveComponent {
|
|
91
109
|
}
|
92
110
|
/** When all audio channel chunks of the waveform have drawn */
|
93
111
|
handleRedRawComplete() {
|
94
|
-
this.audio
|
112
|
+
this.audio?.on('redrawcomplete', () => {
|
95
113
|
this.ngZone.run(() => {
|
96
114
|
this.onStatusChanged.emit({ component: this, data: null, status: 'redrawcomplete', isUserInteraction: false });
|
97
115
|
});
|
@@ -99,7 +117,7 @@ export class AXAudioWaveComponent {
|
|
99
117
|
}
|
100
118
|
/** When the audio starts playing */
|
101
119
|
handlePlay() {
|
102
|
-
this.audio
|
120
|
+
this.audio?.on('play', () => {
|
103
121
|
this.ngZone.run(() => {
|
104
122
|
this.onStatusChanged.emit({ component: this, data: null, status: 'play', isUserInteraction: false });
|
105
123
|
});
|
@@ -107,7 +125,7 @@ export class AXAudioWaveComponent {
|
|
107
125
|
}
|
108
126
|
/** When the audio pauses */
|
109
127
|
handlePause() {
|
110
|
-
this.audio
|
128
|
+
this.audio?.on('pause', () => {
|
111
129
|
this.ngZone.run(() => {
|
112
130
|
this.onStatusChanged.emit({ component: this, data: null, status: 'pause', isUserInteraction: false });
|
113
131
|
});
|
@@ -115,7 +133,7 @@ export class AXAudioWaveComponent {
|
|
115
133
|
}
|
116
134
|
/** When the audio finishes playing */
|
117
135
|
handleFinish() {
|
118
|
-
this.audio
|
136
|
+
this.audio?.on('finish', () => {
|
119
137
|
this.ngZone.run(() => {
|
120
138
|
this.onStatusChanged.emit({ component: this, data: null, status: 'finish', isUserInteraction: false });
|
121
139
|
});
|
@@ -123,7 +141,7 @@ export class AXAudioWaveComponent {
|
|
123
141
|
}
|
124
142
|
/** On audio position change, fires continuously during playback */
|
125
143
|
handleTimeUpdate() {
|
126
|
-
this.audio
|
144
|
+
this.audio?.on('timeupdate', (currentTime) => {
|
127
145
|
this.ngZone.run(() => {
|
128
146
|
this.onStatusChanged.emit({ component: this, data: { currentTime: currentTime }, status: 'timeupdate', isUserInteraction: false });
|
129
147
|
});
|
@@ -131,7 +149,7 @@ export class AXAudioWaveComponent {
|
|
131
149
|
}
|
132
150
|
/** When the user seeks to a new position */
|
133
151
|
handleSeeking() {
|
134
|
-
this.audio
|
152
|
+
this.audio?.on('seeking', (currentTime) => {
|
135
153
|
this.ngZone.run(() => {
|
136
154
|
this.onStatusChanged.emit({ component: this, data: { currentTime: currentTime }, status: 'seeking', isUserInteraction: false });
|
137
155
|
});
|
@@ -139,7 +157,7 @@ export class AXAudioWaveComponent {
|
|
139
157
|
}
|
140
158
|
/** When the user interacts with the waveform (i.g. clicks or drags on it) */
|
141
159
|
handleInteraction() {
|
142
|
-
this.audio
|
160
|
+
this.audio?.on('interaction', (newTime) => {
|
143
161
|
this.ngZone.run(() => {
|
144
162
|
this.onStatusChanged.emit({ component: this, data: { newTime: newTime }, status: 'interaction', isUserInteraction: false });
|
145
163
|
});
|
@@ -147,7 +165,7 @@ export class AXAudioWaveComponent {
|
|
147
165
|
}
|
148
166
|
/** When the user clicks on the waveform */
|
149
167
|
handleClick() {
|
150
|
-
this.audio
|
168
|
+
this.audio?.on('click', (relativeX) => {
|
151
169
|
this.ngZone.run(() => {
|
152
170
|
this.onStatusChanged.emit({ component: this, data: { relativeX: relativeX }, status: 'click', isUserInteraction: false });
|
153
171
|
});
|
@@ -155,7 +173,7 @@ export class AXAudioWaveComponent {
|
|
155
173
|
}
|
156
174
|
/** When the user drags the cursor */
|
157
175
|
handleDrag() {
|
158
|
-
this.audio
|
176
|
+
this.audio?.on('drag', (relativeX) => {
|
159
177
|
this.ngZone.run(() => {
|
160
178
|
this.onStatusChanged.emit({ component: this, data: { relativeX: relativeX }, status: 'drag', isUserInteraction: false });
|
161
179
|
});
|
@@ -163,7 +181,7 @@ export class AXAudioWaveComponent {
|
|
163
181
|
}
|
164
182
|
/** When the waveform is scrolled (panned) */
|
165
183
|
handleScroll() {
|
166
|
-
this.audio
|
184
|
+
this.audio?.on('scroll', (visibleStartTime, visibleEndTime) => {
|
167
185
|
this.ngZone.run(() => {
|
168
186
|
this.onStatusChanged.emit({
|
169
187
|
component: this,
|
@@ -176,7 +194,7 @@ export class AXAudioWaveComponent {
|
|
176
194
|
}
|
177
195
|
/** When the zoom level changes */
|
178
196
|
handleZoom() {
|
179
|
-
this.audio
|
197
|
+
this.audio?.on('zoom', (minPxPerSec) => {
|
180
198
|
this.ngZone.run(() => {
|
181
199
|
this.onStatusChanged.emit({ component: this, data: { minPxPerSec: minPxPerSec }, status: 'zoom', isUserInteraction: false });
|
182
200
|
});
|
@@ -184,20 +202,28 @@ export class AXAudioWaveComponent {
|
|
184
202
|
}
|
185
203
|
/** Just before the waveform is destroyed so you can clean up your events */
|
186
204
|
handleDestroy() {
|
187
|
-
this.audio
|
205
|
+
this.audio?.on('destroy', () => {
|
188
206
|
this.ngZone.run(() => {
|
189
207
|
this.onStatusChanged.emit({ component: this, data: null, status: 'destroy', isUserInteraction: false });
|
190
208
|
});
|
191
209
|
});
|
192
210
|
}
|
211
|
+
/** Just before the waveform is destroyed so you can clean up your events */
|
212
|
+
handleError() {
|
213
|
+
this.audio?.on('error', (e) => {
|
214
|
+
this.ngZone.run(() => {
|
215
|
+
this.onStatusChanged.emit({ component: this, data: e, status: 'error', isUserInteraction: false });
|
216
|
+
});
|
217
|
+
});
|
218
|
+
}
|
193
219
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXAudioWaveComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
194
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.2", type: AXAudioWaveComponent, selector: "ax-audio-wave", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onStatusChanged: "onStatusChanged" }, viewQueries: [{ propertyName: "div", first: true, predicate: ["d"], descendants: true }], ngImport: i0, template: "@
|
220
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.2", type: AXAudioWaveComponent, selector: "ax-audio-wave", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onStatusChanged: "onStatusChanged" }, viewQueries: [{ propertyName: "div", first: true, predicate: ["d"], descendants: true }], ngImport: i0, template: "<div class=\"ax-audio-wave\" #d [ngStyle]=\"{'display': audioState() === 'ready' ? 'block' : 'none' }\"></div>\n\n@switch (audioState()) {\n@case ('loading') {\n<div class=\"ax-audio-skeleton\"></div>\n}\n@case ('error') {\n<div class=\"ax-wave-message\">\n {{'error.message' | translate:{ params:{ message: errorMessage() } } | async }}\n</div>\n}\n}", styles: ["ax-audio-wave{display:block;width:100%;flex:1;--ax-audio-skeleton-bg: rgba(var(--ax-color-primary-200))}ax-audio-wave .ax-audio-skeleton{position:relative;display:block;overflow:hidden;background-color:var(--ax-audio-skeleton-bg);height:1.125rem;border-radius:999rem}ax-audio-wave .ax-audio-skeleton:before{position:absolute;inset-inline-start:-13rem;top:0;display:block;height:100%;width:14rem;content:\"\";background:linear-gradient(to right,transparent 0%,rgba(var(--ax-color-black),20%) 50%,transparent 100%);animation:load 1s cubic-bezier(.4,0,.2,1) infinite}@keyframes load{0%{inset-inline-start:-13rem}to{inset-inline-start:100%}}ax-audio-wave .ax-wave-message{padding-inline-start:.5rem}\n"], dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.AXTranslatorPipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None }); }
|
195
221
|
}
|
196
222
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXAudioWaveComponent, decorators: [{
|
197
223
|
type: Component,
|
198
|
-
args: [{ selector: 'ax-audio-wave', encapsulation: ViewEncapsulation.None, template: "@
|
224
|
+
args: [{ selector: 'ax-audio-wave', encapsulation: ViewEncapsulation.None, template: "<div class=\"ax-audio-wave\" #d [ngStyle]=\"{'display': audioState() === 'ready' ? 'block' : 'none' }\"></div>\n\n@switch (audioState()) {\n@case ('loading') {\n<div class=\"ax-audio-skeleton\"></div>\n}\n@case ('error') {\n<div class=\"ax-wave-message\">\n {{'error.message' | translate:{ params:{ message: errorMessage() } } | async }}\n</div>\n}\n}", styles: ["ax-audio-wave{display:block;width:100%;flex:1;--ax-audio-skeleton-bg: rgba(var(--ax-color-primary-200))}ax-audio-wave .ax-audio-skeleton{position:relative;display:block;overflow:hidden;background-color:var(--ax-audio-skeleton-bg);height:1.125rem;border-radius:999rem}ax-audio-wave .ax-audio-skeleton:before{position:absolute;inset-inline-start:-13rem;top:0;display:block;height:100%;width:14rem;content:\"\";background:linear-gradient(to right,transparent 0%,rgba(var(--ax-color-black),20%) 50%,transparent 100%);animation:load 1s cubic-bezier(.4,0,.2,1) infinite}@keyframes load{0%{inset-inline-start:-13rem}to{inset-inline-start:100%}}ax-audio-wave .ax-wave-message{padding-inline-start:.5rem}\n"] }]
|
199
225
|
}], ctorParameters: () => [], propDecorators: { div: [{
|
200
226
|
type: ViewChild,
|
201
|
-
args: ['d']
|
227
|
+
args: ['d', { static: false }]
|
202
228
|
}] } });
|
203
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXVkaW8td2F2ZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvYXVkaW8td2F2ZS9zcmMvbGliL2F1ZGlvLXdhdmUuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2F1ZGlvLXdhdmUvc3JjL2xpYi9hdWRpby13YXZlLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQ1QsVUFBVSxFQUVWLE1BQU0sRUFDTixTQUFTLEVBQ1QsaUJBQWlCLEVBQ2pCLGVBQWUsRUFDZixNQUFNLEVBQ04sS0FBSyxFQUNMLE1BQU0sRUFDTixNQUFNLEdBQ1AsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxVQUFVLE1BQU0sZUFBZSxDQUFDOztBQVN2QyxNQUFNLE9BQU8sb0JBQW9CO0lBVy9CO1FBVEEsV0FBTSxHQUE4QixLQUFLLEVBQWdCLENBQUM7UUFFMUQsb0JBQ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