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