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