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