nextalys-carousel 0.0.61 → 0.0.63

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.
Files changed (95) hide show
  1. package/{esm2015/common-types.js → esm2020/common-types.mjs} +0 -0
  2. package/{esm2015/lib/nxs-carousel/common-types.js → esm2020/lib/nxs-carousel/common-types.mjs} +0 -0
  3. package/esm2020/lib/nxs-carousel/nextalys-carousel-lib-nxs-carousel.mjs +5 -0
  4. package/esm2020/lib/nxs-carousel/nxs-carousel/carousel-events.mjs +5 -0
  5. package/esm2020/lib/nxs-carousel/nxs-carousel/nxs-carousel-dialog.component.mjs +51 -0
  6. package/esm2020/lib/nxs-carousel/nxs-carousel/nxs-carousel-types.mjs +2 -0
  7. package/esm2020/lib/nxs-carousel/nxs-carousel/nxs-carousel.component.mjs +256 -0
  8. package/esm2020/lib/nxs-carousel/nxs-carousel/nxs-carousel.module.mjs +68 -0
  9. package/esm2020/lib/nxs-carousel/nxs-carousel/swiper-directives.mjs +13 -0
  10. package/{esm2015/lib/nxs-carousel/public-api-carousel.js → esm2020/lib/nxs-carousel/public-api-carousel.mjs} +2 -1
  11. package/{esm2015/lib/nxs-carousel-mock/common-types.js → esm2020/lib/nxs-carousel-mock/common-types.mjs} +0 -0
  12. package/esm2020/lib/nxs-carousel-mock/nextalys-carousel-lib-nxs-carousel-mock.mjs +5 -0
  13. package/esm2020/lib/nxs-carousel-mock/nxs-carousel-mock/nxs-carousel-mock.component.mjs +44 -0
  14. package/esm2020/lib/nxs-carousel-mock/nxs-carousel-mock/nxs-carousel-mock.module.mjs +38 -0
  15. package/{esm2015/lib/nxs-carousel-mock/nxs-carousel-mock/nxs-carousel-types.js → esm2020/lib/nxs-carousel-mock/nxs-carousel-mock/nxs-carousel-types.mjs} +0 -0
  16. package/esm2020/lib/nxs-carousel-mock/nxs-carousel-mock/swiper-directives.mjs +13 -0
  17. package/{esm2015/lib/nxs-carousel-mock/public-api-carousel-mock.js → esm2020/lib/nxs-carousel-mock/public-api-carousel-mock.mjs} +2 -1
  18. package/{esm2015/nextalys-carousel.js → esm2020/nextalys-carousel.mjs} +0 -0
  19. package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
  20. package/fesm2015/nextalys-carousel-lib-nxs-carousel-mock.mjs +101 -0
  21. package/fesm2015/nextalys-carousel-lib-nxs-carousel-mock.mjs.map +1 -0
  22. package/fesm2015/nextalys-carousel-lib-nxs-carousel.mjs +395 -0
  23. package/fesm2015/nextalys-carousel-lib-nxs-carousel.mjs.map +1 -0
  24. package/fesm2015/{nextalys-carousel.js → nextalys-carousel.mjs} +1 -1
  25. package/fesm2015/nextalys-carousel.mjs.map +1 -0
  26. package/fesm2020/nextalys-carousel-lib-nxs-carousel-mock.mjs +101 -0
  27. package/fesm2020/nextalys-carousel-lib-nxs-carousel-mock.mjs.map +1 -0
  28. package/fesm2020/nextalys-carousel-lib-nxs-carousel.mjs +382 -0
  29. package/fesm2020/nextalys-carousel-lib-nxs-carousel.mjs.map +1 -0
  30. package/fesm2020/nextalys-carousel.mjs +14 -0
  31. package/fesm2020/nextalys-carousel.mjs.map +1 -0
  32. package/index.d.ts +6 -0
  33. package/lib/nxs-carousel/index.d.ts +6 -0
  34. package/lib/nxs-carousel/nextalys-carousel-lib-nxs-carousel.d.ts.map +1 -1
  35. package/lib/nxs-carousel/nxs-carousel/carousel-events.d.ts +12 -0
  36. package/lib/nxs-carousel/nxs-carousel/carousel-events.d.ts.map +1 -0
  37. package/lib/nxs-carousel/nxs-carousel/nxs-carousel-dialog.component.d.ts +5 -7
  38. package/lib/nxs-carousel/nxs-carousel/nxs-carousel-dialog.component.d.ts.map +1 -1
  39. package/lib/nxs-carousel/nxs-carousel/nxs-carousel-types.d.ts +6 -0
  40. package/lib/nxs-carousel/nxs-carousel/nxs-carousel-types.d.ts.map +1 -1
  41. package/lib/nxs-carousel/nxs-carousel/nxs-carousel.component.d.ts +3 -0
  42. package/lib/nxs-carousel/nxs-carousel/nxs-carousel.component.d.ts.map +1 -1
  43. package/lib/nxs-carousel/nxs-carousel/nxs-carousel.module.d.ts +15 -0
  44. package/lib/nxs-carousel/nxs-carousel/nxs-carousel.module.d.ts.map +1 -1
  45. package/lib/nxs-carousel/nxs-carousel/swiper-directives.d.ts +3 -0
  46. package/lib/nxs-carousel/nxs-carousel/swiper-directives.d.ts.map +1 -1
  47. package/lib/nxs-carousel/public-api-carousel.d.ts +1 -0
  48. package/lib/nxs-carousel/public-api-carousel.d.ts.map +1 -1
  49. package/lib/nxs-carousel-mock/index.d.ts +6 -0
  50. package/lib/nxs-carousel-mock/nextalys-carousel-lib-nxs-carousel-mock.d.ts.map +1 -1
  51. package/lib/nxs-carousel-mock/nxs-carousel-mock/nxs-carousel-mock.component.d.ts +3 -0
  52. package/lib/nxs-carousel-mock/nxs-carousel-mock/nxs-carousel-mock.component.d.ts.map +1 -1
  53. package/lib/nxs-carousel-mock/nxs-carousel-mock/nxs-carousel-mock.module.d.ts +7 -0
  54. package/lib/nxs-carousel-mock/nxs-carousel-mock/nxs-carousel-mock.module.d.ts.map +1 -1
  55. package/lib/nxs-carousel-mock/nxs-carousel-mock/swiper-directives.d.ts +3 -0
  56. package/lib/nxs-carousel-mock/nxs-carousel-mock/swiper-directives.d.ts.map +1 -1
  57. package/lib/nxs-carousel-mock/public-api-carousel-mock.d.ts +1 -0
  58. package/lib/nxs-carousel-mock/public-api-carousel-mock.d.ts.map +1 -1
  59. package/nextalys-carousel.d.ts.map +1 -1
  60. package/package.json +37 -9
  61. package/bundles/nextalys-carousel-lib-nxs-carousel-mock.umd.js +0 -103
  62. package/bundles/nextalys-carousel-lib-nxs-carousel-mock.umd.js.map +0 -1
  63. package/bundles/nextalys-carousel-lib-nxs-carousel-mock.umd.min.js +0 -2
  64. package/bundles/nextalys-carousel-lib-nxs-carousel-mock.umd.min.js.map +0 -1
  65. package/bundles/nextalys-carousel-lib-nxs-carousel.umd.js +0 -674
  66. package/bundles/nextalys-carousel-lib-nxs-carousel.umd.js.map +0 -1
  67. package/bundles/nextalys-carousel-lib-nxs-carousel.umd.min.js +0 -16
  68. package/bundles/nextalys-carousel-lib-nxs-carousel.umd.min.js.map +0 -1
  69. package/bundles/nextalys-carousel.umd.js +0 -25
  70. package/bundles/nextalys-carousel.umd.js.map +0 -1
  71. package/bundles/nextalys-carousel.umd.min.js +0 -2
  72. package/bundles/nextalys-carousel.umd.min.js.map +0 -1
  73. package/esm2015/lib/nxs-carousel/nextalys-carousel-lib-nxs-carousel.js +0 -8
  74. package/esm2015/lib/nxs-carousel/nxs-carousel/nxs-carousel-dialog.component.js +0 -33
  75. package/esm2015/lib/nxs-carousel/nxs-carousel/nxs-carousel-types.js +0 -2
  76. package/esm2015/lib/nxs-carousel/nxs-carousel/nxs-carousel.component.js +0 -253
  77. package/esm2015/lib/nxs-carousel/nxs-carousel/nxs-carousel.module.js +0 -41
  78. package/esm2015/lib/nxs-carousel/nxs-carousel/swiper-directives.js +0 -9
  79. package/esm2015/lib/nxs-carousel-mock/nextalys-carousel-lib-nxs-carousel-mock.js +0 -7
  80. package/esm2015/lib/nxs-carousel-mock/nxs-carousel-mock/nxs-carousel-mock.component.js +0 -37
  81. package/esm2015/lib/nxs-carousel-mock/nxs-carousel-mock/nxs-carousel-mock.module.js +0 -31
  82. package/esm2015/lib/nxs-carousel-mock/nxs-carousel-mock/swiper-directives.js +0 -9
  83. package/fesm2015/nextalys-carousel-lib-nxs-carousel-mock.js +0 -85
  84. package/fesm2015/nextalys-carousel-lib-nxs-carousel-mock.js.map +0 -1
  85. package/fesm2015/nextalys-carousel-lib-nxs-carousel.js +0 -333
  86. package/fesm2015/nextalys-carousel-lib-nxs-carousel.js.map +0 -1
  87. package/fesm2015/nextalys-carousel.js.map +0 -1
  88. package/lib/nxs-carousel/nextalys-carousel-lib-nxs-carousel.d.ts +0 -8
  89. package/lib/nxs-carousel/nextalys-carousel-lib-nxs-carousel.metadata.json +0 -1
  90. package/lib/nxs-carousel/package.json +0 -11
  91. package/lib/nxs-carousel-mock/nextalys-carousel-lib-nxs-carousel-mock.d.ts +0 -7
  92. package/lib/nxs-carousel-mock/nextalys-carousel-lib-nxs-carousel-mock.metadata.json +0 -1
  93. package/lib/nxs-carousel-mock/package.json +0 -11
  94. package/nextalys-carousel.d.ts +0 -5
  95. package/nextalys-carousel.metadata.json +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nextalys-carousel-lib-nxs-carousel.mjs","sources":["../../lib/nxs-carousel/swiper-directives.ts","../../lib/nxs-carousel/carousel-events.ts","../../lib/common-types.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})\nexport class NxsSwiperTemplateDirective { }\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}","\nexport interface NxsCarouselImage {\n alt?: string;\n src: string;\n}\nexport class NxsCarouselModuleConfig {\n debug?: boolean = false;\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})\nexport class NxsCarouselComponent {\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 slidesCount: number = 0;\n private swiperInstance: Swiper;\n thumbnailsSwiperInstance: Swiper;\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 });\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 // this.swiperInstance = instance;\n // this.log('slide change - instance', instance);\n this.runInZone(() => {\n this.currentSlide = this.swiperInstance?.realIndex || 0;\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 <div *ngIf=\"lazy\" class=\"swiper-lazy-preloader swiper-lazy-preloader-black\"></div>\n </ng-template>\n </ng-container>\n </swiper>\n <ng-container *ngIf=\"images && options.nxsShowImagesCount\">\n <div class=\"nxs-image-counter\">\n {{currentSlide+1}} / {{images.length}}\n </div>\n </ng-container>\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\" />\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})\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\n constructor(\n private matDialog: MatDialog,\n ) {\n CarouselEvents.openCarouselDialog.subscribe((data) => {\n if (NxsCarouselDialogComponent.dialogOpened) {\n return;\n }\n this.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":";;;;;;;;;;;;;;;;MAKa,0BAA0B,CAAA;;uHAA1B,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;2GAA1B,0BAA0B,EAAA,QAAA,EAAA,qBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;2FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAHtC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,qBAAqB;iBAClC,CAAA;;;MCDY,cAAc,CAAA;;AAChB,cAAA,CAAA,kBAAkB,G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0B;AAC7B,qBAAA;iBACJ,CAAA;;;AC7BD;;AAEG;;;;"}
@@ -11,4 +11,4 @@ class NxsCarouselModuleConfig {
11
11
  */
12
12
 
13
13
  export { NxsCarouselModuleConfig };
14
- //# sourceMappingURL=nextalys-carousel.js.map
14
+ //# sourceMappingURL=nextalys-carousel.mjs.map
@@ -0,0 +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":"MAKa,uBAAuB,CAAA;AAApC,IAAA,WAAA,GAAA;AACI,QAAA,IAAK,CAAA,KAAA,GAAa,KAAK,CAAC;KAC3B;AAAA;;ACPD;;ACAA;;AAEG;;;;"}
@@ -0,0 +1,101 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, Component, ViewEncapsulation, Input, Output, Directive, NgModule } from '@angular/core';
3
+ import { CommonModule } from '@angular/common';
4
+
5
+ class NxsCarouselComponent {
6
+ constructor() {
7
+ this.lazy = true;
8
+ this.options = null;
9
+ this.hasHtmlContent = false;
10
+ this.slidesCount = 0;
11
+ this.slideChange = new EventEmitter();
12
+ this.currentSlide = 0;
13
+ this.slideClick = new EventEmitter();
14
+ this.isBrowser = false;
15
+ }
16
+ goToSlide(index, speed) {
17
+ }
18
+ next() {
19
+ }
20
+ previous() {
21
+ }
22
+ }
23
+ NxsCarouselComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: NxsCarouselComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
24
+ NxsCarouselComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.5", type: NxsCarouselComponent, selector: "nxs-carousel", inputs: { lazy: "lazy", images: "images", options: "options", hasHtmlContent: "hasHtmlContent" }, outputs: { slideChange: "slideChange", slideClick: "slideClick" }, ngImport: i0, template: 'SWIPER MOCK', isInline: true, encapsulation: i0.ViewEncapsulation.None });
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: NxsCarouselComponent, decorators: [{
26
+ type: Component,
27
+ args: [{
28
+ selector: 'nxs-carousel',
29
+ template: 'SWIPER MOCK',
30
+ // styleUrls: ['./nxs-carousel.component.scss'],
31
+ encapsulation: ViewEncapsulation.None,
32
+ }]
33
+ }], ctorParameters: function () { return []; }, propDecorators: { lazy: [{
34
+ type: Input
35
+ }], images: [{
36
+ type: Input
37
+ }], options: [{
38
+ type: Input
39
+ }], hasHtmlContent: [{
40
+ type: Input
41
+ }], slideChange: [{
42
+ type: Output
43
+ }], slideClick: [{
44
+ type: Output
45
+ }] } });
46
+
47
+ class NxsCarouselModuleConfig {
48
+ constructor() {
49
+ this.debug = false;
50
+ }
51
+ }
52
+
53
+ class NxsSwiperTemplateDirective {
54
+ }
55
+ NxsSwiperTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: NxsSwiperTemplateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
56
+ NxsSwiperTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.5", type: NxsSwiperTemplateDirective, selector: "[nxsSwiperTemplate]", ngImport: i0 });
57
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: NxsSwiperTemplateDirective, decorators: [{
58
+ type: Directive,
59
+ args: [{
60
+ selector: '[nxsSwiperTemplate]',
61
+ }]
62
+ }] });
63
+
64
+ class NxsCarouselModule {
65
+ static forRoot(config) {
66
+ return {
67
+ ngModule: NxsCarouselModule,
68
+ providers: [
69
+ { provide: NxsCarouselModuleConfig, useValue: config },
70
+ ]
71
+ };
72
+ }
73
+ }
74
+ NxsCarouselModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: NxsCarouselModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
75
+ NxsCarouselModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.5", ngImport: i0, type: NxsCarouselModule, declarations: [NxsCarouselComponent,
76
+ NxsSwiperTemplateDirective], imports: [CommonModule], exports: [NxsCarouselComponent,
77
+ NxsSwiperTemplateDirective] });
78
+ NxsCarouselModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: NxsCarouselModule, imports: [CommonModule] });
79
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: NxsCarouselModule, decorators: [{
80
+ type: NgModule,
81
+ args: [{
82
+ imports: [
83
+ CommonModule,
84
+ ],
85
+ declarations: [
86
+ NxsCarouselComponent,
87
+ NxsSwiperTemplateDirective,
88
+ ],
89
+ exports: [
90
+ NxsCarouselComponent,
91
+ NxsSwiperTemplateDirective,
92
+ ],
93
+ }]
94
+ }] });
95
+
96
+ /**
97
+ * Generated bundle index. Do not edit.
98
+ */
99
+
100
+ export { NxsCarouselComponent, NxsCarouselModule, NxsSwiperTemplateDirective };
101
+ //# sourceMappingURL=nextalys-carousel-lib-nxs-carousel-mock.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nextalys-carousel-lib-nxs-carousel-mock.mjs","sources":["../../lib/nxs-carousel-mock/nxs-carousel-mock.component.ts","../../lib/common-types.ts","../../lib/nxs-carousel-mock/swiper-directives.ts","../../lib/nxs-carousel-mock/nxs-carousel-mock.module.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: 'SWIPER MOCK',\n // styleUrls: ['./nxs-carousel.component.scss'],\n encapsulation: ViewEncapsulation.None,\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","\nexport interface NxsCarouselImage {\n alt?: string;\n src: string;\n}\nexport class NxsCarouselModuleConfig {\n debug?: boolean = false;\n}","import { Directive } from \"@angular/core\";\n\n@Directive({\n selector: '[nxsSwiperTemplate]',\n})\nexport class NxsSwiperTemplateDirective { }\n","import { CommonModule } from '@angular/common';\nimport { ModuleWithProviders, NgModule } from \"@angular/core\";\nimport { NxsCarouselModuleConfig } from '../common-types';\nimport { NxsCarouselComponent } from './nxs-carousel-mock.component';\nimport { NxsSwiperTemplateDirective } from './swiper-directives';\n\n@NgModule({\n imports: [\n CommonModule,\n ],\n declarations: [\n NxsCarouselComponent,\n NxsSwiperTemplateDirective,\n ],\n exports: [\n NxsCarouselComponent,\n NxsSwiperTemplateDirective,\n ],\n})\nexport class NxsCarouselModule {\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-mock';\n"],"names":[],"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AA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAXtB,YAAY,CAAA,EAAA,CAAA,CAAA;2FAWP,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAb7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;AACf,qBAAA;AACD,oBAAA,YAAY,EAAE;wBACV,oBAAoB;wBACpB,0BAA0B;AAC7B,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,oBAAoB;wBACpB,0BAA0B;AAC7B,qBAAA;AACJ,iBAAA,CAAA;;;AClBD;;AAEG;;;;"}
@@ -0,0 +1,382 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Directive, EventEmitter, PLATFORM_ID, TemplateRef, Component, ViewEncapsulation, Inject, Optional, ContentChildren, ViewChild, Input, Output, NgModule } from '@angular/core';
3
+ import * as i1 from '@angular/material/dialog';
4
+ import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
5
+ import * as i3 from '@angular/common';
6
+ import { isPlatformBrowser, CommonModule } from '@angular/common';
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
+ import { NxsEvent } from 'nextalys-js-helpers';
12
+ import * as i2 from '@angular/material/icon';
13
+ import { MatIconModule } from '@angular/material/icon';
14
+ import * as i3$1 from '@angular/material/button';
15
+ import { MatButtonModule } from '@angular/material/button';
16
+
17
+ class NxsSwiperTemplateDirective {
18
+ }
19
+ NxsSwiperTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: NxsSwiperTemplateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
20
+ NxsSwiperTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.5", type: NxsSwiperTemplateDirective, selector: "[nxsSwiperTemplate]", ngImport: i0 });
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: NxsSwiperTemplateDirective, decorators: [{
22
+ type: Directive,
23
+ args: [{
24
+ selector: '[nxsSwiperTemplate]',
25
+ }]
26
+ }] });
27
+
28
+ class NxsCarouselModuleConfig {
29
+ constructor() {
30
+ this.debug = false;
31
+ }
32
+ }
33
+
34
+ class CarouselEvents {
35
+ }
36
+ CarouselEvents.openCarouselDialog = new NxsEvent();
37
+
38
+ // install Swiper modules
39
+ SwiperCore.use([Navigation, Pagination, Autoplay, Lazy, Thumbs]);
40
+ class NxsCarouselComponent {
41
+ constructor(matDialog, zone, platformId, config) {
42
+ this.matDialog = matDialog;
43
+ this.zone = zone;
44
+ this.platformId = platformId;
45
+ this.config = config;
46
+ this.lazy = true;
47
+ this.eventsCollector = new EventsCollector();
48
+ this.options = null;
49
+ this.thumbnailsOptions = null;
50
+ this.hasHtmlContent = false;
51
+ this.slidesCount = 0;
52
+ this.slideChange = new EventEmitter();
53
+ this.currentSlide = 0;
54
+ this.slideClick = new EventEmitter();
55
+ this.isBrowser = false;
56
+ if (!this.config)
57
+ this.config = { debug: false };
58
+ this.isBrowser = isPlatformBrowser(this.platformId);
59
+ this.log('constructor - isBrowser', this.isBrowser);
60
+ this.options = this.setDefaultOptions(undefined, false);
61
+ }
62
+ set setOptions(val) {
63
+ this.options = this.setDefaultOptions(val, false);
64
+ this.setThumbnailsOptions();
65
+ }
66
+ log(...args) {
67
+ if (!this.config.debug)
68
+ return;
69
+ console.log('[NxsCarousel]', ...args);
70
+ }
71
+ destroy() {
72
+ if (!this.isBrowser) {
73
+ return;
74
+ }
75
+ this.eventsCollector?.unsubscribeAll();
76
+ }
77
+ ngOnDestroy() {
78
+ this.destroy();
79
+ }
80
+ ngAfterViewInit() {
81
+ // console.log('thi.contents', this.contents);
82
+ // this.initSlides();
83
+ // this.createSlider(true);
84
+ }
85
+ getMainSliderHeight() {
86
+ if (!this.options)
87
+ return '';
88
+ if (this.options.nxsThumbnails && this.options.nxsThumbnails.show) {
89
+ if (this.options.nxsThumbnails.onMainSlider) {
90
+ return '100%';
91
+ }
92
+ else if (this.options.nxsThumbnails.percentHeight) {
93
+ return (100 - this.options.nxsThumbnails.percentHeight) + '%';
94
+ }
95
+ }
96
+ return '';
97
+ }
98
+ setDefaultOptions(options, forDialog) {
99
+ if (!options && forDialog) {
100
+ options = {
101
+ nxsShowNavigationBullets: true, loop: true, nxsThumbnails: { show: true }, effect: 'slide', nxsShowNavigationArrows: true, nxsShowImagesCount: true,
102
+ lazy: this.lazy,
103
+ };
104
+ }
105
+ else if (!options) {
106
+ options = {
107
+ nxsShowNavigationBullets: true, loop: true,
108
+ nxsThumbnails: { show: false }, effect: 'slide', nxsShowNavigationArrows: true, nxsShowImagesCount: false, nxsCarouselDialogOptions: {},
109
+ lazy: this.lazy,
110
+ };
111
+ }
112
+ if (options.nxsCarouselDialogOptions) {
113
+ if (typeof options.nxsCarouselDialogOptions.nxsThumbnails === 'undefined')
114
+ options.nxsCarouselDialogOptions.nxsThumbnails = { show: false };
115
+ if (typeof options.nxsCarouselDialogOptions.effect === 'undefined')
116
+ options.nxsCarouselDialogOptions.effect = 'slide';
117
+ if (typeof options.nxsCarouselDialogOptions.nxsShowNavigationArrows === 'undefined')
118
+ options.nxsCarouselDialogOptions.nxsShowNavigationArrows = true;
119
+ if (!!options.nxsCarouselDialogOptions.nxsThumbnails?.show) {
120
+ if (typeof options.nxsCarouselDialogOptions.nxsThumbnails.percentHeight === 'undefined')
121
+ options.nxsCarouselDialogOptions.nxsThumbnails.percentHeight = 20;
122
+ if (typeof options.nxsCarouselDialogOptions.nxsThumbnails.perView === 'undefined')
123
+ options.nxsCarouselDialogOptions.nxsThumbnails.perView = 10;
124
+ options.nxsCarouselDialogOptions.nxsThumbnails.breakpoints = {
125
+ 640: {
126
+ slidesPerView: 5,
127
+ },
128
+ 768: {
129
+ slidesPerView: 7,
130
+ },
131
+ 1024: {
132
+ slidesPerView: 8,
133
+ },
134
+ };
135
+ }
136
+ }
137
+ if (!options.nxsThumbnails)
138
+ options.nxsThumbnails = { show: false };
139
+ if (options.nxsThumbnails.show && typeof options.nxsThumbnails.percentHeight === 'undefined')
140
+ options.nxsThumbnails.percentHeight = 20;
141
+ if (options.nxsThumbnails.show && typeof options.nxsThumbnails.perView === 'undefined')
142
+ options.nxsThumbnails.perView = 10;
143
+ if (forDialog)
144
+ options.nxsfullscreenOnClick = false;
145
+ if (options.nxsThumbnails.onMainSlider)
146
+ options.nxsShowNavigationBullets = false;
147
+ if (typeof options.lazy === 'undefined')
148
+ options.lazy = true;
149
+ if (typeof options.navigation === 'undefined')
150
+ options.navigation = true;
151
+ if (typeof options.pagination === 'undefined')
152
+ options.pagination = { clickable: true };
153
+ if (options.nxsShowNavigationBullets === false) {
154
+ options.pagination = false;
155
+ }
156
+ // console.log("Log ~ file: nxs-carousel.component.ts ~ line 272 ~ NxsCarouselComponent ~ setDefaultOptions ~ options", options);
157
+ return options;
158
+ }
159
+ setThumbnailsOptions() {
160
+ if (!!this.options?.nxsThumbnails?.show) {
161
+ this.thumbnailsOptions = {
162
+ slidesPerView: this.options.nxsThumbnails.perView,
163
+ loop: false,
164
+ freeMode: true,
165
+ // watchSlidesVisibility: true,
166
+ watchSlidesProgress: true,
167
+ breakpoints: this.options.nxsThumbnails.breakpoints,
168
+ // spaceBetween: 10,
169
+ };
170
+ if (this.lazy) {
171
+ // Disable preloading of all images
172
+ this.thumbnailsOptions.preloadImages = false;
173
+ // Enable lazy loading
174
+ this.thumbnailsOptions.lazy = true;
175
+ }
176
+ // console.log("Log ~ file: nxs-carousel.component.ts ~ line 184 ~ NxsCarouselComponent ~ setThumbnailsOptions ~ this.thumbnailsOptions.lazy", this.thumbnailsOptions.lazy);
177
+ // this.thumbnailsSliderInstance = new Swiper(this.nxsThumbnailsSliderContainer.nativeElement, thumbnailsOptions);
178
+ // this.options.thumbs = { swiper: this.thumbnailsSliderInstance };
179
+ }
180
+ }
181
+ showFullScreenCarousel(images, wrapperClass) {
182
+ this.options.nxsCarouselDialogOptions = this.setDefaultOptions(this.options.nxsCarouselDialogOptions, true);
183
+ const data = { images, wrapperClass, options: this.options.nxsCarouselDialogOptions };
184
+ CarouselEvents.openCarouselDialog?.emit({
185
+ data,
186
+ panelClass: 'nxs-carousel-dialog',
187
+ width: !!this.options.nxsCarouselDialogSize ? this.options.nxsCarouselDialogSize.width : undefined,
188
+ height: !!this.options.nxsCarouselDialogSize ? this.options.nxsCarouselDialogSize.height : undefined,
189
+ disableClose: !this.options.nxsCarouselDialogExitable,
190
+ });
191
+ }
192
+ goToSlide(index, speed) {
193
+ this.swiperInstance?.slideTo(index, speed);
194
+ }
195
+ next() {
196
+ this.swiperInstance?.slideNext();
197
+ }
198
+ previous() {
199
+ this.swiperInstance?.slidePrev();
200
+ }
201
+ onSwiperThumbnails(instance) {
202
+ if (this.options?.nxsThumbnails?.show)
203
+ this.thumbnailsSwiperInstance = instance;
204
+ else
205
+ this.thumbnailsSwiperInstance = null;
206
+ // if (this.options?.nxsThumbnails?.show) {
207
+ // const optionsClone = MainHelpers.cloneObject(this.options);
208
+ // optionsClone.thumbs = { swiper: this.thumbnailsSwiperInstance };
209
+ // // this.options = optionsClone;
210
+ // // this.options = { ...this.options, thumbs: { swiper: this.thumbnailsSwiperInstance } };
211
+ // console.log("Log ~ file: nxs-carousel.component.ts ~ line 416 ~ NxsCarouselComponent ~ onSwiperThumbnails ~ this.options ", this.options);
212
+ // this.options.thumbs = { swiper: this.thumbnailsSwiperInstance };
213
+ // }
214
+ }
215
+ onSwiper(instance) {
216
+ this.log('swiper ready - instance', instance);
217
+ this.swiperInstance = instance;
218
+ this.swiperInstance.on('click', (swiperInstance, evt) => {
219
+ // console.log("Log ~ file: nxs-carousel.component.ts ~ line 392 ~ NxsCarouselComponent ~ this.swiperInstance.on ~ evt", evt);
220
+ const target = evt.target;
221
+ if (target.className.indexOf('nxs-carousel-button') !== -1 || target.className.indexOf('swiper-pagination') !== -1)
222
+ return;
223
+ this.runInZone(() => {
224
+ this.slideClick.next(evt);
225
+ if (this.options.nxsfullscreenOnClick && this.images && this.images.length && !this.hasHtmlContent) {
226
+ this.showFullScreenCarousel(this.images, 'fullscreen-carousel');
227
+ }
228
+ });
229
+ });
230
+ }
231
+ runInZone(callback, ...args) {
232
+ if (!this.zone) {
233
+ callback(args);
234
+ }
235
+ return this.zone.run(() => callback(args));
236
+ }
237
+ onSlideChange(instances) {
238
+ // this.swiperInstance = instance;
239
+ // this.log('slide change - instance', instance);
240
+ this.runInZone(() => {
241
+ this.currentSlide = this.swiperInstance?.realIndex || 0;
242
+ this.log('slide change - currentSlide', this.currentSlide);
243
+ this.slideChange.next(this.currentSlide);
244
+ });
245
+ }
246
+ }
247
+ NxsCarouselComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: NxsCarouselComponent, deps: [{ token: i1.MatDialog }, { token: i0.NgZone }, { token: PLATFORM_ID }, { token: NxsCarouselModuleConfig, optional: true }], target: i0.ɵɵFactoryTarget.Component });
248
+ NxsCarouselComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.5", type: NxsCarouselComponent, 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 <div *ngIf=\"lazy\" class=\"swiper-lazy-preloader swiper-lazy-preloader-black\"></div>\n </ng-template>\n </ng-container>\n </swiper>\n <ng-container *ngIf=\"images && options.nxsShowImagesCount\">\n <div class=\"nxs-image-counter\">\n {{currentSlide+1}} / {{images.length}}\n </div>\n </ng-container>\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\" />\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%;-o-object-fit:cover;object-fit:cover;width:100%;-o-object-position:center;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", "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", "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", "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 });
249
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: NxsCarouselComponent, decorators: [{
250
+ type: Component,
251
+ args: [{ selector: 'nxs-carousel', encapsulation: ViewEncapsulation.None, 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 <div *ngIf=\"lazy\" class=\"swiper-lazy-preloader swiper-lazy-preloader-black\"></div>\n </ng-template>\n </ng-container>\n </swiper>\n <ng-container *ngIf=\"images && options.nxsShowImagesCount\">\n <div class=\"nxs-image-counter\">\n {{currentSlide+1}} / {{images.length}}\n </div>\n </ng-container>\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\" />\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%;-o-object-fit:cover;object-fit:cover;width:100%;-o-object-position:center;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"] }]
252
+ }], ctorParameters: function () { return [{ type: i1.MatDialog }, { type: i0.NgZone }, { type: undefined, decorators: [{
253
+ type: Inject,
254
+ args: [PLATFORM_ID]
255
+ }] }, { type: NxsCarouselModuleConfig, decorators: [{
256
+ type: Optional
257
+ }] }]; }, propDecorators: { contents: [{
258
+ type: ContentChildren,
259
+ args: [NxsSwiperTemplateDirective, { read: TemplateRef }]
260
+ }], swiperComponent: [{
261
+ type: ViewChild,
262
+ args: ['swiper', { static: false }]
263
+ }], lazy: [{
264
+ type: Input
265
+ }], images: [{
266
+ type: Input
267
+ }], setOptions: [{
268
+ type: Input,
269
+ args: ['options']
270
+ }], hasHtmlContent: [{
271
+ type: Input
272
+ }], slideChange: [{
273
+ type: Output
274
+ }], slideClick: [{
275
+ type: Output
276
+ }] } });
277
+
278
+ class NxsCarouselDialogComponent {
279
+ constructor(data, dialogRef) {
280
+ this.data = data;
281
+ this.dialogRef = dialogRef;
282
+ this.wrapperClass = 'nxs-carousel-wrapper';
283
+ if (data.wrapperClass)
284
+ this.wrapperClass += ' ' + data.wrapperClass;
285
+ this.dialogRef.afterOpened().subscribe(() => {
286
+ NxsCarouselDialogComponent.dialogOpened = true;
287
+ });
288
+ this.dialogRef.afterClosed().subscribe(() => {
289
+ NxsCarouselDialogComponent.dialogOpened = false;
290
+ });
291
+ }
292
+ }
293
+ NxsCarouselDialogComponent.dialogOpened = false;
294
+ NxsCarouselDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: NxsCarouselDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component });
295
+ NxsCarouselDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.5", type: NxsCarouselDialogComponent, selector: "nxs-carousel-dialog", ngImport: i0, template: `
296
+ <div class="nxs-carousel-dialog-flex-wrapper">
297
+ <div class="nxs-carousel-dialog-header">
298
+ <button (click)="dialogRef.close()" mat-icon-button><mat-icon>close</mat-icon></button>
299
+ </div>
300
+ <div [class]="wrapperClass">
301
+ <nxs-carousel [options]="data.options" [images]="data.images"></nxs-carousel>
302
+ </div>
303
+ </div>
304
+ `, 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 });
305
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: NxsCarouselDialogComponent, decorators: [{
306
+ type: Component,
307
+ args: [{ selector: 'nxs-carousel-dialog', template: `
308
+ <div class="nxs-carousel-dialog-flex-wrapper">
309
+ <div class="nxs-carousel-dialog-header">
310
+ <button (click)="dialogRef.close()" mat-icon-button><mat-icon>close</mat-icon></button>
311
+ </div>
312
+ <div [class]="wrapperClass">
313
+ <nxs-carousel [options]="data.options" [images]="data.images"></nxs-carousel>
314
+ </div>
315
+ </div>
316
+ `, encapsulation: ViewEncapsulation.None, 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"] }]
317
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
318
+ type: Inject,
319
+ args: [MAT_DIALOG_DATA]
320
+ }] }, { type: i1.MatDialogRef }]; } });
321
+
322
+ class NxsCarouselModule {
323
+ constructor(matDialog) {
324
+ this.matDialog = matDialog;
325
+ CarouselEvents.openCarouselDialog.subscribe((data) => {
326
+ if (NxsCarouselDialogComponent.dialogOpened) {
327
+ return;
328
+ }
329
+ this.matDialog.open(NxsCarouselDialogComponent, data);
330
+ });
331
+ }
332
+ static forRoot(config) {
333
+ return {
334
+ ngModule: NxsCarouselModule,
335
+ providers: [
336
+ { provide: NxsCarouselModuleConfig, useValue: config },
337
+ ],
338
+ };
339
+ }
340
+ }
341
+ NxsCarouselModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: NxsCarouselModule, deps: [{ token: i1.MatDialog }], target: i0.ɵɵFactoryTarget.NgModule });
342
+ NxsCarouselModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.5", ngImport: i0, type: NxsCarouselModule, declarations: [NxsCarouselComponent,
343
+ NxsCarouselDialogComponent,
344
+ NxsSwiperTemplateDirective], imports: [CommonModule,
345
+ MatIconModule,
346
+ MatButtonModule,
347
+ MatDialogModule,
348
+ SwiperModule], exports: [NxsCarouselComponent,
349
+ NxsSwiperTemplateDirective] });
350
+ NxsCarouselModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: NxsCarouselModule, imports: [CommonModule,
351
+ MatIconModule,
352
+ MatButtonModule,
353
+ MatDialogModule,
354
+ SwiperModule] });
355
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: NxsCarouselModule, decorators: [{
356
+ type: NgModule,
357
+ args: [{
358
+ declarations: [
359
+ NxsCarouselComponent,
360
+ NxsCarouselDialogComponent,
361
+ NxsSwiperTemplateDirective,
362
+ ],
363
+ imports: [
364
+ CommonModule,
365
+ MatIconModule,
366
+ MatButtonModule,
367
+ MatDialogModule,
368
+ SwiperModule,
369
+ ],
370
+ exports: [
371
+ NxsCarouselComponent,
372
+ NxsSwiperTemplateDirective,
373
+ ],
374
+ }]
375
+ }], ctorParameters: function () { return [{ type: i1.MatDialog }]; } });
376
+
377
+ /**
378
+ * Generated bundle index. Do not edit.
379
+ */
380
+
381
+ export { NxsCarouselComponent, NxsCarouselModule, NxsSwiperTemplateDirective };
382
+ //# sourceMappingURL=nextalys-carousel-lib-nxs-carousel.mjs.map