@acorex/components 18.9.1 → 18.9.2
Sign up to get free protection for your applications and to get access to all the features.
- package/common/lib/components/base-component.class.d.ts +4 -4
- package/esm2022/common/lib/components/base-component.class.mjs +6 -6
- package/esm2022/conversation/lib/conversation-message/conversation-message.component.mjs +2 -2
- package/esm2022/conversation/lib/conversation.module.mjs +2 -2
- package/esm2022/media-viewer/acorex-components-media-viewer.mjs +5 -0
- package/esm2022/media-viewer/index.mjs +10 -0
- package/esm2022/media-viewer/lib/media-viewer-container/media-viewer-container.component.mjs +35 -0
- package/esm2022/media-viewer/lib/media-viewer-slider/media-viewer-slider.component.mjs +35 -0
- package/esm2022/media-viewer/lib/media-viewer-thumbnail/media-viewer-thumbnail.component.mjs +23 -0
- package/esm2022/media-viewer/lib/media-viewer-tools/audio-player/audio-player.component.mjs +19 -0
- package/esm2022/media-viewer/lib/media-viewer-tools/image-viewer/image-viewer.component.mjs +19 -0
- package/esm2022/media-viewer/lib/media-viewer-tools/pdf-reader/pdf-reader.component.mjs +23 -0
- package/esm2022/media-viewer/lib/media-viewer-tools/video-player/video-player.component.mjs +19 -0
- package/esm2022/media-viewer/lib/media-viewer-type-registry.service.mjs +20 -0
- package/esm2022/media-viewer/lib/media-viewer-types.mjs +10 -0
- package/esm2022/media-viewer/lib/media-viewer.module.mjs +113 -0
- package/esm2022/media-viewer/lib/media-viewer.service.mjs +14 -0
- package/fesm2022/acorex-components-common.mjs +4 -4
- package/fesm2022/acorex-components-common.mjs.map +1 -1
- package/fesm2022/acorex-components-conversation.mjs +1 -1
- package/fesm2022/acorex-components-conversation.mjs.map +1 -1
- package/fesm2022/acorex-components-media-viewer.mjs +298 -0
- package/fesm2022/acorex-components-media-viewer.mjs.map +1 -0
- package/media-viewer/README.md +3 -0
- package/media-viewer/index.d.ts +9 -0
- package/media-viewer/lib/media-viewer-container/media-viewer-container.component.d.ts +15 -0
- package/media-viewer/lib/media-viewer-slider/media-viewer-slider.component.d.ts +19 -0
- package/media-viewer/lib/media-viewer-thumbnail/media-viewer-thumbnail.component.d.ts +11 -0
- package/media-viewer/lib/media-viewer-tools/audio-player/audio-player.component.d.ts +8 -0
- package/media-viewer/lib/media-viewer-tools/image-viewer/image-viewer.component.d.ts +8 -0
- package/media-viewer/lib/media-viewer-tools/pdf-reader/pdf-reader.component.d.ts +7 -0
- package/media-viewer/lib/media-viewer-tools/video-player/video-player.component.d.ts +8 -0
- package/media-viewer/lib/media-viewer-type-registry.service.d.ts +9 -0
- package/media-viewer/lib/media-viewer-types.d.ts +17 -0
- package/media-viewer/lib/media-viewer.module.d.ts +26 -0
- package/media-viewer/lib/media-viewer.service.d.ts +8 -0
- package/package.json +53 -47
@@ -0,0 +1,113 @@
|
|
1
|
+
import { AXButtonModule } from '@acorex/components/button';
|
2
|
+
import { AXDecoratorModule } from '@acorex/components/decorators';
|
3
|
+
import { CdkPortalOutlet } from '@angular/cdk/portal';
|
4
|
+
import { CommonModule } from '@angular/common';
|
5
|
+
import { Inject, NgModule, Optional } from '@angular/core';
|
6
|
+
import { FormsModule } from '@angular/forms';
|
7
|
+
import { AXMediaViewerContainerComponent } from './media-viewer-container/media-viewer-container.component';
|
8
|
+
import { AXMediaViewerSliderComponent } from './media-viewer-slider/media-viewer-slider.component';
|
9
|
+
import { AXMediaViewerThumbnailComponent } from './media-viewer-thumbnail/media-viewer-thumbnail.component';
|
10
|
+
import { AXAudioPlayerComponent } from './media-viewer-tools/audio-player/audio-player.component';
|
11
|
+
import { AXImageViewerComponent } from './media-viewer-tools/image-viewer/image-viewer.component';
|
12
|
+
import { AXPdfReaderComponent } from './media-viewer-tools/pdf-reader/pdf-reader.component';
|
13
|
+
import { AXVideoPlayerComponent } from './media-viewer-tools/video-player/video-player.component';
|
14
|
+
import { AXMediaViewerTypeRegistryService } from './media-viewer-type-registry.service';
|
15
|
+
import { AXMediaViewerService } from './media-viewer.service';
|
16
|
+
import * as i0 from "@angular/core";
|
17
|
+
const COMPONENT = [
|
18
|
+
AXMediaViewerContainerComponent,
|
19
|
+
AXMediaViewerSliderComponent,
|
20
|
+
AXMediaViewerThumbnailComponent,
|
21
|
+
AXAudioPlayerComponent,
|
22
|
+
AXImageViewerComponent,
|
23
|
+
AXPdfReaderComponent,
|
24
|
+
AXVideoPlayerComponent,
|
25
|
+
];
|
26
|
+
const MODULES = [CommonModule, AXButtonModule, AXDecoratorModule, CdkPortalOutlet, FormsModule];
|
27
|
+
export class AXMediaViewerModule {
|
28
|
+
constructor(instances) {
|
29
|
+
instances?.forEach((f) => {
|
30
|
+
f();
|
31
|
+
});
|
32
|
+
}
|
33
|
+
static forRoot(config) {
|
34
|
+
return {
|
35
|
+
ngModule: AXMediaViewerModule,
|
36
|
+
providers: [
|
37
|
+
{
|
38
|
+
provide: 'AXMediaViewerFactory',
|
39
|
+
useFactory: (registry) => () => {
|
40
|
+
if (config?.types?.length) {
|
41
|
+
registry.register(...config.types);
|
42
|
+
}
|
43
|
+
registry.register({
|
44
|
+
name: 'audio',
|
45
|
+
component: AXAudioPlayerComponent,
|
46
|
+
});
|
47
|
+
registry.register({
|
48
|
+
name: 'image',
|
49
|
+
component: AXImageViewerComponent,
|
50
|
+
});
|
51
|
+
registry.register({
|
52
|
+
name: 'pdf',
|
53
|
+
component: AXPdfReaderComponent,
|
54
|
+
});
|
55
|
+
registry.register({
|
56
|
+
name: 'video',
|
57
|
+
component: AXVideoPlayerComponent,
|
58
|
+
});
|
59
|
+
},
|
60
|
+
deps: [AXMediaViewerTypeRegistryService],
|
61
|
+
multi: true,
|
62
|
+
},
|
63
|
+
],
|
64
|
+
};
|
65
|
+
}
|
66
|
+
static forChild(config) {
|
67
|
+
return {
|
68
|
+
ngModule: AXMediaViewerModule,
|
69
|
+
providers: [
|
70
|
+
{
|
71
|
+
provide: 'AXMediaViewerFactory',
|
72
|
+
useFactory: (registry) => () => {
|
73
|
+
if (config?.types?.length) {
|
74
|
+
registry.register(...config.types);
|
75
|
+
}
|
76
|
+
},
|
77
|
+
deps: [AXMediaViewerTypeRegistryService],
|
78
|
+
multi: true,
|
79
|
+
},
|
80
|
+
],
|
81
|
+
};
|
82
|
+
}
|
83
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMediaViewerModule, deps: [{ token: 'AXMediaViewerFactory', optional: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
84
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMediaViewerModule, declarations: [AXMediaViewerContainerComponent,
|
85
|
+
AXMediaViewerSliderComponent,
|
86
|
+
AXMediaViewerThumbnailComponent,
|
87
|
+
AXAudioPlayerComponent,
|
88
|
+
AXImageViewerComponent,
|
89
|
+
AXPdfReaderComponent,
|
90
|
+
AXVideoPlayerComponent], imports: [CommonModule, AXButtonModule, AXDecoratorModule, CdkPortalOutlet, FormsModule], exports: [AXMediaViewerContainerComponent,
|
91
|
+
AXMediaViewerSliderComponent,
|
92
|
+
AXMediaViewerThumbnailComponent,
|
93
|
+
AXAudioPlayerComponent,
|
94
|
+
AXImageViewerComponent,
|
95
|
+
AXPdfReaderComponent,
|
96
|
+
AXVideoPlayerComponent] }); }
|
97
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMediaViewerModule, providers: [AXMediaViewerService], imports: [CommonModule, AXButtonModule, AXDecoratorModule, FormsModule] }); }
|
98
|
+
}
|
99
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMediaViewerModule, decorators: [{
|
100
|
+
type: NgModule,
|
101
|
+
args: [{
|
102
|
+
declarations: [...COMPONENT],
|
103
|
+
imports: [...MODULES],
|
104
|
+
exports: [...COMPONENT],
|
105
|
+
providers: [AXMediaViewerService],
|
106
|
+
}]
|
107
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
108
|
+
type: Optional
|
109
|
+
}, {
|
110
|
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rlcih7XG4gICAgICAgICAgICAgIG5hbWU6ICdpbWFnZScsXG4gICAgICAgICAgICAgIGNvbXBvbmVudDogQVhJbWFnZVZpZXdlckNvbXBvbmVudCxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgcmVnaXN0cnkucmVnaXN0ZXIoe1xuICAgICAgICAgICAgICBuYW1lOiAncGRmJyxcbiAgICAgICAgICAgICAgY29tcG9uZW50OiBBWFBkZlJlYWRlckNvbXBvbmVudCxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgcmVnaXN0cnkucmVnaXN0ZXIoe1xuICAgICAgICAgICAgICBuYW1lOiAndmlkZW8nLFxuICAgICAgICAgICAgICBjb21wb25lbnQ6IEFYVmlkZW9QbGF5ZXJDb21wb25lbnQsXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICB9LFxuICAgICAgICAgIGRlcHM6IFtBWE1lZGlhVmlld2VyVHlwZVJlZ2lzdHJ5U2VydmljZV0sXG4gICAgICAgICAgbXVsdGk6IHRydWUsXG4gICAgICAgIH0sXG4gICAgICBdLFxuICAgIH07XG4gIH1cblxuICBzdGF0aWMgZm9yQ2hpbGQoY29uZmlnPzogQVhNZWRpYVZpZXdlck1vZHVsZUNvbmZpZyk6IE1vZHVsZVdpdGhQcm92aWRlcnM8QVhNZWRpYVZpZXdlck1vZHVsZT4ge1xuICAgIHJldHVybiB7XG4gICAgICBuZ01vZHVsZTogQVhNZWRpYVZpZXdlck1vZHVsZSxcbiAgICAgIHByb3ZpZGVyczogW1xuICAgICAgICB7XG4gICAgICAgICAgcHJvdmlkZTogJ0FYTWVkaWFWaWV3ZXJGYWN0b3J5JyxcbiAgICAgICAgICB1c2VGYWN0b3J5OiAocmVnaXN0cnk6IEFYTWVkaWFWaWV3ZXJUeXBlUmVnaXN0cnlTZXJ2aWNlKSA9PiAoKSA9PiB7XG4gICAgICAgICAgICBpZiAoY29uZmlnPy50eXBlcz8ubGVuZ3RoKSB7XG4gICAgICAgICAgICAgIHJlZ2lzdHJ5LnJlZ2lzdGVyKC4uLmNvbmZpZy50eXBlcyk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSxcbiAgICAgICAgICBkZXBzOiBbQVhNZWRpYVZpZXdlclR5cGVSZWdpc3RyeVNlcnZpY2VdLFxuICAgICAgICAgIG11bHRpOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgXSxcbiAgICB9O1xuICB9XG59XG4iXX0=
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { Injectable, signal } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export class AXMediaViewerService {
|
4
|
+
constructor() {
|
5
|
+
this.dataArray = signal([]);
|
6
|
+
this.selectedIndex = signal(0);
|
7
|
+
}
|
8
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMediaViewerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
9
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMediaViewerService }); }
|
10
|
+
}
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMediaViewerService, decorators: [{
|
12
|
+
type: Injectable
|
13
|
+
}] });
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVkaWEtdmlld2VyLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvbWVkaWEtdmlld2VyL3NyYy9saWIvbWVkaWEtdmlld2VyLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBSW5ELE1BQU0sT0FBTyxvQkFBb0I7SUFEakM7UUFFRSxjQUFTLEdBQUcsTUFBTSxDQUFzQixFQUFFLENBQUMsQ0FBQztRQUM1QyxrQkFBYSxHQUFHLE1BQU0sQ0FBQyxDQUFDLENBQUMsQ0FBQztLQUMzQjs4R0FIWSxvQkFBb0I7a0hBQXBCLG9CQUFvQjs7MkZBQXBCLG9CQUFvQjtrQkFEaEMsVUFBVSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluamVjdGFibGUsIHNpZ25hbCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgQVhNZWRpYVZpZXdlckRhdGEgfSBmcm9tICcuL21lZGlhLXZpZXdlci10eXBlcyc7XG5cbkBJbmplY3RhYmxlKClcbmV4cG9ydCBjbGFzcyBBWE1lZGlhVmlld2VyU2VydmljZSB7XG4gIGRhdGFBcnJheSA9IHNpZ25hbDxBWE1lZGlhVmlld2VyRGF0YVtdPihbXSk7XG4gIHNlbGVjdGVkSW5kZXggPSBzaWduYWwoMCk7XG59XG4iXX0=
|
@@ -825,10 +825,10 @@ class MXBaseComponent {
|
|
825
825
|
this._domService = inject(AXDomService);
|
826
826
|
this._id = this._domService.generateElementId();
|
827
827
|
/**
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
828
|
+
* Fired when an option related to the component changes.
|
829
|
+
*
|
830
|
+
* @event
|
831
|
+
*/
|
832
832
|
this.onOptionChanged = new EventEmitter();
|
833
833
|
}
|
834
834
|
get id() {
|