@acorex/components 17.0.7 → 17.0.8
Sign up to get free protection for your applications and to get access to all the features.
- package/audio-wave/README.md +3 -0
- package/audio-wave/index.d.ts +3 -0
- package/audio-wave/lib/audio-wave.component.d.ts +51 -0
- package/audio-wave/lib/audio-wave.module.d.ts +10 -0
- package/audio-wave/lib/interfaces/audio-wave.interface.d.ts +15 -0
- package/chat/index.d.ts +1 -2
- package/chat/lib/chat-message/chat-message.component.d.ts +1 -1
- package/chat/lib/chat-messages/chat-message-text.component.d.ts +1 -1
- package/chat/lib/chat-messages/chat-messages-voice/chat-message-voice.component.d.ts +16 -0
- package/chat/lib/chat-view/chat-view.component.d.ts +2 -2
- package/chat/lib/chat.module.d.ts +13 -10
- package/chat/lib/chat.types.d.ts +6 -6
- package/data-pager/lib/data-pager.component.d.ts +1 -0
- package/data-table/lib/data-table/data-table.component.d.ts +24 -13
- package/esm2022/audio-wave/acorex-components-audio-wave.mjs +5 -0
- package/esm2022/audio-wave/index.mjs +4 -0
- package/esm2022/audio-wave/lib/audio-wave.component.mjs +199 -0
- package/esm2022/audio-wave/lib/audio-wave.module.mjs +20 -0
- package/esm2022/audio-wave/lib/interfaces/audio-wave.interface.mjs +2 -0
- package/esm2022/chat/index.mjs +2 -3
- package/esm2022/chat/lib/chat-message/chat-message.component.mjs +3 -3
- package/esm2022/chat/lib/chat-messages/chat-message-text.component.mjs +2 -2
- package/esm2022/chat/lib/chat-messages/chat-messages-voice/chat-message-voice.component.mjs +49 -0
- package/esm2022/chat/lib/chat-view/chat-view.component.mjs +2 -2
- package/esm2022/chat/lib/chat.module.mjs +18 -8
- package/esm2022/chat/lib/chat.types.mjs +1 -1
- package/esm2022/data-pager/lib/data-pager.component.mjs +19 -14
- package/esm2022/data-table/lib/data-table/data-table.component.mjs +82 -39
- package/esm2022/side-menu/lib/side-menu-item/side-menu-item.compoent.mjs +8 -8
- package/fesm2022/acorex-components-audio-wave.mjs +223 -0
- package/fesm2022/acorex-components-audio-wave.mjs.map +1 -0
- package/fesm2022/acorex-components-chat.mjs +65 -34
- package/fesm2022/acorex-components-chat.mjs.map +1 -1
- package/fesm2022/acorex-components-data-pager.mjs +18 -13
- package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +81 -38
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-side-menu.mjs +7 -7
- package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
- package/package.json +7 -1
- package/side-menu/lib/side-menu-item/side-menu-item.compoent.d.ts +3 -4
- package/chat/lib/chat-messages/chat-message-audio.component.d.ts +0 -7
- package/chat/lib/chat-voice/chat-voice.component.d.ts +0 -6
- package/esm2022/chat/lib/chat-messages/chat-message-audio.component.mjs +0 -17
- package/esm2022/chat/lib/chat-voice/chat-voice.component.mjs +0 -12
@@ -17,13 +17,13 @@ export class AXChatMessageComponent extends MXBaseComponent {
|
|
17
17
|
return `${this.isOwn ? 'ax-state-own' : ''} ${!this.isOwn ? 'ax-state-other' : ''}`;
|
18
18
|
}
|
19
19
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXChatMessageComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
20
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.2", type: AXChatMessageComponent, selector: "ax-chat-message", inputs: { chatMessage: { classPropertyName: "chatMessage", publicName: "chatMessage", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "this.__hostClass" } }, usesInheritance: true, ngImport: i0, template: "
|
20
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.2", type: AXChatMessageComponent, selector: "ax-chat-message", inputs: { chatMessage: { classPropertyName: "chatMessage", publicName: "chatMessage", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "this.__hostClass" } }, usesInheritance: true, ngImport: i0, template: "<ng-container\n *ngComponentOutlet=\"registryService.resolve(chatMessage().type).component;inputs:{message:chatMessage()}\"></ng-container>\n<div class=\"ax-chat-message-status\">\n <div>\n <ng-content select=\"ax-prefix\"></ng-content>\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>", styles: ["ax-chat-message{display:block;padding:.75rem;font-size:.875rem;line-height:1.25rem;border-radius:.75rem;border:1px solid;--ax-other-color: rgba(var(--ax-color-surface));--ax-other-color-fore: rgba(var(--ax-color-surface-fore));--ax-own-color: rgba(var(--ax-color-primary-100));--ax-own-color-fore: rgba(var(--ax-color-primary-fore-tint))}ax-chat-message.ax-state-own{border-end-end-radius:0!important;background-color:var(--ax-own-color);border-color:var(--ax-own-color);color:var(--ax-own-color-fore)}ax-chat-message.ax-state-own .ax-chat-message-status{color:var(--ax-own-color-fore)}ax-chat-message.ax-state-other{border-end-start-radius:0!important;background-color:var(--ax-other-color);border-color:var(--ax-other-color);border-color:rgba(var(--ax-color-border-default))}ax-chat-message.ax-state-other .ax-chat-message-status{color:var(--ax-own-color-fore)}ax-chat-message .ax-chat-message-status{display:flex;justify-content:space-between;align-items:center;font-size:.75rem}ax-chat-message .ax-chat-message-status>div{display:flex;gap:.125rem;align-items:center}.ax-dark ax-chat-message{--ax-reply-bk: rgba(var(--ax-color-primary-800));--ax-reply-color: rgba(var(--ax-color-primary-fore));--ax-reply-border-color: rgba(var(--ax-color-primary-fore));--ax-own-color: rgba(var(--ax-color-primary-700));--ax-own-color-fore: rgba(var(--ax-color-primary-fore))}\n"], dependencies: [{ kind: "directive", type: i1.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.AXFormatPipe, name: "format" }], encapsulation: i0.ViewEncapsulation.None }); }
|
21
21
|
}
|
22
22
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXChatMessageComponent, decorators: [{
|
23
23
|
type: Component,
|
24
|
-
args: [{ selector: 'ax-chat-message', encapsulation: ViewEncapsulation.None, template: "
|
24
|
+
args: [{ selector: 'ax-chat-message', encapsulation: ViewEncapsulation.None, template: "<ng-container\n *ngComponentOutlet=\"registryService.resolve(chatMessage().type).component;inputs:{message:chatMessage()}\"></ng-container>\n<div class=\"ax-chat-message-status\">\n <div>\n <ng-content select=\"ax-prefix\"></ng-content>\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>", styles: ["ax-chat-message{display:block;padding:.75rem;font-size:.875rem;line-height:1.25rem;border-radius:.75rem;border:1px solid;--ax-other-color: rgba(var(--ax-color-surface));--ax-other-color-fore: rgba(var(--ax-color-surface-fore));--ax-own-color: rgba(var(--ax-color-primary-100));--ax-own-color-fore: rgba(var(--ax-color-primary-fore-tint))}ax-chat-message.ax-state-own{border-end-end-radius:0!important;background-color:var(--ax-own-color);border-color:var(--ax-own-color);color:var(--ax-own-color-fore)}ax-chat-message.ax-state-own .ax-chat-message-status{color:var(--ax-own-color-fore)}ax-chat-message.ax-state-other{border-end-start-radius:0!important;background-color:var(--ax-other-color);border-color:var(--ax-other-color);border-color:rgba(var(--ax-color-border-default))}ax-chat-message.ax-state-other .ax-chat-message-status{color:var(--ax-own-color-fore)}ax-chat-message .ax-chat-message-status{display:flex;justify-content:space-between;align-items:center;font-size:.75rem}ax-chat-message .ax-chat-message-status>div{display:flex;gap:.125rem;align-items:center}.ax-dark ax-chat-message{--ax-reply-bk: rgba(var(--ax-color-primary-800));--ax-reply-color: rgba(var(--ax-color-primary-fore));--ax-reply-border-color: rgba(var(--ax-color-primary-fore));--ax-own-color: rgba(var(--ax-color-primary-700));--ax-own-color-fore: rgba(var(--ax-color-primary-fore))}\n"] }]
|
25
25
|
}], propDecorators: { __hostClass: [{
|
26
26
|
type: HostBinding,
|
27
27
|
args: ['class']
|
28
28
|
}] } });
|
29
|
-
//# sourceMappingURL=data:application/json;base64,
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhdC1tZXNzYWdlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9jaGF0L3NyYy9saWIvY2hhdC1tZXNzYWdlL2NoYXQtbWVzc2FnZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvY2hhdC9zcmMvbGliL2NoYXQtbWVzc2FnZS9jaGF0LW1lc3NhZ2UuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQzVELE9BQU8sRUFBRSxTQUFTLEVBQUUsV0FBVyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFekYsT0FBTyxFQUFFLGdDQUFnQyxFQUFFLE1BQU0sZ0RBQWdELENBQUM7Ozs7QUFRbEcsTUFBTSxPQUFPLHNCQUF1QixTQUFRLGVBQWU7SUFOM0Q7O1FBT0UsZ0JBQVcsR0FBRyxLQUFLLE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CBzZWxlY3Q9XCJheC1wcmVmaXhcIj48L25nLWNvbnRlbnQ+XG4gICAgPC9kaXY+XG4gICAgPGRpdj5cbiAgICAgICAgPHNwYW4+e3sgY2hhdE1lc3NhZ2UoKS5zZW5kVGltZSB8IGZvcm1hdDonZGF0ZXRpbWUnOidISDptbScgfCBhc3luYyB9fTwvc3Bhbj5cbiAgICAgICAgPHNwYW4+XG4gICAgICAgICAgICBAaWYoaXNPd24pXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICBAaWYoY2hhdE1lc3NhZ2UoKS5kZWxpdmVyVGltZSl7XG4gICAgICAgICAgICA8aSBjbGFzcz1cImF4LWljb24gYXgtaWNvbi1jaGVja1wiPjwvaT5cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIEBpZihjaGF0TWVzc2FnZSgpLnJlYWRUaW1lKXtcbiAgICAgICAgICAgIDxpIGNsYXNzPVwiYXgtaWNvbiBheC1pY29uLWRvYmJsZS1jaGVja1wiPjwvaT5cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgPC9zcGFuPlxuICAgIDwvZGl2PlxuPC9kaXY+Il19
|
@@ -7,7 +7,7 @@ export class AXChatTextMessageComponent extends AXChatMessageBaseComponent {
|
|
7
7
|
this._text = signal('');
|
8
8
|
}
|
9
9
|
ngOnInit() {
|
10
|
-
this._text.set(this.message?.content
|
10
|
+
this._text.set(this.message?.content);
|
11
11
|
}
|
12
12
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXChatTextMessageComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
13
13
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.2", type: AXChatTextMessageComponent, selector: "ng-component", inputs: { message: "message" }, usesInheritance: true, ngImport: i0, template: `<div [innerHtml]="_text()"></div>`, isInline: true, encapsulation: i0.ViewEncapsulation.None }); }
|
@@ -20,4 +20,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImpor
|
|
20
20
|
inputs: ['message'],
|
21
21
|
}]
|
22
22
|
}] });
|
23
|
-
//# sourceMappingURL=data:application/json;base64,
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhdC1tZXNzYWdlLXRleHQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2NoYXQvc3JjL2xpYi9jaGF0LW1lc3NhZ2VzL2NoYXQtbWVzc2FnZS10ZXh0LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNyRSxPQUFPLEVBQUUsMEJBQTBCLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBTzNELE1BQU0sT0FBTywwQkFBMkIsU0FBUSwwQkFBa0M7SUFMbEY7O1FBTVksVUFBSyxHQUFHLE1BQU0sQ0FBQyxFQUFFLENBQUMsQ0FBQztLQUs5QjtJQUhDLFFBQVE7UUFDTixJQUFJLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsT0FBTyxFQUFFLE9BQU8sQ0FBQyxDQUFDO0lBQ3hDLENBQUM7OEdBTFUsMEJBQTBCO2tHQUExQiwwQkFBMEIsMkdBSjNCLG1DQUFtQzs7MkZBSWxDLDBCQUEwQjtrQkFMdEMsU0FBUzttQkFBQztvQkFDVCxRQUFRLEVBQUUsbUNBQW1DO29CQUM3QyxhQUFhLEVBQUUsaUJBQWlCLENBQUMsSUFBSTtvQkFDckMsTUFBTSxFQUFFLENBQUMsU0FBUyxDQUFDO2lCQUNwQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbXBvbmVudCwgVmlld0VuY2Fwc3VsYXRpb24sIHNpZ25hbCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgQVhDaGF0TWVzc2FnZUJhc2VDb21wb25lbnQgfSBmcm9tICcuLi9jaGF0LnR5cGVzJztcblxuQENvbXBvbmVudCh7XG4gIHRlbXBsYXRlOiBgPGRpdiBbaW5uZXJIdG1sXT1cIl90ZXh0KClcIj48L2Rpdj5gLFxuICBlbmNhcHN1bGF0aW9uOiBWaWV3RW5jYXBzdWxhdGlvbi5Ob25lLFxuICBpbnB1dHM6IFsnbWVzc2FnZSddLFxufSlcbmV4cG9ydCBjbGFzcyBBWENoYXRUZXh0TWVzc2FnZUNvbXBvbmVudCBleHRlbmRzIEFYQ2hhdE1lc3NhZ2VCYXNlQ29tcG9uZW50PHN0cmluZz4ge1xuICBwcm90ZWN0ZWQgX3RleHQgPSBzaWduYWwoJycpO1xuXG4gIG5nT25Jbml0KCk6IHZvaWQge1xuICAgIHRoaXMuX3RleHQuc2V0KHRoaXMubWVzc2FnZT8uY29udGVudCk7XG4gIH1cbn1cbiJdfQ==
|
@@ -0,0 +1,49 @@
|
|
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
|
+
export class AXChatAudioMessageComponent extends AXChatMessageBaseComponent {
|
8
|
+
constructor() {
|
9
|
+
super();
|
10
|
+
this.config = { url: '' };
|
11
|
+
this.audioState = signal('paused');
|
12
|
+
this.audioProgress = signal(0);
|
13
|
+
afterNextRender(() => {
|
14
|
+
this.config.url = this.message?.content;
|
15
|
+
this.audioState.set('loading');
|
16
|
+
this.audio.onStatusChanged.subscribe((c) => {
|
17
|
+
if (c.status === 'loading') {
|
18
|
+
this.audioProgress.set(c.data.duration);
|
19
|
+
console.log(c.data.duration);
|
20
|
+
}
|
21
|
+
if (c.status === 'ready') {
|
22
|
+
this.audioState.set('ready');
|
23
|
+
}
|
24
|
+
});
|
25
|
+
});
|
26
|
+
}
|
27
|
+
handlePauseClick() {
|
28
|
+
this.audio.pause();
|
29
|
+
this.audioState.set('paused');
|
30
|
+
}
|
31
|
+
handlePlayClick() {
|
32
|
+
this.audio.play().then(() => {
|
33
|
+
this.audioState.set('playing');
|
34
|
+
});
|
35
|
+
}
|
36
|
+
handleOnStatusChanged(event) {
|
37
|
+
console.log(event);
|
38
|
+
}
|
39
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXChatAudioMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
40
|
+
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 <i class=\"fa-solid fa-xmark\"></i>\n </button>\n }\n }\n\n</div>\n<ax-audio-wave #a [config]=\"config\" (onStatusChanged)=\"handleOnStatusChanged($event)\"></ax-audio-wave>\n\n\n\n<ax-prefix>\n {{a.getDuration()}}\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"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
41
|
+
}
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXChatAudioMessageComponent, decorators: [{
|
43
|
+
type: Component,
|
44
|
+
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 <i class=\"fa-solid fa-xmark\"></i>\n </button>\n }\n }\n\n</div>\n<ax-audio-wave #a [config]=\"config\" (onStatusChanged)=\"handleOnStatusChanged($event)\"></ax-audio-wave>\n\n\n\n<ax-prefix>\n {{a.getDuration()}}\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"] }]
|
45
|
+
}], ctorParameters: () => [], propDecorators: { audio: [{
|
46
|
+
type: ViewChild,
|
47
|
+
args: ['a']
|
48
|
+
}] } });
|
49
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhdC1tZXNzYWdlLXZvaWNlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9jaGF0L3NyYy9saWIvY2hhdC1tZXNzYWdlcy9jaGF0LW1lc3NhZ2VzLXZvaWNlL2NoYXQtbWVzc2FnZS12b2ljZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvY2hhdC9zcmMvbGliL2NoYXQtbWVzc2FnZXMvY2hhdC1tZXNzYWdlcy12b2ljZS9jaGF0LW1lc3NhZ2Utdm9pY2UuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUEwQixvQkFBb0IsRUFBZ0IsTUFBTSwrQkFBK0IsQ0FBQztBQUMzRyxPQUFPLEVBQUUsU0FBUyxFQUFFLFNBQVMsRUFBRSxpQkFBaUIsRUFBa0IsZUFBZSxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNqSCxPQUFPLEVBQUUsMEJBQTBCLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQzs7OztBQVM5RCxNQUFNLE9BQU8sMkJBQTRCLFNBQVEsMEJBQWtDO0lBU2pGO1FBQ0UsS0FBSyxFQUFFLENBQUM7UU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G9uIChjbGljayk9XCJoYW5kbGVQbGF5Q2xpY2soKVwiPlxuICAgIDxpIGNsYXNzPVwiZmEtc29saWQgZmEteG1hcmtcIj48L2k+XG4gIDwvYnV0dG9uPlxuICB9XG4gIH1cblxuPC9kaXY+XG48YXgtYXVkaW8td2F2ZSAjYSBbY29uZmlnXT1cImNvbmZpZ1wiIChvblN0YXR1c0NoYW5nZWQpPVwiaGFuZGxlT25TdGF0dXNDaGFuZ2VkKCRldmVudClcIj48L2F4LWF1ZGlvLXdhdmU+XG5cblxuXG48YXgtcHJlZml4PlxuICB7e2EuZ2V0RHVyYXRpb24oKX19XG48L2F4LXByZWZpeD4iXX0=
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { MXBaseComponent } from '@acorex/components/common';
|
2
|
-
import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation, signal
|
2
|
+
import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation, signal } from '@angular/core';
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
import * as i1 from "../chat-message/chat-message.component";
|
5
5
|
export class AXChatViewComponent extends MXBaseComponent {
|
@@ -19,4 +19,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImpor
|
|
19
19
|
}], propDecorators: { chats: [{
|
20
20
|
type: Input
|
21
21
|
}] } });
|
22
|
-
//# sourceMappingURL=data:application/json;base64,
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhdC12aWV3LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9jaGF0L3NyYy9saWIvY2hhdC12aWV3L2NoYXQtdmlldy5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvY2hhdC9zcmMvbGliL2NoYXQtdmlldy9j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xuICB0ZW1wbGF0ZVVybDogJy4vY2hhdC12aWV3LmNvbXBvbmVudC5odG1sJyxcbiAgc3R5bGVVcmxzOiBbJy4vY2hhdC12aWV3LmNvbXBvbmVudC5zY3NzJ10sXG4gIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLFxuICBlbmNhcHN1bGF0aW9uOiBWaWV3RW5jYXBzdWxhdGlvbi5Ob25lLFxufSlcbmV4cG9ydCBjbGFzcyBBWENoYXRWaWV3Q29tcG9uZW50IGV4dGVuZHMgTVhCYXNlQ29tcG9uZW50IHtcbiAgQElucHV0KClcbiAgcHVibGljIHNldCBjaGF0cyhpdGVtczogQVhDaGF0TWVzc2FnZTxhbnk+W10pIHtcbiAgICB0aGlzLl9jaGF0cy5zZXQoaXRlbXMpO1xuICB9XG5cbiAgcHJvdGVjdGVkIF9jaGF0czogV3JpdGFibGVTaWduYWw8QVhDaGF0TWVzc2FnZTxhbnk+W10+ID0gc2lnbmFsKFtdKTtcbn1cbiIsIkBmb3IgKGl0ZW0gb2YgX2NoYXRzKCk7IHRyYWNrICRpbmRleCkge1xuPGF4LWNoYXQtbWVzc2FnZSBbY2hhdE1lc3NhZ2VdPVwiaXRlbVwiPjwvYXgtY2hhdC1tZXNzYWdlPlxufSJdfQ==
|
@@ -1,4 +1,6 @@
|
|
1
|
+
import { AXAudioWaveModule } from '@acorex/components/audio-wave';
|
1
2
|
import { AXButtonModule } from '@acorex/components/button';
|
3
|
+
import { AXCircularProgressModule } from '@acorex/components/circular-progress';
|
2
4
|
import { AXRippleDirective } from '@acorex/components/common';
|
3
5
|
import { AXDecoratorModule } from '@acorex/components/decorators';
|
4
6
|
import { AXDropdownModule } from '@acorex/components/dropdown';
|
@@ -9,10 +11,9 @@ import { Inject, NgModule, Optional } from '@angular/core';
|
|
9
11
|
import { FormsModule } from '@angular/forms';
|
10
12
|
import { AXChatInputComponent } from './chat-input/chat-input.component';
|
11
13
|
import { AXChatMessageComponent } from './chat-message/chat-message.component';
|
12
|
-
import { AXChatAudioMessageComponent } from './chat-messages/chat-message-audio.component';
|
13
14
|
import { AXChatTextMessageComponent } from './chat-messages/chat-message-text.component';
|
15
|
+
import { AXChatAudioMessageComponent } from './chat-messages/chat-messages-voice/chat-message-voice.component';
|
14
16
|
import { AXChatViewComponent } from './chat-view/chat-view.component';
|
15
|
-
import { AXChatVoiceComponent } from './chat-voice/chat-voice.component';
|
16
17
|
import { AXChatMessageTypeRegistryService } from './services/chat-message-type-registry.service';
|
17
18
|
import { AXRecordingService } from './services/recording.service';
|
18
19
|
import * as i0 from "@angular/core";
|
@@ -20,7 +21,8 @@ const COMPONENT = [
|
|
20
21
|
AXChatViewComponent,
|
21
22
|
AXChatInputComponent,
|
22
23
|
AXChatMessageComponent,
|
23
|
-
|
24
|
+
AXChatTextMessageComponent,
|
25
|
+
AXChatAudioMessageComponent,
|
24
26
|
];
|
25
27
|
const MODULES = [
|
26
28
|
CommonModule,
|
@@ -32,6 +34,8 @@ const MODULES = [
|
|
32
34
|
AXTranslationModule,
|
33
35
|
AXDropdownModule,
|
34
36
|
AXFormatModule,
|
37
|
+
AXAudioWaveModule,
|
38
|
+
AXCircularProgressModule,
|
35
39
|
];
|
36
40
|
export class AXChatModule {
|
37
41
|
static forRoot(config) {
|
@@ -88,7 +92,8 @@ export class AXChatModule {
|
|
88
92
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.2", ngImport: i0, type: AXChatModule, declarations: [AXChatViewComponent,
|
89
93
|
AXChatInputComponent,
|
90
94
|
AXChatMessageComponent,
|
91
|
-
|
95
|
+
AXChatTextMessageComponent,
|
96
|
+
AXChatAudioMessageComponent], imports: [CommonModule,
|
92
97
|
FormsModule,
|
93
98
|
AsyncPipe,
|
94
99
|
AXRippleDirective,
|
@@ -96,17 +101,22 @@ export class AXChatModule {
|
|
96
101
|
AXDecoratorModule,
|
97
102
|
AXTranslationModule,
|
98
103
|
AXDropdownModule,
|
99
|
-
AXFormatModule
|
104
|
+
AXFormatModule,
|
105
|
+
AXAudioWaveModule,
|
106
|
+
AXCircularProgressModule], exports: [AXChatViewComponent,
|
100
107
|
AXChatInputComponent,
|
101
108
|
AXChatMessageComponent,
|
102
|
-
|
109
|
+
AXChatTextMessageComponent,
|
110
|
+
AXChatAudioMessageComponent] }); }
|
103
111
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXChatModule, providers: [AXRecordingService], imports: [CommonModule,
|
104
112
|
FormsModule,
|
105
113
|
AXButtonModule,
|
106
114
|
AXDecoratorModule,
|
107
115
|
AXTranslationModule,
|
108
116
|
AXDropdownModule,
|
109
|
-
AXFormatModule
|
117
|
+
AXFormatModule,
|
118
|
+
AXAudioWaveModule,
|
119
|
+
AXCircularProgressModule] }); }
|
110
120
|
}
|
111
121
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXChatModule, decorators: [{
|
112
122
|
type: NgModule,
|
@@ -122,4 +132,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImpor
|
|
122
132
|
type: Inject,
|
123
133
|
args: ['AXChatModuleFactory']
|
124
134
|
}] }] });
|
125
|
-
//# sourceMappingURL=data:application/json;base64,
|
135
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhdC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvY2hhdC9zcmMvbGliL2NoYXQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBQ2xFLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSw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ICAgICB9LFxuICAgICAgXSxcbiAgICB9O1xuICB9XG5cbiAgc3RhdGljIGZvckNoaWxkKGNvbmZpZz86IEFYQ2hhdE1vZHVsZUNvbmZpZyk6IE1vZHVsZVdpdGhQcm92aWRlcnM8QVhDaGF0TW9kdWxlPiB7XG4gICAgcmV0dXJuIHtcbiAgICAgIG5nTW9kdWxlOiBBWENoYXRNb2R1bGUsXG4gICAgICBwcm92aWRlcnM6IFtcbiAgICAgICAge1xuICAgICAgICAgIHByb3ZpZGU6ICdBWFBXb3JrZmxvd01vZHVsZUZhY3RvcnknLFxuICAgICAgICAgIHVzZUZhY3Rvcnk6IChyZWdpc3RyeTogQVhDaGF0TWVzc2FnZVR5cGVSZWdpc3RyeVNlcnZpY2UpID0+ICgpID0+IHtcbiAgICAgICAgICAgIGlmIChjb25maWc/LnR5cGVzPy5sZW5ndGgpIHtcbiAgICAgICAgICAgICAgcmVnaXN0cnkucmVnaXN0ZXIoLi4uY29uZmlnLnR5cGVzKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIGRlcHM6IFtBWENoYXRNZXNzYWdlVHlwZVJlZ2lzdHJ5U2VydmljZV0sXG4gICAgICAgICAgbXVsdGk6IHRydWUsXG4gICAgICAgIH0sXG4gICAgICBdLFxuICAgIH07XG4gIH1cblxuICAvKipcbiAgICogQGlnbm9yZVxuICAgKi9cbiAgY29uc3RydWN0b3IoQE9wdGlvbmFsKCkgQEluamVjdCgnQVhDaGF0TW9kdWxlRmFjdG9yeScpIGluc3RhbmNlczogYW55W10pIHtcbiAgICBpbnN0YW5jZXM/LmZvckVhY2goKGYpID0+IHtcbiAgICAgIGYoKTtcbiAgICB9KTtcbiAgfVxufVxuIl19
|
@@ -7,4 +7,4 @@ export class AXChatMessageBaseComponent {
|
|
7
7
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXChatMessageBaseComponent, decorators: [{
|
8
8
|
type: Injectable
|
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SAnQGFuZ3VsYXIvY29yZSc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgQVhDaGF0TWVzc2FnZVR5cGUge1xuICBuYW1lOiBzdHJpbmc7XG4gIGNvbXBvbmVudDogVHlwZTxhbnk+O1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIEFYQ2hhdE1lc3NhZ2U8VD4ge1xuICBpZDogc3RyaW5nO1xuICB0eXBlOiBzdHJpbmc7XG4gIHNlbmRUaW1lOiBEYXRlO1xuICBkZWxpdmVyVGltZT86IERhdGU7XG4gIHJlYWRUaW1lPzogRGF0ZTtcbiAgcmVwbHlUbz86IHN0cmluZztcbiAgY29udGVudDogVDtcbiAgZnJvbUlkPzogc3RyaW5nO1xufVxuXG5ASW5qZWN0YWJsZSgpXG5leHBvcnQgY2xhc3MgQVhDaGF0TWVzc2FnZUJhc2VDb21wb25lbnQ8VD4ge1xuICBtZXNzYWdlOiBBWENoYXRNZXNzYWdlPFQ+O1xufVxuIl19
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { AXPagedComponent, MXValueComponent } from '@acorex/components/common';
|
2
2
|
import { ChangeDetectionStrategy, Component, EventEmitter, Inject, Input, Optional, Output, ViewEncapsulation, forwardRef, } from '@angular/core';
|
3
|
-
import { isNumber } from 'lodash-es';
|
3
|
+
import { cloneDeep, isEqual, isNumber } from 'lodash-es';
|
4
4
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
5
5
|
import { AXDataPagerParentComponent } from './data-pager-base.component';
|
6
6
|
import * as i0 from "@angular/core";
|
@@ -14,17 +14,18 @@ import * as i7 from "./data-pager-info.component";
|
|
14
14
|
import * as i8 from "@acorex/components/common";
|
15
15
|
export class AXDataPagerComponent extends MXValueComponent {
|
16
16
|
get size() {
|
17
|
-
return this._size;
|
17
|
+
return this._size || 10;
|
18
18
|
}
|
19
19
|
set size(v) {
|
20
20
|
if (v != this._size) {
|
21
|
+
const prevSize = this._size;
|
21
22
|
this._size = v;
|
22
23
|
if (this._parent) {
|
23
24
|
this._parent.pageSize = v;
|
24
25
|
}
|
25
26
|
const newPage = Math.ceil(this.displayInfo.range.from / this._size) || 1;
|
26
27
|
this.commitValue(newPage);
|
27
|
-
this._emitChangedEvent(true);
|
28
|
+
this._emitChangedEvent(prevSize != null ? true : false);
|
28
29
|
}
|
29
30
|
}
|
30
31
|
get total() {
|
@@ -58,7 +59,7 @@ export class AXDataPagerComponent extends MXValueComponent {
|
|
58
59
|
constructor(_parent) {
|
59
60
|
super();
|
60
61
|
this._parent = _parent;
|
61
|
-
this._size =
|
62
|
+
this._size = null;
|
62
63
|
this._total = 0;
|
63
64
|
this._totalPages = 0;
|
64
65
|
this.displayModeChange = new EventEmitter();
|
@@ -104,15 +105,19 @@ export class AXDataPagerComponent extends MXValueComponent {
|
|
104
105
|
_emitChangedEvent(u = false) {
|
105
106
|
this.totalPages = Math.ceil(this._total / this.size);
|
106
107
|
//
|
107
|
-
this.
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
108
|
+
if (!isEqual(this.previousDisplayInfo, this.displayInfo)) {
|
109
|
+
this.onChanged.emit(Object.assign({
|
110
|
+
component: this,
|
111
|
+
isUserInteraction: u,
|
112
|
+
htmlElement: this.getHostElement(),
|
113
|
+
}, this.displayInfo));
|
114
|
+
if (this.totalPages > 0)
|
115
|
+
this._parent?.goToPage(this.value);
|
116
|
+
//
|
117
|
+
this.previousDisplayInfo = cloneDeep(this.displayInfo);
|
118
|
+
//
|
119
|
+
this.cdr.markForCheck();
|
120
|
+
}
|
116
121
|
}
|
117
122
|
goNextPage() {
|
118
123
|
this.goToPage(Math.min(this.value + 1, this.totalPages));
|
@@ -167,4 +172,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImpor
|
|
167
172
|
}], onChanged: [{
|
168
173
|
type: Output
|
169
174
|
}] } });
|
170
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJz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