UNPKG

lightgallery

Version:

lightGallery is a feature-rich, modular JavaScript gallery plugin for building beautiful image and video galleries for the web and the mobile

2 lines 5.73 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("lightgallery")):"function"==typeof define&&define.amd?define("lightgallery/angular/9",["exports","@angular/core","lightgallery"],t):t(((e=e||self).lightgallery=e.lightgallery||{},e.lightgallery.angular=e.lightgallery.angular||{},e.lightgallery.angular[9]={}),e.ng.core,e.lightGallery)}(this,(function(e,t,n){"use strict";n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;var i=function(){function e(){}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=t.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e}(),o=["*"],l="lgAfterAppendSlide",r="lgInit",a="lgHasVideo",d="lgContainerResize",f="lgAfterAppendSubHtml",s="lgBeforeOpen",g="lgAfterOpen",p="lgSlideItemLoad",c="lgBeforeSlide",h="lgAfterSlide",u="lgPosterClick",m="lgDragStart",v="lgDragMove",E="lgDragEnd",S="lgBeforeNextSlide",R="lgBeforePrevSlide",A="lgBeforeClose",L="lgAfterClose",B="lgRotateLeft",y="lgRotateRight",C="lgFlipHorizontal",_="lgFlipVertical",D=function(){function e(e){this._elementRef=e,this.lgInitialized=!1,this._elementRef=e}return e.prototype.ngAfterViewChecked=function(){this.lgInitialized||(this.registerEvents(),this.LG=n(this._elementRef.nativeElement,this.settings),this.lgInitialized=!0)},e.prototype.ngOnDestroy=function(){this.LG.destroy(),this.lgInitialized=!1},e.prototype.registerEvents=function(){var e=this;this.onAfterAppendSlide&&this._elementRef.nativeElement.addEventListener(l,(function(t){e.onAfterAppendSlide&&e.onAfterAppendSlide(t.detail)})),this.onInit&&this._elementRef.nativeElement.addEventListener(r,(function(t){e.onInit&&e.onInit(t.detail)})),this.onHasVideo&&this._elementRef.nativeElement.addEventListener(a,(function(t){e.onHasVideo&&e.onHasVideo(t.detail)})),this.onContainerResize&&this._elementRef.nativeElement.addEventListener(d,(function(t){e.onContainerResize&&e.onContainerResize(t.detail)})),this.onAfterAppendSubHtml&&this._elementRef.nativeElement.addEventListener(f,(function(t){e.onAfterAppendSubHtml&&e.onAfterAppendSubHtml(t.detail)})),this.onBeforeOpen&&this._elementRef.nativeElement.addEventListener(s,(function(t){e.onBeforeOpen&&e.onBeforeOpen(t.detail)})),this.onAfterOpen&&this._elementRef.nativeElement.addEventListener(g,(function(t){e.onAfterOpen&&e.onAfterOpen(t.detail)})),this.onSlideItemLoad&&this._elementRef.nativeElement.addEventListener(p,(function(t){e.onSlideItemLoad&&e.onSlideItemLoad(t.detail)})),this.onBeforeSlide&&this._elementRef.nativeElement.addEventListener(c,(function(t){e.onBeforeSlide&&e.onBeforeSlide(t.detail)})),this.onAfterSlide&&this._elementRef.nativeElement.addEventListener(h,(function(t){e.onAfterSlide&&e.onAfterSlide(t.detail)})),this.onPosterClick&&this._elementRef.nativeElement.addEventListener(u,(function(t){e.onPosterClick&&e.onPosterClick(t.detail)})),this.onDragStart&&this._elementRef.nativeElement.addEventListener(m,(function(t){e.onDragStart&&e.onDragStart(t.detail)})),this.onDragMove&&this._elementRef.nativeElement.addEventListener(v,(function(t){e.onDragMove&&e.onDragMove(t.detail)})),this.onDragEnd&&this._elementRef.nativeElement.addEventListener(E,(function(t){e.onDragEnd&&e.onDragEnd(t.detail)})),this.onBeforeNextSlide&&this._elementRef.nativeElement.addEventListener(S,(function(t){e.onBeforeNextSlide&&e.onBeforeNextSlide(t.detail)})),this.onBeforePrevSlide&&this._elementRef.nativeElement.addEventListener(R,(function(t){e.onBeforePrevSlide&&e.onBeforePrevSlide(t.detail)})),this.onBeforeClose&&this._elementRef.nativeElement.addEventListener(A,(function(t){e.onBeforeClose&&e.onBeforeClose(t.detail)})),this.onAfterClose&&this._elementRef.nativeElement.addEventListener(L,(function(t){e.onAfterClose&&e.onAfterClose(t.detail)})),this.onRotateLeft&&this._elementRef.nativeElement.addEventListener(B,(function(t){e.onRotateLeft&&e.onRotateLeft(t.detail)})),this.onRotateRight&&this._elementRef.nativeElement.addEventListener(y,(function(t){e.onRotateRight&&e.onRotateRight(t.detail)})),this.onFlipHorizontal&&this._elementRef.nativeElement.addEventListener(C,(function(t){e.onFlipHorizontal&&e.onFlipHorizontal(t.detail)})),this.onFlipVertical&&this._elementRef.nativeElement.addEventListener(_,(function(t){e.onFlipVertical&&e.onFlipVertical(t.detail)}))},e.ɵfac=function(n){return new(n||e)(t.ɵɵdirectiveInject(t.ElementRef))},e.ɵcmp=t.ɵɵdefineComponent({type:e,selectors:[["lightgallery"]],inputs:{settings:"settings",onAfterAppendSlide:"onAfterAppendSlide",onInit:"onInit",onHasVideo:"onHasVideo",onContainerResize:"onContainerResize",onAfterAppendSubHtml:"onAfterAppendSubHtml",onBeforeOpen:"onBeforeOpen",onAfterOpen:"onAfterOpen",onSlideItemLoad:"onSlideItemLoad",onBeforeSlide:"onBeforeSlide",onAfterSlide:"onAfterSlide",onPosterClick:"onPosterClick",onDragStart:"onDragStart",onDragMove:"onDragMove",onDragEnd:"onDragEnd",onBeforeNextSlide:"onBeforeNextSlide",onBeforePrevSlide:"onBeforePrevSlide",onBeforeClose:"onBeforeClose",onAfterClose:"onAfterClose",onRotateLeft:"onRotateLeft",onRotateRight:"onRotateRight",onFlipHorizontal:"onFlipHorizontal",onFlipVertical:"onFlipVertical"},ngContentSelectors:o,decls:1,vars:0,template:function(e,n){1&e&&(t.ɵɵprojectionDef(),t.ɵɵprojection(0))},encapsulation:2}),e}(),I=function(){function e(){}return e.ɵmod=t.ɵɵdefineNgModule({type:e}),e.ɵinj=t.ɵɵdefineInjector({factory:function(t){return new(t||e)},imports:[[]]}),e}();("undefined"==typeof ngJitMode||ngJitMode)&&t.ɵɵsetNgModuleScope(I,{declarations:[D],exports:[D]}),e.LightgalleryAngualr9Service=i,e.LightgalleryComponent=D,e.LightgalleryModule=I,Object.defineProperty(e,"__esModule",{value:!0})})); //# sourceMappingURL=lightgallery-angular-9.umd.min.js.map