nextalys-carousel 0.0.73 → 0.0.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common-types.d.ts +2 -0
- package/common-types.d.ts.map +1 -1
- package/fesm2022/nextalys-carousel-lib-nxs-carousel-mock.mjs +6 -43
- package/fesm2022/nextalys-carousel-lib-nxs-carousel-mock.mjs.map +1 -1
- package/fesm2022/nextalys-carousel-lib-nxs-carousel.mjs +154 -144
- package/fesm2022/nextalys-carousel-lib-nxs-carousel.mjs.map +1 -1
- package/fesm2022/nextalys-carousel.mjs +4 -1
- package/fesm2022/nextalys-carousel.mjs.map +1 -1
- package/lib/nxs-carousel/common-types.d.ts +2 -0
- package/lib/nxs-carousel/common-types.d.ts.map +1 -1
- package/lib/nxs-carousel/nxs-carousel/nxs-carousel-dialog.component.d.ts +1 -1
- package/lib/nxs-carousel/nxs-carousel/nxs-carousel-dialog.component.d.ts.map +1 -1
- package/lib/nxs-carousel/nxs-carousel/nxs-carousel-types.d.ts +5 -2
- package/lib/nxs-carousel/nxs-carousel/nxs-carousel-types.d.ts.map +1 -1
- package/lib/nxs-carousel/nxs-carousel/nxs-carousel.component.d.ts +16 -11
- package/lib/nxs-carousel/nxs-carousel/nxs-carousel.component.d.ts.map +1 -1
- package/lib/nxs-carousel/nxs-carousel/swiper-directives.d.ts +1 -1
- package/lib/nxs-carousel/public-api-carousel.d.ts +0 -1
- package/lib/nxs-carousel/public-api-carousel.d.ts.map +1 -1
- package/lib/nxs-carousel-mock/common-types.d.ts +2 -0
- package/lib/nxs-carousel-mock/common-types.d.ts.map +1 -1
- package/lib/nxs-carousel-mock/nxs-carousel-mock/nxs-carousel-mock.component.d.ts +1 -1
- package/lib/nxs-carousel-mock/nxs-carousel-mock/swiper-directives.d.ts +1 -1
- package/lib/nxs-carousel-mock/public-api-carousel-mock.d.ts +0 -1
- package/lib/nxs-carousel-mock/public-api-carousel-mock.d.ts.map +1 -1
- package/package.json +2 -2
- package/lib/nxs-carousel/nxs-carousel/nxs-carousel.module.d.ts +0 -22
- package/lib/nxs-carousel/nxs-carousel/nxs-carousel.module.d.ts.map +0 -1
- package/lib/nxs-carousel-mock/nxs-carousel-mock/nxs-carousel-mock.module.d.ts +0 -13
- package/lib/nxs-carousel-mock/nxs-carousel-mock/nxs-carousel-mock.module.d.ts.map +0 -1
package/common-types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InjectionToken } from "@angular/core";
|
|
1
2
|
export interface NxsCarouselImage {
|
|
2
3
|
alt?: string;
|
|
3
4
|
src: string;
|
|
@@ -5,4 +6,5 @@ export interface NxsCarouselImage {
|
|
|
5
6
|
export declare class NxsCarouselModuleConfig {
|
|
6
7
|
debug?: boolean;
|
|
7
8
|
}
|
|
9
|
+
export declare const NxsCarouselOptionsToken: InjectionToken<NxsCarouselModuleConfig>;
|
|
8
10
|
//# sourceMappingURL=common-types.d.ts.map
|
package/common-types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-types.d.ts","sourceRoot":"","sources":["../lib/common-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"common-types.d.ts","sourceRoot":"","sources":["../lib/common-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,WAAW,gBAAgB;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACf;AACD,qBAAa,uBAAuB;IAChC,KAAK,CAAC,EAAE,OAAO,CAAS;CAC3B;AAED,eAAO,MAAM,uBAAuB,yCAAyE,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, Component, ViewEncapsulation, Input, Output, Directive
|
|
3
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { EventEmitter, Component, ViewEncapsulation, Input, Output, Directive } from '@angular/core';
|
|
4
3
|
|
|
5
4
|
class NxsCarouselComponent {
|
|
6
5
|
lazy = true;
|
|
@@ -21,7 +20,7 @@ class NxsCarouselComponent {
|
|
|
21
20
|
previous() {
|
|
22
21
|
}
|
|
23
22
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NxsCarouselComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
24
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: NxsCarouselComponent, isStandalone:
|
|
23
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: NxsCarouselComponent, isStandalone: true, selector: "nxs-carousel", inputs: { lazy: "lazy", images: "images", options: "options", hasHtmlContent: "hasHtmlContent" }, outputs: { slideChange: "slideChange", slideClick: "slideClick" }, ngImport: i0, template: '<div style="height:70px;width:100%;"></div>', isInline: true, encapsulation: i0.ViewEncapsulation.None });
|
|
25
24
|
}
|
|
26
25
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NxsCarouselComponent, decorators: [{
|
|
27
26
|
type: Component,
|
|
@@ -30,7 +29,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
|
|
|
30
29
|
template: '<div style="height:70px;width:100%;"></div>',
|
|
31
30
|
// styleUrls: ['./nxs-carousel.component.scss'],
|
|
32
31
|
encapsulation: ViewEncapsulation.None,
|
|
33
|
-
standalone:
|
|
32
|
+
standalone: true,
|
|
34
33
|
}]
|
|
35
34
|
}], ctorParameters: () => [], propDecorators: { lazy: [{
|
|
36
35
|
type: Input
|
|
@@ -46,51 +45,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
|
|
|
46
45
|
type: Output
|
|
47
46
|
}] } });
|
|
48
47
|
|
|
49
|
-
class NxsCarouselModuleConfig {
|
|
50
|
-
debug = false;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
48
|
class NxsSwiperTemplateDirective {
|
|
54
49
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NxsSwiperTemplateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
55
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.5", type: NxsSwiperTemplateDirective, isStandalone:
|
|
50
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.5", type: NxsSwiperTemplateDirective, isStandalone: true, selector: "[nxsSwiperTemplate]", ngImport: i0 });
|
|
56
51
|
}
|
|
57
52
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NxsSwiperTemplateDirective, decorators: [{
|
|
58
53
|
type: Directive,
|
|
59
54
|
args: [{
|
|
60
55
|
selector: '[nxsSwiperTemplate]',
|
|
61
|
-
standalone:
|
|
62
|
-
}]
|
|
63
|
-
}] });
|
|
64
|
-
|
|
65
|
-
class NxsCarouselModule {
|
|
66
|
-
static forRoot(config) {
|
|
67
|
-
return {
|
|
68
|
-
ngModule: NxsCarouselModule,
|
|
69
|
-
providers: [
|
|
70
|
-
{ provide: NxsCarouselModuleConfig, useValue: config },
|
|
71
|
-
]
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NxsCarouselModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
75
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.5", ngImport: i0, type: NxsCarouselModule, declarations: [NxsCarouselComponent,
|
|
76
|
-
NxsSwiperTemplateDirective], imports: [CommonModule], exports: [NxsCarouselComponent,
|
|
77
|
-
NxsSwiperTemplateDirective] });
|
|
78
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NxsCarouselModule, imports: [CommonModule] });
|
|
79
|
-
}
|
|
80
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NxsCarouselModule, decorators: [{
|
|
81
|
-
type: NgModule,
|
|
82
|
-
args: [{
|
|
83
|
-
imports: [
|
|
84
|
-
CommonModule,
|
|
85
|
-
],
|
|
86
|
-
declarations: [
|
|
87
|
-
NxsCarouselComponent,
|
|
88
|
-
NxsSwiperTemplateDirective,
|
|
89
|
-
],
|
|
90
|
-
exports: [
|
|
91
|
-
NxsCarouselComponent,
|
|
92
|
-
NxsSwiperTemplateDirective,
|
|
93
|
-
],
|
|
56
|
+
standalone: true
|
|
94
57
|
}]
|
|
95
58
|
}] });
|
|
96
59
|
|
|
@@ -98,5 +61,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
|
|
|
98
61
|
* Generated bundle index. Do not edit.
|
|
99
62
|
*/
|
|
100
63
|
|
|
101
|
-
export { NxsCarouselComponent,
|
|
64
|
+
export { NxsCarouselComponent, NxsSwiperTemplateDirective };
|
|
102
65
|
//# sourceMappingURL=nextalys-carousel-lib-nxs-carousel-mock.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nextalys-carousel-lib-nxs-carousel-mock.mjs","sources":["../../lib/nxs-carousel-mock/nxs-carousel-mock.component.ts","../../lib/
|
|
1
|
+
{"version":3,"file":"nextalys-carousel-lib-nxs-carousel-mock.mjs","sources":["../../lib/nxs-carousel-mock/nxs-carousel-mock.component.ts","../../lib/nxs-carousel-mock/swiper-directives.ts","../../lib/nextalys-carousel-lib-nxs-carousel-mock.ts"],"sourcesContent":["import { Component, ViewEncapsulation, Input, Output, EventEmitter } from '@angular/core';\nimport { NxsCarouselImage } from '../common-types';\nimport { NxsCarouselOptions } from './nxs-carousel-types';\n@Component({\n selector: 'nxs-carousel',\n template: '<div style=\"height:70px;width:100%;\"></div>',\n // styleUrls: ['./nxs-carousel.component.scss'],\n encapsulation: ViewEncapsulation.None,\n standalone: true,\n})\nexport class NxsCarouselComponent {\n @Input()\n lazy = true;\n @Input()\n public images: NxsCarouselImage[];\n @Input()\n options: NxsCarouselOptions = null;\n @Input()\n hasHtmlContent = false;\n slidesCount: number = 0;\n @Output()\n slideChange = new EventEmitter<number>();\n public currentSlide = 0;\n @Output()\n slideClick = new EventEmitter<MouseEvent | TouchEvent | PointerEvent>();\n isBrowser = false;\n\n constructor(\n ) {\n\n }\n goToSlide(index: number, speed?: number) {\n }\n next() {\n }\n previous() {\n }\n}\n","import { Directive } from \"@angular/core\";\n\n@Directive({\n selector: '[nxsSwiperTemplate]',\n standalone: true\n})\nexport class NxsSwiperTemplateDirective { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api-carousel-mock';\n"],"names":[],"mappings":";;;MAUa,oBAAoB,CAAA;IAE7B,IAAI,GAAG,IAAI;AAEJ,IAAA,MAAM;IAEb,OAAO,GAAuB,IAAI;IAElC,cAAc,GAAG,KAAK;IACtB,WAAW,GAAW,CAAC;AAEvB,IAAA,WAAW,GAAG,IAAI,YAAY,EAAU;IACjC,YAAY,GAAG,CAAC;AAEvB,IAAA,UAAU,GAAG,IAAI,YAAY,EAA0C;IACvE,SAAS,GAAG,KAAK;AAEjB,IAAA,WAAA,GAAA;;IAIA,SAAS,CAAC,KAAa,EAAE,KAAc,EAAA;;IAEvC,IAAI,GAAA;;IAEJ,QAAQ,GAAA;;uGAzBC,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAApB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,oBAAoB,6OALnB,6CAA6C,EAAA,QAAA,EAAA,IAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA;;2FAK9C,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAPhC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,cAAc;AACxB,oBAAA,QAAQ,EAAE,6CAA6C;;oBAEvD,aAAa,EAAE,iBAAiB,CAAC,IAAI;AACrC,oBAAA,UAAU,EAAE,IAAI;AACnB,iBAAA;wDAGG,IAAI,EAAA,CAAA;sBADH;gBAGM,MAAM,EAAA,CAAA;sBADZ;gBAGD,OAAO,EAAA,CAAA;sBADN;gBAGD,cAAc,EAAA,CAAA;sBADb;gBAID,WAAW,EAAA,CAAA;sBADV;gBAID,UAAU,EAAA,CAAA;sBADT;;;MCjBQ,0BAA0B,CAAA;uGAA1B,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAA1B,0BAA0B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAJtC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,qBAAqB;AAC/B,oBAAA,UAAU,EAAE;AACf,iBAAA;;;ACLD;;AAEG;;;;"}
|
|
@@ -1,41 +1,89 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Directive,
|
|
2
|
+
import { Directive, InjectionToken, Component, ViewEncapsulation, Inject, EventEmitter, PLATFORM_ID, TemplateRef, CUSTOM_ELEMENTS_SCHEMA, Optional, ContentChildren, Input, ViewChild, Output } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/material/dialog';
|
|
4
4
|
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
5
|
-
import * as
|
|
5
|
+
import * as i2$1 from '@angular/common';
|
|
6
6
|
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
|
7
7
|
import { EventsCollector } from 'nextalys-js-helpers/dist/events';
|
|
8
|
-
import SwiperCore, { Navigation, Pagination, Autoplay, Lazy, Thumbs } from 'swiper';
|
|
9
|
-
import * as i4 from 'swiper/angular';
|
|
10
|
-
import { SwiperModule } from 'swiper/angular';
|
|
11
8
|
import { NxsEvent } from 'nextalys-js-helpers';
|
|
12
9
|
import * as i2 from '@angular/material/icon';
|
|
13
10
|
import { MatIconModule } from '@angular/material/icon';
|
|
14
|
-
import * as i3
|
|
11
|
+
import * as i3 from '@angular/material/button';
|
|
15
12
|
import { MatButtonModule } from '@angular/material/button';
|
|
16
13
|
|
|
17
14
|
class NxsSwiperTemplateDirective {
|
|
18
15
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NxsSwiperTemplateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
19
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.5", type: NxsSwiperTemplateDirective, isStandalone:
|
|
16
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.5", type: NxsSwiperTemplateDirective, isStandalone: true, selector: "[nxsSwiperTemplate]", ngImport: i0 });
|
|
20
17
|
}
|
|
21
18
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NxsSwiperTemplateDirective, decorators: [{
|
|
22
19
|
type: Directive,
|
|
23
20
|
args: [{
|
|
24
21
|
selector: '[nxsSwiperTemplate]',
|
|
25
|
-
standalone:
|
|
22
|
+
standalone: true
|
|
26
23
|
}]
|
|
27
24
|
}] });
|
|
28
25
|
|
|
29
26
|
class NxsCarouselModuleConfig {
|
|
30
27
|
debug = false;
|
|
31
28
|
}
|
|
29
|
+
const NxsCarouselOptionsToken = new InjectionToken('NxsCarouselOptionsToken');
|
|
32
30
|
|
|
33
31
|
class CarouselEvents {
|
|
34
32
|
static openCarouselDialog = new NxsEvent();
|
|
35
33
|
}
|
|
36
34
|
|
|
35
|
+
class NxsCarouselDialogComponent {
|
|
36
|
+
data;
|
|
37
|
+
dialogRef;
|
|
38
|
+
static dialogOpened = false;
|
|
39
|
+
wrapperClass = 'nxs-carousel-wrapper';
|
|
40
|
+
constructor(data, dialogRef) {
|
|
41
|
+
this.data = data;
|
|
42
|
+
this.dialogRef = dialogRef;
|
|
43
|
+
if (data.wrapperClass)
|
|
44
|
+
this.wrapperClass += ' ' + data.wrapperClass;
|
|
45
|
+
this.dialogRef.afterOpened().subscribe(() => {
|
|
46
|
+
NxsCarouselDialogComponent.dialogOpened = true;
|
|
47
|
+
});
|
|
48
|
+
this.dialogRef.afterClosed().subscribe(() => {
|
|
49
|
+
NxsCarouselDialogComponent.dialogOpened = false;
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NxsCarouselDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
53
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: NxsCarouselDialogComponent, isStandalone: true, selector: "nxs-carousel-dialog", ngImport: i0, template: `
|
|
54
|
+
<div class="nxs-carousel-dialog-flex-wrapper">
|
|
55
|
+
<div class="nxs-carousel-dialog-header">
|
|
56
|
+
<button (click)="dialogRef.close()" mat-icon-button><mat-icon>close</mat-icon></button>
|
|
57
|
+
</div>
|
|
58
|
+
<div [class]="wrapperClass">
|
|
59
|
+
<nxs-carousel [options]="data.options" [images]="data.images"></nxs-carousel>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
`, isInline: true, styles: [".nxs-carousel-dialog{max-width:98vw!important;width:98vw;height:98vh}.nxs-carousel-dialog .nxs-carousel-dialog-flex-wrapper{display:flex;height:100%;flex-direction:column}.nxs-carousel-dialog .nxs-carousel-dialog-flex-wrapper .nxs-carousel-wrapper{flex:auto}.nxs-carousel-dialog .nxs-carousel-dialog-header{position:relative;display:flex;justify-content:flex-end;padding-bottom:8px}.nxs-carousel-dialog mat-dialog-container{padding:20px}.nxs-carousel-dialog .nxs-carousel-wrapper{width:100%;margin:auto;height:100%}\n"], dependencies: [{ kind: "component", type: NxsCarouselComponent, selector: "nxs-carousel", inputs: ["lazy", "images", "options", "hasHtmlContent"], outputs: ["slideChange", "slideClick"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
63
|
+
}
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NxsCarouselDialogComponent, decorators: [{
|
|
65
|
+
type: Component,
|
|
66
|
+
args: [{ selector: 'nxs-carousel-dialog', template: `
|
|
67
|
+
<div class="nxs-carousel-dialog-flex-wrapper">
|
|
68
|
+
<div class="nxs-carousel-dialog-header">
|
|
69
|
+
<button (click)="dialogRef.close()" mat-icon-button><mat-icon>close</mat-icon></button>
|
|
70
|
+
</div>
|
|
71
|
+
<div [class]="wrapperClass">
|
|
72
|
+
<nxs-carousel [options]="data.options" [images]="data.images"></nxs-carousel>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
`, encapsulation: ViewEncapsulation.None, standalone: true, imports: [
|
|
76
|
+
NxsCarouselComponent,
|
|
77
|
+
MatIconModule,
|
|
78
|
+
MatButtonModule,
|
|
79
|
+
], styles: [".nxs-carousel-dialog{max-width:98vw!important;width:98vw;height:98vh}.nxs-carousel-dialog .nxs-carousel-dialog-flex-wrapper{display:flex;height:100%;flex-direction:column}.nxs-carousel-dialog .nxs-carousel-dialog-flex-wrapper .nxs-carousel-wrapper{flex:auto}.nxs-carousel-dialog .nxs-carousel-dialog-header{position:relative;display:flex;justify-content:flex-end;padding-bottom:8px}.nxs-carousel-dialog mat-dialog-container{padding:20px}.nxs-carousel-dialog .nxs-carousel-wrapper{width:100%;margin:auto;height:100%}\n"] }]
|
|
80
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
81
|
+
type: Inject,
|
|
82
|
+
args: [MAT_DIALOG_DATA]
|
|
83
|
+
}] }, { type: i1.MatDialogRef }] });
|
|
84
|
+
|
|
37
85
|
// install Swiper modules
|
|
38
|
-
SwiperCore.use([Navigation, Pagination, Autoplay, Lazy, Thumbs]);
|
|
86
|
+
// SwiperCore.use([Navigation, Pagination, Autoplay, Lazy, Thumbs]);
|
|
39
87
|
class NxsCarouselComponent {
|
|
40
88
|
matDialog;
|
|
41
89
|
zone;
|
|
@@ -43,7 +91,6 @@ class NxsCarouselComponent {
|
|
|
43
91
|
config;
|
|
44
92
|
swiperReady = false;
|
|
45
93
|
contents;
|
|
46
|
-
swiperComponent;
|
|
47
94
|
lazy = true;
|
|
48
95
|
eventsCollector = new EventsCollector();
|
|
49
96
|
images;
|
|
@@ -54,21 +101,15 @@ class NxsCarouselComponent {
|
|
|
54
101
|
this.setThumbnailsOptions();
|
|
55
102
|
}
|
|
56
103
|
hasHtmlContent = false;
|
|
57
|
-
swiperInstance;
|
|
58
104
|
thumbnailsSwiperInstance;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
if (this.options?.loop) {
|
|
64
|
-
return (this.swiperInstance?.slides?.length || 0) - 2;
|
|
65
|
-
}
|
|
66
|
-
return this.swiperInstance?.slides?.length || 0;
|
|
67
|
-
}
|
|
105
|
+
swiperInstance;
|
|
106
|
+
swiperRef;
|
|
107
|
+
slidesCount = 0;
|
|
68
108
|
slideChange = new EventEmitter();
|
|
69
109
|
currentSlide = 0;
|
|
70
110
|
slideClick = new EventEmitter();
|
|
71
111
|
isBrowser = false;
|
|
112
|
+
static openDialogSubscribed = false;
|
|
72
113
|
constructor(matDialog, zone, platformId, config) {
|
|
73
114
|
this.matDialog = matDialog;
|
|
74
115
|
this.zone = zone;
|
|
@@ -79,9 +120,22 @@ class NxsCarouselComponent {
|
|
|
79
120
|
this.isBrowser = isPlatformBrowser(this.platformId);
|
|
80
121
|
this.log('constructor - isBrowser', this.isBrowser);
|
|
81
122
|
this.options = this.setDefaultOptions(undefined, false);
|
|
123
|
+
NxsCarouselComponent.subscribeToOpenDialog(matDialog);
|
|
124
|
+
}
|
|
125
|
+
static subscribeToOpenDialog(matDialog) {
|
|
126
|
+
if (this.openDialogSubscribed) {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
this.openDialogSubscribed = true;
|
|
130
|
+
CarouselEvents.openCarouselDialog.subscribe((data) => {
|
|
131
|
+
if (NxsCarouselDialogComponent.dialogOpened) {
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
matDialog.open(NxsCarouselDialogComponent, data);
|
|
135
|
+
});
|
|
82
136
|
}
|
|
83
137
|
log(...args) {
|
|
84
|
-
if (!this.config
|
|
138
|
+
if (!this.config?.debug)
|
|
85
139
|
return;
|
|
86
140
|
console.log('[NxsCarousel]', ...args);
|
|
87
141
|
}
|
|
@@ -90,14 +144,38 @@ class NxsCarouselComponent {
|
|
|
90
144
|
return;
|
|
91
145
|
}
|
|
92
146
|
this.eventsCollector?.unsubscribeAll();
|
|
147
|
+
this.timeoutIds?.forEach(id => {
|
|
148
|
+
try {
|
|
149
|
+
clearTimeout(id);
|
|
150
|
+
}
|
|
151
|
+
catch (error) {
|
|
152
|
+
console.log("on destroy - clear timeout ERROR ", error);
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
this.timeoutIds = [];
|
|
93
156
|
}
|
|
94
157
|
ngOnDestroy() {
|
|
95
158
|
this.destroy();
|
|
96
159
|
}
|
|
97
160
|
ngAfterViewInit() {
|
|
161
|
+
if (!this.swiperRef?.nativeElement) {
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
this.log('ngAfterViewInit - swiperRef', this.swiperRef);
|
|
165
|
+
// this.swiperInstance = this.swiperRef.nativeElement.swiper;
|
|
166
|
+
// console.log("Log ~ NxsCarouselComponent ~ ngAfterViewInit ~ this.swiperInstance:", this.swiperInstance);
|
|
98
167
|
// console.log('thi.contents', this.contents);
|
|
99
168
|
// this.initSlides();
|
|
100
169
|
// this.createSlider(true);
|
|
170
|
+
Object.assign(this.swiperRef.nativeElement, this.options);
|
|
171
|
+
this.swiperRef.nativeElement?.initialize();
|
|
172
|
+
this.swiperInstance = this.swiperRef?.nativeElement?.swiper;
|
|
173
|
+
this.onSwiper();
|
|
174
|
+
// console.log("Log ~ NxsCarouselComponent ~ ngAfterViewInit ~ setTimeout ~ this.swiperInstance:", this.swiperInstance);
|
|
175
|
+
// setTimeout(() => {
|
|
176
|
+
// this.swiperInstance = this.swiperRef.nativeElement.swiper;
|
|
177
|
+
// console.log("Log ~ NxsCarouselComponent ~ ngAfterViewInit ~ setTimeout ~ this.swiperInstance:", this.swiperInstance);
|
|
178
|
+
// });
|
|
101
179
|
}
|
|
102
180
|
getMainSliderHeight() {
|
|
103
181
|
if (!this.options)
|
|
@@ -186,7 +264,7 @@ class NxsCarouselComponent {
|
|
|
186
264
|
};
|
|
187
265
|
if (this.lazy) {
|
|
188
266
|
// Disable preloading of all images
|
|
189
|
-
this.thumbnailsOptions.preloadImages = false;
|
|
267
|
+
// this.thumbnailsOptions.preloadImages = false;
|
|
190
268
|
// Enable lazy loading
|
|
191
269
|
this.thumbnailsOptions.lazy = true;
|
|
192
270
|
}
|
|
@@ -229,21 +307,47 @@ class NxsCarouselComponent {
|
|
|
229
307
|
// this.options.thumbs = { swiper: this.thumbnailsSwiperInstance };
|
|
230
308
|
// }
|
|
231
309
|
}
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
this.swiperInstance
|
|
310
|
+
timeoutIds = [];
|
|
311
|
+
getSlidesCount() {
|
|
312
|
+
if (!this.swiperInstance?.slides?.length) {
|
|
313
|
+
return 0;
|
|
314
|
+
}
|
|
315
|
+
//TODO: gérer le loop ici
|
|
316
|
+
// if (this.swiperInstance?.lo) {
|
|
317
|
+
// return (this.swiperInstance?.slides?.length || 0) - 2;
|
|
318
|
+
// }
|
|
319
|
+
// const isLoopActive = !!this.swiperInstance?.params?.loop;
|
|
320
|
+
// if (isLoopActive) {
|
|
321
|
+
// return (this.swiperInstance?.slides?.length || 0) - (this.swiperInstance?.loopedSlides || 0) * 2;
|
|
322
|
+
// }
|
|
323
|
+
return this.swiperInstance?.slides?.length || 0;
|
|
324
|
+
}
|
|
325
|
+
onSwiper() {
|
|
326
|
+
this.log('swiper ready - instance', this.swiperInstance);
|
|
327
|
+
// this.swiperInstance = instance;
|
|
235
328
|
this.swiperInstance?.on('click', (swiperInstance, evt) => {
|
|
236
329
|
// console.log("Log ~ file: nxs-carousel.component.ts ~ line 392 ~ NxsCarouselComponent ~ this.swiperInstance.on ~ evt", evt);
|
|
237
330
|
const target = evt.target;
|
|
238
|
-
|
|
331
|
+
// console.log("Log ~ NxsCarouselComponent ~ onSwiper ~ target:", target);
|
|
332
|
+
if (target.className.indexOf('nxs-carousel-button') !== -1 || target.className.indexOf('swiper-pagination') !== -1
|
|
333
|
+
|| target.className.indexOf('swiper-button-next') !== -1 || target.className.indexOf('swiper-button-prev') !== -1
|
|
334
|
+
|| target.tagName === 'SWIPER-CONTAINER') {
|
|
239
335
|
return;
|
|
336
|
+
}
|
|
240
337
|
this.runInZone(() => {
|
|
241
338
|
this.slideClick.next(evt);
|
|
242
|
-
if (this.options.nxsfullscreenOnClick && this.images && this.images.length && !this.hasHtmlContent) {
|
|
243
|
-
|
|
244
|
-
}
|
|
339
|
+
// if (this.options.nxsfullscreenOnClick && this.images && this.images.length && !this.hasHtmlContent) {
|
|
340
|
+
// this.showFullScreenCarousel(this.images, 'fullscreen-carousel');
|
|
341
|
+
// }
|
|
245
342
|
});
|
|
246
343
|
});
|
|
344
|
+
const tId = setTimeout(() => {
|
|
345
|
+
this.slidesCount = this.getSlidesCount();
|
|
346
|
+
});
|
|
347
|
+
this.timeoutIds.push(tId);
|
|
348
|
+
this.swiperInstance?.on('slideChange', () => {
|
|
349
|
+
this.onSlideChange([this.swiperInstance]);
|
|
350
|
+
});
|
|
247
351
|
this.swiperReady = true;
|
|
248
352
|
// $('.swiper-container').on('keydown keyup', function(e){
|
|
249
353
|
// if (e.keyCode==9) $('.swiper-container')[0].scrollLeft = 0;
|
|
@@ -259,6 +363,12 @@ class NxsCarouselComponent {
|
|
|
259
363
|
// });
|
|
260
364
|
// document.querySelectorAll()
|
|
261
365
|
}
|
|
366
|
+
runOutZone(callback, ...args) {
|
|
367
|
+
if (!this.zone) {
|
|
368
|
+
callback(args);
|
|
369
|
+
}
|
|
370
|
+
return this.zone.runOutsideAngular(() => callback(args));
|
|
371
|
+
}
|
|
262
372
|
runInZone(callback, ...args) {
|
|
263
373
|
if (!this.zone) {
|
|
264
374
|
callback(args);
|
|
@@ -282,23 +392,28 @@ class NxsCarouselComponent {
|
|
|
282
392
|
this.slideChange.next(this.currentSlide);
|
|
283
393
|
});
|
|
284
394
|
}
|
|
285
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NxsCarouselComponent, deps: [{ token: i1.MatDialog }, { token: i0.NgZone }, { token: PLATFORM_ID }, { token:
|
|
286
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.5", type: NxsCarouselComponent, isStandalone: false, selector: "nxs-carousel", inputs: { lazy: "lazy", images: "images", setOptions: ["options", "setOptions"], hasHtmlContent: "hasHtmlContent" }, outputs: { slideChange: "slideChange", slideClick: "slideClick" }, queries: [{ propertyName: "contents", predicate: NxsSwiperTemplateDirective, read: TemplateRef }], viewQueries: [{ propertyName: "swiperComponent", first: true, predicate: ["swiper"], descendants: true }], ngImport: i0, template: "<div *ngIf=\"options\"\n [ngClass]=\"{'swiper-container':true,'nxs-slider-with-thumbnails':!!options.nxsThumbnails && options.nxsThumbnails.show}\"\n [style.height]=\"getMainSliderHeight()\">\n <swiper [config]=\"options\" (swiper)=\"onSwiper($event)\" (slideChange)=\"onSlideChange($event)\"\n [thumbs]=\"{ swiper: thumbnailsSwiperInstance }\">\n <ng-container *ngIf=\"hasHtmlContent\">\n <ng-template *ngFor=\"let slide of contents\" swiperSlide>\n <ng-template [ngTemplateOutlet]=\"slide\" [ngTemplateOutletContext]=\"{\n $implicit: slide\n }\"></ng-template>\n </ng-template>\n </ng-container>\n <ng-container *ngIf=\"!hasHtmlContent && images?.length\">\n <ng-template swiperSlide *ngFor=\"let slideImage of images\">\n <img [ngClass]=\"{'nxs-image-slide':true,'swiper-lazy':lazy}\"\n [attr.data-src]=\"lazy ? slideImage.src : null\" [src]=\"lazy ? null : slideImage.src\"\n [attr.alt]=\"slideImage.alt\" />\n <div *ngIf=\"lazy\" class=\"swiper-lazy-preloader swiper-lazy-preloader-black\"></div>\n </ng-template>\n </ng-container>\n </swiper>\n @if(options?.nxsShowImagesCount){\n <div class=\"nxs-image-counter\">\n {{currentSlide+1}} / {{slidesCount}}\n </div>\n }\n</div>\n\n<div *ngIf=\"thumbnailsOptions && images?.length\"\n [style.height]=\"(!!options.nxsThumbnails && options.nxsThumbnails.show && !!options.nxsThumbnails.percentHeight) ? (options.nxsThumbnails.percentHeight + '%'):''\"\n [style.top]=\"(!!options.nxsThumbnails && options.nxsThumbnails.show && !!options.nxsThumbnails.percentHeight && options.nxsThumbnails.onMainSlider) ? ('-' + (options.nxsThumbnails.percentHeight) + '%'):''\"\n [ngClass]=\"{'swiper-container':true, 'nxs-slider-thumbnails-container':true,'nxs-slider-thumbnails-on-main-slider':options.nxsThumbnails && options.nxsThumbnails.onMainSlider}\">\n <swiper [config]=\"thumbnailsOptions\" (swiper)=\"onSwiperThumbnails($event)\">\n <ng-template swiperSlide *ngFor=\"let slideImage of images\">\n <img [ngClass]=\"{'nxs-image-slide':true,'swiper-lazy':lazy}\" [attr.data-src]=\"lazy ? slideImage.src : null\"\n [src]=\"lazy ? null : slideImage.src\" [attr.alt]=\"slideImage.alt\" />\n <div *ngIf=\"lazy\" class=\"swiper-lazy-preloader swiper-lazy-preloader-black\"></div>\n </ng-template>\n </swiper>\n</div>", styles: ["nxs-carousel{display:block;height:100%;position:relative;--swiper-navigation-color: #fff;--swiper-pagination-color: #fff;--swiper-theme-color: #fff}nxs-carousel .swiper-container{width:100%;height:100%;display:block;position:relative}nxs-carousel .swiper-container swiper{height:100%}nxs-carousel .swiper-container .swiper-wrapper .swiper-slide{height:100%;position:relative;width:auto;min-height:50px;background-size:cover;background-position:center;background-repeat:no-repeat}nxs-carousel .swiper-container .nxs-image-slide{height:100%;object-fit:cover;width:100%;object-position:center}nxs-carousel .swiper-container.nxs-slider-with-thumbnails{height:80%}nxs-carousel .swiper-container.nxs-slider-thumbnails-container{height:20%;background:transparent;padding:6px 0}nxs-carousel .swiper-container.nxs-slider-thumbnails-container .swiper-slide{cursor:pointer;border-radius:6px;margin:0 6px;border:2px solid transparent}nxs-carousel .swiper-container.nxs-slider-thumbnails-container .swiper-slide.swiper-slide-thumb-active{border:2px solid lightblue}nxs-carousel .swiper-container.nxs-slider-thumbnails-on-main-slider{top:-20%}nxs-carousel .nxs-image-counter{position:absolute;top:0;right:0;color:#fff;padding:4px;font-weight:700;z-index:10}\n"], dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i4.SwiperComponent, selector: "swiper, [swiper]", inputs: ["enabled", "on", "direction", "touchEventsTarget", "initialSlide", "speed", "cssMode", "updateOnWindowResize", "resizeObserver", "nested", "focusableElements", "width", "height", "preventInteractionOnTransition", "userAgent", "url", "edgeSwipeDetection", "edgeSwipeThreshold", "freeMode", "autoHeight", "setWrapperSize", "virtualTranslate", "effect", "breakpoints", "spaceBetween", "slidesPerView", "maxBackfaceHiddenSlides", "grid", "slidesPerGroup", "slidesPerGroupSkip", "centeredSlides", "centeredSlidesBounds", "slidesOffsetBefore", "slidesOffsetAfter", "normalizeSlideIndex", "centerInsufficientSlides", "watchOverflow", "roundLengths", "touchRatio", "touchAngle", "simulateTouch", "shortSwipes", "longSwipes", "longSwipesRatio", "longSwipesMs", "followFinger", "allowTouchMove", "threshold", "touchMoveStopPropagation", "touchStartPreventDefault", "touchStartForcePreventDefault", "touchReleaseOnEdges", "uniqueNavElements", "resistance", "resistanceRatio", "watchSlidesProgress", "grabCursor", "preventClicks", "preventClicksPropagation", "slideToClickedSlide", "preloadImages", "updateOnImagesReady", "loop", "loopAdditionalSlides", "loopedSlides", "loopedSlidesLimit", "loopFillGroupWithBlank", "loopPreventsSlide", "rewind", "allowSlidePrev", "allowSlideNext", "swipeHandler", "noSwiping", "noSwipingClass", "noSwipingSelector", "passiveListeners", "containerModifierClass", "slideClass", "slideBlankClass", "slideActiveClass", "slideDuplicateActiveClass", "slideVisibleClass", "slideDuplicateClass", "slideNextClass", "slideDuplicateNextClass", "slidePrevClass", "slideDuplicatePrevClass", "wrapperClass", "runCallbacksOnInit", "observeParents", "observeSlideChildren", "a11y", "autoplay", "controller", "coverflowEffect", "cubeEffect", "fadeEffect", "flipEffect", "creativeEffect", "cardsEffect", "hashNavigation", "history", "keyboard", "lazy", "mousewheel", "parallax", "thumbs", "zoom", "slidesPerGroupAuto", "class", "id", "navigation", "pagination", "scrollbar", "virtual", "config"], outputs: ["_beforeBreakpoint", "_containerClasses", "_slideClass", "_swiper", "activeIndexChange", "afterInit", "autoplay", "autoplayStart", "autoplayStop", "autoplayPause", "autoplayResume", "beforeDestroy", "beforeInit", "beforeLoopFix", "beforeResize", "beforeSlideChangeStart", "beforeTransitionStart", "breakpoint", "changeDirection", "click", "doubleTap", "doubleClick", "destroy", "fromEdge", "hashChange", "hashSet", "imagesReady", "init", "keyPress", "lazyImageLoad", "lazyImageReady", "loopFix", "momentumBounce", "navigationHide", "navigationShow", "navigationPrev", "navigationNext", "observerUpdate", "orientationchange", "paginationHide", "paginationRender", "paginationShow", "paginationUpdate", "progress", "reachBeginning", "reachEnd", "realIndexChange", "resize", "scroll", "scrollbarDragEnd", "scrollbarDragMove", "scrollbarDragStart", "setTransition", "setTranslate", "slideChange", "slideChangeTransitionEnd", "slideChangeTransitionStart", "slideNextTransitionEnd", "slideNextTransitionStart", "slidePrevTransitionEnd", "slidePrevTransitionStart", "slideResetTransitionStart", "slideResetTransitionEnd", "sliderMove", "sliderFirstMove", "slidesLengthChange", "slidesGridLengthChange", "snapGridLengthChange", "snapIndexChange", "tap", "toEdge", "touchEnd", "touchMove", "touchMoveOpposite", "touchStart", "transitionEnd", "transitionStart", "update", "zoomChange", "swiper", "lock", "unlock"] }, { kind: "directive", type: i4.SwiperSlideDirective, selector: "ng-template[swiperSlide]", inputs: ["virtualIndex", "class", "ngClass", "data-swiper-autoplay", "zoom"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
395
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NxsCarouselComponent, deps: [{ token: i1.MatDialog }, { token: i0.NgZone }, { token: PLATFORM_ID }, { token: NxsCarouselOptionsToken, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
396
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.5", type: NxsCarouselComponent, isStandalone: true, selector: "nxs-carousel", inputs: { lazy: "lazy", images: "images", setOptions: ["options", "setOptions"], hasHtmlContent: "hasHtmlContent" }, outputs: { slideChange: "slideChange", slideClick: "slideClick" }, queries: [{ propertyName: "contents", predicate: NxsSwiperTemplateDirective, read: TemplateRef }], viewQueries: [{ propertyName: "swiperRef", first: true, predicate: ["swiperRef"], descendants: true }], ngImport: i0, template: "<div *ngIf=\"options\"\n [ngClass]=\"{'swiper-container':true,'nxs-slider-with-thumbnails':!!options.nxsThumbnails && options.nxsThumbnails.show}\"\n [style.height]=\"getMainSliderHeight()\">\n <swiper-container init=\"false\" #swiperRef>\n @if(hasHtmlContent){\n @for( slide of contents; track $index){\n <swiper-slide>\n <ng-template [ngTemplateOutlet]=\"slide\" [ngTemplateOutletContext]=\"{\n $implicit: slide\n }\"></ng-template>\n </swiper-slide>\n }\n }@else if(images?.length){\n @for( slideImage of images; track $index){\n <swiper-slide>\n <img [ngClass]=\"{'nxs-image-slide':true,'swiper-lazy':lazy}\" [attr.loading]=\"lazy ? 'lazy' : null\"\n [src]=\"slideImage.src\" [attr.alt]=\"slideImage.alt\" />\n <div *ngIf=\"lazy\" class=\"swiper-lazy-preloader swiper-lazy-preloader-black\"></div>\n </swiper-slide>\n }\n }\n </swiper-container>\n <!-- <swiper [config]=\"options\" (swiper)=\"onSwiper($event)\" (slideChange)=\"onSlideChange($event)\"\n [thumbs]=\"{ swiper: thumbnailsSwiperInstance }\">\n <ng-container *ngIf=\"hasHtmlContent\">\n <ng-template *ngFor=\"let slide of contents\" swiperSlide>\n <swiper-slide>\n <ng-template [ngTemplateOutlet]=\"slide\" [ngTemplateOutletContext]=\"{\n $implicit: slide\n }\"></ng-template>\n </swiper-slide>\n </ng-template>\n </ng-container>\n <ng-container *ngIf=\"!hasHtmlContent && images?.length\">\n <ng-template swiperSlide *ngFor=\"let slideImage of images\">\n <img [ngClass]=\"{'nxs-image-slide':true,'swiper-lazy':lazy}\" [attr.loading]=\"lazy ? 'lazy' : null\"\n [src]=\"slideImage.src\" [attr.alt]=\"slideImage.alt\" />\n <div *ngIf=\"lazy\" class=\"swiper-lazy-preloader swiper-lazy-preloader-black\"></div>\n </ng-template>\n </ng-container>\n </swiper> -->\n @if(options?.nxsShowImagesCount){\n <div class=\"nxs-image-counter\">\n {{currentSlide+1}} / {{slidesCount}}\n </div>\n }\n</div>\n\n<!-- <div *ngIf=\"thumbnailsOptions && images?.length\"\n [style.height]=\"(!!options.nxsThumbnails && options.nxsThumbnails.show && !!options.nxsThumbnails.percentHeight) ? (options.nxsThumbnails.percentHeight + '%'):''\"\n [style.top]=\"(!!options.nxsThumbnails && options.nxsThumbnails.show && !!options.nxsThumbnails.percentHeight && options.nxsThumbnails.onMainSlider) ? ('-' + (options.nxsThumbnails.percentHeight) + '%'):''\"\n [ngClass]=\"{'swiper-container':true, 'nxs-slider-thumbnails-container':true,'nxs-slider-thumbnails-on-main-slider':options.nxsThumbnails && options.nxsThumbnails.onMainSlider}\">\n <swiper [config]=\"thumbnailsOptions\" (swiper)=\"onSwiperThumbnails($event)\">\n <ng-template swiperSlide *ngFor=\"let slideImage of images\">\n <img [ngClass]=\"{'nxs-image-slide':true,'swiper-lazy':lazy}\" [attr.data-src]=\"lazy ? slideImage.src : null\"\n [src]=\"lazy ? null : slideImage.src\" [attr.alt]=\"slideImage.alt\" />\n <div *ngIf=\"lazy\" class=\"swiper-lazy-preloader swiper-lazy-preloader-black\"></div>\n </ng-template>\n </swiper>\n</div> -->", styles: [":root{--swiper-theme-color: #007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d :is(.swiper-slide,.swiper-cube-shadow){transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:\"\";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d :is(.swiper-slide-shadow,.swiper-slide-shadow-left,.swiper-slide-shadow-right,.swiper-slide-shadow-top,.swiper-slide-shadow-bottom){position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,#00000080,#0000)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}:is(.swiper:not(.swiper-watch-progress),.swiper-watch-progress .swiper-slide-visible) .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color: #fff}.swiper-lazy-preloader-black{--swiper-preloader-color: #000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:root{--swiper-navigation-size: 44px}.swiper-button-prev,.swiper-button-next{position:absolute;width:var(--swiper-navigation-size);height:var(--swiper-navigation-size);z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}:is(.swiper-button-prev,.swiper-button-next).swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}:is(.swiper-button-prev,.swiper-button-next).swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled :is(.swiper-button-prev,.swiper-button-next){display:none!important}:is(.swiper-button-prev,.swiper-button-next) svg{width:100%;height:100%;object-fit:contain;transform-origin:center;fill:currentColor;pointer-events:none}.swiper-button-lock{display:none}.swiper-button-prev,.swiper-button-next{top:var(--swiper-navigation-top-offset, 50%);margin-top:calc(0px - var(--swiper-navigation-size) / 2)}.swiper-button-prev{left:var(--swiper-navigation-sides-offset, 4px);right:auto}.swiper-button-prev .swiper-navigation-icon{transform:rotate(180deg)}.swiper-button-next{right:var(--swiper-navigation-sides-offset, 4px);left:auto}.swiper-horizontal .swiper-button-prev,.swiper-horizontal .swiper-button-next,.swiper-horizontal~.swiper-button-prev,.swiper-horizontal~.swiper-button-next{top:var(--swiper-navigation-top-offset, 50%);margin-top:calc(0px - var(--swiper-navigation-size) / 2);margin-left:0}.swiper-horizontal .swiper-button-prev,.swiper-horizontal~.swiper-button-prev,.swiper-horizontal.swiper-rtl .swiper-button-next,.swiper-horizontal.swiper-rtl~.swiper-button-next{left:var(--swiper-navigation-sides-offset, 4px);right:auto}.swiper-horizontal .swiper-button-next,.swiper-horizontal~.swiper-button-next,.swiper-horizontal.swiper-rtl .swiper-button-prev,.swiper-horizontal.swiper-rtl~.swiper-button-prev{right:var(--swiper-navigation-sides-offset, 4px);left:auto}:is(.swiper-horizontal .swiper-button-prev,.swiper-horizontal~.swiper-button-prev,.swiper-horizontal.swiper-rtl .swiper-button-next,.swiper-horizontal.swiper-rtl~.swiper-button-next) .swiper-navigation-icon{transform:rotate(180deg)}.swiper-horizontal:is(.swiper-rtl .swiper-button-prev,.swiper-rtl~.swiper-button-prev) .swiper-navigation-icon{transform:rotate(0)}.swiper-vertical .swiper-button-prev,.swiper-vertical .swiper-button-next,.swiper-vertical~.swiper-button-prev,.swiper-vertical~.swiper-button-next{left:var(--swiper-navigation-top-offset, 50%);right:auto;margin-left:calc(0px - var(--swiper-navigation-size) / 2);margin-top:0}.swiper-vertical .swiper-button-prev,.swiper-vertical~.swiper-button-prev{top:var(--swiper-navigation-sides-offset, 4px);bottom:auto}:is(.swiper-vertical .swiper-button-prev,.swiper-vertical~.swiper-button-prev) .swiper-navigation-icon{transform:rotate(-90deg)}.swiper-vertical .swiper-button-next,.swiper-vertical~.swiper-button-next{bottom:var(--swiper-navigation-sides-offset, 4px);top:auto}:is(.swiper-vertical .swiper-button-next,.swiper-vertical~.swiper-button-next) .swiper-navigation-icon{transform:rotate(90deg)}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translateZ(0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic :is(.swiper-pagination-bullet-active,.swiper-pagination-bullet-active-main){transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;transform:translate3d(0,-50%,0)}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets) .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets).swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets).swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets) .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets).swiper-pagination-bullets-dynamic{left:50%;transform:translate(-50%);white-space:nowrap}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets).swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, .25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}nxs-carousel{display:block;height:100%;position:relative;--swiper-navigation-color: #fff;--swiper-pagination-color: #fff;--swiper-theme-color: #fff}nxs-carousel swiper-container{width:100%;height:100%;display:block;position:relative}nxs-carousel swiper-container .swiper-wrapper .swiper-slide{height:100%;position:relative;width:auto;min-height:50px;background-size:cover;background-position:center;background-repeat:no-repeat}nxs-carousel swiper-container .nxs-image-slide{height:100%;object-fit:cover;width:100%;object-position:center}nxs-carousel swiper-container.nxs-slider-with-thumbnails{height:80%}nxs-carousel swiper-container.nxs-slider-thumbnails-container{height:20%;background:transparent;padding:6px 0}nxs-carousel swiper-container.nxs-slider-thumbnails-container .swiper-slide{cursor:pointer;border-radius:6px;margin:0 6px;border:2px solid transparent}nxs-carousel swiper-container.nxs-slider-thumbnails-container .swiper-slide.swiper-slide-thumb-active{border:2px solid lightblue}nxs-carousel swiper-container.nxs-slider-thumbnails-on-main-slider{top:-20%}nxs-carousel .nxs-image-counter{position:absolute;top:0;right:0;color:#fff;padding:4px;font-weight:700;z-index:10}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "ngmodule", type: MatDialogModule }], encapsulation: i0.ViewEncapsulation.None });
|
|
287
397
|
}
|
|
288
398
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NxsCarouselComponent, decorators: [{
|
|
289
399
|
type: Component,
|
|
290
|
-
args: [{ selector: 'nxs-carousel', encapsulation: ViewEncapsulation.None, standalone:
|
|
400
|
+
args: [{ selector: 'nxs-carousel', encapsulation: ViewEncapsulation.None, standalone: true, imports: [
|
|
401
|
+
CommonModule,
|
|
402
|
+
MatIconModule,
|
|
403
|
+
MatButtonModule,
|
|
404
|
+
MatDialogModule,
|
|
405
|
+
], schemas: [CUSTOM_ELEMENTS_SCHEMA], template: "<div *ngIf=\"options\"\n [ngClass]=\"{'swiper-container':true,'nxs-slider-with-thumbnails':!!options.nxsThumbnails && options.nxsThumbnails.show}\"\n [style.height]=\"getMainSliderHeight()\">\n <swiper-container init=\"false\" #swiperRef>\n @if(hasHtmlContent){\n @for( slide of contents; track $index){\n <swiper-slide>\n <ng-template [ngTemplateOutlet]=\"slide\" [ngTemplateOutletContext]=\"{\n $implicit: slide\n }\"></ng-template>\n </swiper-slide>\n }\n }@else if(images?.length){\n @for( slideImage of images; track $index){\n <swiper-slide>\n <img [ngClass]=\"{'nxs-image-slide':true,'swiper-lazy':lazy}\" [attr.loading]=\"lazy ? 'lazy' : null\"\n [src]=\"slideImage.src\" [attr.alt]=\"slideImage.alt\" />\n <div *ngIf=\"lazy\" class=\"swiper-lazy-preloader swiper-lazy-preloader-black\"></div>\n </swiper-slide>\n }\n }\n </swiper-container>\n <!-- <swiper [config]=\"options\" (swiper)=\"onSwiper($event)\" (slideChange)=\"onSlideChange($event)\"\n [thumbs]=\"{ swiper: thumbnailsSwiperInstance }\">\n <ng-container *ngIf=\"hasHtmlContent\">\n <ng-template *ngFor=\"let slide of contents\" swiperSlide>\n <swiper-slide>\n <ng-template [ngTemplateOutlet]=\"slide\" [ngTemplateOutletContext]=\"{\n $implicit: slide\n }\"></ng-template>\n </swiper-slide>\n </ng-template>\n </ng-container>\n <ng-container *ngIf=\"!hasHtmlContent && images?.length\">\n <ng-template swiperSlide *ngFor=\"let slideImage of images\">\n <img [ngClass]=\"{'nxs-image-slide':true,'swiper-lazy':lazy}\" [attr.loading]=\"lazy ? 'lazy' : null\"\n [src]=\"slideImage.src\" [attr.alt]=\"slideImage.alt\" />\n <div *ngIf=\"lazy\" class=\"swiper-lazy-preloader swiper-lazy-preloader-black\"></div>\n </ng-template>\n </ng-container>\n </swiper> -->\n @if(options?.nxsShowImagesCount){\n <div class=\"nxs-image-counter\">\n {{currentSlide+1}} / {{slidesCount}}\n </div>\n }\n</div>\n\n<!-- <div *ngIf=\"thumbnailsOptions && images?.length\"\n [style.height]=\"(!!options.nxsThumbnails && options.nxsThumbnails.show && !!options.nxsThumbnails.percentHeight) ? (options.nxsThumbnails.percentHeight + '%'):''\"\n [style.top]=\"(!!options.nxsThumbnails && options.nxsThumbnails.show && !!options.nxsThumbnails.percentHeight && options.nxsThumbnails.onMainSlider) ? ('-' + (options.nxsThumbnails.percentHeight) + '%'):''\"\n [ngClass]=\"{'swiper-container':true, 'nxs-slider-thumbnails-container':true,'nxs-slider-thumbnails-on-main-slider':options.nxsThumbnails && options.nxsThumbnails.onMainSlider}\">\n <swiper [config]=\"thumbnailsOptions\" (swiper)=\"onSwiperThumbnails($event)\">\n <ng-template swiperSlide *ngFor=\"let slideImage of images\">\n <img [ngClass]=\"{'nxs-image-slide':true,'swiper-lazy':lazy}\" [attr.data-src]=\"lazy ? slideImage.src : null\"\n [src]=\"lazy ? null : slideImage.src\" [attr.alt]=\"slideImage.alt\" />\n <div *ngIf=\"lazy\" class=\"swiper-lazy-preloader swiper-lazy-preloader-black\"></div>\n </ng-template>\n </swiper>\n</div> -->", styles: [":root{--swiper-theme-color: #007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d :is(.swiper-slide,.swiper-cube-shadow){transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:\"\";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d :is(.swiper-slide-shadow,.swiper-slide-shadow-left,.swiper-slide-shadow-right,.swiper-slide-shadow-top,.swiper-slide-shadow-bottom){position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,#00000080,#0000)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}:is(.swiper:not(.swiper-watch-progress),.swiper-watch-progress .swiper-slide-visible) .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color: #fff}.swiper-lazy-preloader-black{--swiper-preloader-color: #000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:root{--swiper-navigation-size: 44px}.swiper-button-prev,.swiper-button-next{position:absolute;width:var(--swiper-navigation-size);height:var(--swiper-navigation-size);z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}:is(.swiper-button-prev,.swiper-button-next).swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}:is(.swiper-button-prev,.swiper-button-next).swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled :is(.swiper-button-prev,.swiper-button-next){display:none!important}:is(.swiper-button-prev,.swiper-button-next) svg{width:100%;height:100%;object-fit:contain;transform-origin:center;fill:currentColor;pointer-events:none}.swiper-button-lock{display:none}.swiper-button-prev,.swiper-button-next{top:var(--swiper-navigation-top-offset, 50%);margin-top:calc(0px - var(--swiper-navigation-size) / 2)}.swiper-button-prev{left:var(--swiper-navigation-sides-offset, 4px);right:auto}.swiper-button-prev .swiper-navigation-icon{transform:rotate(180deg)}.swiper-button-next{right:var(--swiper-navigation-sides-offset, 4px);left:auto}.swiper-horizontal .swiper-button-prev,.swiper-horizontal .swiper-button-next,.swiper-horizontal~.swiper-button-prev,.swiper-horizontal~.swiper-button-next{top:var(--swiper-navigation-top-offset, 50%);margin-top:calc(0px - var(--swiper-navigation-size) / 2);margin-left:0}.swiper-horizontal .swiper-button-prev,.swiper-horizontal~.swiper-button-prev,.swiper-horizontal.swiper-rtl .swiper-button-next,.swiper-horizontal.swiper-rtl~.swiper-button-next{left:var(--swiper-navigation-sides-offset, 4px);right:auto}.swiper-horizontal .swiper-button-next,.swiper-horizontal~.swiper-button-next,.swiper-horizontal.swiper-rtl .swiper-button-prev,.swiper-horizontal.swiper-rtl~.swiper-button-prev{right:var(--swiper-navigation-sides-offset, 4px);left:auto}:is(.swiper-horizontal .swiper-button-prev,.swiper-horizontal~.swiper-button-prev,.swiper-horizontal.swiper-rtl .swiper-button-next,.swiper-horizontal.swiper-rtl~.swiper-button-next) .swiper-navigation-icon{transform:rotate(180deg)}.swiper-horizontal:is(.swiper-rtl .swiper-button-prev,.swiper-rtl~.swiper-button-prev) .swiper-navigation-icon{transform:rotate(0)}.swiper-vertical .swiper-button-prev,.swiper-vertical .swiper-button-next,.swiper-vertical~.swiper-button-prev,.swiper-vertical~.swiper-button-next{left:var(--swiper-navigation-top-offset, 50%);right:auto;margin-left:calc(0px - var(--swiper-navigation-size) / 2);margin-top:0}.swiper-vertical .swiper-button-prev,.swiper-vertical~.swiper-button-prev{top:var(--swiper-navigation-sides-offset, 4px);bottom:auto}:is(.swiper-vertical .swiper-button-prev,.swiper-vertical~.swiper-button-prev) .swiper-navigation-icon{transform:rotate(-90deg)}.swiper-vertical .swiper-button-next,.swiper-vertical~.swiper-button-next{bottom:var(--swiper-navigation-sides-offset, 4px);top:auto}:is(.swiper-vertical .swiper-button-next,.swiper-vertical~.swiper-button-next) .swiper-navigation-icon{transform:rotate(90deg)}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translateZ(0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic :is(.swiper-pagination-bullet-active,.swiper-pagination-bullet-active-main){transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;transform:translate3d(0,-50%,0)}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets) .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets).swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets).swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets) .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets).swiper-pagination-bullets-dynamic{left:50%;transform:translate(-50%);white-space:nowrap}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets).swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, .25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}nxs-carousel{display:block;height:100%;position:relative;--swiper-navigation-color: #fff;--swiper-pagination-color: #fff;--swiper-theme-color: #fff}nxs-carousel swiper-container{width:100%;height:100%;display:block;position:relative}nxs-carousel swiper-container .swiper-wrapper .swiper-slide{height:100%;position:relative;width:auto;min-height:50px;background-size:cover;background-position:center;background-repeat:no-repeat}nxs-carousel swiper-container .nxs-image-slide{height:100%;object-fit:cover;width:100%;object-position:center}nxs-carousel swiper-container.nxs-slider-with-thumbnails{height:80%}nxs-carousel swiper-container.nxs-slider-thumbnails-container{height:20%;background:transparent;padding:6px 0}nxs-carousel swiper-container.nxs-slider-thumbnails-container .swiper-slide{cursor:pointer;border-radius:6px;margin:0 6px;border:2px solid transparent}nxs-carousel swiper-container.nxs-slider-thumbnails-container .swiper-slide.swiper-slide-thumb-active{border:2px solid lightblue}nxs-carousel swiper-container.nxs-slider-thumbnails-on-main-slider{top:-20%}nxs-carousel .nxs-image-counter{position:absolute;top:0;right:0;color:#fff;padding:4px;font-weight:700;z-index:10}\n"] }]
|
|
291
406
|
}], ctorParameters: () => [{ type: i1.MatDialog }, { type: i0.NgZone }, { type: undefined, decorators: [{
|
|
292
407
|
type: Inject,
|
|
293
408
|
args: [PLATFORM_ID]
|
|
294
409
|
}] }, { type: NxsCarouselModuleConfig, decorators: [{
|
|
295
410
|
type: Optional
|
|
411
|
+
}, {
|
|
412
|
+
type: Inject,
|
|
413
|
+
args: [NxsCarouselOptionsToken]
|
|
296
414
|
}] }], propDecorators: { contents: [{
|
|
297
415
|
type: ContentChildren,
|
|
298
416
|
args: [NxsSwiperTemplateDirective, { read: TemplateRef }]
|
|
299
|
-
}], swiperComponent: [{
|
|
300
|
-
type: ViewChild,
|
|
301
|
-
args: ['swiper', { static: false }]
|
|
302
417
|
}], lazy: [{
|
|
303
418
|
type: Input
|
|
304
419
|
}], images: [{
|
|
@@ -308,123 +423,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
|
|
|
308
423
|
args: ['options']
|
|
309
424
|
}], hasHtmlContent: [{
|
|
310
425
|
type: Input
|
|
426
|
+
}], swiperRef: [{
|
|
427
|
+
type: ViewChild,
|
|
428
|
+
args: ['swiperRef']
|
|
311
429
|
}], slideChange: [{
|
|
312
430
|
type: Output
|
|
313
431
|
}], slideClick: [{
|
|
314
432
|
type: Output
|
|
315
433
|
}] } });
|
|
316
434
|
|
|
317
|
-
class NxsCarouselDialogComponent {
|
|
318
|
-
data;
|
|
319
|
-
dialogRef;
|
|
320
|
-
static dialogOpened = false;
|
|
321
|
-
wrapperClass = 'nxs-carousel-wrapper';
|
|
322
|
-
constructor(data, dialogRef) {
|
|
323
|
-
this.data = data;
|
|
324
|
-
this.dialogRef = dialogRef;
|
|
325
|
-
if (data.wrapperClass)
|
|
326
|
-
this.wrapperClass += ' ' + data.wrapperClass;
|
|
327
|
-
this.dialogRef.afterOpened().subscribe(() => {
|
|
328
|
-
NxsCarouselDialogComponent.dialogOpened = true;
|
|
329
|
-
});
|
|
330
|
-
this.dialogRef.afterClosed().subscribe(() => {
|
|
331
|
-
NxsCarouselDialogComponent.dialogOpened = false;
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NxsCarouselDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
335
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: NxsCarouselDialogComponent, isStandalone: false, selector: "nxs-carousel-dialog", ngImport: i0, template: `
|
|
336
|
-
<div class="nxs-carousel-dialog-flex-wrapper">
|
|
337
|
-
<div class="nxs-carousel-dialog-header">
|
|
338
|
-
<button (click)="dialogRef.close()" mat-icon-button><mat-icon>close</mat-icon></button>
|
|
339
|
-
</div>
|
|
340
|
-
<div [class]="wrapperClass">
|
|
341
|
-
<nxs-carousel [options]="data.options" [images]="data.images"></nxs-carousel>
|
|
342
|
-
</div>
|
|
343
|
-
</div>
|
|
344
|
-
`, isInline: true, styles: [".nxs-carousel-dialog{max-width:98vw!important;width:98vw;height:98vh}.nxs-carousel-dialog .nxs-carousel-dialog-flex-wrapper{display:flex;height:100%;flex-direction:column}.nxs-carousel-dialog .nxs-carousel-dialog-flex-wrapper .nxs-carousel-wrapper{flex:auto}.nxs-carousel-dialog .nxs-carousel-dialog-header{position:relative;display:flex;justify-content:flex-end;padding-bottom:8px}.nxs-carousel-dialog mat-dialog-container{padding:20px}.nxs-carousel-dialog .nxs-carousel-wrapper{width:100%;margin:auto;height:100%}\n"], dependencies: [{ kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: NxsCarouselComponent, selector: "nxs-carousel", inputs: ["lazy", "images", "options", "hasHtmlContent"], outputs: ["slideChange", "slideClick"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
345
|
-
}
|
|
346
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NxsCarouselDialogComponent, decorators: [{
|
|
347
|
-
type: Component,
|
|
348
|
-
args: [{ selector: 'nxs-carousel-dialog', template: `
|
|
349
|
-
<div class="nxs-carousel-dialog-flex-wrapper">
|
|
350
|
-
<div class="nxs-carousel-dialog-header">
|
|
351
|
-
<button (click)="dialogRef.close()" mat-icon-button><mat-icon>close</mat-icon></button>
|
|
352
|
-
</div>
|
|
353
|
-
<div [class]="wrapperClass">
|
|
354
|
-
<nxs-carousel [options]="data.options" [images]="data.images"></nxs-carousel>
|
|
355
|
-
</div>
|
|
356
|
-
</div>
|
|
357
|
-
`, encapsulation: ViewEncapsulation.None, standalone: false, styles: [".nxs-carousel-dialog{max-width:98vw!important;width:98vw;height:98vh}.nxs-carousel-dialog .nxs-carousel-dialog-flex-wrapper{display:flex;height:100%;flex-direction:column}.nxs-carousel-dialog .nxs-carousel-dialog-flex-wrapper .nxs-carousel-wrapper{flex:auto}.nxs-carousel-dialog .nxs-carousel-dialog-header{position:relative;display:flex;justify-content:flex-end;padding-bottom:8px}.nxs-carousel-dialog mat-dialog-container{padding:20px}.nxs-carousel-dialog .nxs-carousel-wrapper{width:100%;margin:auto;height:100%}\n"] }]
|
|
358
|
-
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
359
|
-
type: Inject,
|
|
360
|
-
args: [MAT_DIALOG_DATA]
|
|
361
|
-
}] }, { type: i1.MatDialogRef }] });
|
|
362
|
-
|
|
363
|
-
class NxsCarouselModule {
|
|
364
|
-
static openDialogSubscribed = false;
|
|
365
|
-
constructor(matDialog) {
|
|
366
|
-
NxsCarouselModule.subscribeToOpenDialog(matDialog);
|
|
367
|
-
}
|
|
368
|
-
static subscribeToOpenDialog(matDialog) {
|
|
369
|
-
if (this.openDialogSubscribed) {
|
|
370
|
-
return;
|
|
371
|
-
}
|
|
372
|
-
this.openDialogSubscribed = true;
|
|
373
|
-
CarouselEvents.openCarouselDialog.subscribe((data) => {
|
|
374
|
-
if (NxsCarouselDialogComponent.dialogOpened) {
|
|
375
|
-
return;
|
|
376
|
-
}
|
|
377
|
-
matDialog.open(NxsCarouselDialogComponent, data);
|
|
378
|
-
});
|
|
379
|
-
}
|
|
380
|
-
static forRoot(config) {
|
|
381
|
-
return {
|
|
382
|
-
ngModule: NxsCarouselModule,
|
|
383
|
-
providers: [
|
|
384
|
-
{ provide: NxsCarouselModuleConfig, useValue: config },
|
|
385
|
-
],
|
|
386
|
-
};
|
|
387
|
-
}
|
|
388
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NxsCarouselModule, deps: [{ token: i1.MatDialog }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
389
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.5", ngImport: i0, type: NxsCarouselModule, declarations: [NxsCarouselComponent,
|
|
390
|
-
NxsCarouselDialogComponent,
|
|
391
|
-
NxsSwiperTemplateDirective], imports: [CommonModule,
|
|
392
|
-
MatIconModule,
|
|
393
|
-
MatButtonModule,
|
|
394
|
-
MatDialogModule,
|
|
395
|
-
SwiperModule], exports: [NxsCarouselComponent,
|
|
396
|
-
NxsSwiperTemplateDirective] });
|
|
397
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NxsCarouselModule, imports: [CommonModule,
|
|
398
|
-
MatIconModule,
|
|
399
|
-
MatButtonModule,
|
|
400
|
-
MatDialogModule,
|
|
401
|
-
SwiperModule] });
|
|
402
|
-
}
|
|
403
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NxsCarouselModule, decorators: [{
|
|
404
|
-
type: NgModule,
|
|
405
|
-
args: [{
|
|
406
|
-
declarations: [
|
|
407
|
-
NxsCarouselComponent,
|
|
408
|
-
NxsCarouselDialogComponent,
|
|
409
|
-
NxsSwiperTemplateDirective,
|
|
410
|
-
],
|
|
411
|
-
imports: [
|
|
412
|
-
CommonModule,
|
|
413
|
-
MatIconModule,
|
|
414
|
-
MatButtonModule,
|
|
415
|
-
MatDialogModule,
|
|
416
|
-
SwiperModule,
|
|
417
|
-
],
|
|
418
|
-
exports: [
|
|
419
|
-
NxsCarouselComponent,
|
|
420
|
-
NxsSwiperTemplateDirective,
|
|
421
|
-
],
|
|
422
|
-
}]
|
|
423
|
-
}], ctorParameters: () => [{ type: i1.MatDialog }] });
|
|
424
|
-
|
|
425
435
|
/**
|
|
426
436
|
* Generated bundle index. Do not edit.
|
|
427
437
|
*/
|
|
428
438
|
|
|
429
|
-
export { NxsCarouselComponent,
|
|
439
|
+
export { NxsCarouselComponent, NxsSwiperTemplateDirective };
|
|
430
440
|
//# sourceMappingURL=nextalys-carousel-lib-nxs-carousel.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nextalys-carousel-lib-nxs-carousel.mjs","sources":["../../lib/nxs-carousel/swiper-directives.ts","../../lib/common-types.ts","../../lib/nxs-carousel/carousel-events.ts","../../lib/nxs-carousel/nxs-carousel.component.ts","../../lib/nxs-carousel/nxs-carousel.component.html","../../lib/nxs-carousel/nxs-carousel-dialog.component.ts","../../lib/nxs-carousel/nxs-carousel.module.ts","../../lib/nextalys-carousel-lib-nxs-carousel.ts"],"sourcesContent":["import { Directive } from \"@angular/core\";\n\n@Directive({\n selector: '[nxsSwiperTemplate]',\n standalone: false\n})\nexport class NxsSwiperTemplateDirective { }\n","\nexport interface NxsCarouselImage {\n alt?: string;\n src: string;\n}\nexport class NxsCarouselModuleConfig {\n debug?: boolean = false;\n}","import { NxsEvent } from \"nextalys-js-helpers\";\nimport { NxsCarouselDialogData } from \"./nxs-carousel-types\";\n\nexport class CarouselEvents {\n static openCarouselDialog = new NxsEvent<{\n data: NxsCarouselDialogData;\n panelClass: string;\n width?: string;\n height?: string;\n disableClose: boolean;\n }>();\n}","import { Component, ViewEncapsulation, Input, ViewChild, Output, EventEmitter, PLATFORM_ID, Inject, Optional, NgZone, ContentChildren, TemplateRef, InjectionToken } from '@angular/core';\nimport { NxsCarouselDialogData, NxsCarouselOptions } from './nxs-carousel-types';\nimport { MatDialog } from '@angular/material/dialog';\nimport { isPlatformBrowser } from '@angular/common';\nimport { EventsCollector } from 'nextalys-js-helpers/dist/events';\n// import Swiper core and required modules\nimport SwiperCore, { Navigation, Pagination, Autoplay, Lazy, Swiper, SwiperOptions, Thumbs } from 'swiper';\n//Virtual,Scrollbar,A11y\nimport { SwiperComponent } from 'swiper/angular';\nimport { NxsSwiperTemplateDirective } from './swiper-directives';\nimport { NxsCarouselImage, NxsCarouselModuleConfig } from '../common-types';\nimport { CarouselEvents } from './carousel-events';\n\n// install Swiper modules\nSwiperCore.use([Navigation, Pagination, Autoplay, Lazy, Thumbs]);\n@Component({\n selector: 'nxs-carousel',\n templateUrl: './nxs-carousel.component.html',\n styleUrls: ['./nxs-carousel.component.scss'],\n encapsulation: ViewEncapsulation.None,\n standalone: false\n})\nexport class NxsCarouselComponent {\n private swiperReady = false;\n @ContentChildren(NxsSwiperTemplateDirective, { read: TemplateRef })\n contents!: TemplateRef<HTMLElement>[];\n @ViewChild('swiper', { static: false })\n swiperComponent?: SwiperComponent;\n @Input()\n lazy = true;\n private eventsCollector = new EventsCollector();\n\n @Input()\n public images: NxsCarouselImage[];\n options: NxsCarouselOptions = null;\n thumbnailsOptions: SwiperOptions = null;\n @Input('options')\n set setOptions(val: NxsCarouselOptions) {\n this.options = this.setDefaultOptions(val, false);\n this.setThumbnailsOptions();\n }\n @Input()\n hasHtmlContent = false;\n private swiperInstance: Swiper;\n thumbnailsSwiperInstance: Swiper;\n\n get slidesCount() {\n if (!this.swiperInstance?.slides?.length) {\n return 0;\n }\n if (this.options?.loop) {\n return (this.swiperInstance?.slides?.length || 0) - 2;\n }\n return this.swiperInstance?.slides?.length || 0;\n }\n\n @Output()\n slideChange = new EventEmitter<number>();\n public currentSlide = 0;\n @Output()\n slideClick = new EventEmitter<MouseEvent | TouchEvent | PointerEvent>();\n isBrowser = false;\n\n constructor(\n private matDialog: MatDialog,\n private zone: NgZone,\n @Inject(PLATFORM_ID) private platformId: any,\n @Optional() private config?: NxsCarouselModuleConfig,\n\n ) {\n if (!this.config)\n this.config = { debug: false };\n this.isBrowser = isPlatformBrowser(this.platformId);\n this.log('constructor - isBrowser', this.isBrowser);\n this.options = this.setDefaultOptions(undefined, false);\n }\n private log(...args: any[]) {\n if (!this.config.debug)\n return;\n console.log('[NxsCarousel]', ...args);\n }\n private destroy() {\n if (!this.isBrowser) {\n return;\n }\n this.eventsCollector?.unsubscribeAll();\n }\n ngOnDestroy(): void {\n this.destroy();\n }\n ngAfterViewInit(): void {\n // console.log('thi.contents', this.contents);\n // this.initSlides();\n // this.createSlider(true);\n }\n getMainSliderHeight() {\n if (!this.options)\n return '';\n if (this.options.nxsThumbnails && this.options.nxsThumbnails.show) {\n if (this.options.nxsThumbnails.onMainSlider) {\n return '100%';\n }\n else if (this.options.nxsThumbnails.percentHeight) {\n return (100 - this.options.nxsThumbnails.percentHeight) + '%';\n }\n }\n return '';\n }\n private setDefaultOptions(options: NxsCarouselOptions, forDialog: boolean) {\n if (!options && forDialog) {\n options = {\n nxsShowNavigationBullets: true, loop: true, nxsThumbnails: { show: true }, effect: 'slide', nxsShowNavigationArrows: true, nxsShowImagesCount: true,\n lazy: this.lazy,\n };\n }\n else if (!options) {\n options = {\n nxsShowNavigationBullets: true, loop: true,\n nxsThumbnails: { show: false }, effect: 'slide', nxsShowNavigationArrows: true, nxsShowImagesCount: false, nxsCarouselDialogOptions: {},\n lazy: this.lazy,\n };\n }\n if (options.nxsCarouselDialogOptions) {\n if (typeof options.nxsCarouselDialogOptions.nxsThumbnails === 'undefined')\n options.nxsCarouselDialogOptions.nxsThumbnails = { show: false };\n if (typeof options.nxsCarouselDialogOptions.effect === 'undefined')\n options.nxsCarouselDialogOptions.effect = 'slide';\n if (typeof options.nxsCarouselDialogOptions.nxsShowNavigationArrows === 'undefined')\n options.nxsCarouselDialogOptions.nxsShowNavigationArrows = true;\n\n if (!!options.nxsCarouselDialogOptions.nxsThumbnails?.show) {\n if (typeof options.nxsCarouselDialogOptions.nxsThumbnails.percentHeight === 'undefined')\n options.nxsCarouselDialogOptions.nxsThumbnails.percentHeight = 20;\n if (typeof options.nxsCarouselDialogOptions.nxsThumbnails.perView === 'undefined')\n options.nxsCarouselDialogOptions.nxsThumbnails.perView = 10;\n options.nxsCarouselDialogOptions.nxsThumbnails.breakpoints = {\n 640: {\n slidesPerView: 5,\n },\n 768: {\n slidesPerView: 7,\n },\n 1024: {\n slidesPerView: 8,\n },\n };\n }\n }\n if (!options.nxsThumbnails)\n options.nxsThumbnails = { show: false };\n\n if (options.nxsThumbnails.show && typeof options.nxsThumbnails.percentHeight === 'undefined')\n options.nxsThumbnails.percentHeight = 20;\n\n if (options.nxsThumbnails.show && typeof options.nxsThumbnails.perView === 'undefined')\n options.nxsThumbnails.perView = 10;\n\n\n if (forDialog)\n options.nxsfullscreenOnClick = false;\n if (options.nxsThumbnails.onMainSlider)\n options.nxsShowNavigationBullets = false;\n\n if (typeof options.lazy === 'undefined')\n options.lazy = true;\n\n if (typeof options.navigation === 'undefined')\n options.navigation = true;\n if (typeof options.pagination === 'undefined')\n options.pagination = { clickable: true };\n\n if (options.nxsShowNavigationBullets === false) {\n options.pagination = false;\n }\n // console.log(\"Log ~ file: nxs-carousel.component.ts ~ line 272 ~ NxsCarouselComponent ~ setDefaultOptions ~ options\", options);\n\n return options;\n }\n\n private setThumbnailsOptions() {\n if (!!this.options?.nxsThumbnails?.show) {\n this.thumbnailsOptions = {\n slidesPerView: this.options.nxsThumbnails.perView,\n loop: false,\n freeMode: true,\n // watchSlidesVisibility: true,\n watchSlidesProgress: true,\n breakpoints: this.options.nxsThumbnails.breakpoints,\n // spaceBetween: 10,\n };\n if (this.lazy) {\n // Disable preloading of all images\n this.thumbnailsOptions.preloadImages = false;\n // Enable lazy loading\n this.thumbnailsOptions.lazy = true;\n }\n // console.log(\"Log ~ file: nxs-carousel.component.ts ~ line 184 ~ NxsCarouselComponent ~ setThumbnailsOptions ~ this.thumbnailsOptions.lazy\", this.thumbnailsOptions.lazy);\n\n // this.thumbnailsSliderInstance = new Swiper(this.nxsThumbnailsSliderContainer.nativeElement, thumbnailsOptions);\n // this.options.thumbs = { swiper: this.thumbnailsSliderInstance };\n }\n }\n public showFullScreenCarousel(images: NxsCarouselImage[], wrapperClass?: string) {\n this.options.nxsCarouselDialogOptions = this.setDefaultOptions(this.options.nxsCarouselDialogOptions, true);\n const data: NxsCarouselDialogData = { images, wrapperClass, options: this.options.nxsCarouselDialogOptions };\n CarouselEvents.openCarouselDialog?.emit({\n data,\n panelClass: 'nxs-carousel-dialog',\n width: !!this.options.nxsCarouselDialogSize ? this.options.nxsCarouselDialogSize.width : undefined,\n height: !!this.options.nxsCarouselDialogSize ? this.options.nxsCarouselDialogSize.height : undefined,\n disableClose: !this.options.nxsCarouselDialogExitable,\n });\n }\n goToSlide(index: number, speed?: number) {\n this.swiperInstance?.slideTo(index, speed);\n }\n next() {\n this.swiperInstance?.slideNext();\n }\n previous() {\n this.swiperInstance?.slidePrev();\n }\n onSwiperThumbnails(instance: Swiper) {\n if (this.options?.nxsThumbnails?.show)\n this.thumbnailsSwiperInstance = instance;\n else\n this.thumbnailsSwiperInstance = null;\n\n // if (this.options?.nxsThumbnails?.show) {\n // const optionsClone = MainHelpers.cloneObject(this.options);\n // optionsClone.thumbs = { swiper: this.thumbnailsSwiperInstance };\n // // this.options = optionsClone;\n // // this.options = { ...this.options, thumbs: { swiper: this.thumbnailsSwiperInstance } };\n // console.log(\"Log ~ file: nxs-carousel.component.ts ~ line 416 ~ NxsCarouselComponent ~ onSwiperThumbnails ~ this.options \", this.options);\n // this.options.thumbs = { swiper: this.thumbnailsSwiperInstance };\n // }\n }\n onSwiper(instance: Swiper) {\n this.log('swiper ready - instance', instance);\n this.swiperInstance = instance;\n this.swiperInstance?.on('click', (swiperInstance, evt) => {\n // console.log(\"Log ~ file: nxs-carousel.component.ts ~ line 392 ~ NxsCarouselComponent ~ this.swiperInstance.on ~ evt\", evt);\n const target = evt.target as HTMLElement;\n if (target.className.indexOf('nxs-carousel-button') !== -1 || target.className.indexOf('swiper-pagination') !== -1)\n return;\n this.runInZone(() => {\n this.slideClick.next(evt);\n if (this.options.nxsfullscreenOnClick && this.images && this.images.length && !this.hasHtmlContent) {\n this.showFullScreenCarousel(this.images, 'fullscreen-carousel');\n }\n });\n });\n this.swiperReady = true;\n\n // $('.swiper-container').on('keydown keyup', function(e){\n // if (e.keyCode==9) $('.swiper-container')[0].scrollLeft = 0;\n // })\n // console.log(\"Log ~ file: nxs-carousel.component.ts:254 ~ NxsCarouselComponent ~ this.swiperInstance.el.addEventListener ~ this.swiperInstance.el:\", this.swiperInstance.el);\n\n // this.swiperInstance.el.addEventListener('keydown', (evt) => {\n\n // if (evt.keyCode === 9) {\n // // evt.preventDefault();\n // // this.swiperInstance.el.scrollLeft = 0;\n\n // // this.swiperInstance.el.querySelectorAll('.swiper-wrapper')[0].scrollLeft = 0;\n // // $('.swiper-container')[0].scrollLeft = 0;\n // }\n // });\n // document.querySelectorAll()\n }\n private runInZone<T extends (...args: any[]) => void>(callback: T, ...args: any[]) {\n if (!this.zone) {\n callback(args);\n }\n return this.zone.run(() => callback(args));\n }\n\n onSlideChange(instances: Swiper[]) {\n if (!this.swiperReady) {\n return;\n }\n if (!this.swiperInstance && instances?.length) {\n this.swiperInstance = instances[0];\n }\n // console.log(\"Log ~ file: nxs-carousel.component.ts:252 ~ NxsCarouselComponent ~ onSlideChange ~ instances:\", instances);\n // this.swiperInstance = instance;\n // this.log('slide change - instance', instance);\n this.runInZone(() => {\n this.currentSlide = this.swiperInstance?.realIndex || 0;\n // console.log(\"Log ~ file: nxs-carousel.component.ts:256 ~ NxsCarouselComponent ~ this.runInZone ~ this.swiperInstance?.realIndex:\", this.swiperInstance);\n this.log('slide change - currentSlide', this.currentSlide);\n this.slideChange.next(this.currentSlide);\n });\n }\n}\n","<div *ngIf=\"options\"\n [ngClass]=\"{'swiper-container':true,'nxs-slider-with-thumbnails':!!options.nxsThumbnails && options.nxsThumbnails.show}\"\n [style.height]=\"getMainSliderHeight()\">\n <swiper [config]=\"options\" (swiper)=\"onSwiper($event)\" (slideChange)=\"onSlideChange($event)\"\n [thumbs]=\"{ swiper: thumbnailsSwiperInstance }\">\n <ng-container *ngIf=\"hasHtmlContent\">\n <ng-template *ngFor=\"let slide of contents\" swiperSlide>\n <ng-template [ngTemplateOutlet]=\"slide\" [ngTemplateOutletContext]=\"{\n $implicit: slide\n }\"></ng-template>\n </ng-template>\n </ng-container>\n <ng-container *ngIf=\"!hasHtmlContent && images?.length\">\n <ng-template swiperSlide *ngFor=\"let slideImage of images\">\n <img [ngClass]=\"{'nxs-image-slide':true,'swiper-lazy':lazy}\"\n [attr.data-src]=\"lazy ? slideImage.src : null\" [src]=\"lazy ? null : slideImage.src\"\n [attr.alt]=\"slideImage.alt\" />\n <div *ngIf=\"lazy\" class=\"swiper-lazy-preloader swiper-lazy-preloader-black\"></div>\n </ng-template>\n </ng-container>\n </swiper>\n @if(options?.nxsShowImagesCount){\n <div class=\"nxs-image-counter\">\n {{currentSlide+1}} / {{slidesCount}}\n </div>\n }\n</div>\n\n<div *ngIf=\"thumbnailsOptions && images?.length\"\n [style.height]=\"(!!options.nxsThumbnails && options.nxsThumbnails.show && !!options.nxsThumbnails.percentHeight) ? (options.nxsThumbnails.percentHeight + '%'):''\"\n [style.top]=\"(!!options.nxsThumbnails && options.nxsThumbnails.show && !!options.nxsThumbnails.percentHeight && options.nxsThumbnails.onMainSlider) ? ('-' + (options.nxsThumbnails.percentHeight) + '%'):''\"\n [ngClass]=\"{'swiper-container':true, 'nxs-slider-thumbnails-container':true,'nxs-slider-thumbnails-on-main-slider':options.nxsThumbnails && options.nxsThumbnails.onMainSlider}\">\n <swiper [config]=\"thumbnailsOptions\" (swiper)=\"onSwiperThumbnails($event)\">\n <ng-template swiperSlide *ngFor=\"let slideImage of images\">\n <img [ngClass]=\"{'nxs-image-slide':true,'swiper-lazy':lazy}\" [attr.data-src]=\"lazy ? slideImage.src : null\"\n [src]=\"lazy ? null : slideImage.src\" [attr.alt]=\"slideImage.alt\" />\n <div *ngIf=\"lazy\" class=\"swiper-lazy-preloader swiper-lazy-preloader-black\"></div>\n </ng-template>\n </swiper>\n</div>","import { Component, Inject, ViewEncapsulation } from '@angular/core';\nimport { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';\nimport { NxsCarouselDialogData } from './nxs-carousel-types';\n\n@Component({\n selector: 'nxs-carousel-dialog',\n template: `\n <div class=\"nxs-carousel-dialog-flex-wrapper\">\n <div class=\"nxs-carousel-dialog-header\">\n <button (click)=\"dialogRef.close()\" mat-icon-button><mat-icon>close</mat-icon></button>\n </div>\n <div [class]=\"wrapperClass\">\n <nxs-carousel [options]=\"data.options\" [images]=\"data.images\"></nxs-carousel>\n </div>\n</div>\n `,\n styleUrls: ['./nxs-carousel-dialog.component.scss'],\n encapsulation: ViewEncapsulation.None,\n standalone: false\n})\nexport class NxsCarouselDialogComponent {\n static dialogOpened = false;\n public wrapperClass: string = 'nxs-carousel-wrapper';\n constructor(\n @Inject(MAT_DIALOG_DATA) public data: NxsCarouselDialogData,\n public dialogRef: MatDialogRef<NxsCarouselDialogComponent>,\n ) {\n if (data.wrapperClass)\n this.wrapperClass += ' ' + data.wrapperClass;\n\n this.dialogRef.afterOpened().subscribe(\n () => {\n NxsCarouselDialogComponent.dialogOpened = true;\n }\n );\n this.dialogRef.afterClosed().subscribe(\n () => {\n NxsCarouselDialogComponent.dialogOpened = false;\n }\n );\n }\n}\n","import { NgModule, ModuleWithProviders } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NxsCarouselDialogComponent } from './nxs-carousel-dialog.component';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatDialog, MatDialogModule } from '@angular/material/dialog';\nimport { NxsCarouselComponent } from './nxs-carousel.component';\nimport { SwiperModule } from 'swiper/angular';\nimport { NxsSwiperTemplateDirective } from './swiper-directives';\nimport { NxsCarouselModuleConfig } from '../common-types';\nimport { CarouselEvents } from './carousel-events';\n\n@NgModule({\n declarations: [\n NxsCarouselComponent,\n NxsCarouselDialogComponent,\n NxsSwiperTemplateDirective,\n ],\n imports: [\n CommonModule,\n MatIconModule,\n MatButtonModule,\n MatDialogModule,\n SwiperModule,\n ],\n exports: [\n NxsCarouselComponent,\n NxsSwiperTemplateDirective,\n ],\n})\nexport class NxsCarouselModule {\n static openDialogSubscribed = false;\n constructor(\n matDialog: MatDialog,\n ) {\n NxsCarouselModule.subscribeToOpenDialog(matDialog);\n }\n static subscribeToOpenDialog(matDialog: MatDialog) {\n if (this.openDialogSubscribed) {\n return;\n }\n this.openDialogSubscribed = true;\n CarouselEvents.openCarouselDialog.subscribe((data) => {\n if (NxsCarouselDialogComponent.dialogOpened) {\n return;\n }\n matDialog.open(NxsCarouselDialogComponent, data);\n });\n }\n public static forRoot(config?: NxsCarouselModuleConfig): ModuleWithProviders<NxsCarouselModule> {\n return {\n ngModule: NxsCarouselModule,\n providers: [\n { provide: NxsCarouselModuleConfig, useValue: config },\n ],\n };\n }\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api-carousel';\n"],"names":["i2.NxsCarouselModuleConfig","i3","i4.NxsCarouselComponent"],"mappings":";;;;;;;;;;;;;;;;MAMa,0BAA0B,CAAA;uGAA1B,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAA1B,0BAA0B,EAAA,YAAA,EAAA,KAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAJtC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,qBAAqB;AAC/B,oBAAA,UAAU,EAAE;AACf,iBAAA;;;MCAY,uBAAuB,CAAA;IAChC,KAAK,GAAa,KAAK;AAC1B;;MCJY,cAAc,CAAA;AACvB,IAAA,OAAO,kBAAkB,GAAG,IAAI,QAAQ,EAMpC;;;ACGR;AACA,UAAU,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;MAQnD,oBAAoB,CAAA;AA0CjB,IAAA,SAAA;AACA,IAAA,IAAA;AACqB,IAAA,UAAA;AACT,IAAA,MAAA;IA5ChB,WAAW,GAAG,KAAK;AAE3B,IAAA,QAAQ;AAER,IAAA,eAAe;IAEf,IAAI,GAAG,IAAI;AACH,IAAA,eAAe,GAAG,IAAI,eAAe,EAAE;AAGxC,IAAA,MAAM;IACb,OAAO,GAAuB,IAAI;IAClC,iBAAiB,GAAkB,IAAI;IACvC,IACI,UAAU,CAAC,GAAuB,EAAA;QAClC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,iBAAiB,CAAC,GAAG,EAAE,KAAK,CAAC;QACjD,IAAI,CAAC,oBAAoB,EAAE;;IAG/B,cAAc,GAAG,KAAK;AACd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EAAA,CAAA;AAAjB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,iBAhBtB,oBAAoB;YACpB,0BAA0B;AAC1B,YAAA,0BAA0B,aAG1B,YAAY;YACZ,aAAa;YACb,eAAe;YACf,eAAe;AACf,YAAA,YAAY,aAGZ,oBAAoB;YACpB,0BAA0B,CAAA,EAAA,CAAA;AAGrB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAXtB,YAAY;YACZ,aAAa;YACb,eAAe;YACf,eAAe;YACf,YAAY,CAAA,EAAA,CAAA;;2FAOP,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAlB7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,YAAY,EAAE;wBACV,oBAAoB;wBACpB,0BAA0B;wBAC1B,0BAA0B;AAC7B,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,aAAa;wBACb,eAAe;wBACf,eAAe;wBACf,YAAY;AACf,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,oBAAoB;wBACpB,0BAA0B;AAC7B,qBAAA;AACJ,iBAAA;;;AC7BD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"nextalys-carousel-lib-nxs-carousel.mjs","sources":["../../lib/nxs-carousel/swiper-directives.ts","../../lib/common-types.ts","../../lib/nxs-carousel/carousel-events.ts","../../lib/nxs-carousel/nxs-carousel-dialog.component.ts","../../lib/nxs-carousel/nxs-carousel.component.ts","../../lib/nxs-carousel/nxs-carousel.component.html","../../lib/nextalys-carousel-lib-nxs-carousel.ts"],"sourcesContent":["import { Directive } from \"@angular/core\";\n\n@Directive({\n selector: '[nxsSwiperTemplate]',\n standalone: true\n})\nexport class NxsSwiperTemplateDirective { }\n","import { InjectionToken } from \"@angular/core\";\n\nexport interface NxsCarouselImage {\n alt?: string;\n src: string;\n}\nexport class NxsCarouselModuleConfig {\n debug?: boolean = false;\n}\n\nexport const NxsCarouselOptionsToken = new InjectionToken<NxsCarouselModuleConfig>('NxsCarouselOptionsToken');","import { NxsEvent } from \"nextalys-js-helpers\";\nimport { NxsCarouselDialogData } from \"./nxs-carousel-types\";\n\nexport class CarouselEvents {\n static openCarouselDialog = new NxsEvent<{\n data: NxsCarouselDialogData;\n panelClass: string;\n width?: string;\n height?: string;\n disableClose: boolean;\n }>();\n}","import { Component, Inject, ViewEncapsulation } from '@angular/core';\nimport { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';\nimport { NxsCarouselDialogData } from './nxs-carousel-types';\nimport { NxsCarouselComponent } from './nxs-carousel.component';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatButtonModule } from '@angular/material/button';\n\n@Component({\n selector: 'nxs-carousel-dialog',\n template: `\n <div class=\"nxs-carousel-dialog-flex-wrapper\">\n <div class=\"nxs-carousel-dialog-header\">\n <button (click)=\"dialogRef.close()\" mat-icon-button><mat-icon>close</mat-icon></button>\n </div>\n <div [class]=\"wrapperClass\">\n <nxs-carousel [options]=\"data.options\" [images]=\"data.images\"></nxs-carousel>\n </div>\n</div>\n `,\n styleUrls: ['./nxs-carousel-dialog.component.scss'],\n encapsulation: ViewEncapsulation.None,\n standalone: true,\n imports: [\n NxsCarouselComponent,\n MatIconModule,\n MatButtonModule,\n ],\n})\nexport class NxsCarouselDialogComponent {\n static dialogOpened = false;\n public wrapperClass: string = 'nxs-carousel-wrapper';\n constructor(\n @Inject(MAT_DIALOG_DATA) public data: NxsCarouselDialogData,\n public dialogRef: MatDialogRef<NxsCarouselDialogComponent>,\n ) {\n if (data.wrapperClass)\n this.wrapperClass += ' ' + data.wrapperClass;\n\n this.dialogRef.afterOpened().subscribe(\n () => {\n NxsCarouselDialogComponent.dialogOpened = true;\n }\n );\n this.dialogRef.afterClosed().subscribe(\n () => {\n NxsCarouselDialogComponent.dialogOpened = false;\n }\n );\n }\n}\n","import { Component, ViewEncapsulation, Input, ViewChild, Output, EventEmitter, PLATFORM_ID, Inject, Optional, NgZone, ContentChildren, TemplateRef, InjectionToken, CUSTOM_ELEMENTS_SCHEMA, ElementRef } from '@angular/core';\nimport { NxsCarouselDialogData, NxsCarouselOptions, NxsCarouselOptionsLazy } from './nxs-carousel-types';\nimport { MatDialog, MatDialogModule } from '@angular/material/dialog';\nimport { CommonModule, isPlatformBrowser } from '@angular/common';\nimport { EventsCollector } from 'nextalys-js-helpers/dist/events';\n// import Swiper core and required modules\n// import SwiperCore, { Navigation, Pagination, Autoplay, Lazy, Swiper, SwiperOptions, Thumbs } from 'swiper';\n//Virtual,Scrollbar,A11y\n// import { SwiperComponent } from 'swiper/angular';\nimport { NxsSwiperTemplateDirective } from './swiper-directives';\nimport { NxsCarouselImage, NxsCarouselModuleConfig, NxsCarouselOptionsToken } from '../common-types';\nimport { CarouselEvents } from './carousel-events';\nimport { NxsCarouselDialogComponent } from './nxs-carousel-dialog.component';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatButtonModule } from '@angular/material/button';\nimport { Swiper, SwiperOptions } from 'swiper/types';\nimport { SwiperContainer } from 'swiper/element';\n\n// install Swiper modules\n// SwiperCore.use([Navigation, Pagination, Autoplay, Lazy, Thumbs]);\n@Component({\n selector: 'nxs-carousel',\n templateUrl: './nxs-carousel.component.html',\n styleUrls: ['./nxs-carousel.component.scss'],\n encapsulation: ViewEncapsulation.None,\n standalone: true,\n imports: [\n CommonModule,\n MatIconModule,\n MatButtonModule,\n MatDialogModule,\n ],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class NxsCarouselComponent {\n private swiperReady = false;\n @ContentChildren(NxsSwiperTemplateDirective, { read: TemplateRef })\n contents!: TemplateRef<HTMLElement>[];\n @Input()\n lazy = true;\n private eventsCollector = new EventsCollector();\n\n @Input()\n public images: NxsCarouselImage[];\n options: NxsCarouselOptions = null;\n thumbnailsOptions: NxsCarouselOptionsLazy = null;\n @Input('options')\n set setOptions(val: NxsCarouselOptions) {\n this.options = this.setDefaultOptions(val, false);\n this.setThumbnailsOptions();\n }\n @Input()\n hasHtmlContent = false;\n thumbnailsSwiperInstance: Swiper;\n private swiperInstance: Swiper;\n\n @ViewChild('swiperRef') swiperRef!: ElementRef<SwiperContainer>;\n\n slidesCount = 0;\n\n\n @Output()\n slideChange = new EventEmitter<number>();\n public currentSlide = 0;\n @Output()\n slideClick = new EventEmitter<MouseEvent | TouchEvent | PointerEvent>();\n isBrowser = false;\n static openDialogSubscribed = false;\n\n constructor(\n private matDialog: MatDialog,\n private zone: NgZone,\n @Inject(PLATFORM_ID) private platformId: any,\n @Optional() @Inject(NxsCarouselOptionsToken) private config?: NxsCarouselModuleConfig,\n\n ) {\n if (!this.config)\n this.config = { debug: false };\n this.isBrowser = isPlatformBrowser(this.platformId);\n this.log('constructor - isBrowser', this.isBrowser);\n this.options = this.setDefaultOptions(undefined, false);\n\n NxsCarouselComponent.subscribeToOpenDialog(matDialog);\n\n }\n static subscribeToOpenDialog(matDialog: MatDialog) {\n if (this.openDialogSubscribed) {\n return;\n }\n this.openDialogSubscribed = true;\n CarouselEvents.openCarouselDialog.subscribe((data) => {\n if (NxsCarouselDialogComponent.dialogOpened) {\n return;\n }\n matDialog.open(NxsCarouselDialogComponent, data);\n });\n }\n private log(...args: any[]) {\n if (!this.config?.debug)\n return;\n console.log('[NxsCarousel]', ...args);\n }\n private destroy() {\n if (!this.isBrowser) {\n return;\n }\n this.eventsCollector?.unsubscribeAll();\n this.timeoutIds?.forEach(id => {\n try {\n clearTimeout(id);\n } catch (error) {\n console.log(\"on destroy - clear timeout ERROR \", error);\n }\n });\n this.timeoutIds = [];\n }\n ngOnDestroy(): void {\n this.destroy();\n }\n ngAfterViewInit(): void {\n if (!this.swiperRef?.nativeElement) {\n return;\n }\n\n this.log('ngAfterViewInit - swiperRef', this.swiperRef);\n // this.swiperInstance = this.swiperRef.nativeElement.swiper;\n // console.log(\"Log ~ NxsCarouselComponent ~ ngAfterViewInit ~ this.swiperInstance:\", this.swiperInstance);\n // console.log('thi.contents', this.contents);\n // this.initSlides();\n // this.createSlider(true);\n Object.assign(this.swiperRef.nativeElement, this.options);\n this.swiperRef.nativeElement?.initialize();\n this.swiperInstance = this.swiperRef?.nativeElement?.swiper;\n this.onSwiper();\n\n // console.log(\"Log ~ NxsCarouselComponent ~ ngAfterViewInit ~ setTimeout ~ this.swiperInstance:\", this.swiperInstance);\n\n // setTimeout(() => {\n // this.swiperInstance = this.swiperRef.nativeElement.swiper;\n // console.log(\"Log ~ NxsCarouselComponent ~ ngAfterViewInit ~ setTimeout ~ this.swiperInstance:\", this.swiperInstance);\n\n // });\n\n }\n\n getMainSliderHeight() {\n if (!this.options)\n return '';\n if (this.options.nxsThumbnails && this.options.nxsThumbnails.show) {\n if (this.options.nxsThumbnails.onMainSlider) {\n return '100%';\n }\n else if (this.options.nxsThumbnails.percentHeight) {\n return (100 - this.options.nxsThumbnails.percentHeight) + '%';\n }\n }\n return '';\n }\n private setDefaultOptions(options: NxsCarouselOptions, forDialog: boolean) {\n if (!options && forDialog) {\n options = {\n nxsShowNavigationBullets: true, loop: true, nxsThumbnails: { show: true }, effect: 'slide', nxsShowNavigationArrows: true, nxsShowImagesCount: true,\n lazy: this.lazy,\n };\n }\n else if (!options) {\n options = {\n nxsShowNavigationBullets: true, loop: true,\n nxsThumbnails: { show: false }, effect: 'slide', nxsShowNavigationArrows: true, nxsShowImagesCount: false, nxsCarouselDialogOptions: {},\n lazy: this.lazy,\n };\n }\n if (options.nxsCarouselDialogOptions) {\n if (typeof options.nxsCarouselDialogOptions.nxsThumbnails === 'undefined')\n options.nxsCarouselDialogOptions.nxsThumbnails = { show: false };\n if (typeof options.nxsCarouselDialogOptions.effect === 'undefined')\n options.nxsCarouselDialogOptions.effect = 'slide';\n if (typeof options.nxsCarouselDialogOptions.nxsShowNavigationArrows === 'undefined')\n options.nxsCarouselDialogOptions.nxsShowNavigationArrows = true;\n\n if (!!options.nxsCarouselDialogOptions.nxsThumbnails?.show) {\n if (typeof options.nxsCarouselDialogOptions.nxsThumbnails.percentHeight === 'undefined')\n options.nxsCarouselDialogOptions.nxsThumbnails.percentHeight = 20;\n if (typeof options.nxsCarouselDialogOptions.nxsThumbnails.perView === 'undefined')\n options.nxsCarouselDialogOptions.nxsThumbnails.perView = 10;\n options.nxsCarouselDialogOptions.nxsThumbnails.breakpoints = {\n 640: {\n slidesPerView: 5,\n },\n 768: {\n slidesPerView: 7,\n },\n 1024: {\n slidesPerView: 8,\n },\n };\n }\n }\n if (!options.nxsThumbnails)\n options.nxsThumbnails = { show: false };\n\n if (options.nxsThumbnails.show && typeof options.nxsThumbnails.percentHeight === 'undefined')\n options.nxsThumbnails.percentHeight = 20;\n\n if (options.nxsThumbnails.show && typeof options.nxsThumbnails.perView === 'undefined')\n options.nxsThumbnails.perView = 10;\n\n\n if (forDialog)\n options.nxsfullscreenOnClick = false;\n if (options.nxsThumbnails.onMainSlider)\n options.nxsShowNavigationBullets = false;\n\n if (typeof options.lazy === 'undefined')\n options.lazy = true;\n\n if (typeof options.navigation === 'undefined')\n options.navigation = true;\n if (typeof options.pagination === 'undefined')\n options.pagination = { clickable: true };\n\n if (options.nxsShowNavigationBullets === false) {\n options.pagination = false;\n }\n // console.log(\"Log ~ file: nxs-carousel.component.ts ~ line 272 ~ NxsCarouselComponent ~ setDefaultOptions ~ options\", options);\n\n return options;\n }\n\n private setThumbnailsOptions() {\n if (!!this.options?.nxsThumbnails?.show) {\n this.thumbnailsOptions = {\n slidesPerView: this.options.nxsThumbnails.perView,\n loop: false,\n freeMode: true,\n // watchSlidesVisibility: true,\n watchSlidesProgress: true,\n breakpoints: this.options.nxsThumbnails.breakpoints,\n // spaceBetween: 10,\n };\n if (this.lazy) {\n // Disable preloading of all images\n // this.thumbnailsOptions.preloadImages = false;\n // Enable lazy loading\n this.thumbnailsOptions.lazy = true;\n }\n // console.log(\"Log ~ file: nxs-carousel.component.ts ~ line 184 ~ NxsCarouselComponent ~ setThumbnailsOptions ~ this.thumbnailsOptions.lazy\", this.thumbnailsOptions.lazy);\n\n // this.thumbnailsSliderInstance = new Swiper(this.nxsThumbnailsSliderContainer.nativeElement, thumbnailsOptions);\n // this.options.thumbs = { swiper: this.thumbnailsSliderInstance };\n }\n }\n public showFullScreenCarousel(images: NxsCarouselImage[], wrapperClass?: string) {\n this.options.nxsCarouselDialogOptions = this.setDefaultOptions(this.options.nxsCarouselDialogOptions, true);\n const data: NxsCarouselDialogData = { images, wrapperClass, options: this.options.nxsCarouselDialogOptions };\n CarouselEvents.openCarouselDialog?.emit({\n data,\n panelClass: 'nxs-carousel-dialog',\n width: !!this.options.nxsCarouselDialogSize ? this.options.nxsCarouselDialogSize.width : undefined,\n height: !!this.options.nxsCarouselDialogSize ? this.options.nxsCarouselDialogSize.height : undefined,\n disableClose: !this.options.nxsCarouselDialogExitable,\n });\n }\n goToSlide(index: number, speed?: number) {\n this.swiperInstance?.slideTo(index, speed);\n }\n next() {\n this.swiperInstance?.slideNext();\n }\n previous() {\n this.swiperInstance?.slidePrev();\n }\n onSwiperThumbnails(instance: Swiper) {\n if (this.options?.nxsThumbnails?.show)\n this.thumbnailsSwiperInstance = instance;\n else\n this.thumbnailsSwiperInstance = null;\n\n // if (this.options?.nxsThumbnails?.show) {\n // const optionsClone = MainHelpers.cloneObject(this.options);\n // optionsClone.thumbs = { swiper: this.thumbnailsSwiperInstance };\n // // this.options = optionsClone;\n // // this.options = { ...this.options, thumbs: { swiper: this.thumbnailsSwiperInstance } };\n // console.log(\"Log ~ file: nxs-carousel.component.ts ~ line 416 ~ NxsCarouselComponent ~ onSwiperThumbnails ~ this.options \", this.options);\n // this.options.thumbs = { swiper: this.thumbnailsSwiperInstance };\n // }\n }\n\n timeoutIds: number[] = [];\n private getSlidesCount(): number {\n if (!this.swiperInstance?.slides?.length) {\n return 0;\n }\n //TODO: gérer le loop ici\n // if (this.swiperInstance?.lo) {\n // return (this.swiperInstance?.slides?.length || 0) - 2;\n // }\n\n // const isLoopActive = !!this.swiperInstance?.params?.loop;\n // if (isLoopActive) {\n // return (this.swiperInstance?.slides?.length || 0) - (this.swiperInstance?.loopedSlides || 0) * 2;\n // }\n\n return this.swiperInstance?.slides?.length || 0;\n }\n\n private onSwiper() {\n this.log('swiper ready - instance', this.swiperInstance);\n // this.swiperInstance = instance;\n this.swiperInstance?.on('click', (swiperInstance, evt) => {\n // console.log(\"Log ~ file: nxs-carousel.component.ts ~ line 392 ~ NxsCarouselComponent ~ this.swiperInstance.on ~ evt\", evt);\n const target = evt.target as HTMLElement;\n // console.log(\"Log ~ NxsCarouselComponent ~ onSwiper ~ target:\", target);\n if (target.className.indexOf('nxs-carousel-button') !== -1 || target.className.indexOf('swiper-pagination') !== -1\n || target.className.indexOf('swiper-button-next') !== -1 || target.className.indexOf('swiper-button-prev') !== -1\n || target.tagName === 'SWIPER-CONTAINER') {\n return;\n }\n this.runInZone(() => {\n this.slideClick.next(evt);\n // if (this.options.nxsfullscreenOnClick && this.images && this.images.length && !this.hasHtmlContent) {\n // this.showFullScreenCarousel(this.images, 'fullscreen-carousel');\n // }\n });\n });\n\n const tId = setTimeout(() => {\n this.slidesCount = this.getSlidesCount();\n });\n this.timeoutIds.push(tId);\n\n\n this.swiperInstance?.on('slideChange', () => {\n this.onSlideChange([this.swiperInstance]);\n });\n this.swiperReady = true;\n\n // $('.swiper-container').on('keydown keyup', function(e){\n // if (e.keyCode==9) $('.swiper-container')[0].scrollLeft = 0;\n // })\n // console.log(\"Log ~ file: nxs-carousel.component.ts:254 ~ NxsCarouselComponent ~ this.swiperInstance.el.addEventListener ~ this.swiperInstance.el:\", this.swiperInstance.el);\n\n // this.swiperInstance.el.addEventListener('keydown', (evt) => {\n\n // if (evt.keyCode === 9) {\n // // evt.preventDefault();\n // // this.swiperInstance.el.scrollLeft = 0;\n\n // // this.swiperInstance.el.querySelectorAll('.swiper-wrapper')[0].scrollLeft = 0;\n // // $('.swiper-container')[0].scrollLeft = 0;\n // }\n // });\n // document.querySelectorAll()\n }\n\n private runOutZone<T extends (...args: any[]) => void>(callback: T, ...args: any[]) {\n if (!this.zone) {\n callback(args);\n }\n return this.zone.runOutsideAngular(() => callback(args));\n }\n private runInZone<T extends (...args: any[]) => void>(callback: T, ...args: any[]) {\n if (!this.zone) {\n callback(args);\n }\n return this.zone.run(() => callback(args));\n }\n\n private onSlideChange(instances: Swiper[]) {\n if (!this.swiperReady) {\n return;\n }\n if (!this.swiperInstance && instances?.length) {\n this.swiperInstance = instances[0];\n }\n // console.log(\"Log ~ file: nxs-carousel.component.ts:252 ~ NxsCarouselComponent ~ onSlideChange ~ instances:\", instances);\n // this.swiperInstance = instance;\n // this.log('slide change - instance', instance);\n this.runInZone(() => {\n this.currentSlide = this.swiperInstance?.realIndex || 0;\n // console.log(\"Log ~ file: nxs-carousel.component.ts:256 ~ NxsCarouselComponent ~ this.runInZone ~ this.swiperInstance?.realIndex:\", this.swiperInstance);\n this.log('slide change - currentSlide', this.currentSlide);\n this.slideChange.next(this.currentSlide);\n });\n }\n}\n","<div *ngIf=\"options\"\n [ngClass]=\"{'swiper-container':true,'nxs-slider-with-thumbnails':!!options.nxsThumbnails && options.nxsThumbnails.show}\"\n [style.height]=\"getMainSliderHeight()\">\n <swiper-container init=\"false\" #swiperRef>\n @if(hasHtmlContent){\n @for( slide of contents; track $index){\n <swiper-slide>\n <ng-template [ngTemplateOutlet]=\"slide\" [ngTemplateOutletContext]=\"{\n $implicit: slide\n }\"></ng-template>\n </swiper-slide>\n }\n }@else if(images?.length){\n @for( slideImage of images; track $index){\n <swiper-slide>\n <img [ngClass]=\"{'nxs-image-slide':true,'swiper-lazy':lazy}\" [attr.loading]=\"lazy ? 'lazy' : null\"\n [src]=\"slideImage.src\" [attr.alt]=\"slideImage.alt\" />\n <div *ngIf=\"lazy\" class=\"swiper-lazy-preloader swiper-lazy-preloader-black\"></div>\n </swiper-slide>\n }\n }\n </swiper-container>\n <!-- <swiper [config]=\"options\" (swiper)=\"onSwiper($event)\" (slideChange)=\"onSlideChange($event)\"\n [thumbs]=\"{ swiper: thumbnailsSwiperInstance }\">\n <ng-container *ngIf=\"hasHtmlContent\">\n <ng-template *ngFor=\"let slide of contents\" swiperSlide>\n <swiper-slide>\n <ng-template [ngTemplateOutlet]=\"slide\" [ngTemplateOutletContext]=\"{\n $implicit: slide\n }\"></ng-template>\n </swiper-slide>\n </ng-template>\n </ng-container>\n <ng-container *ngIf=\"!hasHtmlContent && images?.length\">\n <ng-template swiperSlide *ngFor=\"let slideImage of images\">\n <img [ngClass]=\"{'nxs-image-slide':true,'swiper-lazy':lazy}\" [attr.loading]=\"lazy ? 'lazy' : null\"\n [src]=\"slideImage.src\" [attr.alt]=\"slideImage.alt\" />\n <div *ngIf=\"lazy\" class=\"swiper-lazy-preloader swiper-lazy-preloader-black\"></div>\n </ng-template>\n </ng-container>\n </swiper> -->\n @if(options?.nxsShowImagesCount){\n <div class=\"nxs-image-counter\">\n {{currentSlide+1}} / {{slidesCount}}\n </div>\n }\n</div>\n\n<!-- <div *ngIf=\"thumbnailsOptions && images?.length\"\n [style.height]=\"(!!options.nxsThumbnails && options.nxsThumbnails.show && !!options.nxsThumbnails.percentHeight) ? (options.nxsThumbnails.percentHeight + '%'):''\"\n [style.top]=\"(!!options.nxsThumbnails && options.nxsThumbnails.show && !!options.nxsThumbnails.percentHeight && options.nxsThumbnails.onMainSlider) ? ('-' + (options.nxsThumbnails.percentHeight) + '%'):''\"\n [ngClass]=\"{'swiper-container':true, 'nxs-slider-thumbnails-container':true,'nxs-slider-thumbnails-on-main-slider':options.nxsThumbnails && options.nxsThumbnails.onMainSlider}\">\n <swiper [config]=\"thumbnailsOptions\" (swiper)=\"onSwiperThumbnails($event)\">\n <ng-template swiperSlide *ngFor=\"let slideImage of images\">\n <img [ngClass]=\"{'nxs-image-slide':true,'swiper-lazy':lazy}\" [attr.data-src]=\"lazy ? slideImage.src : null\"\n [src]=\"lazy ? null : slideImage.src\" [attr.alt]=\"slideImage.alt\" />\n <div *ngIf=\"lazy\" class=\"swiper-lazy-preloader swiper-lazy-preloader-black\"></div>\n </ng-template>\n </swiper>\n</div> -->","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api-carousel';\n"],"names":["i2"],"mappings":";;;;;;;;;;;;;MAMa,0BAA0B,CAAA;uGAA1B,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAA1B,0BAA0B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAJtC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,qBAAqB;AAC/B,oBAAA,UAAU,EAAE;AACf,iBAAA;;;MCCY,uBAAuB,CAAA;IAChC,KAAK,GAAa,KAAK;AAC1B;AAEM,MAAM,uBAAuB,GAAG,IAAI,cAAc,CAA0B,yBAAyB,CAAC;;MCPhG,cAAc,CAAA;AACvB,IAAA,OAAO,kBAAkB,GAAG,IAAI,QAAQ,EAMpC;;;MCkBK,0BAA0B,CAAA;AAIC,IAAA,IAAA;AACzB,IAAA,SAAA;AAJX,IAAA,OAAO,YAAY,GAAG,KAAK;IACpB,YAAY,GAAW,sBAAsB;IACpD,WACoC,CAAA,IAA2B,EACpD,SAAmD,EAAA;QAD1B,IAAI,CAAA,IAAA,GAAJ,IAAI;QAC7B,IAAS,CAAA,SAAA,GAAT,SAAS;QAEhB,IAAI,IAAI,CAAC,YAAY;YACjB,IAAI,CAAC,YAAY,IAAI,GAAG,GAAG,IAAI,CAAC,YAAY;QAEhD,IAAI,CAAC,SA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AA,CAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA;;2FAIV,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAdhC,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,cAAc,iBAGT,iBAAiB,CAAC,IAAI,EAAA,UAAA,EACzB,IAAI,EACP,OAAA,EAAA;wBACL,YAAY;wBACZ,aAAa;wBACb,eAAe;wBACf,eAAe;qBAClB,EACQ,OAAA,EAAA,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAAA,o2GAAA,EAAA,MAAA,EAAA,CAAA,01ZAAA,CAAA,EAAA;;0BAwC5B,MAAM;2BAAC,WAAW;;0BAClB;;0BAAY,MAAM;2BAAC,uBAAuB;yCApC/C,QAAQ,EAAA,CAAA;sBADP,eAAe;AAAC,gBAAA,IAAA,EAAA,CAAA,0BAA0B,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;gBAGlE,IAAI,EAAA,CAAA;sBADH;gBAKM,MAAM,EAAA,CAAA;sBADZ;gBAKG,UAAU,EAAA,CAAA;sBADb,KAAK;uBAAC,SAAS;gBAMhB,cAAc,EAAA,CAAA;sBADb;gBAKuB,SAAS,EAAA,CAAA;sBAAhC,SAAS;uBAAC,WAAW;gBAMtB,WAAW,EAAA,CAAA;sBADV;gBAID,UAAU,EAAA,CAAA;sBADT;;;AEhEL;;AAEG;;;;"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
|
|
1
3
|
class NxsCarouselModuleConfig {
|
|
2
4
|
debug = false;
|
|
3
5
|
}
|
|
6
|
+
const NxsCarouselOptionsToken = new InjectionToken('NxsCarouselOptionsToken');
|
|
4
7
|
|
|
5
8
|
// export * from './lib/nxs-carousel/nxs-carousel.component';
|
|
6
9
|
// export * from './lib/nxs-carousel/nxs-carousel.module';
|
|
@@ -10,5 +13,5 @@ class NxsCarouselModuleConfig {
|
|
|
10
13
|
* Generated bundle index. Do not edit.
|
|
11
14
|
*/
|
|
12
15
|
|
|
13
|
-
export { NxsCarouselModuleConfig };
|
|
16
|
+
export { NxsCarouselModuleConfig, NxsCarouselOptionsToken };
|
|
14
17
|
//# sourceMappingURL=nextalys-carousel.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nextalys-carousel.mjs","sources":["../../lib/common-types.ts","../../lib/public-api.ts","../../lib/nextalys-carousel.ts"],"sourcesContent":["\nexport interface NxsCarouselImage {\n alt?: string;\n src: string;\n}\nexport class NxsCarouselModuleConfig {\n debug?: boolean = false;\n}","// export * from './lib/nxs-carousel/nxs-carousel.component';\n// export * from './lib/nxs-carousel/nxs-carousel.module';\n// export * from './lib/nxs-carousel/nxs-carousel-types';\nexport * from './common-types';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"nextalys-carousel.mjs","sources":["../../lib/common-types.ts","../../lib/public-api.ts","../../lib/nextalys-carousel.ts"],"sourcesContent":["import { InjectionToken } from \"@angular/core\";\n\nexport interface NxsCarouselImage {\n alt?: string;\n src: string;\n}\nexport class NxsCarouselModuleConfig {\n debug?: boolean = false;\n}\n\nexport const NxsCarouselOptionsToken = new InjectionToken<NxsCarouselModuleConfig>('NxsCarouselOptionsToken');","// export * from './lib/nxs-carousel/nxs-carousel.component';\n// export * from './lib/nxs-carousel/nxs-carousel.module';\n// export * from './lib/nxs-carousel/nxs-carousel-types';\nexport * from './common-types';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;MAMa,uBAAuB,CAAA;IAChC,KAAK,GAAa,KAAK;AAC1B;MAEY,uBAAuB,GAAG,IAAI,cAAc,CAA0B,yBAAyB;;ACV5G;AACA;AACA;;ACFA;;AAEG;;;;"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InjectionToken } from "@angular/core";
|
|
1
2
|
export interface NxsCarouselImage {
|
|
2
3
|
alt?: string;
|
|
3
4
|
src: string;
|
|
@@ -5,4 +6,5 @@ export interface NxsCarouselImage {
|
|
|
5
6
|
export declare class NxsCarouselModuleConfig {
|
|
6
7
|
debug?: boolean;
|
|
7
8
|
}
|
|
9
|
+
export declare const NxsCarouselOptionsToken: InjectionToken<NxsCarouselModuleConfig>;
|
|
8
10
|
//# sourceMappingURL=common-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-types.d.ts","sourceRoot":"","sources":["../../../lib/common-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"common-types.d.ts","sourceRoot":"","sources":["../../../lib/common-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,WAAW,gBAAgB;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACf;AACD,qBAAa,uBAAuB;IAChC,KAAK,CAAC,EAAE,OAAO,CAAS;CAC3B;AAED,eAAO,MAAM,uBAAuB,yCAAyE,CAAC"}
|
|
@@ -8,6 +8,6 @@ export declare class NxsCarouselDialogComponent {
|
|
|
8
8
|
wrapperClass: string;
|
|
9
9
|
constructor(data: NxsCarouselDialogData, dialogRef: MatDialogRef<NxsCarouselDialogComponent>);
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<NxsCarouselDialogComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NxsCarouselDialogComponent, "nxs-carousel-dialog", never, {}, {}, never, never,
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NxsCarouselDialogComponent, "nxs-carousel-dialog", never, {}, {}, never, never, true, never>;
|
|
12
12
|
}
|
|
13
13
|
//# sourceMappingURL=nxs-carousel-dialog.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nxs-carousel-dialog.component.d.ts","sourceRoot":"","sources":["../../../../lib/nxs-carousel/nxs-carousel-dialog.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;;
|
|
1
|
+
{"version":3,"file":"nxs-carousel-dialog.component.d.ts","sourceRoot":"","sources":["../../../../lib/nxs-carousel/nxs-carousel-dialog.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;;AAK7D,qBAqBa,0BAA0B;IAIC,IAAI,EAAE,qBAAqB;IACpD,SAAS,EAAE,YAAY,CAAC,0BAA0B,CAAC;IAJ9D,MAAM,CAAC,YAAY,UAAS;IACrB,YAAY,EAAE,MAAM,CAA0B;gBAEjB,IAAI,EAAE,qBAAqB,EACpD,SAAS,EAAE,YAAY,CAAC,0BAA0B,CAAC;yCALrD,0BAA0B;2CAA1B,0BAA0B;CAqBtC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { SwiperOptions } from "swiper";
|
|
1
|
+
import { SwiperOptions } from "swiper/types";
|
|
2
2
|
import { NxsCarouselImage } from "../common-types";
|
|
3
|
-
export interface
|
|
3
|
+
export interface NxsCarouselOptionsLazy extends SwiperOptions {
|
|
4
|
+
lazy?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface NxsCarouselOptions extends NxsCarouselOptionsLazy {
|
|
4
7
|
nxsShowNavigationBullets?: boolean;
|
|
5
8
|
nxsShowNavigationArrows?: boolean;
|
|
6
9
|
nxsThumbnails?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nxs-carousel-types.d.ts","sourceRoot":"","sources":["../../../../lib/nxs-carousel/nxs-carousel-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":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|
-
import { EventEmitter, NgZone, TemplateRef } from '@angular/core';
|
|
2
|
-
import { NxsCarouselOptions } from './nxs-carousel-types';
|
|
1
|
+
import { EventEmitter, NgZone, TemplateRef, ElementRef } from '@angular/core';
|
|
2
|
+
import { NxsCarouselOptions, NxsCarouselOptionsLazy } from './nxs-carousel-types';
|
|
3
3
|
import { MatDialog } from '@angular/material/dialog';
|
|
4
|
-
import { Swiper, SwiperOptions } from 'swiper';
|
|
5
|
-
import { SwiperComponent } from 'swiper/angular';
|
|
6
4
|
import { NxsCarouselImage, NxsCarouselModuleConfig } from '../common-types';
|
|
5
|
+
import { Swiper } from 'swiper/types';
|
|
6
|
+
import { SwiperContainer } from 'swiper/element';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class NxsCarouselComponent {
|
|
9
9
|
private matDialog;
|
|
@@ -12,22 +12,24 @@ export declare class NxsCarouselComponent {
|
|
|
12
12
|
private config?;
|
|
13
13
|
private swiperReady;
|
|
14
14
|
contents: TemplateRef<HTMLElement>[];
|
|
15
|
-
swiperComponent?: SwiperComponent;
|
|
16
15
|
lazy: boolean;
|
|
17
16
|
private eventsCollector;
|
|
18
17
|
images: NxsCarouselImage[];
|
|
19
18
|
options: NxsCarouselOptions;
|
|
20
|
-
thumbnailsOptions:
|
|
19
|
+
thumbnailsOptions: NxsCarouselOptionsLazy;
|
|
21
20
|
set setOptions(val: NxsCarouselOptions);
|
|
22
21
|
hasHtmlContent: boolean;
|
|
23
|
-
private swiperInstance;
|
|
24
22
|
thumbnailsSwiperInstance: Swiper;
|
|
25
|
-
|
|
23
|
+
private swiperInstance;
|
|
24
|
+
swiperRef: ElementRef<SwiperContainer>;
|
|
25
|
+
slidesCount: number;
|
|
26
26
|
slideChange: EventEmitter<number>;
|
|
27
27
|
currentSlide: number;
|
|
28
28
|
slideClick: EventEmitter<MouseEvent | TouchEvent | PointerEvent>;
|
|
29
29
|
isBrowser: boolean;
|
|
30
|
+
static openDialogSubscribed: boolean;
|
|
30
31
|
constructor(matDialog: MatDialog, zone: NgZone, platformId: any, config?: NxsCarouselModuleConfig);
|
|
32
|
+
static subscribeToOpenDialog(matDialog: MatDialog): void;
|
|
31
33
|
private log;
|
|
32
34
|
private destroy;
|
|
33
35
|
ngOnDestroy(): void;
|
|
@@ -40,10 +42,13 @@ export declare class NxsCarouselComponent {
|
|
|
40
42
|
next(): void;
|
|
41
43
|
previous(): void;
|
|
42
44
|
onSwiperThumbnails(instance: Swiper): void;
|
|
43
|
-
|
|
45
|
+
timeoutIds: number[];
|
|
46
|
+
private getSlidesCount;
|
|
47
|
+
private onSwiper;
|
|
48
|
+
private runOutZone;
|
|
44
49
|
private runInZone;
|
|
45
|
-
onSlideChange
|
|
50
|
+
private onSlideChange;
|
|
46
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<NxsCarouselComponent, [null, null, null, { optional: true; }]>;
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NxsCarouselComponent, "nxs-carousel", never, { "lazy": { "alias": "lazy"; "required": false; }; "images": { "alias": "images"; "required": false; }; "setOptions": { "alias": "options"; "required": false; }; "hasHtmlContent": { "alias": "hasHtmlContent"; "required": false; }; }, { "slideChange": "slideChange"; "slideClick": "slideClick"; }, ["contents"], never,
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NxsCarouselComponent, "nxs-carousel", never, { "lazy": { "alias": "lazy"; "required": false; }; "images": { "alias": "images"; "required": false; }; "setOptions": { "alias": "options"; "required": false; }; "hasHtmlContent": { "alias": "hasHtmlContent"; "required": false; }; }, { "slideChange": "slideChange"; "slideClick": "slideClick"; }, ["contents"], never, true, never>;
|
|
48
53
|
}
|
|
49
54
|
//# sourceMappingURL=nxs-carousel.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nxs-carousel.component.d.ts","sourceRoot":"","sources":["../../../../lib/nxs-carousel/nxs-carousel.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0D,YAAY,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AI,EAAE,MAAM,EACS,UAAU,EAAE,GAAG,EACS,MAAM,CAAC,EAAE,uBAAuB;IAYzF,MAAM,CAAC,qBAAqB,CAAC,SAAS,EAAE,SAAS;IAYjD,OAAO,CAAC,GAAG;IAKX,OAAO,CAAC,OAAO;IAcf,WAAW,IAAI,IAAI;IAGnB,eAAe,IAAI,IAAI;IA0BvB,mBAAmB;IAanB,OAAO,CAAC,iBAAiB;IAuEzB,OAAO,CAAC,oBAAoB;IAuBrB,sBAAsB,CAAC,MAAM,EAAE,gBAAgB,EAAE,EAAE,YAAY,CAAC,EAAE,MAAM;IAW/E,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;IAGvC,IAAI;IAGJ,QAAQ;IAGR,kBAAkB,CAAC,QAAQ,EAAE,MAAM;IAgBnC,UAAU,EAAE,MAAM,EAAE,CAAM;IAC1B,OAAO,CAAC,cAAc;IAiBtB,OAAO,CAAC,QAAQ;IAiDhB,OAAO,CAAC,UAAU;IAMlB,OAAO,CAAC,SAAS;IAOjB,OAAO,CAAC,aAAa;yCA9UZ,oBAAoB;2CAApB,oBAAoB;CA+VhC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class NxsSwiperTemplateDirective {
|
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<NxsSwiperTemplateDirective, never>;
|
|
4
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NxsSwiperTemplateDirective, "[nxsSwiperTemplate]", never, {}, {}, never, never,
|
|
4
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NxsSwiperTemplateDirective, "[nxsSwiperTemplate]", never, {}, {}, never, never, true, never>;
|
|
5
5
|
}
|
|
6
6
|
//# sourceMappingURL=swiper-directives.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api-carousel.d.ts","sourceRoot":"","sources":["../../../lib/public-api-carousel.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,
|
|
1
|
+
{"version":3,"file":"public-api-carousel.d.ts","sourceRoot":"","sources":["../../../lib/public-api-carousel.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InjectionToken } from "@angular/core";
|
|
1
2
|
export interface NxsCarouselImage {
|
|
2
3
|
alt?: string;
|
|
3
4
|
src: string;
|
|
@@ -5,4 +6,5 @@ export interface NxsCarouselImage {
|
|
|
5
6
|
export declare class NxsCarouselModuleConfig {
|
|
6
7
|
debug?: boolean;
|
|
7
8
|
}
|
|
9
|
+
export declare const NxsCarouselOptionsToken: InjectionToken<NxsCarouselModuleConfig>;
|
|
8
10
|
//# sourceMappingURL=common-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-types.d.ts","sourceRoot":"","sources":["../../../lib/common-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"common-types.d.ts","sourceRoot":"","sources":["../../../lib/common-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,WAAW,gBAAgB;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACf;AACD,qBAAa,uBAAuB;IAChC,KAAK,CAAC,EAAE,OAAO,CAAS;CAC3B;AAED,eAAO,MAAM,uBAAuB,yCAAyE,CAAC"}
|
|
@@ -17,6 +17,6 @@ export declare class NxsCarouselComponent {
|
|
|
17
17
|
next(): void;
|
|
18
18
|
previous(): void;
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<NxsCarouselComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NxsCarouselComponent, "nxs-carousel", never, { "lazy": { "alias": "lazy"; "required": false; }; "images": { "alias": "images"; "required": false; }; "options": { "alias": "options"; "required": false; }; "hasHtmlContent": { "alias": "hasHtmlContent"; "required": false; }; }, { "slideChange": "slideChange"; "slideClick": "slideClick"; }, never, never,
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NxsCarouselComponent, "nxs-carousel", never, { "lazy": { "alias": "lazy"; "required": false; }; "images": { "alias": "images"; "required": false; }; "options": { "alias": "options"; "required": false; }; "hasHtmlContent": { "alias": "hasHtmlContent"; "required": false; }; }, { "slideChange": "slideChange"; "slideClick": "slideClick"; }, never, never, true, never>;
|
|
21
21
|
}
|
|
22
22
|
//# sourceMappingURL=nxs-carousel-mock.component.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class NxsSwiperTemplateDirective {
|
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<NxsSwiperTemplateDirective, never>;
|
|
4
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NxsSwiperTemplateDirective, "[nxsSwiperTemplate]", never, {}, {}, never, never,
|
|
4
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NxsSwiperTemplateDirective, "[nxsSwiperTemplate]", never, {}, {}, never, never, true, never>;
|
|
5
5
|
}
|
|
6
6
|
//# sourceMappingURL=swiper-directives.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from './nxs-carousel-mock/nxs-carousel-mock.component';
|
|
2
|
-
export * from './nxs-carousel-mock/nxs-carousel-mock.module';
|
|
3
2
|
export * from './nxs-carousel-mock/nxs-carousel-types';
|
|
4
3
|
export * from './nxs-carousel-mock/swiper-directives';
|
|
5
4
|
//# sourceMappingURL=public-api-carousel-mock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api-carousel-mock.d.ts","sourceRoot":"","sources":["../../../lib/public-api-carousel-mock.ts"],"names":[],"mappings":"AAAA,cAAc,iDAAiD,CAAC;AAChE,cAAc,
|
|
1
|
+
{"version":3,"file":"public-api-carousel-mock.d.ts","sourceRoot":"","sources":["../../../lib/public-api-carousel-mock.ts"],"names":[],"mappings":"AAAA,cAAc,iDAAiD,CAAC;AAChE,cAAc,wCAAwC,CAAC;AACvD,cAAc,uCAAuC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
-
import { NxsCarouselModuleConfig } from '../common-types';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "./nxs-carousel.component";
|
|
6
|
-
import * as i2 from "./nxs-carousel-dialog.component";
|
|
7
|
-
import * as i3 from "./swiper-directives";
|
|
8
|
-
import * as i4 from "@angular/common";
|
|
9
|
-
import * as i5 from "@angular/material/icon";
|
|
10
|
-
import * as i6 from "@angular/material/button";
|
|
11
|
-
import * as i7 from "@angular/material/dialog";
|
|
12
|
-
import * as i8 from "swiper/angular";
|
|
13
|
-
export declare class NxsCarouselModule {
|
|
14
|
-
static openDialogSubscribed: boolean;
|
|
15
|
-
constructor(matDialog: MatDialog);
|
|
16
|
-
static subscribeToOpenDialog(matDialog: MatDialog): void;
|
|
17
|
-
static forRoot(config?: NxsCarouselModuleConfig): ModuleWithProviders<NxsCarouselModule>;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NxsCarouselModule, never>;
|
|
19
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NxsCarouselModule, [typeof i1.NxsCarouselComponent, typeof i2.NxsCarouselDialogComponent, typeof i3.NxsSwiperTemplateDirective], [typeof i4.CommonModule, typeof i5.MatIconModule, typeof i6.MatButtonModule, typeof i7.MatDialogModule, typeof i8.SwiperModule], [typeof i1.NxsCarouselComponent, typeof i3.NxsSwiperTemplateDirective]>;
|
|
20
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<NxsCarouselModule>;
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=nxs-carousel.module.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nxs-carousel.module.d.ts","sourceRoot":"","sources":["../../../../lib/nxs-carousel/nxs-carousel.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAK9D,OAAO,EAAE,SAAS,EAAmB,MAAM,0BAA0B,CAAC;AAItE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;;;;;;;;;;AAG1D,qBAkBa,iBAAiB;IAC1B,MAAM,CAAC,oBAAoB,UAAS;gBAEhC,SAAS,EAAE,SAAS;IAIxB,MAAM,CAAC,qBAAqB,CAAC,SAAS,EAAE,SAAS;WAYnC,OAAO,CAAC,MAAM,CAAC,EAAE,uBAAuB,GAAG,mBAAmB,CAAC,iBAAiB,CAAC;yCAnBtF,iBAAiB;0CAAjB,iBAAiB;0CAAjB,iBAAiB;CA2B7B"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders } from "@angular/core";
|
|
2
|
-
import { NxsCarouselModuleConfig } from '../common-types';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "./nxs-carousel-mock.component";
|
|
5
|
-
import * as i2 from "./swiper-directives";
|
|
6
|
-
import * as i3 from "@angular/common";
|
|
7
|
-
export declare class NxsCarouselModule {
|
|
8
|
-
static forRoot(config?: NxsCarouselModuleConfig): ModuleWithProviders<NxsCarouselModule>;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NxsCarouselModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NxsCarouselModule, [typeof i1.NxsCarouselComponent, typeof i2.NxsSwiperTemplateDirective], [typeof i3.CommonModule], [typeof i1.NxsCarouselComponent, typeof i2.NxsSwiperTemplateDirective]>;
|
|
11
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<NxsCarouselModule>;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=nxs-carousel-mock.module.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nxs-carousel-mock.module.d.ts","sourceRoot":"","sources":["../../../../lib/nxs-carousel-mock/nxs-carousel-mock.module.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAY,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;;;;;AAI1D,qBAaa,iBAAiB;WACZ,OAAO,CAAC,MAAM,CAAC,EAAE,uBAAuB,GAAG,mBAAmB,CAAC,iBAAiB,CAAC;yCADtF,iBAAiB;0CAAjB,iBAAiB;0CAAjB,iBAAiB;CAS7B"}
|