@acorex/components 17.0.10 → 17.0.12
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 +1 -0
- package/audio-wave/lib/audio-wave.module.d.ts +2 -1
- package/calendar/lib/calendar-range.component.d.ts +2 -0
- package/calendar/lib/calendar.class.d.ts +3 -2
- package/calendar/lib/calendar.component.d.ts +2 -1
- package/chat/lib/chat-message/chat-message.component.d.ts +5 -1
- package/chat/lib/chat-messages/chat-messages-voice/chat-message-voice.component.d.ts +5 -2
- package/chat/lib/chat.module.d.ts +3 -1
- package/common/lib/classes/events.class.d.ts +1 -1
- package/common/lib/components/base-component.class.d.ts +4 -4
- package/common/lib/components/input-base-value-component.class.d.ts +1 -0
- package/data-pager/lib/data-pager-next-buttons.components.d.ts +2 -0
- package/data-pager/lib/data-pager-prev-buttons.component.d.ts +2 -0
- package/data-table/lib/columns/data-table-column.d.ts +2 -3
- package/data-table/lib/columns/data-text-column.component.d.ts +8 -4
- package/data-table/lib/columns/row-command-column.component.d.ts +8 -4
- package/data-table/lib/columns/row-index-column.component.d.ts +4 -2
- package/data-table/lib/columns/row-select-column.component.d.ts +7 -2
- package/data-table/lib/data-table/data-table.component.d.ts +1 -0
- package/datetime-picker/lib/datetime-picker.component.d.ts +2 -0
- package/esm2022/audio-wave/lib/audio-wave.component.mjs +21 -17
- package/esm2022/audio-wave/lib/audio-wave.module.mjs +5 -4
- package/esm2022/calendar/lib/calendar-range.component.mjs +10 -8
- package/esm2022/calendar/lib/calendar.class.mjs +14 -27
- package/esm2022/calendar/lib/calendar.component.mjs +14 -2
- package/esm2022/chat/lib/chat-message/chat-message.component.mjs +24 -5
- package/esm2022/chat/lib/chat-messages/chat-messages-voice/chat-message-voice.component.mjs +25 -14
- package/esm2022/chat/lib/chat.module.mjs +10 -3
- package/esm2022/common/lib/classes/events.class.mjs +1 -1
- package/esm2022/common/lib/components/base-component.class.mjs +14 -26
- package/esm2022/common/lib/components/input-base-value-component.class.mjs +8 -1
- package/esm2022/data-pager/lib/data-pager-next-buttons.components.mjs +6 -2
- package/esm2022/data-pager/lib/data-pager-numeric-selector.component.mjs +13 -13
- package/esm2022/data-pager/lib/data-pager-prev-buttons.component.mjs +15 -47
- package/esm2022/data-pager/lib/data-pager.component.mjs +2 -2
- package/esm2022/data-table/lib/columns/data-table-column.mjs +2 -6
- package/esm2022/data-table/lib/columns/data-text-column.component.mjs +31 -25
- package/esm2022/data-table/lib/columns/row-command-column.component.mjs +97 -81
- package/esm2022/data-table/lib/columns/row-index-column.component.mjs +19 -11
- package/esm2022/data-table/lib/columns/row-select-column.component.mjs +61 -11
- package/esm2022/data-table/lib/data-table/data-table.component.mjs +5 -4
- package/esm2022/data-table/lib/infinite-scroll-data-table/infinite-scroll-data-table.component.mjs +3 -3
- package/esm2022/datetime-picker/lib/datetime-picker.component.mjs +21 -2
- package/esm2022/drawer/lib/drawer.component.mjs +2 -2
- package/esm2022/list/lib/list.component.mjs +13 -3
- package/esm2022/phone-box/lib/phone-box.component.mjs +29 -28
- package/esm2022/select-box/lib/select-box.component.mjs +29 -9
- package/esm2022/text-box/lib/mask-options.directive.mjs +16 -4
- package/esm2022/text-box/lib/text-box.component.mjs +8 -1
- package/fesm2022/acorex-components-audio-wave.mjs +24 -19
- package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
- package/fesm2022/acorex-components-calendar.mjs +31 -31
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-chat.mjs +55 -21
- package/fesm2022/acorex-components-chat.mjs.map +1 -1
- package/fesm2022/acorex-components-common.mjs +21 -25
- package/fesm2022/acorex-components-common.mjs.map +1 -1
- package/fesm2022/acorex-components-data-pager.mjs +31 -59
- package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +210 -133
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-picker.mjs +20 -1
- package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-drawer.mjs +2 -2
- package/fesm2022/acorex-components-drawer.mjs.map +1 -1
- package/fesm2022/acorex-components-list.mjs +13 -3
- package/fesm2022/acorex-components-list.mjs.map +1 -1
- package/fesm2022/acorex-components-phone-box.mjs +29 -29
- package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +28 -8
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/fesm2022/acorex-components-text-box.mjs +22 -3
- package/fesm2022/acorex-components-text-box.mjs.map +1 -1
- package/list/lib/list.component.d.ts +3 -2
- package/package.json +1 -1
- package/phone-box/lib/phone-box.component.d.ts +4 -2
- package/select-box/lib/select-box.component.d.ts +5 -4
- package/text-box/lib/mask-options.directive.d.ts +6 -2
- package/text-box/lib/text-box.component.d.ts +1 -0
@@ -1,9 +1,12 @@
|
|
1
1
|
import { MXBaseComponent } from '@acorex/components/common';
|
2
|
+
import { isBrowser } from '@acorex/core/platform';
|
3
|
+
import { ComponentPortal } from '@angular/cdk/portal';
|
2
4
|
import { Component, HostBinding, ViewEncapsulation, inject, input } from '@angular/core';
|
3
5
|
import { AXChatMessageTypeRegistryService } from '../services/chat-message-type-registry.service';
|
4
6
|
import * as i0 from "@angular/core";
|
5
|
-
import * as i1 from "@angular/
|
6
|
-
import * as i2 from "@
|
7
|
+
import * as i1 from "@angular/cdk/portal";
|
8
|
+
import * as i2 from "@angular/common";
|
9
|
+
import * as i3 from "@acorex/core/format";
|
7
10
|
export class AXChatMessageComponent extends MXBaseComponent {
|
8
11
|
constructor() {
|
9
12
|
super(...arguments);
|
@@ -16,14 +19,30 @@ export class AXChatMessageComponent extends MXBaseComponent {
|
|
16
19
|
get __hostClass() {
|
17
20
|
return `${this.isOwn ? 'ax-state-own' : ''} ${!this.isOwn ? 'ax-state-other' : ''}`;
|
18
21
|
}
|
22
|
+
ngOnInit() {
|
23
|
+
this._portal = new ComponentPortal(this.registryService.resolve(this.chatMessage().type).component);
|
24
|
+
}
|
25
|
+
_handleAttched(ref) {
|
26
|
+
ref = ref;
|
27
|
+
if (ref.instance && isBrowser()) {
|
28
|
+
Object.assign(ref.instance, { message: this.chatMessage() });
|
29
|
+
this.cdr.markForCheck();
|
30
|
+
const prefix = this.getHostElement().querySelector('ax-prefix');
|
31
|
+
const container = this.getHostElement().querySelector('.ax-message-prefix');
|
32
|
+
if (prefix && container) {
|
33
|
+
prefix.style.display = 'flex';
|
34
|
+
container.append(prefix);
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
19
38
|
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: "<ng-
|
39
|
+
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-template [cdkPortalOutlet]=\"_portal\" (attached)=\"_handleAttched($event)\"></ng-template>\n\n<div class=\"ax-chat-message-status\">\n <div class=\"ax-message-prefix\">\n </div>\n <div>\n <span>{{ chatMessage().sendTime | format:'datetime':'HH:mm' | async }}</span>\n <span>\n @if(isOwn)\n {\n @if(chatMessage().deliverTime){\n <i class=\"ax-icon ax-icon-check\"></i>\n }\n @if(chatMessage().readTime){\n <i class=\"ax-icon ax-icon-dobble-check\"></i>\n }\n }\n </span>\n </div>\n</div>", 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-chat-message ax-prefix{display:none}.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.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.AXFormatPipe, name: "format" }], encapsulation: i0.ViewEncapsulation.None }); }
|
21
40
|
}
|
22
41
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXChatMessageComponent, decorators: [{
|
23
42
|
type: Component,
|
24
|
-
args: [{ selector: 'ax-chat-message', encapsulation: ViewEncapsulation.None, template: "<ng-
|
43
|
+
args: [{ selector: 'ax-chat-message', encapsulation: ViewEncapsulation.None, template: "<ng-template [cdkPortalOutlet]=\"_portal\" (attached)=\"_handleAttched($event)\"></ng-template>\n\n<div class=\"ax-chat-message-status\">\n <div class=\"ax-message-prefix\">\n </div>\n <div>\n <span>{{ chatMessage().sendTime | format:'datetime':'HH:mm' | async }}</span>\n <span>\n @if(isOwn)\n {\n @if(chatMessage().deliverTime){\n <i class=\"ax-icon ax-icon-check\"></i>\n }\n @if(chatMessage().readTime){\n <i class=\"ax-icon ax-icon-dobble-check\"></i>\n }\n }\n </span>\n </div>\n</div>", 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-chat-message ax-prefix{display:none}.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
44
|
}], propDecorators: { __hostClass: [{
|
26
45
|
type: HostBinding,
|
27
46
|
args: ['class']
|
28
47
|
}] } });
|
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ICAgICAgICAgICAgQGlmKGNoYXRNZXNzYWdlKCkuZGVsaXZlclRpbWUpe1xuICAgICAgICAgICAgPGkgY2xhc3M9XCJheC1pY29uIGF4LWljb24tY2hlY2tcIj48L2k+XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBAaWYoY2hhdE1lc3NhZ2UoKS5yZWFkVGltZSl7XG4gICAgICAgICAgICA8aSBjbGFzcz1cImF4LWljb24gYXgtaWNvbi1kb2JibGUtY2hlY2tcIj48L2k+XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIDwvc3Bhbj5cbiAgICA8L2Rpdj5cbjwvZGl2PiJdfQ==
|
@@ -4,24 +4,20 @@ import { AXChatMessageBaseComponent } from '../../chat.types';
|
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
import * as i1 from "@acorex/components/decorators";
|
6
6
|
import * as i2 from "@acorex/components/audio-wave";
|
7
|
+
import * as i3 from "@angular/common";
|
8
|
+
import * as i4 from "@acorex/core/format";
|
7
9
|
export class AXChatAudioMessageComponent extends AXChatMessageBaseComponent {
|
8
10
|
constructor() {
|
9
11
|
super();
|
10
12
|
this.config = { url: '' };
|
11
13
|
this.audioState = signal('paused');
|
12
14
|
this.audioProgress = signal(0);
|
15
|
+
this.timeLeft = signal(0);
|
16
|
+
this.currentTime = signal(0);
|
17
|
+
this.duration = signal(0);
|
13
18
|
afterNextRender(() => {
|
14
19
|
this.config.url = this.message?.content;
|
15
20
|
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
21
|
});
|
26
22
|
}
|
27
23
|
handlePauseClick() {
|
@@ -33,17 +29,32 @@ export class AXChatAudioMessageComponent extends AXChatMessageBaseComponent {
|
|
33
29
|
this.audioState.set('playing');
|
34
30
|
});
|
35
31
|
}
|
36
|
-
handleOnStatusChanged(
|
37
|
-
console.log(
|
32
|
+
handleOnStatusChanged(e) {
|
33
|
+
console.log(e.status, e.data);
|
34
|
+
if (e.status === 'loading') {
|
35
|
+
this.audioProgress.set(e.data.percent);
|
36
|
+
this.duration.set(Math.ceil(e.data.duration * 1000));
|
37
|
+
}
|
38
|
+
if (e.status === 'ready') {
|
39
|
+
this.audioState.set('ready');
|
40
|
+
this.duration.set(Math.ceil(e.data.duration * 1000));
|
41
|
+
}
|
42
|
+
if (e.status === 'finish') {
|
43
|
+
this.audioState.set('paused');
|
44
|
+
}
|
45
|
+
if (e.status === 'timeupdate') {
|
46
|
+
this.timeLeft.set(this.duration() - e.data.currentTime * 1000);
|
47
|
+
this.currentTime.set(e.data.currentTime * 1000);
|
48
|
+
}
|
38
49
|
}
|
39
50
|
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-
|
51
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.2", type: AXChatAudioMessageComponent, selector: "ax-chat-message-audio", inputs: { message: "message" }, viewQueries: [{ propertyName: "audio", first: true, predicate: ["a"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-audio-controller\">\n\n\n @switch (audioState()) {\n @case ('playing') {\n <button (click)=\"handlePauseClick()\">\n <i class=\"fa-solid fa-pause\"></i>\n </button>\n }\n @case ('paused')\n {\n <button (click)=\"handlePlayClick()\">\n <i class=\"fa-solid fa-play\" style=\"margin-inline-start: 0.25rem;\"></i>\n </button>\n }\n @case ('loading') {\n <!-- <button (click)=\"handlePlayClick()\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" class=\"loader\">\n <circle class=\"progress\" fill=\"none\" stroke-linecap=\"round\" cx=\"20\" cy=\"20\" r=\"15.915494309\" />\n </svg>\n </button> -->\n }\n @default {\n <button (click)=\"handlePlayClick()\">\n <i class=\"fa-solid fa-play\" style=\"margin-inline-start: 0.25rem;\"></i>\n </button>\n }\n }\n\n</div>\n<ax-audio-wave #a [config]=\"config\" (onStatusChanged)=\"handleOnStatusChanged($event)\"></ax-audio-wave>\n\n<ax-prefix>\n @switch (audioState()) {\n @case ('paused')\n {\n {{currentTime() | format:'time-duration' | async}}\n }\n @case ('playing')\n {\n {{currentTime() | format:'time-duration' | async}}\n }\n @default {\n {{duration() | format:'time-duration' | async}}\n }\n }\n</ax-prefix>", styles: ["ax-chat-message-audio{display:flex;align-items:center;justify-content:space-between;gap:.25rem}ax-chat-message-audio .ax-audio-controller button{width:2.5rem;height:2.5rem;background-color:rgba(var(--ax-color-primary-500));color:rgba(var(--ax-color-primary-fore));border-radius:999rem;display:flex;align-items:center;justify-content:center}ax-chat-message-audio .ax-audio-controller button>i{width:1.5rem;height:1.5rem;display:flex;align-items:center;justify-content:center;font-size:1.25rem}ax-chat-message-audio .ax-audio-wave{flex:1}\n"], dependencies: [{ kind: "component", type: i1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title , ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "component", type: i2.AXAudioWaveComponent, selector: "ax-audio-wave", inputs: ["config"], outputs: ["onStatusChanged"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.AXFormatPipe, name: "format" }], encapsulation: i0.ViewEncapsulation.None }); }
|
41
52
|
}
|
42
53
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXChatAudioMessageComponent, decorators: [{
|
43
54
|
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-
|
55
|
+
args: [{ selector: 'ax-chat-message-audio', encapsulation: ViewEncapsulation.None, inputs: ['message'], template: "<div class=\"ax-audio-controller\">\n\n\n @switch (audioState()) {\n @case ('playing') {\n <button (click)=\"handlePauseClick()\">\n <i class=\"fa-solid fa-pause\"></i>\n </button>\n }\n @case ('paused')\n {\n <button (click)=\"handlePlayClick()\">\n <i class=\"fa-solid fa-play\" style=\"margin-inline-start: 0.25rem;\"></i>\n </button>\n }\n @case ('loading') {\n <!-- <button (click)=\"handlePlayClick()\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\" class=\"loader\">\n <circle class=\"progress\" fill=\"none\" stroke-linecap=\"round\" cx=\"20\" cy=\"20\" r=\"15.915494309\" />\n </svg>\n </button> -->\n }\n @default {\n <button (click)=\"handlePlayClick()\">\n <i class=\"fa-solid fa-play\" style=\"margin-inline-start: 0.25rem;\"></i>\n </button>\n }\n }\n\n</div>\n<ax-audio-wave #a [config]=\"config\" (onStatusChanged)=\"handleOnStatusChanged($event)\"></ax-audio-wave>\n\n<ax-prefix>\n @switch (audioState()) {\n @case ('paused')\n {\n {{currentTime() | format:'time-duration' | async}}\n }\n @case ('playing')\n {\n {{currentTime() | format:'time-duration' | async}}\n }\n @default {\n {{duration() | format:'time-duration' | async}}\n }\n }\n</ax-prefix>", styles: ["ax-chat-message-audio{display:flex;align-items:center;justify-content:space-between;gap:.25rem}ax-chat-message-audio .ax-audio-controller button{width:2.5rem;height:2.5rem;background-color:rgba(var(--ax-color-primary-500));color:rgba(var(--ax-color-primary-fore));border-radius:999rem;display:flex;align-items:center;justify-content:center}ax-chat-message-audio .ax-audio-controller button>i{width:1.5rem;height:1.5rem;display:flex;align-items:center;justify-content:center;font-size:1.25rem}ax-chat-message-audio .ax-audio-wave{flex:1}\n"] }]
|
45
56
|
}], ctorParameters: () => [], propDecorators: { audio: [{
|
46
57
|
type: ViewChild,
|
47
58
|
args: ['a']
|
48
59
|
}] } });
|
49
|
-
//# sourceMappingURL=data:application/json;base64,
|
60
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhdC1tZXNzYWdlLXZvaWNlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9jaGF0L3NyYy9saWIvY2hhdC1tZXNzYWdlcy9jaGF0LW1lc3NhZ2VzLXZvaWNlL2NoYXQtbWVzc2FnZS12b2ljZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvY2hhdC9zcmMvbGliL2NoYXQtbWVzc2FnZXMvY2hhdC1tZXNzYWdlcy12b2ljZS9jaGF0LW1lc3NhZ2Utdm9pY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XCIgc3R5bGU9XCJtYXJnaW4taW5saW5lLXN0YXJ0OiAwLjI1cmVtO1wiPjwvaT5cbiAgPC9idXR0b24+XG4gIH1cbiAgfVxuXG48L2Rpdj5cbjxheC1hdWRpby13YXZlICNhIFtjb25maWddPVwiY29uZmlnXCIgKG9uU3RhdHVzQ2hhbmdlZCk9XCJoYW5kbGVPblN0YXR1c0NoYW5nZWQoJGV2ZW50KVwiPjwvYXgtYXVkaW8td2F2ZT5cblxuPGF4LXByZWZpeD5cbiAgQHN3aXRjaCAoYXVkaW9TdGF0ZSgpKSB7XG4gIEBjYXNlICgncGF1c2VkJylcbiAge1xuICB7e2N1cnJlbnRUaW1lKCkgfCBmb3JtYXQ6J3RpbWUtZHVyYXRpb24nIHwgYXN5bmN9fVxuICB9XG4gIEBjYXNlICgncGxheWluZycpXG4gIHtcbiAge3tjdXJyZW50VGltZSgpIHwgZm9ybWF0Oid0aW1lLWR1cmF0aW9uJyB8IGFzeW5jfX1cbiAgfVxuICBAZGVmYXVsdCB7XG4gIHt7ZHVyYXRpb24oKSB8IGZvcm1hdDondGltZS1kdXJhdGlvbicgfCBhc3luY319XG4gIH1cbiAgfVxuPC9heC1wcmVmaXg+Il19
|
@@ -4,8 +4,10 @@ import { AXCircularProgressModule } from '@acorex/components/circular-progress';
|
|
4
4
|
import { AXRippleDirective } from '@acorex/components/common';
|
5
5
|
import { AXDecoratorModule } from '@acorex/components/decorators';
|
6
6
|
import { AXDropdownModule } from '@acorex/components/dropdown';
|
7
|
+
import { AXDateTimeModule } from '@acorex/core/date-time';
|
7
8
|
import { AXFormatModule } from '@acorex/core/format';
|
8
9
|
import { AXTranslationModule } from '@acorex/core/translation';
|
10
|
+
import { CdkPortalOutlet } from '@angular/cdk/portal';
|
9
11
|
import { AsyncPipe, CommonModule } from '@angular/common';
|
10
12
|
import { Inject, NgModule, Optional } from '@angular/core';
|
11
13
|
import { FormsModule } from '@angular/forms';
|
@@ -36,6 +38,8 @@ const MODULES = [
|
|
36
38
|
AXFormatModule,
|
37
39
|
AXAudioWaveModule,
|
38
40
|
AXCircularProgressModule,
|
41
|
+
AXDateTimeModule,
|
42
|
+
CdkPortalOutlet,
|
39
43
|
];
|
40
44
|
export class AXChatModule {
|
41
45
|
static forRoot(config) {
|
@@ -103,7 +107,9 @@ export class AXChatModule {
|
|
103
107
|
AXDropdownModule,
|
104
108
|
AXFormatModule,
|
105
109
|
AXAudioWaveModule,
|
106
|
-
AXCircularProgressModule
|
110
|
+
AXCircularProgressModule,
|
111
|
+
AXDateTimeModule,
|
112
|
+
CdkPortalOutlet], exports: [AXChatViewComponent,
|
107
113
|
AXChatInputComponent,
|
108
114
|
AXChatMessageComponent,
|
109
115
|
AXChatTextMessageComponent,
|
@@ -116,7 +122,8 @@ export class AXChatModule {
|
|
116
122
|
AXDropdownModule,
|
117
123
|
AXFormatModule,
|
118
124
|
AXAudioWaveModule,
|
119
|
-
AXCircularProgressModule
|
125
|
+
AXCircularProgressModule,
|
126
|
+
AXDateTimeModule] }); }
|
120
127
|
}
|
121
128
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXChatModule, decorators: [{
|
122
129
|
type: NgModule,
|
@@ -132,4 +139,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImpor
|
|
132
139
|
type: Inject,
|
133
140
|
args: ['AXChatModuleFactory']
|
134
141
|
}] }] });
|
135
|
-
//# sourceMappingURL=data:application/json;base64,
|
142
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhdC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvY2hhdC9zcmMvbGliL2NoYXQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxpQkFBaUIsRUF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TZXJ2aWNlXSxcbiAgICAgICAgICBtdWx0aTogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgIF0sXG4gICAgfTtcbiAgfVxuXG4gIC8qKlxuICAgKiBAaWdub3JlXG4gICAqL1xuICBjb25zdHJ1Y3RvcihAT3B0aW9uYWwoKSBASW5qZWN0KCdBWENoYXRNb2R1bGVGYWN0b3J5JykgaW5zdGFuY2VzOiBhbnlbXSkge1xuICAgIGluc3RhbmNlcz8uZm9yRWFjaCgoZikgPT4ge1xuICAgICAgZigpO1xuICAgIH0pO1xuICB9XG59XG4iXX0=
|
@@ -76,4 +76,4 @@ export class AXSelectionValueChangedEvent extends AXValueChangedEvent {
|
|
76
76
|
*/
|
77
77
|
export class AXRangeChangedEvent extends AXEvent {
|
78
78
|
}
|
79
|
-
//# sourceMappingURL=data:application/json;base64,
|
79
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnRzLmNsYXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2NvbW1vbi9zcmMvbGliL2NsYXNzZXMvZXZlbnRzLmNsYXNzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7R0FHRztBQUNILE1BQU0sT0FBTyxPQUFPO0lBQXBCO1FBVUUsc0JBQWlCLEdBQWEsS0FBSyxDQUFDO0lBQ3RDLENBQUM7Q0FBQTtBQUVEOzs7R0FHRztBQUNILE1BQU0sT0FBTyxXQUFxQyxTQUFRLE9BQU87Q0FFaEU7QUFFRDs7O0dBR0c7QUFDSCxNQUFNLE9BQU8sbUJBQTZCLFNBQVEsT0FBTztDQUl4RDtBQUVEOzs7R0FHRztBQUNILE1BQU0sT0FBTyxvQkFBOEIsU0FBUSxPQUFPO0NBSXpEO0FBRUQ7OztHQUdHO0FBQ0gsTUFBTSxPQUFPLFlBQWEsU0F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zcyBBWFJhbmdlQ2hhbmdlZEV2ZW50PFQ+IGV4dGVuZHMgQVhFdmVudCB7XG4gIC8qKlxuICAgKiAgVGhlIHJhbmdlIHN0YXJ0IHZhbHVlXG4gICAqL1xuICBzdGFydD86IFQ7XG4gIC8qKlxuICAgKiAgVGhlIHJhbmdlIGVuZCB2YWx1ZVxuICAgKi9cbiAgZW5kPzogVDtcbn1cbiJdfQ==
|
@@ -1,16 +1,7 @@
|
|
1
|
-
import { isBrowser } from '@acorex/core/platform';
|
2
1
|
import { ChangeDetectorRef, ElementRef, EventEmitter, Injectable, ViewContainerRef, inject } from '@angular/core';
|
3
2
|
import { AXDomService } from '../services/dom.service';
|
4
3
|
import * as i0 from "@angular/core";
|
5
4
|
export class MXBaseComponent {
|
6
|
-
constructor() {
|
7
|
-
this._cdr = inject(ChangeDetectorRef);
|
8
|
-
this._elementRef = inject(ElementRef);
|
9
|
-
this._viewRef = inject(ViewContainerRef);
|
10
|
-
this._domService = inject(AXDomService);
|
11
|
-
this._id = this._domService.generateElementId();
|
12
|
-
this.onOptionChanged = new EventEmitter();
|
13
|
-
}
|
14
5
|
get id() {
|
15
6
|
return this._id;
|
16
7
|
}
|
@@ -30,10 +21,20 @@ export class MXBaseComponent {
|
|
30
21
|
return option?.value;
|
31
22
|
}
|
32
23
|
internalOptionChanged(option) { }
|
33
|
-
|
24
|
+
/**
|
25
|
+
*
|
26
|
+
*/
|
27
|
+
constructor() {
|
28
|
+
this._cdr = inject(ChangeDetectorRef);
|
29
|
+
this._elementRef = inject(ElementRef);
|
30
|
+
this._viewRef = inject(ViewContainerRef);
|
31
|
+
this._domService = inject(AXDomService);
|
32
|
+
this._id = this._domService.generateElementId();
|
33
|
+
this.onOptionChanged = new EventEmitter();
|
34
34
|
this.getHostElement().__axContext__ = this;
|
35
|
-
this._detectLayout();
|
36
35
|
}
|
36
|
+
// TODO: remove this
|
37
|
+
ngOnInit() { }
|
37
38
|
setOption(option) {
|
38
39
|
const oldValue = this[option.name];
|
39
40
|
let newValue = this.internalOptionChanging({
|
@@ -59,23 +60,10 @@ export class MXBaseComponent {
|
|
59
60
|
if (option.afterCallback)
|
60
61
|
option.afterCallback(oldValue, newValue);
|
61
62
|
}
|
62
|
-
_detectLayout() {
|
63
|
-
if (isBrowser()) {
|
64
|
-
this.rtl =
|
65
|
-
this.getHostElement().classList.contains('ax-rtl') ||
|
66
|
-
window.getComputedStyle(this.getHostElement(), null).getPropertyValue('direction') === 'rtl';
|
67
|
-
}
|
68
|
-
}
|
69
|
-
get rtl() {
|
70
|
-
return this._rtl;
|
71
|
-
}
|
72
|
-
set rtl(value) {
|
73
|
-
this.setOption({ name: 'rtl', value });
|
74
|
-
}
|
75
63
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: MXBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
76
64
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: MXBaseComponent }); }
|
77
65
|
}
|
78
66
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: MXBaseComponent, decorators: [{
|
79
67
|
type: Injectable
|
80
|
-
}] });
|
81
|
-
//# sourceMappingURL=data:application/json;base64,
|
68
|
+
}], ctorParameters: () => [] });
|
69
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1jb21wb25lbnQuY2xhc3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvY29tbW9uL3NyYy9saWIvY29tcG9uZW50cy9iYXNlLWNvbXBvbmVudC5jbGFzcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsVUFBVSxFQUFFLFlBQVks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AgIC8vVE9ETyA6IGNoZWNrIHJlYWwgY2hhbmdlcyBpZiB2YWx1ZSBpcyBvYmplY3RcbiAgICBpZiAob2xkVmFsdWUgIT0gbmV3VmFsdWUpIHtcbiAgICAgIHRoaXNbYF8ke29wdGlvbi5uYW1lfWBdID0gb3B0aW9uLnZhbHVlO1xuICAgICAgdGhpcy5vbk9wdGlvbkNoYW5nZWQuZW1pdCh7XG4gICAgICAgIGNvbXBvbmVudDogdGhpcyxcbiAgICAgICAgbmFtZTogb3B0aW9uLm5hbWUsXG4gICAgICAgIG5ld1ZhbHVlLFxuICAgICAgICBvbGRWYWx1ZSxcbiAgICAgIH0pO1xuICAgICAgY29uc3QgZW1pdHRlciA9IHRoaXNbYCR7b3B0aW9uLm5hbWV9Q2hhbmdlYF0gYXMgRXZlbnRFbWl0dGVyPGFueT47XG4gICAgICBlbWl0dGVyPy5lbWl0KG5ld1ZhbHVlKTtcbiAgICAgIHRoaXMuaW50ZXJuYWxPcHRpb25DaGFuZ2VkKHsgbmFtZTogb3B0aW9uLm5hbWUsIHZhbHVlOiBuZXdWYWx1ZSB9KTtcbiAgICB9XG4gICAgaWYgKG9wdGlvbi5hZnRlckNhbGxiYWNrKSBvcHRpb24uYWZ0ZXJDYWxsYmFjayhvbGRWYWx1ZSwgbmV3VmFsdWUpO1xuICB9XG59XG4iXX0=
|
@@ -38,10 +38,17 @@ export class MXInputBaseValueComponent extends MXValueComponent {
|
|
38
38
|
nativeEvent: e,
|
39
39
|
});
|
40
40
|
}
|
41
|
+
focus() {
|
42
|
+
const input = this.getHostElement().querySelector('input');
|
43
|
+
if (input)
|
44
|
+
input.focus();
|
45
|
+
else
|
46
|
+
super.focus();
|
47
|
+
}
|
41
48
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: MXInputBaseValueComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
42
49
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: MXInputBaseValueComponent }); }
|
43
50
|
}
|
44
51
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: MXInputBaseValueComponent, decorators: [{
|
45
52
|
type: Injectable
|
46
53
|
}] });
|
47
|
-
//# sourceMappingURL=data:application/json;base64,
|
54
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtYmFzZS12YWx1ZS1jb21wb25lbnQuY2xhc3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvY29tbW9uL3NyYy9saWIvY29tcG9uZW50cy9pbnB1dC1iYXNlLXZhbHVlLWNvbXBvbmVudC5jbGFzcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUV6RCxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQzs7QUFJM0QsTUFBTSxPQUFPLHlCQUFzQyxTQUFRLGdCQUFtQjtJQUQ5RTs7UUFJRTs7O1dBR0c7UUFDSCxjQUFTLEdBQTZDLElBQUksWUFBWSxFQUE4QixDQUFDO1FBRXJHOzs7V0FHRztRQUNILFlBQU8sR0FBNkMsSUFBSSxZQUFZLEVBQThCLENBQUM7UUFFbkc7OztXQUdHO1FBQ0gsZUFBVSxHQUE2QyxJQUFJLFlBQVksRUFBOEIsQ0FBQztLQThCdkc7SUE1Qlcsa0JBQWtCLENBQUMsQ0FBZ0I7UUFDM0MsSUFBSSxDQUFDLFNBQVMsQ0FBQyxJQUFJLENBQUM7WUFDbEIsU0FBUyxFQUFFLElBQUk7WUFDZixXQUFXLEVBQUUsQ0FBQztTQUNmLENBQUMsQ0F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xuICAgIHRoaXMub25LZXlVcC5lbWl0KHtcbiAgICAgIGNvbXBvbmVudDogdGhpcyxcbiAgICAgIG5hdGl2ZUV2ZW50OiBlLFxuICAgIH0pO1xuICB9XG5cbiAgcHJvdGVjdGVkIGVtaXRPbktleXByZXNzRXZlbnQoZTogS2V5Ym9hcmRFdmVudCkge1xuICAgIHRoaXMub25LZXlQcmVzcy5lbWl0KHtcbiAgICAgIGNvbXBvbmVudDogdGhpcyxcbiAgICAgIG5hdGl2ZUV2ZW50OiBlLFxuICAgIH0pO1xuICB9XG5cbiAgb3ZlcnJpZGUgZm9jdXMoKTogdm9pZCB7XG4gICAgY29uc3QgaW5wdXQgPSB0aGlzLmdldEhvc3RFbGVtZW50KCkucXVlcnlTZWxlY3RvcignaW5wdXQnKTtcbiAgICBpZiAoaW5wdXQpXG4gICAgICBpbnB1dC5mb2N1cygpO1xuICAgIGVsc2VcbiAgICAgIHN1cGVyLmZvY3VzKCk7XG4gIH1cbn1cbiJdfQ==
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { AXUnsubscriber } from '@acorex/core/utils';
|
1
|
+
import { AXHtmlUtil, AXUnsubscriber } from '@acorex/core/utils';
|
2
2
|
import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';
|
3
3
|
import { AXDataPagerChild } from './data-pager-base.component';
|
4
4
|
import * as i0 from "@angular/core";
|
@@ -6,6 +6,10 @@ import * as i1 from "@angular/common";
|
|
6
6
|
import * as i2 from "@acorex/components/button";
|
7
7
|
import * as i3 from "@acorex/components/decorators";
|
8
8
|
export class AXDataPagerNextButtonsComponent extends AXDataPagerChild {
|
9
|
+
ngOnInit() {
|
10
|
+
super.ngOnInit;
|
11
|
+
this.rtl = AXHtmlUtil.isRtl(this.getHostElement());
|
12
|
+
}
|
9
13
|
applyParent() {
|
10
14
|
this.disabled = this._parent.displayInfo.page == this._parent.displayInfo.totalPages || this._parent.disabled;
|
11
15
|
}
|
@@ -58,4 +62,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImpor
|
|
58
62
|
providers: [{ provide: AXDataPagerChild, useExisting: AXDataPagerNextButtonsComponent }, AXUnsubscriber],
|
59
63
|
}]
|
60
64
|
}] });
|
61
|
-
//# sourceMappingURL=data:application/json;base64,
|
65
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1wYWdlci1uZXh0LWJ1dHRvbnMuY29tcG9uZW50cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9kYXRhLXBhZ2VyL3NyYy9saWIvZGF0YS1wYWdlci1uZXh0LWJ1dHRvbnMuY29tcG9uZW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsVUFBVSxFQUFFLGNBQWMsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBQ2hFLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDdEYsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sNkJBQTZCLENBQUM7Ozs7O0FBc0IvRCxNQUFNLE9BQU8sK0JBQWdDLFNBQVEsZ0JBQWdCO0lBRzFELFFBQVE7UUFDZixLQUFLLENBQUMsUUFBUSxDQUFDO1FBQ2YsSUFBSSxDQUFDLEdBQUcsR0FBRyxVQUFVLENBQUMsS0FBSyxDQUFDLElBQUksQ0FBQyxjQUFjLEVBQUUsQ0FBQyxDQUFDO0lBQ3JELENBQUM7SUFFa0IsV0FBVztRQUM1QixJQUFJLENBQUMsUUFBUSxHQUFHLElBQUksQ0FBQyxPQUFPLENBQUMsV0FBVyxDQUFDLElBQUksSUFBSSxJQUFJLENBQUMsT0FBTyxDQUFDLFdBQVcsQ0FBQyxVQUFVLElBQUksSUF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zYWJsZWQpIHJldHVybjtcbiAgICB0aGlzLl9wYXJlbnQuZ29MYXN0UGFnZSgpO1xuICB9XG5cbiAgX2VtaXRPbk5leHRQYWdlQ2xpY2soZTogQVhDbGlja0V2ZW50KSB7XG4gICAgaWYgKHRoaXMuX3BhcmVudC5yZWFkb25seSB8fCB0aGlzLl9wYXJlbnQuZGlzYWJsZWQpIHJldHVybjtcbiAgICB0aGlzLl9wYXJlbnQuZ29OZXh0UGFnZSgpO1xuICB9XG59XG4iXX0=
|
@@ -55,15 +55,15 @@ export class AXDataPagerNumericSelectorComponent extends AXDataPagerChild {
|
|
55
55
|
},
|
56
56
|
AXUnsubscriber,
|
57
57
|
], usesInheritance: true, ngImport: i0, template: `
|
58
|
-
<ax-button [disabled]="_currentPage
|
59
|
-
<ax-icon class="ax-icon ax-
|
58
|
+
<ax-button [disabled]="_currentPage === 1 || _parent.disabled" look="blank" class="ax-sm" (onClick)="_handleOnItemClick({ data: 1 })">
|
59
|
+
<ax-icon class="ax-icon ax-icon-first-page ax-text-xl"></ax-icon>
|
60
60
|
</ax-button>
|
61
61
|
@for (item of _items; track $index) {
|
62
62
|
<ax-button
|
63
63
|
class="ax-sm"
|
64
64
|
[disabled]="_parent.disabled"
|
65
|
-
[color]="_currentPage
|
66
|
-
[look]="_currentPage
|
65
|
+
[color]="_currentPage === item.data ? 'primary' : 'solid'"
|
66
|
+
[look]="_currentPage === item.data ? 'solid' : 'blank'"
|
67
67
|
[text]="item.text"
|
68
68
|
(onClick)="_handleOnItemClick(item)"
|
69
69
|
>
|
@@ -74,12 +74,12 @@ export class AXDataPagerNumericSelectorComponent extends AXDataPagerChild {
|
|
74
74
|
}
|
75
75
|
|
76
76
|
<ax-button
|
77
|
-
[disabled]="_currentPage
|
77
|
+
[disabled]="_currentPage === _lastPage || _parent.disabled"
|
78
78
|
look="blank"
|
79
79
|
class="ax-sm"
|
80
80
|
(onClick)="_handleOnItemClick({ data: _lastPage })"
|
81
81
|
>
|
82
|
-
<ax-icon class="ax-icon ax-
|
82
|
+
<ax-icon class="ax-icon ax-icon-last-page ax-text-xl"></ax-icon>
|
83
83
|
</ax-button>
|
84
84
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange"] }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
85
85
|
}
|
@@ -88,15 +88,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImpor
|
|
88
88
|
args: [{
|
89
89
|
selector: 'ax-data-pager-numeric-selector',
|
90
90
|
template: `
|
91
|
-
<ax-button [disabled]="_currentPage
|
92
|
-
<ax-icon class="ax-icon ax-
|
91
|
+
<ax-button [disabled]="_currentPage === 1 || _parent.disabled" look="blank" class="ax-sm" (onClick)="_handleOnItemClick({ data: 1 })">
|
92
|
+
<ax-icon class="ax-icon ax-icon-first-page ax-text-xl"></ax-icon>
|
93
93
|
</ax-button>
|
94
94
|
@for (item of _items; track $index) {
|
95
95
|
<ax-button
|
96
96
|
class="ax-sm"
|
97
97
|
[disabled]="_parent.disabled"
|
98
|
-
[color]="_currentPage
|
99
|
-
[look]="_currentPage
|
98
|
+
[color]="_currentPage === item.data ? 'primary' : 'solid'"
|
99
|
+
[look]="_currentPage === item.data ? 'solid' : 'blank'"
|
100
100
|
[text]="item.text"
|
101
101
|
(onClick)="_handleOnItemClick(item)"
|
102
102
|
>
|
@@ -107,12 +107,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImpor
|
|
107
107
|
}
|
108
108
|
|
109
109
|
<ax-button
|
110
|
-
[disabled]="_currentPage
|
110
|
+
[disabled]="_currentPage === _lastPage || _parent.disabled"
|
111
111
|
look="blank"
|
112
112
|
class="ax-sm"
|
113
113
|
(onClick)="_handleOnItemClick({ data: _lastPage })"
|
114
114
|
>
|
115
|
-
<ax-icon class="ax-icon ax-
|
115
|
+
<ax-icon class="ax-icon ax-icon-last-page ax-text-xl"></ax-icon>
|
116
116
|
</ax-button>
|
117
117
|
`,
|
118
118
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
@@ -126,4 +126,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImpor
|
|
126
126
|
],
|
127
127
|
}]
|
128
128
|
}] });
|
129
|
-
//# sourceMappingURL=data:application/json;base64,
|
129
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1wYWdlci1udW1lcmljLXNlbGVjdG9yLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9kYXRhLXBhZ2VyL3NyYy9saWIvZGF0YS1wYWdlci1udW1lcmljLXNlbGVjdG9yLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDcEQsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN0RixPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQzs7Ozs7QUEwQy9ELE1BQU0sT0FBTyxtQ0FBb0MsU0FBUSxnQkFBZ0I7SUF4Q3pFOztRQXlDRSxXQUFNLEdBQW1CLEVBQUUsQ0FBQztRQUM1QixpQkFBWSxHQUFHLENBQU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