@acorex/components 17.0.6 → 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/common/lib/classes/datasource.class.d.ts +1 -1
- 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/common/lib/classes/datasource.class.mjs +2 -1
- package/esm2022/data-pager/lib/data-pager.component.mjs +19 -14
- package/esm2022/data-table/lib/data-table/data-table.component.mjs +88 -44
- 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-common.mjs +1 -0
- package/fesm2022/acorex-components-common.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 +91 -48
- 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhdC1tZXNzYWdlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9jaGF0L3NyYy9saWIvY2hhdC1tZXNzYWdlL2NoYXQtbWVzc2FnZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvY2hhdC9zcmMvbGliL2NoYXQtbWVzc2FnZS9jaGF0LW1lc3NhZ2UuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQzVELE9BQU8sRUFBRSxTQUFTLEVBQUUsV0FBVyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFekYsT0FBTyxFQUFFLGdDQUFnQyxFQUF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gpfVwiPjwvbmctY29udGFpbmVyPlxuPGRpdiBjbGFzcz1cImF4LWNoYXQtbWVzc2FnZS1zdGF0dXNcIj5cbiAgICA8ZGl2PlxuICAgICAgICA8bmctY29udGVudCBzZWxlY3Q9XCJheC1wcmVmaXhcIj48L25nLWNvbnRlbnQ+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhdC1tZXNzYWdlLXZvaWNlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9jaGF0L3NyYy9saWIvY2hhdC1tZXNzYWdlcy9jaGF0LW1lc3NhZ2VzLXZvaWNlL2NoYXQtbWVzc2FnZS12b2ljZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvY2hhdC9zcmMvbGliL2NoYXQtbWVzc2FnZXMvY2hhdC1tZXNzYWdlcy12b2ljZS9jaGF0LW1lc3NhZ2Utdm9pY2UuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUEwQixvQkFBb0IsRUFBZ0IsTUFBTSwrQkFBK0IsQ0FBQztBQUMzRyxPQUFPLEVBQUUsU0FBUyxFQUFFLFNBQVMsRUFBRSxpQkFBaUIsRUFBa0IsZUFBZSxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNqSCxPQUFPLEVBQUUsMEJBQTBCLEVBQU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9XCJtYXJnaW4taW5saW5lLXN0YXJ0OiAwLjI1cmVtO1wiPjwvaT5cbiAgPC9idXR0b24+XG4gIH1cbiAgQGNhc2UgKCdsb2FkaW5nJykge1xuICA8YnV0dG9uIChjbGljayk9XCJoYW5kbGVQbGF5Q2xpY2soKVwiPlxuICAgIDxpIGNsYXNzPVwiZmEtc29saWQgZmEteG1hcmtcIj48L2k+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhdC12aWV3LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9jaGF0L3NyYy9saWIvY2hhdC12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J0IHsgQVhDaGF0TWVzc2FnZSB9IGZyb20gJy4uL2NoYXQudHlwZXMnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdheC1jaGF0LXZpZXcnLFxuICB0ZW1wbGF0ZVVybDogJy4vY2hhdC12aWV3LmNvbXBvbmVudC5odG1sJyxcbiAgc3R5bGVVcmxzOiBbJy4vY2hhdC12aWV3LmNvbXBvbmVudC5zY3NzJ10sXG4gIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLFxuICBlbmNhcHN1bGF0aW9uOiBWaWV3RW5jYXBzdWxhdGlvbi5Ob25lLFxufSlcbmV4cG9ydCBjbGFzcyBBWENoYXRWaWV3Q29tcG9uZW50IGV4dGVuZHMgTVhCYXNlQ29tcG9uZW50IHtcbiAgQElucHV0KClcbiAgcHVibGljIHNldCBjaGF0cyhpdGVtczogQVhDaGF0TWVzc2FnZTxhbnk+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhdC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvY2hhdC9zcmMvbGliL2NoYXQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibW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AgICAgICAgfSxcbiAgICAgICAgICBkZXBzOiBbQVhDaGF0TWVzc2FnZVR5cGVSZWdpc3RyeVNlcnZpY2VdLFxuICAgICAgICAgIG11bHRpOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgXSxcbiAgICB9O1xuICB9XG5cbiAgc3RhdGljIGZvckNoaWxkKGNvbmZpZz86IEFYQ2hhdE1vZHVsZUNvbmZpZyk6IE1vZHVsZVdpdGhQcm92aWRlcnM8QVhDaGF0TW9kdWxlPiB7XG4gICAgcmV0dXJuIHtcbiAgICAgIG5nTW9kdWxlOiBBWENoYXRNb2R1bGUsXG4gICAgICBwcm92aWRlcnM6IFtcbiAgICAgICAge1xuICAgICAgICAgIHByb3ZpZGU6ICdBWFBXb3JrZmxvd01vZHVsZUZhY3RvcnknLFxuICAgICAgICAgIHVzZUZhY3Rvcnk6IChyZWdpc3RyeTogQVhDaGF0TWVzc2FnZVR5cGVSZWdpc3RyeVNlcnZpY2UpID0+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
|
9
9
|
}] });
|
10
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhdC50eXBlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9jaGF0L3NyYy9saWIvY2hhdC50eXBlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFRLE1BQU0sZUFBZSxDQUFDOztBQW1CakQsTUFBTSxPQUFPLDBCQUEwQjs4R0FBMUIsMEJBQTBCO2tIQUExQiwwQkFBMEI7OzJGQUExQiwwQkFBMEI7a0JBRHRDLFVBQVUiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3RhYmxlLCBUeXBlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgQVhDaGF0TWVzc2FnZVR5cGUge1xuICBuYW1lOiBzdHJpbmc7XG4gIGNvbXBvbmVudDogVHlwZTxhbnk+
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhdC50eXBlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9jaGF0L3NyYy9saWIvY2hhdC50eXBlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFRLE1BQU0sZUFBZSxDQUFDOztBQW1CakQsTUFBTSxPQUFPLDBCQUEwQjs4R0FBMUIsMEJBQTBCO2tIQUExQiwwQkFBMEI7OzJGQUExQiwwQkFBMEI7a0JBRHRDLFVBQVUiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3RhYmxlLCBUeXBlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgQVhDaGF0TWVzc2FnZVR5cGUge1xuICBuYW1lOiBzdHJpbmc7XG4gIGNvbXBvbmVudDogVHlwZTxhbnk+O1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIEFYQ2hhdE1lc3NhZ2U8VD4ge1xuICBpZDogc3RyaW5nO1xuICB0eXBlOiBzdHJpbmc7XG4gIHNlbmRUaW1lOiBEYXRlO1xuICBkZWxpdmVyVGltZT86IERhdGU7XG4gIHJlYWRUaW1lPzogRGF0ZTtcbiAgcmVwbHlUbz86IHN0cmluZztcbiAgY29udGVudDogVDtcbiAgZnJvbUlkPzogc3RyaW5nO1xufVxuXG5ASW5qZWN0YWJsZSgpXG5leHBvcnQgY2xhc3MgQVhDaGF0TWVzc2FnZUJhc2VDb21wb25lbnQ8VD4ge1xuICBtZXNzYWdlOiBBWENoYXRNZXNzYWdlPFQ+O1xufVxuIl19
|
@@ -95,6 +95,7 @@ export class AXDataSource {
|
|
95
95
|
this._query.filter = null;
|
96
96
|
this._query.sort = [];
|
97
97
|
this._query.skip = 0;
|
98
|
+
this._items = new Array(0);
|
98
99
|
this._cachedItems = new Array(this.config.pageSize);
|
99
100
|
this.fetchedPages.clear();
|
100
101
|
this._page = 0;
|
@@ -130,4 +131,4 @@ export function convertArrayToDataSource(items, options = { key: 'id', pageSize:
|
|
130
131
|
};
|
131
132
|
return new AXDataSource(config);
|
132
133
|
}
|
133
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YXNvdXJjZS5jbGFzcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4u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udW1iZXIgfSA9IHsga2V5OiAnaWQnLCBwYWdlU2l6ZTogMTAwIH0sXG4pOiBBWERhdGFTb3VyY2Uge1xuICBjb25zdCBjb25maWc6IEFYRGF0YVNvdXJjZUNvbmZpZyA9IHtcbiAgICBrZXk6IG9wdGlvbnMua2V5LFxuICAgIHBhZ2VTaXplOiBvcHRpb25zLnBhZ2VTaXplLFxuICAgIGxvYWQ6IChlOiBBWERhdGFTb3VyY2VRdWVyeSkgPT4ge1xuICAgICAgY29uc3QgcmVzdWx0ID0gZS5maWx0ZXIgPyBmaWx0ZXIoaXRlbXMsIGUuZmlsdGVyKSA6IGl0ZW1zO1xuICAgICAgcmV0dXJuIFByb21pc2UucmVzb2x2ZSh7XG4gICAgICAgIGl0ZW1zOiByZXN1bHQuc2xpY2UoZS5za2lwLCBlLnNraXAgKyBlLnRha2UpLFxuICAgICAgICB0b3RhbDogcmVzdWx0Lmxlbmd0aCxcbiAgICAgIH0pO1xuICAgIH0sXG4gICAgYnlLZXk6ICh2OiB1bmtub3duKSA9PiBQcm9taXNlLnJlc29sdmU8VD4oaXRlbXMuZmluZCgoYykgPT4gY1tvcHRpb25zLmtleV0gPT0gdikpLFxuICB9O1xuICByZXR1cm4gbmV3IEFYRGF0YVNvdXJjZShjb25maWcpO1xufVxuIl19
|
@@ -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();
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1wYWdlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvZGF0YS1wYWdlci9zcmMvbGliL2RhdGEtcGFnZXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2RhdGEtcGFnZXIvc3JjL2xpYi9kYXRhLXBhZ2VyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQy9FLE9BQU8sRUFDTCx1QkFBdUIsRUFDdkIsU0FBUyxFQUNULFlBQVksRUFDWixNQUFNLEVBQ04sS0FBSyxFQUNMLFFBQVEsRUFDUixNQUFNLEVBQ04saUJBQWlCLEVBQ2pCLFVBQVUsR0FDWCxNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sV0FBVyxDQUFDO0FBRXJDLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ25ELE9BQU8sRUFBNEMsMEJBQTBCLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQzs7Ozs7Ozs7OztBQW1CbkgsTUFBTSxPQUFPLG9CQUFxQixTQUFRLGdCQUF3QjtJQUVoRSxJQUNXLElBQUk7UUFDYixPQUFPLElBQUksQ0FBQyxLQUFLLENBQUM7SUFDcEIsQ0FBQ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