@acorex/components 19.2.0 → 19.3.0-next.0
Sign up to get free protection for your applications and to get access to all the features.
- package/common/lib/classes/components.class.d.ts +1 -0
- package/decorators/lib/components/close-button.component.d.ts +2 -1
- package/fesm2022/acorex-components-action-sheet.mjs +1 -1
- package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
- package/fesm2022/acorex-components-common.mjs.map +1 -1
- package/fesm2022/acorex-components-decorators.mjs +21 -5
- package/fesm2022/acorex-components-decorators.mjs.map +1 -1
- package/fesm2022/acorex-components-grid-layout-builder.mjs +286 -23
- package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-components-media-viewer.mjs +245 -75
- package/fesm2022/acorex-components-media-viewer.mjs.map +1 -1
- package/fesm2022/acorex-components-notification.mjs +1 -1
- package/fesm2022/acorex-components-notification.mjs.map +1 -1
- package/fesm2022/acorex-components-pdf-reader.mjs +39 -0
- package/fesm2022/acorex-components-pdf-reader.mjs.map +1 -0
- package/fesm2022/acorex-components-popup.mjs +1 -1
- package/fesm2022/acorex-components-popup.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +1 -1
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/fesm2022/acorex-components-tabs.mjs +9 -8
- package/fesm2022/acorex-components-tabs.mjs.map +1 -1
- package/fesm2022/acorex-components-toast.mjs +136 -123
- package/fesm2022/acorex-components-toast.mjs.map +1 -1
- package/fesm2022/acorex-components-video-player.mjs +37 -0
- package/fesm2022/acorex-components-video-player.mjs.map +1 -0
- package/grid-layout-builder/lib/grid-layout-container.component.d.ts +183 -1
- package/grid-layout-builder/lib/grid-layout-widget.component.d.ts +84 -1
- package/media-viewer/index.d.ts +0 -1
- package/media-viewer/lib/media-viewer-container/media-viewer-container.component.d.ts +21 -6
- package/media-viewer/lib/media-viewer-tools/file-info/file-info.component.d.ts +1 -2
- package/media-viewer/lib/media-viewer-tools/pdf-reader/pdf-reader.component.d.ts +3 -3
- package/media-viewer/lib/media-viewer-tools/video-player/video-player.component.d.ts +3 -3
- package/media-viewer/lib/media-viewer.module.d.ts +17 -15
- package/package.json +9 -1
- package/pdf-reader/README.md +3 -0
- package/pdf-reader/index.d.ts +2 -0
- package/pdf-reader/lib/pdf-reader/pdf-reader.component.d.ts +8 -0
- package/pdf-reader/lib/pdf-reader.module.d.ts +7 -0
- package/tabs/lib/tabs.class.d.ts +1 -1
- package/toast/lib/toast.class.d.ts +1 -0
- package/toast/lib/toast.component.d.ts +4 -0
- package/toast/lib/toast.service.d.ts +3 -4
- package/video-player/README.md +3 -0
- package/video-player/index.d.ts +2 -0
- package/video-player/lib/video-player/video-player.component.d.ts +6 -0
- package/video-player/lib/video-player.module.d.ts +7 -0
- package/media-viewer/lib/media-viewer-thumbnail/media-viewer-thumbnail.component.d.ts +0 -11
@@ -1,10 +1,11 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
|
-
import { signal, Injectable, inject, input, effect, Component, ChangeDetectionStrategy, ViewEncapsulation,
|
2
|
+
import { signal, Injectable, inject, input, effect, Component, ChangeDetectionStrategy, ViewEncapsulation, viewChild, HostBinding, afterNextRender, computed, NgModule, Optional, Inject } from '@angular/core';
|
3
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
4
|
+
import * as i1$1 from '@acorex/cdk/carousel';
|
5
|
+
import { AXCarouselDirective } from '@acorex/cdk/carousel';
|
3
6
|
import { isBrowser } from '@acorex/core/platform';
|
4
7
|
import * as i1 from '@angular/cdk/portal';
|
5
8
|
import { ComponentPortal, CdkPortalOutlet } from '@angular/cdk/portal';
|
6
|
-
import * as i1$1 from '@angular/common';
|
7
|
-
import { CommonModule } from '@angular/common';
|
8
9
|
import * as i1$2 from '@acorex/components/decorators';
|
9
10
|
import { AXDecoratorModule } from '@acorex/components/decorators';
|
10
11
|
import * as i1$3 from '@acorex/components/button';
|
@@ -13,7 +14,11 @@ import * as i2 from '@acorex/components/image';
|
|
13
14
|
import { AXImageModule } from '@acorex/components/image';
|
14
15
|
import * as i3 from '@acorex/components/loading';
|
15
16
|
import { AXLoadingModule } from '@acorex/components/loading';
|
16
|
-
import
|
17
|
+
import * as i1$4 from '@acorex/components/pdf-reader';
|
18
|
+
import { AXPdfReaderModule } from '@acorex/components/pdf-reader';
|
19
|
+
import * as i1$5 from '@acorex/components/video-player';
|
20
|
+
import { AXVideoPlayerModule } from '@acorex/components/video-player';
|
21
|
+
import { CommonModule } from '@angular/common';
|
17
22
|
import { FormsModule } from '@angular/forms';
|
18
23
|
|
19
24
|
class AXMediaViewerService {
|
@@ -70,37 +75,219 @@ class AXMediaViewerSliderComponent {
|
|
70
75
|
}
|
71
76
|
}
|
72
77
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMediaViewerSliderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
73
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.0.3", type: AXMediaViewerSliderComponent, isStandalone: false, selector: "ax-media-viewer-slider", inputs: { dataObject: { classPropertyName: "dataObject", publicName: "dataObject", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<ng-template [cdkPortalOutlet]=\"portal()\" (attached)=\"_handleAttached($event)\"></ng-template>\n", styles: ["ax-media-viewer-slider{display:flex;justify-content:center;align-items:center;
|
78
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.0.3", type: AXMediaViewerSliderComponent, isStandalone: false, selector: "ax-media-viewer-slider", inputs: { dataObject: { classPropertyName: "dataObject", publicName: "dataObject", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<ng-template [cdkPortalOutlet]=\"portal()\" (attached)=\"_handleAttached($event)\"></ng-template>\n", styles: ["ax-media-viewer-slider{display:flex;justify-content:center;align-items:center;overflow:hidden;margin-inline:1rem;width:fit-content}\n"], dependencies: [{ kind: "directive", type: i1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
74
79
|
}
|
75
80
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMediaViewerSliderComponent, decorators: [{
|
76
81
|
type: Component,
|
77
|
-
args: [{ selector: 'ax-media-viewer-slider', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: false, template: "<ng-template [cdkPortalOutlet]=\"portal()\" (attached)=\"_handleAttached($event)\"></ng-template>\n", styles: ["ax-media-viewer-slider{display:flex;justify-content:center;align-items:center;
|
82
|
+
args: [{ selector: 'ax-media-viewer-slider', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: false, template: "<ng-template [cdkPortalOutlet]=\"portal()\" (attached)=\"_handleAttached($event)\"></ng-template>\n", styles: ["ax-media-viewer-slider{display:flex;justify-content:center;align-items:center;overflow:hidden;margin-inline:1rem;width:fit-content}\n"] }]
|
78
83
|
}], ctorParameters: () => [] });
|
79
84
|
|
80
85
|
class AXMediaViewerContainerComponent {
|
81
86
|
constructor() {
|
82
87
|
this.dataArray = input();
|
83
88
|
this.service = inject(AXMediaViewerService);
|
84
|
-
this.
|
85
|
-
this.
|
86
|
-
this.
|
87
|
-
|
88
|
-
|
89
|
+
this.sanitizer = inject(DomSanitizer);
|
90
|
+
this.thumbnail = input(false);
|
91
|
+
this.thumbnailArray = signal([]);
|
92
|
+
this.option = signal({
|
93
|
+
pagination: {
|
94
|
+
el: '.swiper-pagination',
|
95
|
+
},
|
96
|
+
autoHeight: true,
|
97
|
+
});
|
98
|
+
this.option2 = signal({
|
99
|
+
spaceBetween: 10,
|
100
|
+
autoHeight: true,
|
101
|
+
breakpoints: {
|
102
|
+
640: {
|
103
|
+
slidesPerView: 2,
|
104
|
+
spaceBetween: 20,
|
105
|
+
},
|
106
|
+
768: {
|
107
|
+
slidesPerView: 3,
|
108
|
+
spaceBetween: 40,
|
109
|
+
},
|
110
|
+
1024: {
|
111
|
+
slidesPerView: 5,
|
112
|
+
spaceBetween: 50,
|
113
|
+
},
|
114
|
+
},
|
115
|
+
watchSlidesProgress: true,
|
116
|
+
});
|
117
|
+
this.swiperRef = viewChild('f');
|
118
|
+
this.swiperRef2 = viewChild('c');
|
119
|
+
this.#eff = effect(() => {
|
120
|
+
if (this.swiperRef2()?.carousel()) {
|
121
|
+
this.option.update((prev) => ({ ...prev, thumbs: { swiper: this.swiperRef2().carousel() } }));
|
122
|
+
}
|
123
|
+
});
|
124
|
+
this.#eff2 = effect(() => {
|
125
|
+
if (this.swiperRef()?.carousel()) {
|
126
|
+
this.swiperRef().carousel().on('activeIndexChange', this.setActiveIndex.bind(this));
|
127
|
+
}
|
128
|
+
});
|
129
|
+
this.#eff3 = effect(() => {
|
130
|
+
const thumbnailArray = [];
|
131
|
+
this.dataArray().forEach((item) => {
|
132
|
+
switch (item.type) {
|
133
|
+
case 'video':
|
134
|
+
thumbnailArray.push({
|
135
|
+
id: item.id,
|
136
|
+
type: item.type,
|
137
|
+
svg: `
|
138
|
+
<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
139
|
+
<path
|
140
|
+
opacity="0.4"
|
141
|
+
fill-rule="evenodd"
|
142
|
+
clip-rule="evenodd"
|
143
|
+
d="M32.6667 58.6673C47.3941 58.6673 59.3333 46.7281 59.3333 32.0006C59.3333 17.2731 47.3941 5.33398 32.6667 5.33398C17.9391 5.33398 6 17.2731 6 32.0006C6 46.7281 17.9391 58.6673 32.6667 58.6673ZM35.7437 38.2678C39.5619 35.9057 41.4709 34.7246 41.8749 33.0534C42.0416 32.3636 42.0416 31.6377 41.8749 30.9478C41.4709 29.2766 39.5619 28.0956 35.7437 25.7335C32.0525 23.4502 30.2072 22.3085 28.7197 22.7674C28.1048 22.9571 27.5448 23.3175 27.0929 23.8138C26 25.0145 26 27.3433 26 32.0006C26 36.658 26 38.9868 27.0929 40.1873C27.5448 40.6838 28.1048 41.0441 28.7197 41.234C30.2072 41.6929 32.0525 40.551 35.7437 38.2678Z"
|
144
|
+
fill="#6D28D9"
|
145
|
+
/>
|
146
|
+
<path
|
147
|
+
d="M32.6667 58.6673C47.3943 58.6673 59.3333 46.7282 59.3333 32.0006C59.3333 17.2731 47.3943 5.33398 32.6667 5.33398C17.9391 5.33398 6 17.2731 6 32.0006C6 46.7282 17.9391 58.6673 32.6667 58.6673Z"
|
148
|
+
stroke="#6D28D9"
|
149
|
+
stroke-width="1.5"
|
150
|
+
/>
|
151
|
+
<path
|
152
|
+
d="M41.8749 33.0521C41.4709 34.7233 39.5619 35.9044 35.7437 38.2665C32.0525 40.5497 30.2072 41.6916 28.7197 41.2327C28.1048 41.0428 27.5448 40.6825 27.0929 40.186C26 38.9855 26 36.6567 26 31.9993C26 27.342 26 25.0132 27.0929 23.8125C27.5448 23.3162 28.1048 22.9558 28.7197 22.7661C30.2072 22.3072 32.0525 23.4489 35.7437 25.7322C39.5619 28.0943 41.4709 29.2753 41.8749 30.9465C42.0416 31.6364 42.0416 32.3623 41.8749 33.0521Z"
|
153
|
+
stroke="#6D28D9"
|
154
|
+
stroke-width="1.5"
|
155
|
+
stroke-linejoin="round"
|
156
|
+
/>
|
157
|
+
</svg>`,
|
158
|
+
tubmnailImage: item.thumbnail,
|
159
|
+
});
|
160
|
+
break;
|
161
|
+
case 'image':
|
162
|
+
thumbnailArray.push({
|
163
|
+
id: item.id,
|
164
|
+
type: item.type,
|
165
|
+
tubmnailImage: item.thumbnail,
|
166
|
+
svg: `
|
167
|
+
<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
168
|
+
<path
|
169
|
+
d="M7.1123 31.9993C7.1123 20.0571 7.1123 14.086 10.8223 10.376C14.5323 6.66602 20.5034 6.66602 32.4456 6.66602C44.3878 6.66602 50.359 6.66602 54.0691 10.376C57.779 14.086 57.779 20.0571 57.779 31.9993C57.779 43.9415 57.779 49.9127 54.0691 53.6228C50.359 57.3327 44.3878 57.3327 32.4456 57.3327C20.5034 57.3327 14.5323 57.3327 10.8223 53.6228C7.1123 49.9127 7.1123 43.9415 7.1123 31.9993Z"
|
170
|
+
stroke="#0D9488"
|
171
|
+
stroke-width="1.5"
|
172
|
+
/>
|
173
|
+
<path
|
174
|
+
d="M44.4453 24C46.6545 24 48.4453 22.2091 48.4453 20C48.4453 17.7909 46.6545 16 44.4453 16C42.2362 16 40.4453 17.7909 40.4453 20C40.4453 22.2091 42.2362 24 44.4453 24Z"
|
175
|
+
stroke="#0D9488"
|
176
|
+
stroke-width="1.5"
|
177
|
+
/>
|
178
|
+
<path
|
179
|
+
opacity="0.4"
|
180
|
+
fill-rule="evenodd"
|
181
|
+
clip-rule="evenodd"
|
182
|
+
d="M7.1123 31.9993C7.1123 20.0571 7.1123 14.086 10.8223 10.376C14.5323 6.66602 20.5034 6.66602 32.4456 6.66602C44.3878 6.66602 50.359 6.66602 54.0691 10.376C57.779 14.086 57.779 20.0571 57.779 31.9993C57.779 37.3372 57.779 41.4823 57.4478 44.7655C54.6288 43.2943 51.72 42.5484 48.7958 42.5516C44.5971 42.5337 40.4374 44.0428 36.5288 46.9937L32.1155 43.5572C26.1984 39.3937 18.7691 37.1903 11.1532 37.3399C10.2489 37.3377 9.34542 37.3665 8.44473 37.4263H7.12884C7.1123 35.7679 7.1123 33.9644 7.1123 31.9993ZM44.4456 23.9993C46.6547 23.9993 48.4456 22.2085 48.4456 19.9993C48.4456 17.7902 46.6547 15.9993 44.4456 15.9993C42.2366 15.9993 40.4456 17.7902 40.4456 19.9993C40.4456 22.2085 42.2366 23.9993 44.4456 23.9993Z"
|
183
|
+
fill="#0D9488"
|
184
|
+
/>
|
185
|
+
<path
|
186
|
+
d="M43.112 58.6673C41.46 52.7337 37.604 47.4195 32.116 43.5585C26.1989 39.395 18.7697 37.1915 11.1538 37.3411C10.2495 37.339 9.34601 37.3678 8.44531 37.4275"
|
187
|
+
stroke="#0D9488"
|
188
|
+
stroke-width="1.5"
|
189
|
+
stroke-linejoin="round"
|
190
|
+
/>
|
191
|
+
<path
|
192
|
+
d="M35.1123 47.9992C39.6496 44.4614 44.5376 42.6467 49.4755 42.6662C52.2755 42.6632 55.0622 43.2568 57.779 44.4304"
|
193
|
+
stroke="#0D9488"
|
194
|
+
stroke-width="1.5"
|
195
|
+
stroke-linejoin="round"
|
196
|
+
/>
|
197
|
+
</svg>`,
|
198
|
+
});
|
199
|
+
break;
|
200
|
+
case 'audio':
|
201
|
+
thumbnailArray.push({
|
202
|
+
id: item.id,
|
203
|
+
type: item.type,
|
204
|
+
tubmnailImage: item.thumbnail,
|
205
|
+
svg: `
|
206
|
+
<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
207
|
+
<path
|
208
|
+
opacity="0.4"
|
209
|
+
fill-rule="evenodd"
|
210
|
+
clip-rule="evenodd"
|
211
|
+
d="M10.7109 10.376C7.00098 14.086 7.00098 20.0571 7.00098 31.9993C7.00098 43.9415 7.00098 49.9127 10.7109 53.6228C14.4209 57.3327 20.3921 57.3327 32.3343 57.3327C44.2764 57.3327 50.2476 57.3327 53.9578 53.6228C57.6676 49.9127 57.6676 43.9415 57.6676 31.9993C57.6676 20.0571 57.6676 14.086 53.9578 10.376C50.2476 6.66602 44.2764 6.66602 32.3343 6.66602C20.3921 6.66602 14.4209 6.66602 10.7109 10.376ZM28.3343 45.3327C32.0162 45.3327 35.001 42.3479 35.001 38.666C35.001 34.9841 32.0162 31.9993 28.3343 31.9993C24.6524 31.9993 21.6676 34.9841 21.6676 38.666C21.6676 42.3479 24.6524 45.3327 28.3343 45.3327Z"
|
212
|
+
fill="#E11D48"
|
213
|
+
/>
|
214
|
+
<path
|
215
|
+
d="M7.00098 31.9993C7.00098 20.0571 7.00098 14.086 10.7109 10.376C14.4209 6.66602 20.3921 6.66602 32.3343 6.66602C44.2764 6.66602 50.2476 6.66602 53.9578 10.376C57.6676 14.086 57.6676 20.0571 57.6676 31.9993C57.6676 43.9415 57.6676 49.9127 53.9578 53.6228C50.2476 57.3327 44.2764 57.3327 32.3343 57.3327C20.3921 57.3327 14.4209 57.3327 10.7109 53.6228C7.00098 49.9127 7.00098 43.9415 7.00098 31.9993Z"
|
216
|
+
stroke="#E11D48"
|
217
|
+
stroke-width="1.5"
|
218
|
+
/>
|
219
|
+
<path
|
220
|
+
d="M35.0003 38.666C35.0003 42.3479 32.0155 45.3327 28.3337 45.3327C24.6518 45.3327 21.667 42.3479 21.667 38.666C21.667 34.9841 24.6518 31.9993 28.3337 31.9993C32.0155 31.9993 35.0003 34.9841 35.0003 38.666ZM35.0003 38.666V18.666C35.8891 19.9993 36.6003 25.5993 43.0003 26.666"
|
221
|
+
stroke="#E11D48"
|
222
|
+
stroke-width="1.5"
|
223
|
+
stroke-linecap="round"
|
224
|
+
stroke-linejoin="round"
|
225
|
+
/>
|
226
|
+
</svg>`,
|
227
|
+
});
|
228
|
+
break;
|
229
|
+
default:
|
230
|
+
thumbnailArray.push({
|
231
|
+
id: item.id,
|
232
|
+
type: item.type,
|
233
|
+
tubmnailImage: item.thumbnail,
|
234
|
+
svg: `
|
235
|
+
<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
236
|
+
<path
|
237
|
+
opacity="0.4"
|
238
|
+
d="M53.3337 26.6673V35.5824C53.3337 37.7624 53.3337 38.8523 52.9278 39.8325L50.667 40.0005C43.1246 40.0005 39.3534 40.0005 37.0102 42.3437C34.667 44.6869 34.667 48.4581 34.667 56.0005L34.2329 58.3632C33.3713 58.6672 32.4307 58.6672 30.5491 58.6672C21.8958 58.6672 17.5692 58.6672 14.6385 56.3045C14.0465 55.8272 13.5072 55.2877 13.0298 54.6957C10.667 51.7651 10.667 47.4384 10.667 38.7851V26.6673C10.667 16.6107 10.667 11.5824 13.7912 8.45817C16.9154 5.33398 21.9437 5.33398 32.0003 5.33398C42.0569 5.33398 47.0854 5.33398 50.2094 8.45817C53.3337 11.5824 53.3337 16.6107 53.3337 26.6673Z"
|
239
|
+
fill="#2563EB"
|
240
|
+
/>
|
241
|
+
<path
|
242
|
+
d="M21.333 18.666H42.6663"
|
243
|
+
stroke="#2563EB"
|
244
|
+
stroke-width="1.5"
|
245
|
+
stroke-linecap="round"
|
246
|
+
stroke-linejoin="round"
|
247
|
+
/>
|
248
|
+
<path
|
249
|
+
d="M21.333 29.334H31.9997"
|
250
|
+
stroke="#2563EB"
|
251
|
+
stroke-width="1.5"
|
252
|
+
stroke-linecap="round"
|
253
|
+
stroke-linejoin="round"
|
254
|
+
/>
|
255
|
+
<path
|
256
|
+
d="M34.667 57.3339V56.0005C34.667 48.4581 34.667 44.6869 37.0102 42.3437C39.3534 40.0005 43.1246 40.0005 50.667 40.0005H52.0003M53.3337 35.5824V26.6673C53.3337 16.6107 53.3337 11.5824 50.2094 8.45817C47.0854 5.33398 42.0569 5.33398 32.0003 5.33398C21.9437 5.33398 16.9154 5.33398 13.7912 8.45817C10.667 11.5824 10.667 16.6107 10.667 26.6673V38.7851C10.667 47.4384 10.667 51.7651 13.0298 54.6957C13.5072 55.2877 14.0465 55.8272 14.6385 56.3045C17.5692 58.6672 21.8958 58.6672 30.5491 58.6672C32.4307 58.6672 33.3713 58.6672 34.2329 58.3632C34.4121 58.3 34.5875 58.2272 34.759 58.1453C35.5833 57.7512 36.2483 57.0859 37.5787 55.7557L50.2094 43.1248C51.751 41.5835 52.5217 40.8125 52.9278 39.8325C53.3337 38.8523 53.3337 37.7624 53.3337 35.5824Z"
|
257
|
+
stroke="#2563EB"
|
258
|
+
stroke-width="1.5"
|
259
|
+
stroke-linecap="round"
|
260
|
+
stroke-linejoin="round"
|
261
|
+
/>
|
262
|
+
</svg>`,
|
263
|
+
});
|
264
|
+
}
|
265
|
+
});
|
266
|
+
this.thumbnailArray.set(thumbnailArray);
|
267
|
+
});
|
268
|
+
this.#eff4 = effect(() => {
|
269
|
+
if (this.dataArray().length > 0) {
|
270
|
+
this.service.dataArray.set(this.dataArray());
|
271
|
+
}
|
89
272
|
});
|
90
273
|
}
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
274
|
+
#eff;
|
275
|
+
#eff2;
|
276
|
+
setActiveIndex(e) {
|
277
|
+
this.service.selectedIndex.set(e.activeIndex);
|
278
|
+
}
|
279
|
+
#eff3;
|
280
|
+
ngOnDestroy() {
|
281
|
+
if (this.swiperRef()?.carousel()) {
|
282
|
+
this.swiperRef().carousel().off('activeIndexChange', this.setActiveIndex.bind(this));
|
95
283
|
}
|
96
|
-
|
284
|
+
}
|
285
|
+
#eff4;
|
286
|
+
next() {
|
287
|
+
this.swiperRef().carousel().slideNext();
|
97
288
|
}
|
98
289
|
prev() {
|
99
|
-
|
100
|
-
this.service.selectedIndex.set(this.arrayLength() - 1);
|
101
|
-
return;
|
102
|
-
}
|
103
|
-
this.service.selectedIndex.update((prev) => prev - 1);
|
290
|
+
this.swiperRef().carousel().slidePrev();
|
104
291
|
}
|
105
292
|
closeHandler() {
|
106
293
|
this.service.isFullScreen.set(false);
|
@@ -111,40 +298,20 @@ class AXMediaViewerContainerComponent {
|
|
111
298
|
return 'ax-full-screen-contianer';
|
112
299
|
}
|
113
300
|
else {
|
114
|
-
return '
|
301
|
+
return '';
|
115
302
|
}
|
116
303
|
}
|
117
304
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMediaViewerContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
118
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
305
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXMediaViewerContainerComponent, isStandalone: false, selector: "ax-media-viewer-container", inputs: { dataArray: { classPropertyName: "dataArray", publicName: "dataArray", isSignal: true, isRequired: false, transformFunction: null }, thumbnail: { classPropertyName: "thumbnail", publicName: "thumbnail", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "this.__hostClass" } }, providers: [AXMediaViewerService], viewQueries: [{ propertyName: "swiperRef", first: true, predicate: ["f"], descendants: true, isSignal: true }, { propertyName: "swiperRef2", first: true, predicate: ["c"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-content select=\"ax-header\"> </ng-content>\n\n<div class=\"ax-media-viewer-slider-container\">\n <ng-content select=\"ax-suffix\"></ng-content>\n\n <div class=\"ax-carousel-container\">\n <div #f=\"axCarousel\" axCarousel [carouselOptions]=\"option()\" class=\"ax-carousel\">\n <div class=\"ax-carousel-wrapper\">\n @for (item of dataArray(); track item.id) {\n <div data-item=\"`${item.id}`\" class=\"ax-carousel-slide\">\n <ax-media-viewer-slider [dataObject]=\"item\"></ax-media-viewer-slider>\n </div>\n }\n </div>\n <div class=\"ax-carousel-pagination\"></div>\n </div>\n </div>\n\n <ng-content select=\"ax-prefix\"></ng-content>\n</div>\n\n@if (thumbnail()) {\n <div class=\"ax-carousel-thumbnail-container\">\n <div #c=\"axCarousel\" axCarousel [carouselOptions]=\"option2()\" class=\"ax-carousel\">\n <div class=\"ax-carousel-wrapper\">\n @for (item of thumbnailArray(); track item.id) {\n <div class=\"ax-carousel-slide\">\n <div [innerHTML]=\"sanitizer.bypassSecurityTrustHtml(item.svg)\"></div>\n <div class=\"thumbnail-backdrop {{ item.type }}\"></div>\n @if (item.tubmnailImage) {\n <div class=\"ax-thumbnail-image-contianer\">\n <img [src]=\"item.tubmnailImage\" alt=\"thumbnail\" />\n </div>\n }\n </div>\n }\n </div>\n </div>\n </div>\n}\n", styles: ["ax-media-viewer-container{overflow:hidden;border-radius:var(--ax-rounded-border-default);border:1px solid rgb(var(--ax-color-border-default))}ax-media-viewer-container.ax-full-screen-contianer{position:fixed;top:0;left:0;z-index:50;width:100vw;height:100vh;display:flex;flex-direction:column;justify-content:space-between;background-color:rgb(var(--ax-color-background-default))}ax-media-viewer-container.ax-full-screen-contianer .ax-carousel-thumbnail-container,ax-media-viewer-container.ax-full-screen-contianer ax-header{background-color:rgb(var(--ax-color-background-default))}ax-media-viewer-container .ax-media-viewer-slider-container{display:flex;justify-content:center;align-items:center;padding:1rem;background-color:rgb(var(--ax-color-background-default))}ax-media-viewer-container .ax-media-viewer-slider-container .ax-carousel-container{position:relative;width:100%;overflow:hidden}ax-media-viewer-container .ax-media-viewer-slider-container .ax-carousel-slide{display:flex;justify-content:center;align-items:center}ax-media-viewer-container .ax-carousel-thumbnail-container{border-top:1px solid rgb(var(--ax-color-border-default));padding:1rem}ax-media-viewer-container .ax-carousel-thumbnail-container .ax-carousel-slide{cursor:pointer;max-width:9rem;aspect-ratio:1.3;overflow:hidden;border-radius:var(--ax-rounded-border-default);opacity:.4}ax-media-viewer-container .ax-carousel-thumbnail-container .ax-carousel-slide.swiper-slide-thumb-active{opacity:1}ax-media-viewer-container .ax-carousel-thumbnail-container .ax-carousel-slide svg{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:100}ax-media-viewer-container .ax-carousel-thumbnail-container .ax-carousel-slide .thumbnail-backdrop{height:100%;width:100%;position:absolute;top:0;z-index:20;opacity:30%;background-color:#2563eb}ax-media-viewer-container .ax-carousel-thumbnail-container .ax-carousel-slide .thumbnail-backdrop.video{background-color:#6d28d9}ax-media-viewer-container .ax-carousel-thumbnail-container .ax-carousel-slide .thumbnail-backdrop.image{background-color:#0d9488}ax-media-viewer-container .ax-carousel-thumbnail-container .ax-carousel-slide .thumbnail-backdrop.audio{background-color:#e11d48}ax-media-viewer-container .ax-carousel-thumbnail-container .ax-carousel-slide .ax-thumbnail-image-contianer{width:100%;height:100%}ax-media-viewer-container .ax-carousel-thumbnail-container .ax-carousel-slide .ax-thumbnail-image-contianer img{object-position:center;object-fit:cover;width:100%;height:100%}ax-media-viewer-container ax-header{border-bottom:1px solid rgb(var(--ax-color-border-default));padding:.5rem;display:flex;justify-content:space-between;align-items:center}\n"], dependencies: [{ kind: "directive", type: i1$1.AXCarouselDirective, selector: "[axCarousel]", inputs: ["carouselOptions"], exportAs: ["axCarousel"] }, { kind: "component", type: AXMediaViewerSliderComponent, selector: "ax-media-viewer-slider", inputs: ["dataObject"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
119
306
|
}
|
120
307
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMediaViewerContainerComponent, decorators: [{
|
121
308
|
type: Component,
|
122
|
-
args: [{ selector: 'ax-media-viewer-container', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [AXMediaViewerService], standalone: false, template: "<ng-content select=\"ax-header\"> </ng-content>\n\n<div class=\"ax-media-viewer-slider-container\">\n <ng-content select=\"ax-suffix\"></ng-content>\n\n <ax-media-viewer-slider [dataObject]=\"
|
123
|
-
}],
|
309
|
+
args: [{ selector: 'ax-media-viewer-container', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [AXMediaViewerService], standalone: false, template: "<ng-content select=\"ax-header\"> </ng-content>\n\n<div class=\"ax-media-viewer-slider-container\">\n <ng-content select=\"ax-suffix\"></ng-content>\n\n <div class=\"ax-carousel-container\">\n <div #f=\"axCarousel\" axCarousel [carouselOptions]=\"option()\" class=\"ax-carousel\">\n <div class=\"ax-carousel-wrapper\">\n @for (item of dataArray(); track item.id) {\n <div data-item=\"`${item.id}`\" class=\"ax-carousel-slide\">\n <ax-media-viewer-slider [dataObject]=\"item\"></ax-media-viewer-slider>\n </div>\n }\n </div>\n <div class=\"ax-carousel-pagination\"></div>\n </div>\n </div>\n\n <ng-content select=\"ax-prefix\"></ng-content>\n</div>\n\n@if (thumbnail()) {\n <div class=\"ax-carousel-thumbnail-container\">\n <div #c=\"axCarousel\" axCarousel [carouselOptions]=\"option2()\" class=\"ax-carousel\">\n <div class=\"ax-carousel-wrapper\">\n @for (item of thumbnailArray(); track item.id) {\n <div class=\"ax-carousel-slide\">\n <div [innerHTML]=\"sanitizer.bypassSecurityTrustHtml(item.svg)\"></div>\n <div class=\"thumbnail-backdrop {{ item.type }}\"></div>\n @if (item.tubmnailImage) {\n <div class=\"ax-thumbnail-image-contianer\">\n <img [src]=\"item.tubmnailImage\" alt=\"thumbnail\" />\n </div>\n }\n </div>\n }\n </div>\n </div>\n </div>\n}\n", styles: ["ax-media-viewer-container{overflow:hidden;border-radius:var(--ax-rounded-border-default);border:1px solid rgb(var(--ax-color-border-default))}ax-media-viewer-container.ax-full-screen-contianer{position:fixed;top:0;left:0;z-index:50;width:100vw;height:100vh;display:flex;flex-direction:column;justify-content:space-between;background-color:rgb(var(--ax-color-background-default))}ax-media-viewer-container.ax-full-screen-contianer .ax-carousel-thumbnail-container,ax-media-viewer-container.ax-full-screen-contianer ax-header{background-color:rgb(var(--ax-color-background-default))}ax-media-viewer-container .ax-media-viewer-slider-container{display:flex;justify-content:center;align-items:center;padding:1rem;background-color:rgb(var(--ax-color-background-default))}ax-media-viewer-container .ax-media-viewer-slider-container .ax-carousel-container{position:relative;width:100%;overflow:hidden}ax-media-viewer-container .ax-media-viewer-slider-container .ax-carousel-slide{display:flex;justify-content:center;align-items:center}ax-media-viewer-container .ax-carousel-thumbnail-container{border-top:1px solid rgb(var(--ax-color-border-default));padding:1rem}ax-media-viewer-container .ax-carousel-thumbnail-container .ax-carousel-slide{cursor:pointer;max-width:9rem;aspect-ratio:1.3;overflow:hidden;border-radius:var(--ax-rounded-border-default);opacity:.4}ax-media-viewer-container .ax-carousel-thumbnail-container .ax-carousel-slide.swiper-slide-thumb-active{opacity:1}ax-media-viewer-container .ax-carousel-thumbnail-container .ax-carousel-slide svg{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:100}ax-media-viewer-container .ax-carousel-thumbnail-container .ax-carousel-slide .thumbnail-backdrop{height:100%;width:100%;position:absolute;top:0;z-index:20;opacity:30%;background-color:#2563eb}ax-media-viewer-container .ax-carousel-thumbnail-container .ax-carousel-slide .thumbnail-backdrop.video{background-color:#6d28d9}ax-media-viewer-container .ax-carousel-thumbnail-container .ax-carousel-slide .thumbnail-backdrop.image{background-color:#0d9488}ax-media-viewer-container .ax-carousel-thumbnail-container .ax-carousel-slide .thumbnail-backdrop.audio{background-color:#e11d48}ax-media-viewer-container .ax-carousel-thumbnail-container .ax-carousel-slide .ax-thumbnail-image-contianer{width:100%;height:100%}ax-media-viewer-container .ax-carousel-thumbnail-container .ax-carousel-slide .ax-thumbnail-image-contianer img{object-position:center;object-fit:cover;width:100%;height:100%}ax-media-viewer-container ax-header{border-bottom:1px solid rgb(var(--ax-color-border-default));padding:.5rem;display:flex;justify-content:space-between;align-items:center}\n"] }]
|
310
|
+
}], propDecorators: { __hostClass: [{
|
124
311
|
type: HostBinding,
|
125
312
|
args: ['class']
|
126
313
|
}] } });
|
127
314
|
|
128
|
-
class AXMediaViewerThumbnailComponent {
|
129
|
-
constructor() {
|
130
|
-
this.service = inject(AXMediaViewerService);
|
131
|
-
this.data = signal([]);
|
132
|
-
afterNextRender(() => {
|
133
|
-
this.data.set(this.service.dataArray());
|
134
|
-
});
|
135
|
-
}
|
136
|
-
clickHandler(e, i) {
|
137
|
-
e.target.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'nearest' });
|
138
|
-
this.service.selectedIndex.set(i);
|
139
|
-
}
|
140
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMediaViewerThumbnailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
141
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXMediaViewerThumbnailComponent, isStandalone: false, selector: "ax-media-viewer-thumbnail", ngImport: i0, template: "@for (item of data(); track $index) {\n <div\n class=\"ax-thumbnail\"\n (click)=\"clickHandler($event, $index)\"\n [ngClass]=\"$index === service.selectedIndex() && 'active'\"\n >\n @switch (item.type) {\n @case ('video') {\n <svg width=\"65\" height=\"64\" viewBox=\"0 0 65 64\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n opacity=\"0.4\"\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M32.6667 58.6673C47.3941 58.6673 59.3333 46.7281 59.3333 32.0006C59.3333 17.2731 47.3941 5.33398 32.6667 5.33398C17.9391 5.33398 6 17.2731 6 32.0006C6 46.7281 17.9391 58.6673 32.6667 58.6673ZM35.7437 38.2678C39.5619 35.9057 41.4709 34.7246 41.8749 33.0534C42.0416 32.3636 42.0416 31.6377 41.8749 30.9478C41.4709 29.2766 39.5619 28.0956 35.7437 25.7335C32.0525 23.4502 30.2072 22.3085 28.7197 22.7674C28.1048 22.9571 27.5448 23.3175 27.0929 23.8138C26 25.0145 26 27.3433 26 32.0006C26 36.658 26 38.9868 27.0929 40.1873C27.5448 40.6838 28.1048 41.0441 28.7197 41.234C30.2072 41.6929 32.0525 40.551 35.7437 38.2678Z\"\n fill=\"#6D28D9\"\n />\n <path\n d=\"M32.6667 58.6673C47.3943 58.6673 59.3333 46.7282 59.3333 32.0006C59.3333 17.2731 47.3943 5.33398 32.6667 5.33398C17.9391 5.33398 6 17.2731 6 32.0006C6 46.7282 17.9391 58.6673 32.6667 58.6673Z\"\n stroke=\"#6D28D9\"\n stroke-width=\"1.5\"\n />\n <path\n d=\"M41.8749 33.0521C41.4709 34.7233 39.5619 35.9044 35.7437 38.2665C32.0525 40.5497 30.2072 41.6916 28.7197 41.2327C28.1048 41.0428 27.5448 40.6825 27.0929 40.186C26 38.9855 26 36.6567 26 31.9993C26 27.342 26 25.0132 27.0929 23.8125C27.5448 23.3162 28.1048 22.9558 28.7197 22.7661C30.2072 22.3072 32.0525 23.4489 35.7437 25.7322C39.5619 28.0943 41.4709 29.2753 41.8749 30.9465C42.0416 31.6364 42.0416 32.3623 41.8749 33.0521Z\"\n stroke=\"#6D28D9\"\n stroke-width=\"1.5\"\n stroke-linejoin=\"round\"\n />\n </svg>\n }\n @case ('image') {\n <svg width=\"65\" height=\"64\" viewBox=\"0 0 65 64\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M7.1123 31.9993C7.1123 20.0571 7.1123 14.086 10.8223 10.376C14.5323 6.66602 20.5034 6.66602 32.4456 6.66602C44.3878 6.66602 50.359 6.66602 54.0691 10.376C57.779 14.086 57.779 20.0571 57.779 31.9993C57.779 43.9415 57.779 49.9127 54.0691 53.6228C50.359 57.3327 44.3878 57.3327 32.4456 57.3327C20.5034 57.3327 14.5323 57.3327 10.8223 53.6228C7.1123 49.9127 7.1123 43.9415 7.1123 31.9993Z\"\n stroke=\"#0D9488\"\n stroke-width=\"1.5\"\n />\n <path\n d=\"M44.4453 24C46.6545 24 48.4453 22.2091 48.4453 20C48.4453 17.7909 46.6545 16 44.4453 16C42.2362 16 40.4453 17.7909 40.4453 20C40.4453 22.2091 42.2362 24 44.4453 24Z\"\n stroke=\"#0D9488\"\n stroke-width=\"1.5\"\n />\n <path\n opacity=\"0.4\"\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M7.1123 31.9993C7.1123 20.0571 7.1123 14.086 10.8223 10.376C14.5323 6.66602 20.5034 6.66602 32.4456 6.66602C44.3878 6.66602 50.359 6.66602 54.0691 10.376C57.779 14.086 57.779 20.0571 57.779 31.9993C57.779 37.3372 57.779 41.4823 57.4478 44.7655C54.6288 43.2943 51.72 42.5484 48.7958 42.5516C44.5971 42.5337 40.4374 44.0428 36.5288 46.9937L32.1155 43.5572C26.1984 39.3937 18.7691 37.1903 11.1532 37.3399C10.2489 37.3377 9.34542 37.3665 8.44473 37.4263H7.12884C7.1123 35.7679 7.1123 33.9644 7.1123 31.9993ZM44.4456 23.9993C46.6547 23.9993 48.4456 22.2085 48.4456 19.9993C48.4456 17.7902 46.6547 15.9993 44.4456 15.9993C42.2366 15.9993 40.4456 17.7902 40.4456 19.9993C40.4456 22.2085 42.2366 23.9993 44.4456 23.9993Z\"\n fill=\"#0D9488\"\n />\n <path\n d=\"M43.112 58.6673C41.46 52.7337 37.604 47.4195 32.116 43.5585C26.1989 39.395 18.7697 37.1915 11.1538 37.3411C10.2495 37.339 9.34601 37.3678 8.44531 37.4275\"\n stroke=\"#0D9488\"\n stroke-width=\"1.5\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M35.1123 47.9992C39.6496 44.4614 44.5376 42.6467 49.4755 42.6662C52.2755 42.6632 55.0622 43.2568 57.779 44.4304\"\n stroke=\"#0D9488\"\n stroke-width=\"1.5\"\n stroke-linejoin=\"round\"\n />\n </svg>\n }\n @case ('audio') {\n <svg width=\"65\" height=\"64\" viewBox=\"0 0 65 64\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n opacity=\"0.4\"\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M10.7109 10.376C7.00098 14.086 7.00098 20.0571 7.00098 31.9993C7.00098 43.9415 7.00098 49.9127 10.7109 53.6228C14.4209 57.3327 20.3921 57.3327 32.3343 57.3327C44.2764 57.3327 50.2476 57.3327 53.9578 53.6228C57.6676 49.9127 57.6676 43.9415 57.6676 31.9993C57.6676 20.0571 57.6676 14.086 53.9578 10.376C50.2476 6.66602 44.2764 6.66602 32.3343 6.66602C20.3921 6.66602 14.4209 6.66602 10.7109 10.376ZM28.3343 45.3327C32.0162 45.3327 35.001 42.3479 35.001 38.666C35.001 34.9841 32.0162 31.9993 28.3343 31.9993C24.6524 31.9993 21.6676 34.9841 21.6676 38.666C21.6676 42.3479 24.6524 45.3327 28.3343 45.3327Z\"\n fill=\"#E11D48\"\n />\n <path\n d=\"M7.00098 31.9993C7.00098 20.0571 7.00098 14.086 10.7109 10.376C14.4209 6.66602 20.3921 6.66602 32.3343 6.66602C44.2764 6.66602 50.2476 6.66602 53.9578 10.376C57.6676 14.086 57.6676 20.0571 57.6676 31.9993C57.6676 43.9415 57.6676 49.9127 53.9578 53.6228C50.2476 57.3327 44.2764 57.3327 32.3343 57.3327C20.3921 57.3327 14.4209 57.3327 10.7109 53.6228C7.00098 49.9127 7.00098 43.9415 7.00098 31.9993Z\"\n stroke=\"#E11D48\"\n stroke-width=\"1.5\"\n />\n <path\n d=\"M35.0003 38.666C35.0003 42.3479 32.0155 45.3327 28.3337 45.3327C24.6518 45.3327 21.667 42.3479 21.667 38.666C21.667 34.9841 24.6518 31.9993 28.3337 31.9993C32.0155 31.9993 35.0003 34.9841 35.0003 38.666ZM35.0003 38.666V18.666C35.8891 19.9993 36.6003 25.5993 43.0003 26.666\"\n stroke=\"#E11D48\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n }\n @default {\n <svg width=\"64\" height=\"64\" viewBox=\"0 0 64 64\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n opacity=\"0.4\"\n d=\"M53.3337 26.6673V35.5824C53.3337 37.7624 53.3337 38.8523 52.9278 39.8325L50.667 40.0005C43.1246 40.0005 39.3534 40.0005 37.0102 42.3437C34.667 44.6869 34.667 48.4581 34.667 56.0005L34.2329 58.3632C33.3713 58.6672 32.4307 58.6672 30.5491 58.6672C21.8958 58.6672 17.5692 58.6672 14.6385 56.3045C14.0465 55.8272 13.5072 55.2877 13.0298 54.6957C10.667 51.7651 10.667 47.4384 10.667 38.7851V26.6673C10.667 16.6107 10.667 11.5824 13.7912 8.45817C16.9154 5.33398 21.9437 5.33398 32.0003 5.33398C42.0569 5.33398 47.0854 5.33398 50.2094 8.45817C53.3337 11.5824 53.3337 16.6107 53.3337 26.6673Z\"\n fill=\"#2563EB\"\n />\n <path\n d=\"M21.333 18.666H42.6663\"\n stroke=\"#2563EB\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M21.333 29.334H31.9997\"\n stroke=\"#2563EB\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M34.667 57.3339V56.0005C34.667 48.4581 34.667 44.6869 37.0102 42.3437C39.3534 40.0005 43.1246 40.0005 50.667 40.0005H52.0003M53.3337 35.5824V26.6673C53.3337 16.6107 53.3337 11.5824 50.2094 8.45817C47.0854 5.33398 42.0569 5.33398 32.0003 5.33398C21.9437 5.33398 16.9154 5.33398 13.7912 8.45817C10.667 11.5824 10.667 16.6107 10.667 26.6673V38.7851C10.667 47.4384 10.667 51.7651 13.0298 54.6957C13.5072 55.2877 14.0465 55.8272 14.6385 56.3045C17.5692 58.6672 21.8958 58.6672 30.5491 58.6672C32.4307 58.6672 33.3713 58.6672 34.2329 58.3632C34.4121 58.3 34.5875 58.2272 34.759 58.1453C35.5833 57.7512 36.2483 57.0859 37.5787 55.7557L50.2094 43.1248C51.751 41.5835 52.5217 40.8125 52.9278 39.8325C53.3337 38.8523 53.3337 37.7624 53.3337 35.5824Z\"\n stroke=\"#2563EB\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n }\n }\n <div class=\"thumbnail-backdrop {{ item.type }}\"></div>\n @if (item.thumbnail) {\n <img [src]=\"item.thumbnail\" alt=\"thumbnail\" />\n }\n </div>\n}\n", styles: ["ax-media-viewer-thumbnail{padding:1rem 0;display:flex;gap:1rem;align-items:center;justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;width:100%;margin-inline:.5rem}ax-media-viewer-thumbnail .ax-thumbnail{cursor:pointer;min-width:9.75rem;aspect-ratio:1.3;overflow:hidden;border-radius:var(--ax-rounded-border-default);position:relative}ax-media-viewer-thumbnail .ax-thumbnail svg{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:100}ax-media-viewer-thumbnail .ax-thumbnail .thumbnail-backdrop{height:100%;width:100%;position:absolute;top:0;z-index:20;opacity:30%;background-color:#2563eb}ax-media-viewer-thumbnail .ax-thumbnail .thumbnail-backdrop.video{background-color:#6d28d9}ax-media-viewer-thumbnail .ax-thumbnail .thumbnail-backdrop.image{background-color:#0d9488}ax-media-viewer-thumbnail .ax-thumbnail .thumbnail-backdrop.audio{background-color:#e11d48}ax-media-viewer-thumbnail .ax-thumbnail img{object-position:center;object-fit:cover;height:100%;width:100%;position:absolute;top:0;z-index:10}ax-media-viewer-thumbnail .ax-thumbnail.active{border:2px solid rgb(var(--ax-color-primary-500))}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
142
|
-
}
|
143
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMediaViewerThumbnailComponent, decorators: [{
|
144
|
-
type: Component,
|
145
|
-
args: [{ selector: 'ax-media-viewer-thumbnail', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: false, template: "@for (item of data(); track $index) {\n <div\n class=\"ax-thumbnail\"\n (click)=\"clickHandler($event, $index)\"\n [ngClass]=\"$index === service.selectedIndex() && 'active'\"\n >\n @switch (item.type) {\n @case ('video') {\n <svg width=\"65\" height=\"64\" viewBox=\"0 0 65 64\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n opacity=\"0.4\"\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M32.6667 58.6673C47.3941 58.6673 59.3333 46.7281 59.3333 32.0006C59.3333 17.2731 47.3941 5.33398 32.6667 5.33398C17.9391 5.33398 6 17.2731 6 32.0006C6 46.7281 17.9391 58.6673 32.6667 58.6673ZM35.7437 38.2678C39.5619 35.9057 41.4709 34.7246 41.8749 33.0534C42.0416 32.3636 42.0416 31.6377 41.8749 30.9478C41.4709 29.2766 39.5619 28.0956 35.7437 25.7335C32.0525 23.4502 30.2072 22.3085 28.7197 22.7674C28.1048 22.9571 27.5448 23.3175 27.0929 23.8138C26 25.0145 26 27.3433 26 32.0006C26 36.658 26 38.9868 27.0929 40.1873C27.5448 40.6838 28.1048 41.0441 28.7197 41.234C30.2072 41.6929 32.0525 40.551 35.7437 38.2678Z\"\n fill=\"#6D28D9\"\n />\n <path\n d=\"M32.6667 58.6673C47.3943 58.6673 59.3333 46.7282 59.3333 32.0006C59.3333 17.2731 47.3943 5.33398 32.6667 5.33398C17.9391 5.33398 6 17.2731 6 32.0006C6 46.7282 17.9391 58.6673 32.6667 58.6673Z\"\n stroke=\"#6D28D9\"\n stroke-width=\"1.5\"\n />\n <path\n d=\"M41.8749 33.0521C41.4709 34.7233 39.5619 35.9044 35.7437 38.2665C32.0525 40.5497 30.2072 41.6916 28.7197 41.2327C28.1048 41.0428 27.5448 40.6825 27.0929 40.186C26 38.9855 26 36.6567 26 31.9993C26 27.342 26 25.0132 27.0929 23.8125C27.5448 23.3162 28.1048 22.9558 28.7197 22.7661C30.2072 22.3072 32.0525 23.4489 35.7437 25.7322C39.5619 28.0943 41.4709 29.2753 41.8749 30.9465C42.0416 31.6364 42.0416 32.3623 41.8749 33.0521Z\"\n stroke=\"#6D28D9\"\n stroke-width=\"1.5\"\n stroke-linejoin=\"round\"\n />\n </svg>\n }\n @case ('image') {\n <svg width=\"65\" height=\"64\" viewBox=\"0 0 65 64\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M7.1123 31.9993C7.1123 20.0571 7.1123 14.086 10.8223 10.376C14.5323 6.66602 20.5034 6.66602 32.4456 6.66602C44.3878 6.66602 50.359 6.66602 54.0691 10.376C57.779 14.086 57.779 20.0571 57.779 31.9993C57.779 43.9415 57.779 49.9127 54.0691 53.6228C50.359 57.3327 44.3878 57.3327 32.4456 57.3327C20.5034 57.3327 14.5323 57.3327 10.8223 53.6228C7.1123 49.9127 7.1123 43.9415 7.1123 31.9993Z\"\n stroke=\"#0D9488\"\n stroke-width=\"1.5\"\n />\n <path\n d=\"M44.4453 24C46.6545 24 48.4453 22.2091 48.4453 20C48.4453 17.7909 46.6545 16 44.4453 16C42.2362 16 40.4453 17.7909 40.4453 20C40.4453 22.2091 42.2362 24 44.4453 24Z\"\n stroke=\"#0D9488\"\n stroke-width=\"1.5\"\n />\n <path\n opacity=\"0.4\"\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M7.1123 31.9993C7.1123 20.0571 7.1123 14.086 10.8223 10.376C14.5323 6.66602 20.5034 6.66602 32.4456 6.66602C44.3878 6.66602 50.359 6.66602 54.0691 10.376C57.779 14.086 57.779 20.0571 57.779 31.9993C57.779 37.3372 57.779 41.4823 57.4478 44.7655C54.6288 43.2943 51.72 42.5484 48.7958 42.5516C44.5971 42.5337 40.4374 44.0428 36.5288 46.9937L32.1155 43.5572C26.1984 39.3937 18.7691 37.1903 11.1532 37.3399C10.2489 37.3377 9.34542 37.3665 8.44473 37.4263H7.12884C7.1123 35.7679 7.1123 33.9644 7.1123 31.9993ZM44.4456 23.9993C46.6547 23.9993 48.4456 22.2085 48.4456 19.9993C48.4456 17.7902 46.6547 15.9993 44.4456 15.9993C42.2366 15.9993 40.4456 17.7902 40.4456 19.9993C40.4456 22.2085 42.2366 23.9993 44.4456 23.9993Z\"\n fill=\"#0D9488\"\n />\n <path\n d=\"M43.112 58.6673C41.46 52.7337 37.604 47.4195 32.116 43.5585C26.1989 39.395 18.7697 37.1915 11.1538 37.3411C10.2495 37.339 9.34601 37.3678 8.44531 37.4275\"\n stroke=\"#0D9488\"\n stroke-width=\"1.5\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M35.1123 47.9992C39.6496 44.4614 44.5376 42.6467 49.4755 42.6662C52.2755 42.6632 55.0622 43.2568 57.779 44.4304\"\n stroke=\"#0D9488\"\n stroke-width=\"1.5\"\n stroke-linejoin=\"round\"\n />\n </svg>\n }\n @case ('audio') {\n <svg width=\"65\" height=\"64\" viewBox=\"0 0 65 64\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n opacity=\"0.4\"\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M10.7109 10.376C7.00098 14.086 7.00098 20.0571 7.00098 31.9993C7.00098 43.9415 7.00098 49.9127 10.7109 53.6228C14.4209 57.3327 20.3921 57.3327 32.3343 57.3327C44.2764 57.3327 50.2476 57.3327 53.9578 53.6228C57.6676 49.9127 57.6676 43.9415 57.6676 31.9993C57.6676 20.0571 57.6676 14.086 53.9578 10.376C50.2476 6.66602 44.2764 6.66602 32.3343 6.66602C20.3921 6.66602 14.4209 6.66602 10.7109 10.376ZM28.3343 45.3327C32.0162 45.3327 35.001 42.3479 35.001 38.666C35.001 34.9841 32.0162 31.9993 28.3343 31.9993C24.6524 31.9993 21.6676 34.9841 21.6676 38.666C21.6676 42.3479 24.6524 45.3327 28.3343 45.3327Z\"\n fill=\"#E11D48\"\n />\n <path\n d=\"M7.00098 31.9993C7.00098 20.0571 7.00098 14.086 10.7109 10.376C14.4209 6.66602 20.3921 6.66602 32.3343 6.66602C44.2764 6.66602 50.2476 6.66602 53.9578 10.376C57.6676 14.086 57.6676 20.0571 57.6676 31.9993C57.6676 43.9415 57.6676 49.9127 53.9578 53.6228C50.2476 57.3327 44.2764 57.3327 32.3343 57.3327C20.3921 57.3327 14.4209 57.3327 10.7109 53.6228C7.00098 49.9127 7.00098 43.9415 7.00098 31.9993Z\"\n stroke=\"#E11D48\"\n stroke-width=\"1.5\"\n />\n <path\n d=\"M35.0003 38.666C35.0003 42.3479 32.0155 45.3327 28.3337 45.3327C24.6518 45.3327 21.667 42.3479 21.667 38.666C21.667 34.9841 24.6518 31.9993 28.3337 31.9993C32.0155 31.9993 35.0003 34.9841 35.0003 38.666ZM35.0003 38.666V18.666C35.8891 19.9993 36.6003 25.5993 43.0003 26.666\"\n stroke=\"#E11D48\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n }\n @default {\n <svg width=\"64\" height=\"64\" viewBox=\"0 0 64 64\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n opacity=\"0.4\"\n d=\"M53.3337 26.6673V35.5824C53.3337 37.7624 53.3337 38.8523 52.9278 39.8325L50.667 40.0005C43.1246 40.0005 39.3534 40.0005 37.0102 42.3437C34.667 44.6869 34.667 48.4581 34.667 56.0005L34.2329 58.3632C33.3713 58.6672 32.4307 58.6672 30.5491 58.6672C21.8958 58.6672 17.5692 58.6672 14.6385 56.3045C14.0465 55.8272 13.5072 55.2877 13.0298 54.6957C10.667 51.7651 10.667 47.4384 10.667 38.7851V26.6673C10.667 16.6107 10.667 11.5824 13.7912 8.45817C16.9154 5.33398 21.9437 5.33398 32.0003 5.33398C42.0569 5.33398 47.0854 5.33398 50.2094 8.45817C53.3337 11.5824 53.3337 16.6107 53.3337 26.6673Z\"\n fill=\"#2563EB\"\n />\n <path\n d=\"M21.333 18.666H42.6663\"\n stroke=\"#2563EB\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M21.333 29.334H31.9997\"\n stroke=\"#2563EB\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M34.667 57.3339V56.0005C34.667 48.4581 34.667 44.6869 37.0102 42.3437C39.3534 40.0005 43.1246 40.0005 50.667 40.0005H52.0003M53.3337 35.5824V26.6673C53.3337 16.6107 53.3337 11.5824 50.2094 8.45817C47.0854 5.33398 42.0569 5.33398 32.0003 5.33398C21.9437 5.33398 16.9154 5.33398 13.7912 8.45817C10.667 11.5824 10.667 16.6107 10.667 26.6673V38.7851C10.667 47.4384 10.667 51.7651 13.0298 54.6957C13.5072 55.2877 14.0465 55.8272 14.6385 56.3045C17.5692 58.6672 21.8958 58.6672 30.5491 58.6672C32.4307 58.6672 33.3713 58.6672 34.2329 58.3632C34.4121 58.3 34.5875 58.2272 34.759 58.1453C35.5833 57.7512 36.2483 57.0859 37.5787 55.7557L50.2094 43.1248C51.751 41.5835 52.5217 40.8125 52.9278 39.8325C53.3337 38.8523 53.3337 37.7624 53.3337 35.5824Z\"\n stroke=\"#2563EB\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n }\n }\n <div class=\"thumbnail-backdrop {{ item.type }}\"></div>\n @if (item.thumbnail) {\n <img [src]=\"item.thumbnail\" alt=\"thumbnail\" />\n }\n </div>\n}\n", styles: ["ax-media-viewer-thumbnail{padding:1rem 0;display:flex;gap:1rem;align-items:center;justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;width:100%;margin-inline:.5rem}ax-media-viewer-thumbnail .ax-thumbnail{cursor:pointer;min-width:9.75rem;aspect-ratio:1.3;overflow:hidden;border-radius:var(--ax-rounded-border-default);position:relative}ax-media-viewer-thumbnail .ax-thumbnail svg{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:100}ax-media-viewer-thumbnail .ax-thumbnail .thumbnail-backdrop{height:100%;width:100%;position:absolute;top:0;z-index:20;opacity:30%;background-color:#2563eb}ax-media-viewer-thumbnail .ax-thumbnail .thumbnail-backdrop.video{background-color:#6d28d9}ax-media-viewer-thumbnail .ax-thumbnail .thumbnail-backdrop.image{background-color:#0d9488}ax-media-viewer-thumbnail .ax-thumbnail .thumbnail-backdrop.audio{background-color:#e11d48}ax-media-viewer-thumbnail .ax-thumbnail img{object-position:center;object-fit:cover;height:100%;width:100%;position:absolute;top:0;z-index:10}ax-media-viewer-thumbnail .ax-thumbnail.active{border:2px solid rgb(var(--ax-color-primary-500))}\n"] }]
|
146
|
-
}], ctorParameters: () => [] });
|
147
|
-
|
148
315
|
class AXMediaViewerBaseComponent {
|
149
316
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMediaViewerBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
150
317
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMediaViewerBaseComponent }); }
|
@@ -162,22 +329,20 @@ class AXAudioPlayerComponent extends AXMediaViewerBaseComponent {
|
|
162
329
|
});
|
163
330
|
}
|
164
331
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXAudioPlayerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
165
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXAudioPlayerComponent, isStandalone: false, selector: "ax-audio-player", usesInheritance: true, ngImport: i0, template: "<audio
|
332
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXAudioPlayerComponent, isStandalone: false, selector: "ax-audio-player", usesInheritance: true, ngImport: i0, template: "<audio class=\"ax-audio-player-tag\" controls [src]=\"dataObject()?.url\"></audio>\n", styles: ["ax-audio-player{display:flex;justify-content:center;align-items:center;width:100%;min-height:50vh}ax-audio-player .ax-audio-player-tag{max-width:100%;min-width:7rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
166
333
|
}
|
167
334
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXAudioPlayerComponent, decorators: [{
|
168
335
|
type: Component,
|
169
|
-
args: [{ selector: 'ax-audio-player', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: false, template: "<audio
|
336
|
+
args: [{ selector: 'ax-audio-player', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: false, template: "<audio class=\"ax-audio-player-tag\" controls [src]=\"dataObject()?.url\"></audio>\n", styles: ["ax-audio-player{display:flex;justify-content:center;align-items:center;width:100%;min-height:50vh}ax-audio-player .ax-audio-player-tag{max-width:100%;min-width:7rem}\n"] }]
|
170
337
|
}], ctorParameters: () => [] });
|
171
338
|
|
172
339
|
class AXFileInfoComponent {
|
173
340
|
constructor() {
|
174
341
|
this.service = inject(AXMediaViewerService);
|
175
|
-
this.infoData =
|
176
|
-
|
177
|
-
this.infoData.set(this.service.dataArray()[this.service.selectedIndex()]);
|
342
|
+
this.infoData = computed(() => {
|
343
|
+
return this.service.dataArray()[this.service.selectedIndex()];
|
178
344
|
});
|
179
345
|
}
|
180
|
-
#effect;
|
181
346
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXFileInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
182
347
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXFileInfoComponent, isStandalone: false, selector: "ax-file-info", ngImport: i0, template: "<div class=\"ax-info-contianer\">\n @if (infoData()?.name) {\n <div class=\"ax-name-info\">\n @switch (infoData()?.type) {\n @case ('video') {\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 65 64\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n opacity=\"0.4\"\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M32.6667 58.6673C47.3941 58.6673 59.3333 46.7281 59.3333 32.0006C59.3333 17.2731 47.3941 5.33398 32.6667 5.33398C17.9391 5.33398 6 17.2731 6 32.0006C6 46.7281 17.9391 58.6673 32.6667 58.6673ZM35.7437 38.2678C39.5619 35.9057 41.4709 34.7246 41.8749 33.0534C42.0416 32.3636 42.0416 31.6377 41.8749 30.9478C41.4709 29.2766 39.5619 28.0956 35.7437 25.7335C32.0525 23.4502 30.2072 22.3085 28.7197 22.7674C28.1048 22.9571 27.5448 23.3175 27.0929 23.8138C26 25.0145 26 27.3433 26 32.0006C26 36.658 26 38.9868 27.0929 40.1873C27.5448 40.6838 28.1048 41.0441 28.7197 41.234C30.2072 41.6929 32.0525 40.551 35.7437 38.2678Z\"\n />\n <path\n d=\"M32.6667 58.6673C47.3943 58.6673 59.3333 46.7282 59.3333 32.0006C59.3333 17.2731 47.3943 5.33398 32.6667 5.33398C17.9391 5.33398 6 17.2731 6 32.0006C6 46.7282 17.9391 58.6673 32.6667 58.6673Z\"\n stroke=\"#6B7280\"\n stroke-width=\"1.5\"\n />\n <path\n d=\"M41.8749 33.0521C41.4709 34.7233 39.5619 35.9044 35.7437 38.2665C32.0525 40.5497 30.2072 41.6916 28.7197 41.2327C28.1048 41.0428 27.5448 40.6825 27.0929 40.186C26 38.9855 26 36.6567 26 31.9993C26 27.342 26 25.0132 27.0929 23.8125C27.5448 23.3162 28.1048 22.9558 28.7197 22.7661C30.2072 22.3072 32.0525 23.4489 35.7437 25.7322C39.5619 28.0943 41.4709 29.2753 41.8749 30.9465C42.0416 31.6364 42.0416 32.3623 41.8749 33.0521Z\"\n stroke=\"#6B7280\"\n stroke-width=\"1.5\"\n stroke-linejoin=\"round\"\n />\n </svg>\n }\n @case ('image') {\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 65 64\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M7.1123 31.9993C7.1123 20.0571 7.1123 14.086 10.8223 10.376C14.5323 6.66602 20.5034 6.66602 32.4456 6.66602C44.3878 6.66602 50.359 6.66602 54.0691 10.376C57.779 14.086 57.779 20.0571 57.779 31.9993C57.779 43.9415 57.779 49.9127 54.0691 53.6228C50.359 57.3327 44.3878 57.3327 32.4456 57.3327C20.5034 57.3327 14.5323 57.3327 10.8223 53.6228C7.1123 49.9127 7.1123 43.9415 7.1123 31.9993Z\"\n stroke=\"#6B7280\"\n stroke-width=\"1.5\"\n />\n <path\n d=\"M44.4453 24C46.6545 24 48.4453 22.2091 48.4453 20C48.4453 17.7909 46.6545 16 44.4453 16C42.2362 16 40.4453 17.7909 40.4453 20C40.4453 22.2091 42.2362 24 44.4453 24Z\"\n stroke=\"#6B7280\"\n stroke-width=\"1.5\"\n />\n <path\n opacity=\"0.4\"\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M7.1123 31.9993C7.1123 20.0571 7.1123 14.086 10.8223 10.376C14.5323 6.66602 20.5034 6.66602 32.4456 6.66602C44.3878 6.66602 50.359 6.66602 54.0691 10.376C57.779 14.086 57.779 20.0571 57.779 31.9993C57.779 37.3372 57.779 41.4823 57.4478 44.7655C54.6288 43.2943 51.72 42.5484 48.7958 42.5516C44.5971 42.5337 40.4374 44.0428 36.5288 46.9937L32.1155 43.5572C26.1984 39.3937 18.7691 37.1903 11.1532 37.3399C10.2489 37.3377 9.34542 37.3665 8.44473 37.4263H7.12884C7.1123 35.7679 7.1123 33.9644 7.1123 31.9993ZM44.4456 23.9993C46.6547 23.9993 48.4456 22.2085 48.4456 19.9993C48.4456 17.7902 46.6547 15.9993 44.4456 15.9993C42.2366 15.9993 40.4456 17.7902 40.4456 19.9993C40.4456 22.2085 42.2366 23.9993 44.4456 23.9993Z\"\n />\n <path\n d=\"M43.112 58.6673C41.46 52.7337 37.604 47.4195 32.116 43.5585C26.1989 39.395 18.7697 37.1915 11.1538 37.3411C10.2495 37.339 9.34601 37.3678 8.44531 37.4275\"\n stroke=\"#6B7280\"\n stroke-width=\"1.5\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M35.1123 47.9992C39.6496 44.4614 44.5376 42.6467 49.4755 42.6662C52.2755 42.6632 55.0622 43.2568 57.779 44.4304\"\n stroke=\"#6B7280\"\n stroke-width=\"1.5\"\n stroke-linejoin=\"round\"\n />\n </svg>\n }\n @case ('audio') {\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 65 64\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n opacity=\"0.4\"\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M10.7109 10.376C7.00098 14.086 7.00098 20.0571 7.00098 31.9993C7.00098 43.9415 7.00098 49.9127 10.7109 53.6228C14.4209 57.3327 20.3921 57.3327 32.3343 57.3327C44.2764 57.3327 50.2476 57.3327 53.9578 53.6228C57.6676 49.9127 57.6676 43.9415 57.6676 31.9993C57.6676 20.0571 57.6676 14.086 53.9578 10.376C50.2476 6.66602 44.2764 6.66602 32.3343 6.66602C20.3921 6.66602 14.4209 6.66602 10.7109 10.376ZM28.3343 45.3327C32.0162 45.3327 35.001 42.3479 35.001 38.666C35.001 34.9841 32.0162 31.9993 28.3343 31.9993C24.6524 31.9993 21.6676 34.9841 21.6676 38.666C21.6676 42.3479 24.6524 45.3327 28.3343 45.3327Z\"\n />\n <path\n d=\"M7.00098 31.9993C7.00098 20.0571 7.00098 14.086 10.7109 10.376C14.4209 6.66602 20.3921 6.66602 32.3343 6.66602C44.2764 6.66602 50.2476 6.66602 53.9578 10.376C57.6676 14.086 57.6676 20.0571 57.6676 31.9993C57.6676 43.9415 57.6676 49.9127 53.9578 53.6228C50.2476 57.3327 44.2764 57.3327 32.3343 57.3327C20.3921 57.3327 14.4209 57.3327 10.7109 53.6228C7.00098 49.9127 7.00098 43.9415 7.00098 31.9993Z\"\n stroke=\"#6B7280\"\n stroke-width=\"1.5\"\n />\n <path\n d=\"M35.0003 38.666C35.0003 42.3479 32.0155 45.3327 28.3337 45.3327C24.6518 45.3327 21.667 42.3479 21.667 38.666C21.667 34.9841 24.6518 31.9993 28.3337 31.9993C32.0155 31.9993 35.0003 34.9841 35.0003 38.666ZM35.0003 38.666V18.666C35.8891 19.9993 36.6003 25.5993 43.0003 26.666\"\n stroke=\"#6B7280\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n }\n @default {\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 64 64\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n opacity=\"0.4\"\n d=\"M53.3337 26.6673V35.5824C53.3337 37.7624 53.3337 38.8523 52.9278 39.8325L50.667 40.0005C43.1246 40.0005 39.3534 40.0005 37.0102 42.3437C34.667 44.6869 34.667 48.4581 34.667 56.0005L34.2329 58.3632C33.3713 58.6672 32.4307 58.6672 30.5491 58.6672C21.8958 58.6672 17.5692 58.6672 14.6385 56.3045C14.0465 55.8272 13.5072 55.2877 13.0298 54.6957C10.667 51.7651 10.667 47.4384 10.667 38.7851V26.6673C10.667 16.6107 10.667 11.5824 13.7912 8.45817C16.9154 5.33398 21.9437 5.33398 32.0003 5.33398C42.0569 5.33398 47.0854 5.33398 50.2094 8.45817C53.3337 11.5824 53.3337 16.6107 53.3337 26.6673Z\"\n />\n <path\n d=\"M21.333 18.666H42.6663\"\n stroke=\"#6B7280\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M21.333 29.334H31.9997\"\n stroke=\"#6B7280\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M34.667 57.3339V56.0005C34.667 48.4581 34.667 44.6869 37.0102 42.3437C39.3534 40.0005 43.1246 40.0005 50.667 40.0005H52.0003M53.3337 35.5824V26.6673C53.3337 16.6107 53.3337 11.5824 50.2094 8.45817C47.0854 5.33398 42.0569 5.33398 32.0003 5.33398C21.9437 5.33398 16.9154 5.33398 13.7912 8.45817C10.667 11.5824 10.667 16.6107 10.667 26.6673V38.7851C10.667 47.4384 10.667 51.7651 13.0298 54.6957C13.5072 55.2877 14.0465 55.8272 14.6385 56.3045C17.5692 58.6672 21.8958 58.6672 30.5491 58.6672C32.4307 58.6672 33.3713 58.6672 34.2329 58.3632C34.4121 58.3 34.5875 58.2272 34.759 58.1453C35.5833 57.7512 36.2483 57.0859 37.5787 55.7557L50.2094 43.1248C51.751 41.5835 52.5217 40.8125 52.9278 39.8325C53.3337 38.8523 53.3337 37.7624 53.3337 35.5824Z\"\n stroke=\"#6B7280\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n }\n }\n <ax-text>{{ infoData().name }}</ax-text>\n </div>\n }\n\n @if (infoData()?.size) {\n <div class=\"ax-size-info\">\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M8 22V17C8 15.8954 8.89543 15 10 15H14C15.1046 15 16 15.8954 16 17V22\"\n stroke=\"#6B7280\"\n stroke-width=\"1.5\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M10 7H14\"\n stroke=\"#6B7280\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M3 20V4C3 2.89543 3.89543 2 5 2H14.2759C14.7438 2 15.1968 2.16403 15.5563 2.46356L20.2804 6.40031C20.7364 6.7803 21 7.34319 21 7.93675V20C21 21.1046 20.1046 22 19 22H5C3.89543 22 3 21.1046 3 20Z\"\n stroke=\"#6B7280\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n <ax-text>{{ infoData().size }}</ax-text>\n </div>\n }\n</div>\n", styles: [".ax-info-contianer{display:flex;justify-content:flex-start;align-items:center}.ax-info-contianer ax-text{color:rgba(var(--ax-color-neutral-500));margin-inline-start:.3rem}.ax-info-contianer .ax-name-info,.ax-info-contianer .ax-size-info{display:flex;justify-content:center;align-items:center}.ax-info-contianer .ax-name-info{margin-inline-end:1rem}\n"], dependencies: [{ kind: "component", type: i1$2.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" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
183
348
|
}
|
@@ -210,20 +375,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
210
375
|
args: [{ selector: 'ax-image-viewer', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: false, template: "<ax-image alt=\"image\" [src]=\"this.message?.url\">\n <ax-loading></ax-loading>\n <ax-placeholder></ax-placeholder>\n</ax-image>\n", styles: ["ax-image-viewer{display:flex;justify-content:center;align-items:center;width:100%}\n"] }]
|
211
376
|
}] });
|
212
377
|
|
213
|
-
class
|
378
|
+
class PdfComponent extends AXMediaViewerBaseComponent {
|
214
379
|
constructor() {
|
215
380
|
super(...arguments);
|
216
381
|
this.sanitizer = inject(DomSanitizer);
|
217
382
|
}
|
218
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
219
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type:
|
383
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: PdfComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
384
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: PdfComponent, isStandalone: false, selector: "ax-pdf", usesInheritance: true, ngImport: i0, template: "<ax-pdf-reader [src]=\"sanitizer.bypassSecurityTrustResourceUrl(this.message.url)\"> </ax-pdf-reader>\n", styles: ["ax-pdf{width:100%}ax-pdf iframe{min-width:30vw;min-height:calc(60vh - 2rem)}\n"], dependencies: [{ kind: "component", type: i1$4.AXPdfReaderComponent, selector: "ax-pdf-reader", inputs: ["src"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
220
385
|
}
|
221
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
386
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: PdfComponent, decorators: [{
|
222
387
|
type: Component,
|
223
|
-
args: [{ selector: 'ax-pdf
|
388
|
+
args: [{ selector: 'ax-pdf', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: false, template: "<ax-pdf-reader [src]=\"sanitizer.bypassSecurityTrustResourceUrl(this.message.url)\"> </ax-pdf-reader>\n", styles: ["ax-pdf{width:100%}ax-pdf iframe{min-width:30vw;min-height:calc(60vh - 2rem)}\n"] }]
|
224
389
|
}] });
|
225
390
|
|
226
|
-
class
|
391
|
+
class VideoPlayerComponent extends AXMediaViewerBaseComponent {
|
227
392
|
constructor() {
|
228
393
|
super();
|
229
394
|
this.dataObject = signal(null);
|
@@ -231,22 +396,21 @@ class AXVideoPlayerComponent extends AXMediaViewerBaseComponent {
|
|
231
396
|
this.dataObject.set(this.message);
|
232
397
|
});
|
233
398
|
}
|
234
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
235
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type:
|
399
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: VideoPlayerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
400
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: VideoPlayerComponent, isStandalone: false, selector: "ax-video", usesInheritance: true, ngImport: i0, template: "<ax-video-player [src]=\"dataObject()?.url\"></ax-video-player>\n", styles: ["ax-video-player{display:flex;justify-content:center;align-items:center;width:100%}\n"], dependencies: [{ kind: "component", type: i1$5.AXVideoPlayerComponent, selector: "ax-video-player", inputs: ["src"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
236
401
|
}
|
237
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
402
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: VideoPlayerComponent, decorators: [{
|
238
403
|
type: Component,
|
239
|
-
args: [{ selector: 'ax-video
|
404
|
+
args: [{ selector: 'ax-video', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: false, template: "<ax-video-player [src]=\"dataObject()?.url\"></ax-video-player>\n", styles: ["ax-video-player{display:flex;justify-content:center;align-items:center;width:100%}\n"] }]
|
240
405
|
}], ctorParameters: () => [] });
|
241
406
|
|
242
407
|
const COMPONENT = [
|
243
408
|
AXMediaViewerContainerComponent,
|
244
409
|
AXMediaViewerSliderComponent,
|
245
|
-
AXMediaViewerThumbnailComponent,
|
246
410
|
AXAudioPlayerComponent,
|
247
411
|
AXImageViewerComponent,
|
248
|
-
|
249
|
-
|
412
|
+
PdfComponent,
|
413
|
+
VideoPlayerComponent,
|
250
414
|
AXFileInfoComponent,
|
251
415
|
AXFullScreenComponent,
|
252
416
|
];
|
@@ -258,6 +422,9 @@ const MODULES = [
|
|
258
422
|
FormsModule,
|
259
423
|
AXImageModule,
|
260
424
|
AXLoadingModule,
|
425
|
+
AXCarouselDirective,
|
426
|
+
AXPdfReaderModule,
|
427
|
+
AXVideoPlayerModule,
|
261
428
|
];
|
262
429
|
class AXMediaViewerModule {
|
263
430
|
constructor(instances) {
|
@@ -285,11 +452,11 @@ class AXMediaViewerModule {
|
|
285
452
|
});
|
286
453
|
registry.register({
|
287
454
|
name: 'pdf',
|
288
|
-
component:
|
455
|
+
component: PdfComponent,
|
289
456
|
});
|
290
457
|
registry.register({
|
291
458
|
name: 'video',
|
292
|
-
component:
|
459
|
+
component: VideoPlayerComponent,
|
293
460
|
});
|
294
461
|
},
|
295
462
|
deps: [AXMediaViewerTypeRegistryService],
|
@@ -318,11 +485,10 @@ class AXMediaViewerModule {
|
|
318
485
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMediaViewerModule, deps: [{ token: 'AXMediaViewerFactory', optional: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
319
486
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMediaViewerModule, declarations: [AXMediaViewerContainerComponent,
|
320
487
|
AXMediaViewerSliderComponent,
|
321
|
-
AXMediaViewerThumbnailComponent,
|
322
488
|
AXAudioPlayerComponent,
|
323
489
|
AXImageViewerComponent,
|
324
|
-
|
325
|
-
|
490
|
+
PdfComponent,
|
491
|
+
VideoPlayerComponent,
|
326
492
|
AXFileInfoComponent,
|
327
493
|
AXFullScreenComponent], imports: [CommonModule,
|
328
494
|
AXButtonModule,
|
@@ -330,13 +496,15 @@ class AXMediaViewerModule {
|
|
330
496
|
CdkPortalOutlet,
|
331
497
|
FormsModule,
|
332
498
|
AXImageModule,
|
333
|
-
AXLoadingModule
|
499
|
+
AXLoadingModule,
|
500
|
+
AXCarouselDirective,
|
501
|
+
AXPdfReaderModule,
|
502
|
+
AXVideoPlayerModule], exports: [AXMediaViewerContainerComponent,
|
334
503
|
AXMediaViewerSliderComponent,
|
335
|
-
AXMediaViewerThumbnailComponent,
|
336
504
|
AXAudioPlayerComponent,
|
337
505
|
AXImageViewerComponent,
|
338
|
-
|
339
|
-
|
506
|
+
PdfComponent,
|
507
|
+
VideoPlayerComponent,
|
340
508
|
AXFileInfoComponent,
|
341
509
|
AXFullScreenComponent] }); }
|
342
510
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMediaViewerModule, imports: [CommonModule,
|
@@ -344,7 +512,9 @@ class AXMediaViewerModule {
|
|
344
512
|
AXDecoratorModule,
|
345
513
|
FormsModule,
|
346
514
|
AXImageModule,
|
347
|
-
AXLoadingModule
|
515
|
+
AXLoadingModule,
|
516
|
+
AXPdfReaderModule,
|
517
|
+
AXVideoPlayerModule] }); }
|
348
518
|
}
|
349
519
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMediaViewerModule, decorators: [{
|
350
520
|
type: NgModule,
|
@@ -364,5 +534,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
364
534
|
* Generated bundle index. Do not edit.
|
365
535
|
*/
|
366
536
|
|
367
|
-
export { AXAudioPlayerComponent, AXFileInfoComponent, AXFullScreenComponent, AXImageViewerComponent, AXMediaViewerBaseComponent, AXMediaViewerContainerComponent, AXMediaViewerModule, AXMediaViewerSliderComponent,
|
537
|
+
export { AXAudioPlayerComponent, AXFileInfoComponent, AXFullScreenComponent, AXImageViewerComponent, AXMediaViewerBaseComponent, AXMediaViewerContainerComponent, AXMediaViewerModule, AXMediaViewerSliderComponent, PdfComponent, VideoPlayerComponent };
|
368
538
|
//# sourceMappingURL=acorex-components-media-viewer.mjs.map
|